    /* ==========================
       SHOP STYLES
       ========================== */
    .shop-section {
        padding: 60px 0;
    }

    .shop-title {
        text-align: center;
        font-size: 38px;
        font-weight: 800;
        margin-bottom: 40px;
        letter-spacing: -0.5px;
    }

    .sale-hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 28px;
        padding: 24px 30px;
        margin: -14px auto 38px;
        border: 1px solid rgba(255, 184, 77, 0.45);
        border-radius: 16px;
        background: linear-gradient(110deg, rgba(116, 42, 12, 0.9), rgba(207, 86, 0, 0.28));
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
    }

    .sale-kicker { color: #ffd38b; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
    .sale-hero h2 { margin: 4px 0; color: #fff; font-size: 26px; }
    .sale-hero p { margin: 0; color: rgba(255,255,255,.72); }
    .sale-hero p strong { color: #ffe16b; }
    .sale-countdown { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .sale-countdown > div { min-width: 62px; padding: 8px 6px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(17, 19, 24, .62); text-align: center; }
    .sale-countdown strong { display: block; color: #fff; font-size: 25px; line-height: 1.1; }
    .sale-countdown span { color: #ffc978; font-size: 10px; text-transform: uppercase; }
    .sale-countdown i { color: #ffd38b; font-style: normal; font-weight: 800; }

    /* --- Ползунок Эмберов (Улучшенный дизайн) --- */
    .ember-slider-section {
        background: linear-gradient(135deg, var(--bg-card) 0%, rgba(24, 27, 33, 0.8) 100%);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        padding: 40px;
        margin-bottom: 50px;
        display: flex;
        align-items: center;
        gap: 40px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .ember-slider-section::before {
        content: '';
        position: absolute;
        top: -60px;
        left: -60px;

        width: 250px;
        height: 250px;
        background: radial-gradient(circle, rgba(207, 86, 0, 0.18) 0%, transparent 70%);
        pointer-events: none;
    }

    .ember-icon-wrapper {
        flex-shrink: 0;
        width: 120px;
        height: 120px;
        background: linear-gradient(135deg, rgba(207, 86, 0, 0.2) 0%, rgba(207, 86, 0, 0.05) 100%);
        border: 2px solid var(--primary-color);
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--glow-shadow);
        transform: rotate(45deg);
    }

    .ember-icon-wrapper i {
        transform: rotate(-45deg);
        font-size: 52px;
        color: var(--primary-color);
        filter: drop-shadow(0 0 8px rgba(207, 86, 0, 0.6));
    }

    .ember-icon-wrapper img {
        width: 124px;
        height: 124px;
        object-fit: contain;
        transform: rotate(-45deg);
        filter: drop-shadow(0 0 8px rgba(207, 86, 0, 0.6));
    }

    .ember-controls {
        flex-grow: 1;
    }

    .ember-controls h3 {
        font-size: 26px;
        font-weight: 800;
        margin-bottom: 6px;
    }

    .ember-controls .subtitle {
        color: var(--text-muted);
        font-size: 14px;
        margin-bottom: 22px;
        display: flex;
        justify-content: space-between;
        font-weight: 500;
    }

    /* Ползунок ввода */
    input[type=range] {
        -webkit-appearance: none;
        width: 100%;
        background: transparent;
        margin-bottom: 25px;
    }

    input[type=range]:focus {
        outline: none;
    }

    input[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none;
        height: 28px;
        width: 28px;
        border-radius: 50%;
        background: var(--primary-color);
        cursor: pointer;
        margin-top: -11px;
        box-shadow: 0 0 15px rgba(207, 86, 0, 0.9);
        border: 3px solid #fff;
        transition: transform 0.1s ease;
    }

    input[type=range]::-webkit-slider-thumb:hover {
        transform: scale(1.15);
    }

    input[type=range]::-webkit-slider-runnable-track {
        width: 100%;
        height: 8px;
        cursor: pointer;
        background: var(--border-color);
        border-radius: 4px;
    }

    /* Блок результатов расчёта */
    .ember-calc-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        background: rgba(15, 17, 21, 0.6);
        padding: 18px 25px;
        border-radius: 12px;
        border: 1px solid var(--border-color);
        align-items: center;
    }

    .calc-item-bordered {
        border-left: 1px solid var(--border-color);
    }

    .ember-action .btn,
    #submit-btn {
        width: 100%;
    }

    /* Ползунок ввода */
    input[type=range] {
        -webkit-appearance: none;
        width: 100%;
        background: transparent;
        margin-bottom: 25px;
    }

    input[type=range]:focus {
        outline: none;
    }

    input[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none;
        height: 28px;
        width: 28px;
        border-radius: 50%;
        background: var(--primary-color);
        cursor: pointer;
        margin-top: -11px;
        box-shadow: 0 0 15px rgba(207, 86, 0, 0.9);
        border: 3px solid #fff;
        transition: transform 0.1s ease;
    }

    input[type=range]::-webkit-slider-thumb:hover {
        transform: scale(1.15);
    }

    input[type=range]::-webkit-slider-runnable-track {
        width: 100%;
        height: 8px;
        cursor: pointer;
        background: var(--border-color);
        border-radius: 4px;
    }

    /* Блок результатов расчёта */
    .ember-calc-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        background: rgba(15, 17, 21, 0.6);
        padding: 18px 25px;
        border-radius: 12px;
        border: 1px solid var(--border-color);
        align-items: center;
    }

    .calc-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .calc-item span.label {
        display: block;
        font-size: 13px;
        color: var(--text-muted);
        margin-bottom: 4px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
    }

    .calc-item .value-wrapper {
        display: flex;
        align-items: baseline;
        gap: 6px;
    }

    .calc-item .value {
        font-size: 32px;
        font-weight: 800;
        color: #fff;
        line-height: 1;
    }

    .calc-item .currency {
        font-size: 24px;
        font-weight: 700;
        color: var(--primary-color);
        text-shadow: 0 0 10px rgba(207, 86, 0, 0.4);
    }

    .ember-action {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        min-width: 260px;
    }

    .ember-action .terms {
        font-size: 11px;
        color: var(--text-muted);
        text-align: center;
        line-height: 1.5;
    }

    .ember-action .terms a {
        color: var(--primary-color);
        text-decoration: underline;
    }

    /* --- Категории --- */
    .category-tabs {
        display: flex;
        gap: 15px;
        justify-content: center;
        margin-bottom: 40px;
    }

    .category-tab {
        background-color: var(--bg-card);
        border: 1px solid var(--border-color);
        padding: 12px 32px;
        border-radius: 30px;
        font-weight: 700;
        font-size: 15px;
        cursor: pointer;
        transition: var(--transition);
        color: var(--text-muted);
    }

    .category-tab.active, .category-tab:hover {
        background-color: var(--primary-color);
        color: #fff;
        border-color: var(--primary-color);
        box-shadow: var(--glow-shadow);
    }

    /* --- Сетка товаров --- */
    .products-grid {
        display: none;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }

    .products-grid.active {
        display: grid;
    }

    .product-card {
        position: relative;
        display: flex;
        flex-direction: column;
        background: linear-gradient(180deg, rgba(17, 20, 27, 0.96), rgba(11, 14, 18, 0.98));
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 27px;
        overflow: hidden;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    }

    .product-image-wrap {
        position: relative;
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.22);
        flex-shrink: 0;
    }

    .product-image {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: scale(1.02);
        background: rgba(0, 0, 0, 0.2);
    }

    .product-image-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.34));
        pointer-events: none;
    }

    .product-price-badge {
        position: absolute;
        top: 18px;
        right: 16px;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        padding: 0 18px;
        border-radius: 14px;
        background: linear-gradient(180deg, #ff9e42 0%, #f78124 100%);
        color: #fff;
        font-size: 18px;
        font-weight: 900;
        letter-spacing: -0.04em;
        box-shadow: 0 10px 24px rgba(247, 129, 36, 0.38);
    }

    .sale-badge,
    .sale-date-badge {
        position: absolute;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 800;
        line-height: 1;
    }

    .sale-badge {
        top: 18px;
        left: 18px;
        padding: 8px 12px;
        background: linear-gradient(135deg, #ff6d4d, #ef244b);
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        box-shadow: 0 10px 22px rgba(239, 36, 75, 0.34);
    }

    .sale-date-badge {
        top: 18px;
        left: 18px;
        transform: translateY(34px);
        padding: 8px 10px;
        background: rgba(255, 255, 255, 0.9);
        color: #1a1d22;
        box-shadow: 0 8px 18px rgba(255, 255, 255, 0.12);
    }

    .product-body {
        padding: 16px 16px 18px;
    }

    .product-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .product-title {
        margin: 0;
        color: #f5f7fb;
        font-size: 17px;
        font-weight: 800;
        letter-spacing: -0.04em;
        line-height: 1.2;
        text-align: left;
        text-transform: uppercase;
    }

    .product-description {
        display: none;
    }

    .product-price {
        display: none;
    }

    .product-price-old {
        display: none;
    }

    .product-cart-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border: 0;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.96);
        color: #1d232d;
        box-shadow: 0 8px 18px rgba(255, 255, 255, 0.12);
        cursor: pointer;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .product-cart-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 22px rgba(255, 255, 255, 0.18);
    }

    .product-cart-btn i {
        font-size: 17px;
    }

    .product-buttons {
        display: none;
    }

    @media (max-width: 700px) {
        .sale-hero { align-items: stretch; flex-direction: column; padding: 20px; }
        .sale-countdown { justify-content: space-between; gap: 3px; }
        .sale-countdown > div { min-width: 0; flex: 1; }
        .sale-countdown i { display: none; }
        .product-image { height: 220px; }
        .product-body { padding: 16px; }
        .product-title { font-size: 17px; }
        .product-price strong { font-size: 20px; }
    }

    @media (max-width: 700px) {
        .sale-hero { align-items: stretch; flex-direction: column; padding: 20px; }
        .sale-countdown { justify-content: space-between; gap: 3px; }
        .sale-countdown > div { min-width: 0; flex: 1; }
        .sale-countdown i { display: none; }
        .product-price {
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }
        .product-price strong {
            font-size: 18px;
            text-align: center;
        }
    }

    /* --- Модальное окно --- */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 17, 21, 0.85);
        backdrop-filter: blur(6px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .modal-box {
        background-color: var(--bg-card);
        border: none;
        border-radius: 20px;
        width: min(980px, calc(100vw - 40px));
        max-height: min(820px, calc(100vh - 40px));
        overflow-y: auto;
        overflow-x: hidden;
        padding: clamp(20px, 3vw, 35px);
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
        position: relative;
        transform: scale(0.9);
        transition: var(--transition);
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) transparent;
    }

    .modal-box::-webkit-scrollbar {
        width: 7px;
    }

    .modal-box::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }

    body.modal-open {
        overflow: hidden;
    }

    .modal-overlay.active .modal-box {
        transform: scale(1);
    }

    .modal-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: transparent;
        border: none;
        color: var(--text-muted);
        font-size: 22px;
        cursor: pointer;
        transition: var(--transition);
    }

    .modal-close:hover {
        color: #ff4757;
    }

    .modal-title {
        font-size: 22px;
        font-weight: 800;
        margin-bottom: 15px;
        color: #fff;
    }

    .modal-desc {
        font-size: 14px;
        color: var(--text-muted);
        margin-bottom: 22px;
        background: rgba(0,0,0,0.25);
        padding: 15px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

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

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

    .form-input {
        width: 100%;
        padding: 14px 18px;
        background: var(--bg-dark);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        color: #fff;
        font-family: 'Montserrat', sans-serif;
        font-size: 15px;
        outline: none;
        transition: var(--transition);
    }

    .form-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 12px rgba(207, 86, 0, 0.25);
    }

    .checkbox-group {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 25px;
    }

    .checkbox-group input[type="checkbox"] {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
    }

    .custom-checkbox {
        position: relative;
        display: block;
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        margin-top: 2px;
        border: 1px solid var(--border-color);
        border-radius: 5px;
        background: var(--bg-dark);
        cursor: pointer;
        transition: var(--transition);
    }

    .checkbox-group input[type="checkbox"]:focus-visible + .custom-checkbox {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }

    .checkbox-group input[type="checkbox"]:checked + .custom-checkbox {
        border-color: var(--primary-color);
        background: var(--primary-color);
        box-shadow: 0 0 10px rgba(207, 86, 0, 0.35);
    }

    .checkbox-group input[type="checkbox"]:checked + .custom-checkbox::after {
        content: '';
        position: absolute;
        top: 1px;
        left: 6px;
        width: 6px;
        height: 11px;
        border: solid #fff;
        border-width: 0 3px 3px 0;
        transform: rotate(45deg);
    }

    .agreement-label {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    .agreement-text {
        flex: 1;
        font-size: 12px;
        color: var(--text-muted);
        line-height: 1.4;
    }

    .checkbox-group a {
        color: var(--primary-color);
    }

    .purchase-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
        gap: 35px;
        align-items: start;
    }

    .purchase-product {
        min-width: 0;
    }

    .purchase-product-image {
        display: block;
        width: 100%;
        height: auto;
        margin-bottom: 22px;
        border-radius: 12px;
        object-fit: contain;
        background-color: rgba(0, 0, 0, 0.3);
    }

    .purchase-ember-art {
        position: relative;
        display: none;
        width: 100%;
        height: 230px;
        margin-bottom: 22px;
        border: 2px solid var(--primary-color);
        border-radius: 20px;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: linear-gradient(135deg, rgba(207, 86, 0, 0.16), rgba(15, 17, 21, 0.9));
        box-shadow: var(--glow-shadow);
    }

    .purchase-ember-art::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 150px;
        height: 150px;
        border: 2px solid var(--primary-color);
        border-radius: 22px;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .purchase-ember-art i {
        position: relative;
        z-index: 1;
        color: var(--primary-color);
        font-size: 58px;
        filter: drop-shadow(0 0 8px rgba(207, 86, 0, 0.6));
    }

    .purchase-product-title {
        margin-bottom: 10px;
        color: #fff;
        font-size: 26px;
        font-weight: 800;
    }

    .purchase-product-price {
        margin-bottom: 20px;
        color: var(--primary-color);
        font-size: 22px;
        font-weight: 800;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .purchase-product-description {
        color: var(--text-muted);
        line-height: 1.65;
    }

    .purchase-product-features {
        display: grid;
        gap: 10px;
        margin-top: 28px;
        padding-top: 22px;
        border-top: 1px solid var(--border-color);
    }

    .purchase-product-features-title {
        color: #fff;
        font-size: 14px;
        font-weight: 800;
    }

    .purchase-product-feature {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--text-muted);
        font-size: 13px;
    }

    .purchase-product-feature i {
        width: 18px;
        color: var(--primary-color);
        text-align: center;
    }

    .purchase-continue-button {
        width: fit-content;
        margin-top: 24px;
    }

    .purchase-form-panel {
        padding-left: 35px;
        border-left: 1px solid var(--border-color);
    }

    .purchase-form-title {
        margin-bottom: 24px;
        color: #fff;
        font-size: 20px;
        font-weight: 800;
    }

    .promo-row {
        display: flex;
        gap: 10px;
    }

    .promo-row .form-input {
        min-width: 0;
    }

    .promo-status {
        min-height: 18px;
        margin-top: 7px;
        color: var(--text-muted);
        font-size: 12px;
    }

    .price-summary {
        display: grid;
        gap: 9px;
        margin: 22px 0;
        padding: 16px;
        background: rgba(0, 0, 0, 0.22);
        border: 1px solid var(--border-color);
        border-radius: 10px;
    }

    .price-row {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        color: var(--text-muted);
        font-size: 13px;
    }

    .price-row-total {
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
        color: #fff;
        font-size: 17px;
        font-weight: 800;
    }

    .price-discount {
        color: #10b981;
    }

    .payment-options {
        display: grid;
        gap: 10px;
    }

    .payment-option {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 13px 15px;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        color: var(--text-main);
        cursor: pointer;
    }

    .payment-option:has(input:checked) {
        border-color: var(--primary-color);
        background: rgba(207, 86, 0, 0.08);
    }

    .payment-option input {
        accent-color: var(--primary-color);
    }

    /* Адаптивность */
    @media (max-width: 992px) {
        .ember-slider-section {
            flex-direction: column;
            text-align: center;
            padding: 30px 20px;
            gap: 25px;
        }

        .ember-icon-wrapper {
            width: 90px;
            height: 90px;
        }

        .ember-icon-wrapper img {
            width: 78px;
            height: 78px;
        }

        .ember-icon-wrapper i {
            font-size: 38px;
        }

        .ember-controls {
            width: 100%;
        }

        .ember-action {
            width: 100%;
        }
    }

    @media (max-width: 768px) {
        .modal-overlay {
            padding: 10px 8px;
        }

        .modal-box {
            width: 100%;
            max-height: calc(100vh - 20px);
            padding: 20px 18px 24px;
        }

        .modal-box::after {
            content: '';
            position: absolute;
            top: 74px;
            right: 3px;
            width: 3px;
            height: 48px;
            border-radius: 3px;
            background: var(--primary-color);
            box-shadow: 0 0 8px rgba(207, 86, 0, 0.65);
            pointer-events: none;
        }

        .purchase-layout {
            grid-template-columns: 1fr;
            gap: 25px;
        }

        .purchase-product-image {
            height: auto;
        }

        .purchase-ember-art {
            height: 180px;
        }

        .purchase-ember-art::before {
            width: 120px;
            height: 120px;
        }

        .purchase-product-title {
            font-size: 21px;
        }

        .purchase-form-panel {
            padding-top: 25px;
            padding-left: 0;
            border-top: 1px solid var(--border-color);
            border-left: 0;
        }

        .purchase-item {
            gap: 8px;
            padding-right: 8px;
            padding-left: 8px;
        }

        .purchase-avatar {
            width: 32px;
            height: 32px;
        }
    }

    @media (max-height: 760px) and (min-width: 769px) {
        .modal-box {
            max-height: calc(100vh - 24px);
            padding-top: 22px;
            padding-bottom: 22px;
        }

        .purchase-ember-art {
            height: 150px;
            margin-bottom: 14px;
        }

        .purchase-product-image {
            height: auto;
            margin-bottom: 14px;
        }

        .purchase-product-title {
            margin-bottom: 6px;
            font-size: 22px;
        }

        .purchase-product-price {
            margin-bottom: 12px;
        }

        .purchase-form-title {
            margin-bottom: 14px;
        }

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

        .price-summary {
            margin: 14px 0;
        }

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

    .ember-calc-box {
        padding: 14px 18px;
        border-color: rgba(207, 86, 0, 0.25);
    }

    .ember-action {
        min-width: 0;
        padding-left: 24px;
        border-left: 1px solid var(--border-color);
    }

    .ember-action .btn {
        min-height: 52px;
    }

    @media (max-width: 992px) {
        .ember-slider-section {
            grid-template-columns: 100px minmax(0, 1fr);
            gap: 24px;
        }

        .ember-action {
            grid-column: 1 / -1;
            width: 100%;
            padding-top: 22px;
            padding-left: 0;
            border-top: 1px solid var(--border-color);
            border-left: 0;
        }
    }

    @media (max-width: 600px) {
        .ember-slider-section {
            grid-template-columns: 1fr;
            padding: 28px 20px;
            text-align: center;
        }

        .ember-icon-wrapper {
            margin: 0 auto;
        }

        .ember-controls .subtitle {
            text-align: left;
        }

        .ember-action {
            text-align: center;
        }
    }

    /* --- Grid layout and mobile modal scrolling --- */
    .recent-purchases-list {
        display: flex;
    }

    .purchase-item {
        width: auto;
    }

    .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .modal-overlay {
        overflow-y: auto;
        padding: 20px;
    }

    .modal-box {
        overflow-y: auto;
        scrollbar-width: none;
    }

    .modal-box::-webkit-scrollbar {
        display: none;
    }

    @media (max-width: 1100px) {
        .products-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .ember-slider-section {
            grid-template-columns: 110px minmax(0, 1fr) 210px;
            gap: 22px;
            padding: 26px;
        }
    }

    @media (max-width: 800px) {
        .products-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .recent-purchases-list {
            display: flex;
            width: 100%;
        }

        .recent-purchases-list .purchase-item {
            flex-basis: calc((100% - 15px) / 2);
        }

        .ember-slider-section {
            grid-template-columns: 92px minmax(0, 1fr);
        }

        .ember-action {
            grid-column: 1 / -1;
            width: 100%;
            padding-top: 20px;
            padding-left: 0;
            border-top: 1px solid var(--border-color);
            border-left: 0;
        }
    }

    @media (max-width: 600px) {
        .shop-section {
            padding-top: 36px;
        }

        .category-tabs {
            width: calc(100% - 24px);
            margin-right: auto;
            margin-left: auto;
            justify-content: flex-start;
            overflow-x: auto;
            overflow-y: hidden;
            padding: 0 0 8px;
            scrollbar-width: thin;
            scrollbar-color: var(--primary-color) transparent;
            -webkit-overflow-scrolling: touch;
        }

        .category-tab {
            flex: 0 0 auto;
            white-space: nowrap;
        }

        .products-grid {
            grid-template-columns: 1fr;
        }

        .recent-purchases-wrapper {
            padding: 14px;
        }

        .recent-purchases-list {
            display: flex;
            width: 100%;
        }

        .recent-purchases-list .purchase-item {
            flex-basis: min(calc(100vw - 68px), 360px);
        }

        .recent-purchases-wrapper {
            display: block;
            overflow-x: scroll;
            overflow-y: hidden;
            scrollbar-width: none;
            scroll-snap-type: x mandatory;
            touch-action: pan-x;
            overscroll-behavior-x: contain;
        }

        .recent-purchases-wrapper::-webkit-scrollbar {
            display: none;
        }

        .recent-purchases-track {
            display: flex;
            gap: 15px;
            width: max-content;
            animation: none;
        }

        .recent-purchases-list {
            display: contents;
            width: auto;
        }

        .recent-purchases-list .purchase-item {
            scroll-snap-align: start;
        }

        .purchase-nick,
        .purchase-item-name {
            overflow: visible;
            text-overflow: clip;
            white-space: normal;
        }

        .ember-slider-section {
            grid-template-columns: 1fr;
            gap: 22px;
            padding: 24px 18px;
            text-align: center;
        }

        .ember-icon-wrapper {
            margin: 0 auto;
        }

        .ember-controls .subtitle {
            text-align: left;
        }

        .modal-overlay {
            align-items: flex-start;
            padding: 12px;
        }

        .modal-box {
            max-height: calc(100vh - 24px);
            padding: 24px 20px;
        }

        .purchase-layout {
            grid-template-columns: 1fr;
            gap: 24px;
        }

        .purchase-form-panel {
            padding-top: 24px;
            padding-left: 0;
            border-top: 1px solid var(--border-color);
            border-left: 0;
        }
    }
