:root {
    --cb-color-text-brand: #0052cc;
    --cb-color-bg-surface-brand: #e6f0ff;
    --cb-color-bg-surface-brand-hovered: #d6e4ff;
    --cb-color-bg-surface-brand-pressed: #c6d8ff;
    --cb-color-bg-surface-brand-disabled: #f0f4fa;
    --cb-color-text-brand-hovered: #003d99;
    --cb-color-text-brand-pressed: #002966;
    --cb-color-text-brand-disabled: #99b3e6;
    --cb-color-outline-focused: #4d94ff;
    --primary: var(--cb-color-text-brand);
    --text: #202125;
    --background: #009de013;
    --white: #fff;
    --error: #cc0000;
    --success: #008000;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    overscroll-behavior-x: none;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: auto;
}

.language-switcher {
    display: flex;
    gap: 10px;
    padding: 10px;
    position: absolute;
    top: 20px; /* Adjusted to avoid overlap with logo */
    right: 20px; /* Added margin from edge */
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95); /* Kept the liked background */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow); /* Kept the liked shadow */
}

.lang-btn {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    background-color: #fff;
    font-size: 14px;
}

.lang-btn img {
    width: 20px;
    margin-right: 5px;
}

.lang-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}







@media (max-width: 767px) {
    
}

.logo {
    width: 160px;
    height: 160px!important;
    margin: 30px 110px;
    border-radius: 50%;
    object-fit: cover;
}

.address-selector {
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    padding: 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.address-selector select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    background: var(--white);
    appearance: none;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="16px" viewBox="0 0 24 24"%3E%3Cpath fill="%23202125" d="M7 10l5 5l5-5z"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.address-info {
    font-size: 14px;
    margin-top: 12px;
}

.address-info p {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.holiday-notice {
    margin-top: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #e8f5e8, #f5e8e8);
    border-radius: 12px;
    border-left: 4px solid #4caf50;
    font-size: 0.95em;
    line-height: 1.4;
    color: #2e7d32;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.holiday-notice .holiday-icon {
    color: #4caf50;
    margin-right: 8px;
}

.holiday-notice strong {
    color: #1b5e20;
}

/* Для мобильных устройств — чуть меньше отступов */
@media (max-width: 768px) {
    .holiday-notice {
        padding: 10px 12px;
        font-size: 0.9em;
    }
}

.address-info i {
    margin-right: 8px;
    color: var(--primary);
}

.address-info .phone-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.address-info .phone-link:hover {
    color: var(--cb-color-text-brand-hovered);
}

.info-section {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 20px;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.discount-banner {
    background: var(--cb-color-bg-surface-brand);
    color: var(--primary);
    text-align: center;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 12px;
}

#checkoutDiscountBanner {
    margin-bottom: 16px;
}

.delivery-toggle {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 16px;
}

#checkoutDetails .delivery-toggle {
    margin-bottom: 16px;
}

.radio-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    padding: 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white); /* Default: white background */
    border: 1px solid var(--primary); /* Default border */
    color: var(--primary); /* Default text color */
}

.radio-container input {
    display: none;
}

.radio-container input:checked + .radio-custom + span {
    font-weight: 600;
    color: var(--primary); /* Keep text color for visibility */
}

.radio-container input:checked {
    background: var(--cb-color-bg-surface-brand); /* Lighter blue for active state */
    border: 1px solid var(--primary);
}

.radio-container input:checked + .radio-custom {
    background: var(--primary); /* Blue background for active radio */
    border-color: var(--primary);
}

.radio-container input:checked + .radio-custom::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--white); /* White dot for active state */
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary); /* Blue border for inactive */
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-container:not(:has(input:checked)) {
    background: var(--white); /* Inactive: white background */
    color: var(--primary);
    opacity: 0.7; /* Slightly faded for inactive state */
}

.search-container {
    position: relative;
    max-width: 400px;
}

.search-container i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: var(--primary);
}

.search-container input {
    width: 100%;
    padding: 14px 16px 14px 40px;
    border: 1px solid transparent;
    background: var(--bg-light);
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    background: var(--white);
    border-color: #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.categories-nav {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 2;
    padding: 12px 20px;
    box-shadow: var(--shadow);
}

.categories-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.categories-wrapper::-webkit-scrollbar {
    display: none;
}

.category-tag {
    background: var(--cb-color-bg-surface-brand);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.category-tag:hover, .category-tag.active {
    background: var(--cb-color-bg-surface-brand-hovered);
    color: var(--cb-color-text-brand-hovered);
}

main {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
}

.category {
    margin-bottom: 110px;
}

.category h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #202125;
}

.items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .items {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 767px) {
    .items {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .product-card {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    
    .product-image-container {
        width: 100%;
        height: 220px;
        min-height: 220px;
        order: 1;
    }
    
    .product-info {
        width: 100%;
        order: 2;
        min-height: auto;
        padding: 12px;
    }
    
    .product-description {
        margin-bottom: 50px;
    }
    
    .product-controls {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 8px;
    }
}

.product-card {
    display: flex;
    flex-direction: row;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
    height: auto;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-card.highlight {
    border: 2px solid var(--cb-color-outline-focused);
    animation: highlight 0.5s ease;
}

.product-image-container {
    width: 60%;
    min-width: 150px;
    height: 100%;
    overflow: hidden;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    flex-shrink: 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
    max-height: 100%;
}

/* Мобильная версия - современный вертикальный дизайн карточки */
@media (max-width: 767px) {
    /* Сетка товаров - 2 колонки как в приложениях доставки */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 12px;
    }
    
    /* Вертикальная карточка товара */
    .product-card {
        flex-direction: column;
        background: white;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        position: relative;
    }
    
    .product-card:active {
        transform: scale(0.98);
        box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    }
    
    /* Контейнер изображения - сверху, на всю ширину */
    .product-image-container {
        width: 100%;
        height: 160px;
        min-height: 200px;
        background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
        border-radius: 0;
        margin: 0;
        padding: 6px;
        position: relative;
        overflow: hidden;
        cursor: pointer;
        order: 0;
    }
    
    /* Градиентный оверлей сверху */
    .product-image-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(ellipse at center top, rgba(255,255,255,0.6) 0%, transparent 60%);
        pointer-events: none;
        z-index: 1;
    }
    
    /* Иконка лупы при наведении */
    .product-image-container::after {
        content: '\f002';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 20px;
        color: white;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.8);
        width: 44px;
        height: 44px;
        background: rgba(0, 82, 204, 0.95);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: all 0.25s ease;
        pointer-events: none;
        z-index: 2;
        box-shadow: 0 4px 15px rgba(0, 82, 204, 0.4);
    }
    
    .product-image-container:hover::after,
    .product-image-container:active::after {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    
    .product-image-container:hover .product-image,
    .product-image-container:active .product-image {
        transform: scale(1.08);
    }
    
    .product-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        border-radius: 8px;
        transition: transform 0.3s ease;
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
        position: relative;
        z-index: 0;
    }
    
    /* Информация о товаре - под изображением */
    .product-info {
        width: 100%;
        padding: 12px;
        gap: 6px;
        order: 1;
        min-height: auto;
        display: flex;
        flex-direction: column;
    }
    
    /* Название товара */
    .product-name {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.35;
        color: var(--text);
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 38px;
    }
    
    /* Описание товара */
    .product-description {
        font-size: 12px;
        line-height: 1.4;
        color: #666;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 34px;
    }
    
    /* Цена и кнопка в одной строке */
    .product-controls {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
    }
    
    .product-price {
        font-size: 16px;
        font-weight: 700;
        color: var(--cb-color-text-brand);
    }
    
    .product-old-price {
        font-size: 11px;
        color: #999;
        text-decoration: line-through;
        margin-left: 6px;
    }
    
    /* Кнопка добавления в корзину */
    .add-to-cart-button {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        background: var(--cb-color-bg-surface-brand);
        color: var(--cb-color-text-brand);
        border: none;
        transition: all 0.2s ease;
    }
    
    .add-to-cart-button:active {
        transform: scale(0.92);
        background: var(--cb-color-bg-surface-brand-pressed);
    }
    
    /* Контролы количества */
    .quantity-controls {
        display: flex;
        align-items: center;
        gap: 8px;
        background: var(--cb-color-bg-surface-brand);
        border-radius: 10px;
        padding: 4px;
    }
    
    .quantity-button {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        border: none;
        background: white;
        color: var(--cb-color-text-brand);
        font-size: 16px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.15s ease;
    }
    
    .quantity-button:active {
        background: var(--cb-color-bg-surface-brand-pressed);
    }
    
    .quantity {
        font-size: 14px;
        font-weight: 600;
        color: var(--cb-color-text-brand);
        min-width: 24px;
        text-align: center;
    }
}

/* Для широкоэкранной версии - картинка заполняет весь контейнер */
@media (min-width: 768px) {
    .product-image-container {
        align-items: stretch;
    }
    
    .product-image {
        object-fit: cover;
        object-position: center;
    }
}

/* Модальное окно для изображения товара */
.product-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.product-image-modal.active {
    display: flex;
}

.product-image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.product-image-modal img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.product-image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.product-image-modal-close:hover {
    transform: scale(1.1);
}

.product-image-modal-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 10px 20px;
    background: var(--cb-color-bg-surface-brand);
    color: var(--cb-color-text-brand);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-image-modal-link:hover {
    background: var(--cb-color-bg-surface-brand-hovered);
    transform: translateY(-2px);
}

.product-image-modal-link i {
    font-size: 12px;
}

@media (max-width: 767px) {
    .product-image-modal-content {
        max-width: 95%;
    }
    
    .product-image-modal img {
        max-height: 50vh;
    }
}

.product-info {
    width: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    order: 1;
    overflow: visible;
    flex: 1;
    min-height: 200px;
}

.product-controls {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.add-to-cart-button {
    background: var(--cb-color-bg-surface-brand);
    color: var(--cb-color-text-brand);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.add-to-cart-button:hover {
    background: var(--cb-color-bg-surface-brand-hovered);
    color: var(--cb-color-text-brand-hovered);
    transform: scale(1.1);
}

.add-to-cart-button:active {
    background: var(--cb-color-bg-surface-brand-pressed);
    color: var(--cb-color-text-brand-pressed);
}

.add-to-cart-button.adding {
    animation: pulse 0.5s ease;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.quantity-button {
    width: 28px;
    height: 28px;
    background: var(--cb-color-bg-surface-brand);
    color: var(--cb-color-text-brand);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease, color 0.3s ease;
}

.quantity-button:hover {
    background: var(--cb-color-bg-surface-brand-hovered);
    color: var(--cb-color-text-brand-hovered);
}

.quantity-button:active {
    background: var(--cb-color-bg-surface-brand-pressed);
    color: var(--cb-color-text-brand-pressed);
}

.quantity {
    font-size: 16px;
    min-width: 24px;
    text-align: center;
}

.product-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: #202125;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    overflow: visible;
    flex: 1;
    margin-bottom: 50px;
    word-wrap: break-word;
}

.product-price-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 50px;
}

.product-price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.product-price-discounted {
    font-size: 18px;
    font-weight: 600;
    color: var(--error);
}

.product-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
}

.progress-bar {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 240px;
    background: var(--white);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
}

.progress-bar.active {
    display: block;
}

.progress-bar.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

.close-progress {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.close-progress:hover {
    color: var(--cb-color-text-brand-hovered);
}

.progress-bar-inner {
    height: 6px;
    background: var(--success);
    border-radius: 3px;
    width: 0;
    transition: width 0.5s ease;
}

.progress-bar-inner.complete {
    background: var(--success);
    animation: glow 1s ease-in-out infinite alternate;
}

.progress-bar span {
    display: block;
    text-align: center;
    font-size: 14px;
    margin-top: 6px;
    font-weight: 600;
    color: var(--text);
}

.progress-bar .highlight-amount {
    color: #f28c38;
}

.cart-icon {
    position: fixed;
    bottom: 120px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: var(--cb-color-bg-surface-brand);
    color: var(--cb-color-text-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    z-index: 1001;
    transition: background 0.3s ease, color 0.3s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.cart-icon.has-items::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--cb-color-text-brand);
    border-radius: 50%;
    animation: wave 2s ease-in-out infinite;
    z-index: -1;
    opacity: 0.8;
}

.cart-icon:hover {
    background: var(--cb-color-bg-surface-brand-hovered);
    color: var(--cb-color-text-brand-hovered);
}

.cart-icon.pulse {
    animation: scale 0.3s ease-in-out;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    width: auto;
    min-width: 40px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--white);
    background-color: var(--error);
    padding: 2px 8px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    overflow-y: auto;
}

/* Halyk ePay widget overlay - must be above all modals */
iframe[src*="epay"],
iframe[src*="homebank"],
iframe[src*="halyk"],
div[id*="epay"],
div[class*="epay"],
.PaymentWidgetOverlay,
div[style*="position: fixed"][style*="z-index"] {
    z-index: 99999 !important;
}

.docs-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3002;
    overflow-y: auto;
}

.modal.active, .docs-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
	z-index: 3001;
    position: relative;
    background: var(--white);
    max-width: 90%;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Модальное окно оформления заказа (второй шаг) - 91% высоты */
.modal-content.checkout-active {
    min-height: 91vh;
    max-height: 91vh;
}

/* Альтернативный способ через класс */
.modal-content.checkout-active {
    min-height: 91vh;
    max-height: 91vh;
}


.docs-modal-content {
	z-index: 3003;
    position: relative;
    background: var(--white);
    max-width: 90%;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    display: block;
    visibility: visible;
}

.modal.active .modal-content, .docs-modal.active .docs-modal-content {
    transform: translateY(0);
    opacity: 1;
}

/* Адаптация для мобильных устройств */
@media (max-width: 767px) {
    .modal-content {
        max-width: 95%;
        width: 95%;
        margin: 10px auto;
        padding: 16px;
        max-height: calc(100vh - 100px);
    }
    
    /* Модальное окно оформления заказа (второй шаг) - 91% высоты на мобильных */
    .modal-content.checkout-active {
        min-height: 91vh;
        max-height: 91vh;
    }
    
    .docs-modal-content {
        max-width: 95%;
        width: 95%;
        margin: 10px auto;
        padding: 16px;
        max-height: calc(100vh - 100px);
    }
    
    .modal.active, .docs-modal.active {
        align-items: flex-start;
        padding-top: 20px;
    }
}

.modal-content > div, .docs-modal-content > div {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-content > div[style*="display: none"], .docs-modal-content > div[style*="display: none"] {
    opacity: 0;
    transform: translateY(10px);
}

.modal-content > div:not([style*="display: none"]), .docs-modal-content > div:not([style*="display: none"]) {
    opacity: 1;
    transform: translateY(0);
}

.modal h2, .docs-modal h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #202125;
}

.back-btn {
    background: none;
    border: none;
    color: var(--cb-color-text-brand);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: var(--cb-color-text-brand-hovered);
}

.close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: var(--cb-color-text-brand-hovered);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #202125;
}

.cart-item-price {
    font-size: 14px;
    color: var(--primary);
    margin: 4px 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-quantity .quantity-button {
    width: 24px;
    height: 24px;
    font-size: 14px;
}

.cart-item-quantity span {
    min-width: 24px;
    text-align: center;
    font-size: 14px;
}

.remove-item {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.remove-item:hover {
    color: #b30000;
}

.promo-section {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e4e6ed;
    background: var(--bg-light);
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    background: var(--white);
    border-color: #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--cb-color-bg-surface-brand);
    color: var(--primary);
    border: none;
    border-radius: var(--radius);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1002;
    position: relative;
}

.checkout-btn:hover {
    background: var(--cb-color-bg-surface-brand-hovered);
    transform: translateY(-2px);
}

.apply-btn {
    background: var(--cb-color-bg-surface-brand);
    color: var(--primary);
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    background: var(--cb-color-bg-surface-brand-hovered);
    color: var(--cb-color-text-brand-hovered);
}

.apply-btn:disabled {
    background: var(--cb-color-bg-surface-brand-disabled);
    color: var(--cb-color-text-brand-disabled);
    cursor: not-allowed;
}

#promoMessage {
    font-size: 14px;
    margin-top: 8px;
}

.cart-total {
    margin-top: 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.total-row.final {
    font-weight: 600;
    font-size: 16px;
    border-top: 1px solid #ddd;
    padding-top: 12px;
}

.checkout-btn {
    width: 100%;
    background: var(--cb-color-bg-surface-brand);
    color: var(--cb-color-text-brand);
    border: none;
    padding: 12px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    position: relative;
    z-index: 1002;
    margin-top: 8px;
    box-sizing: border-box;
}

.checkout-btn:hover {
    background: var(--cb-color-bg-surface-brand-hovered);
    color: var(--cb-color-text-brand-hovered);
}

.form-group {
    margin-bottom: 14px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid transparent;
    background: var(--bg-light);
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
    max-height: 120px;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    background: var(--white);
    border-color: #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#checkoutDeliveryDetails, #checkoutPickupAddresses {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#checkoutDeliveryDetails .form-control, 
#checkoutPickupAddresses .form-control {
    margin-bottom: 5px;
    padding: 11px 14px;
    font-size: 14px;
}

.delivery-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.delivery-time-group {
    margin-bottom: 0 !important;
    margin-top: 4px;
}
.delivery-time-group label {
    font-size: 13px !important;
    margin-bottom: 4px !important;
    color: #666;
}

#checkoutDeliveryDetails textarea.form-control {
    min-height: 42px;
    max-height: 80px;
    resize: none;
}

@media (max-width: 600px) {
    #checkoutDeliveryDetails .form-control,
    #checkoutPickupAddresses .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    #checkoutDeliveryDetails, #checkoutPickupAddresses {
        gap: 5px;
    }
    .delivery-time-group .select-btn {
        padding: 10px 12px;
        font-size: 14px;
    }
}
#checkoutDetails {
    display: flex;
    flex-direction: column;
    max-height: none;
    overflow: visible;
    padding-bottom: 0;
    flex: 1;
    min-height: 0;
}

#checkoutDetails form {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 5px;
    padding-bottom: 60px;
}

#checkoutDetails form::-webkit-scrollbar {
    width: 4px;
}

#checkoutDetails form::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

#checkoutDetails form::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

#checkoutDetails .form-group {
    margin-bottom: 10px;
    flex-shrink: 0;
}

#checkoutDetails .delivery-toggle {
    margin-bottom: 12px;
    flex-shrink: 0;
}

#checkoutDetails .total-row {
    padding: 8px 0;
    font-size: 14px;
    flex-shrink: 0;
}

#checkoutDetails .total-row.final {
    padding-top: 10px;
    margin-top: 6px;
    margin-bottom: 12px;
    font-size: 16px;
    flex-shrink: 0;
}

#checkoutDetails .checkout-btn {
    margin-top: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: var(--cb-color-bg-surface-brand);
    flex-shrink: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    #checkoutDetails form {
        max-height: calc(100vh - 180px);
    }
    
    #checkoutDetails .form-group {
        margin-bottom: 10px;
    }
    
    #checkoutDetails .delivery-toggle {
        margin-bottom: 12px;
        gap: 8px;
    }
    
    #checkoutDetails .radio-container {
        padding: 10px;
        font-size: 14px;
    }
    
    #checkoutDetails .total-row {
        padding: 6px 0;
        font-size: 13px;
    }
    
    #checkoutDetails .total-row.final {
        font-size: 15px;
        padding-top: 8px;
        margin-top: 4px;
        margin-bottom: 10px;
    }
    
    #checkoutDetails .checkout-btn {
        padding: 14px;
        font-size: 16px;
        margin-top: 12px;
    }
    
    #checkoutDetails .form-group input,
    #checkoutDetails .form-group select,
    #checkoutDetails .form-group textarea {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    #checkoutDetails .form-group textarea {
        min-height: 50px;
        max-height: 80px;
    }
}

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 2000;
    padding: 8px 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* SEO Product Highlight */
.highlight-seo {
    animation: seo-highlight 2s ease forwards;
    z-index: 10;
}

@keyframes seo-highlight {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 126, 0, 0); }
    30% { transform: scale(1.03); box-shadow: 0 0 20px 5px rgba(255, 126, 0, 0.4); border-color: #ff7e00; }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 126, 0, 0); }
}

.nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    padding: 8px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--cb-color-text-brand-hovered);
}

.nav-item i {
    font-size: 20px;
}

.cart-nav-item .cart-count {
    position: static;
    background: var(--error);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* Consent Checkbox */
.consent-checkbox-wrapper {
    margin: 16px 0 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
}
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.5;
    color: #444;
}
.consent-label input[type="checkbox"] {
    margin-top: 3px;
    min-width: 18px;
    min-height: 18px;
    accent-color: var(--cb-color-text-brand);
    cursor: pointer;
}
.consent-text a {
    color: var(--cb-color-text-brand);
    text-decoration: underline;
    font-weight: 500;
}
.consent-text a:hover {
    color: var(--cb-color-text-brand-hovered);
}
.consent-error {
    margin: 8px 0 0;
    color: var(--error);
    font-size: 12px;
    font-weight: 500;
}

/* Doc Pages Styling */
.doc-page-wrapper {
    min-height: 100vh;
    background: var(--background);
    font-family: 'Poppins', sans-serif;
}
.doc-page-header {
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    padding: 40px 20px 30px;
    text-align: center;
    color: #fff;
}
.doc-page-header .logo-link {
    display: inline-block;
    margin-bottom: 12px;
}
.doc-page-header .logo-link img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}
.doc-page-header h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}
.doc-page-content {
    max-width: 800px;
    margin: -20px auto 40px;
    padding: 30px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
}
.doc-page-content h2 {
    font-size: 17px;
    font-weight: 600;
    color: var(--cb-color-text-brand);
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e6f0ff;
}
.doc-page-content h2:first-of-type {
    margin-top: 0;
}
.doc-page-content p {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 10px;
}
.doc-page-content ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 16px;
}
.doc-page-content ul li {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    padding: 6px 0 6px 20px;
    position: relative;
}
.doc-page-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    background: var(--cb-color-text-brand);
    border-radius: 50%;
}
.doc-page-content a {
    color: var(--cb-color-text-brand);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.doc-page-content a:hover {
    color: var(--cb-color-text-brand-hovered);
    text-decoration: underline;
}
.doc-page-content strong {
    color: #333;
    font-weight: 600;
}
.doc-page-content em {
    color: #777;
    font-size: 13px;
}
.doc-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
}
.doc-page-content th, .doc-page-content td {
    padding: 10px 14px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}
.doc-page-content th {
    background: var(--cb-color-text-brand);
    color: #fff;
    font-weight: 500;
}
.doc-page-content tr:nth-child(even) {
    background: #f8f9fa;
}
.doc-page-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #e6f0ff;
}
.doc-page-tabs .doc-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.doc-page-tabs .doc-tab:hover {
    color: var(--cb-color-text-brand);
}
.doc-page-tabs .doc-tab.active {
    color: var(--cb-color-text-brand);
    border-bottom-color: var(--cb-color-text-brand);
    font-weight: 600;
}
.doc-tab-content {
    display: none;
}
.doc-tab-content.active {
    display: block;
}
.doc-page-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: #f0f4ff;
    border-radius: 20px;
    color: var(--cb-color-text-brand);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}
.doc-page-back:hover {
    background: #dde8ff;
    text-decoration: none;
}
.doc-page-footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 12px;
}
.doc-page-footer a {
    color: var(--cb-color-text-brand);
    text-decoration: none;
}
@media (max-width: 600px) {
    .doc-page-header {
        padding: 30px 16px 20px;
    }
    .doc-page-header h1 {
        font-size: 18px;
    }
    .doc-page-content {
        margin: -12px 8px 30px;
        padding: 20px 16px;
    }
    .doc-page-tabs .doc-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
}

.docs-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.docs-menu a {
    color: var(--cb-color-text-brand);
    text-decoration: none;
    font-size: 16px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.docs-menu a:hover {
    color: var(--cb-color-text-brand-hovered);
}

@keyframes highlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes scale {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes wave {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes glow {
    from { box-shadow: 0 0 5px var(--success); }
    to { box-shadow: 0 0 10px var(--success); }
}

/* Phone input formatting */
.phone-input {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    font-size: 16px;
}

.phone-input:focus {
    outline: none;
    border-color: var(--cb-color-outline-focused);
    box-shadow: 0 0 0 2px rgba(77, 148, 255, 0.2);
}

.phone-input::placeholder {
    color: #999;
    font-family: 'Poppins', sans-serif;
    letter-spacing: normal;
}

/* Progress bar animations */
/* Order progress bar styles */
.order-progress-wrapper {
    margin: 20px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.order-progress-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4CAF50, #FF9800, #F44336);
    animation: progressLineGlow 3s ease-in-out infinite;
}

@keyframes progressLineGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.progress-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-percentage {
    font-size: 24px;
    font-weight: 800;
    color: #4CAF50;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.order-progress-container {
    margin-bottom: 20px;
    position: relative;
}

.order-progress-bg {
    width: 100%;
    height: 16px;
    background: linear-gradient(90deg, #e8f5e8, #fff3cd, #f8d7da);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.order-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #FF9800, #F44336);
    width: 30%;
    border-radius: 8px;
    position: relative;
    transition: width 1s ease-out;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.progress-wave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: progressWaveMove 2s ease-in-out infinite;
}

.progress-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
                radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
                radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 20px 20px, 15px 15px, 25px 25px;
    animation: progressParticlesMove 3s linear infinite;
}

.progress-glow {
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(90deg, #4CAF50, #FF9800, #F44336);
    border-radius: 10px;
    opacity: 0.3;
    filter: blur(4px);
    animation: progressGlowPulse 2s ease-in-out infinite;
}

.progress-milestones {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    position: relative;
}

.milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    opacity: 0.4;
    transition: all 0.5s ease;
}

.milestone.active {
    opacity: 1;
    transform: scale(1.1);
}

.milestone-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

.milestone.active .milestone-dot {
    background: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    animation: milestonePulse 1.5s ease-in-out infinite;
}

.milestone-text {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-top: 5px;
    text-align: center;
    transition: color 0.3s ease;
}

.milestone.active .milestone-text {
    color: #4CAF50;
    font-weight: 700;
}

.progress-status {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: color 0.3s ease;
    margin-top: 10px;
}

/* Animations */
@keyframes progressWaveMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes progressParticlesMove {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

@keyframes progressGlowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.02); }
}

@keyframes milestonePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(76, 175, 80, 0.5); }
    50% { transform: scale(1.2); box-shadow: 0 0 20px rgba(76, 175, 80, 0.8); }
}

/* Progress bar animations */
@keyframes progressPulse {
    0%, 100% { 
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(76, 175, 80, 0.3);
    }
    50% { 
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(76, 175, 80, 0);
    }
}

@keyframes progressMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes progressGlow {
    0%, 100% { 
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 8px rgba(76, 175, 80, 0.4);
    }
    50% { 
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 16px rgba(76, 175, 80, 0.7);
    }
}

@keyframes progressPulse {
    0%, 100% { 
        transform: scaleY(1);
    }
    50% { 
        transform: scaleY(1.08);
    }
}

@keyframes progressShimmer {
    0% { 
        background-position: -200% 0;
    }
    100% { 
        background-position: 200% 0;
    }
}

.progress-bar-fill.animating {
    animation: progressGlow 2s ease-in-out infinite, progressPulse 2s ease-in-out infinite;
    background: linear-gradient(90deg, #4CAF50, #FF9800, #F44336);
    background-size: 200% 100%;
    animation: progressGlow 2s ease-in-out infinite, progressPulse 2s ease-in-out infinite, progressShimmer 3s ease-in-out infinite;
}

.progress-bar-fill.animating::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: progressMove 2s ease-in-out infinite;
    border-radius: 6px;
}

/* ---------- NEW CHECKOUT STYLES FROM TESTDEV ---------- */
:root {
    --bg-light: #f3f4f6;
    --bg-white: #fff;
    --text-main: #111;
    --text-muted: #6b7280;
    --radius: 14px;
}

.checkout {
    max-width: 1100px;
   
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 20px;
}

.left {
    display: flex;
    flex-direction: column;
}

.switch {
    display: flex;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.switch button {
    flex: 1;
    height: 54px;
    border: 0;
    background: transparent;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.switch button.active {
    background: #fff;
    box-shadow: inset 0 0 0 1px #e5e7eb;
    border-radius: var(--radius);
}

.select-wrap {
    position: relative;
}

.select-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 17px;
    font-weight: 500;
}

.arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 50;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    overflow: hidden;
}

.dropdown div {
    padding: 16px;
    cursor: pointer;
    font-size: 16px;
}

.dropdown div:hover {
    background: #f3f4f6;
}

.info-row {
    margin-top: 12px;
    display: flex;
    gap: 12px;
}

.info-card {
    flex: 1;
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card a.phone-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.map-wrap {
    width: 100%;
}

#map {
    width: 100%;
    min-height: 360px;
    border-radius: 16px;
    overflow: hidden;
}

.hidden { display: none; }

@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 380px 1fr;
    }
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }
    .map-wrap {
        margin-top: 20px;
    }
    .checkout.mode-delivery .map-wrap {
        display: none;
    }
    #map {
        min-height: 320px;
    }
}

@media (max-width: 600px) {
    .checkout {
        padding: 14px;
        border-radius: 16px;
    }
    .switch button {
        font-size: 16px;
        height: 50px;
    }
    .select-btn {
        height: 52px;
        font-size: 16px;
        padding: 0 14px;
    }
    .dropdown div {
        font-size: 15px;
        padding: 14px;
    }
    .info-row {
        flex-direction: column;
    }
    .info-card {
        font-size: 15px;
        padding: 12px;
    }
    #map {
        min-height: 280px;
    }
}
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--white);
    text-align: center;
    padding: 0;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
    margin: 0 auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: var(--white) !important;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 0;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    color: var(--white) !important;
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-section {
        height: 50vh;
    }
    
    .map-wrap {
        display: none;
    }
    .map-wrap.visible {
        display: block !important;
        height: 300px;
        margin-top: 15px;
    }
    .show-map-btn {
        display: block;
        width: 100%;
        padding: 14px;
        background: #fff;
        border: 1px solid #e4e6ed;
        border-radius: var(--radius);
        margin-top: 15px;
        cursor: pointer;
        font-weight: 600;
        color: var(--primary);
        font-size: 15px;
    }
}

@keyframes highlight-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 82, 204, 0); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(0, 82, 204, 0.4); border-color: var(--primary); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 82, 204, 0); }
}

.product-card.highlight-seo {
    animation: highlight-pulse 2s ease-in-out 3;
    border: 2px solid var(--primary) !important;
    z-index: 10;
    position: relative;
}

@media (min-width: 768px) {
    .show-map-btn {
        display: none;
    }
    .map-wrap {
        display: block !important;
    }
}

/* ===== Social Proof Toast ===== */
.social-proof-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 360px;
    width: calc(100% - 40px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    padding: 14px;
    gap: 12px;
    z-index: 2900;
    transform: translateX(-120%);
    opacity: 0;
    transition-property: transform, opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.social-proof-toast.sp-show {
    transform: translateX(0);
    opacity: 1;
}
.social-proof-toast .sp-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.social-proof-toast .sp-body {
    flex: 1;
    min-width: 0;
}
.social-proof-toast .sp-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.social-proof-toast .sp-detail {
    font-size: 14px;
    color: #333;
    line-height: 1.35;
}
.social-proof-toast .sp-detail strong {
    color: #FF4500;
}
.social-proof-toast .sp-time {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}
.social-proof-toast .sp-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    color: #bbb;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
}
.social-proof-toast .sp-close:hover {
    color: #666;
}

@media (max-width: 480px) {
    .social-proof-toast {
        left: 10px;
        right: 10px;
        bottom: 80px;
        max-width: none;
        width: auto;
    }
}
