/* <FILE>pokupka/styles.css</FILE> */

/* Общие стили для интернет-магазина */
:root {
    --primary-blue: #00A0E3;
    --primary-green: #00B140;
    --teal: #38B2AC;
    --orange: #F56500;
    --red: #E53E3E;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Стили для градиентов */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
}

/* Стили для карточки товара */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-image-container {
    position: relative;
    overflow: hidden;
}

.product-image {
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

/* Стили для цены */
.price-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.old-price {
    text-decoration: line-through;
    color: #9ca3af;
}

/* Стили для кнопок */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 160, 227, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
}

/* Стили для характеристик */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.specs-table th,
.specs-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.specs-table th {
    background: linear-gradient(135deg, var(--primary-blue), var(--teal));
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specs-table tr:nth-child(even) {
    background: #f9fafb;
}

.specs-table tr:hover {
    background: #f3f4f6;
}

/* Стили для преимуществ */
.benefit-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary-blue), var(--teal));
    color: white;
}

/* Стили для доставки */
.delivery-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.delivery-option:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 160, 227, 0.15);
}

.delivery-option.selected {
    border-color: var(--primary-green);
    background: #f0fff4;
}

.delivery-option input[type="radio"] {
    margin-right: 12px;
    accent-color: var(--primary-green);
}

/* Стили для отзывов */
.review-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stars {
    color: #fbbf24;
    font-size: 18px;
    margin-bottom: 8px;
}

.review-author {
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.review-date {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 12px;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Кнопка "Наверх" */
#scrollToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#scrollToTop:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Responsive стили */
@media (max-width: 768px) {
    .price-display {
        font-size: 2rem;
    }
    
    .benefit-card {
        padding: 16px;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .delivery-option {
        padding: 16px;
    }
    
    .review-card {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .btn-primary,
    .btn-secondary {
        padding: 14px 16px;
        font-size: 14px;
    }
}