
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: url('фон.png') center center fixed;
            background-size: cover;
            color: #2C2416;
            line-height: 1.6;
            overflow-x: hidden;
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
            touch-action: pan-y;
            -webkit-tap-highlight-color: transparent;
            min-height: 100vh;
            min-height: -webkit-fill-available;
            position: relative;
        }

        /* Decorative flourish ornaments */
        body::before,
        body::after {
            content: '';
            position: fixed;
            pointer-events: none;
            z-index: 1;
            opacity: 0.15;
            background-repeat: no-repeat;
            background-size: contain;
        }

        /* Top-left decorative flourish */
        body::before {
            top: 0;
            left: 0;
            width: 280px;
            height: 450px;
            background-image: url("data:image/svg+xml,%3Csvg width='280' height='450' viewBox='0 0 280 450' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 50 30 Q 80 50 70 90 Q 60 130 90 160 Q 120 190 100 230 Q 80 270 110 300 Q 140 330 120 370 Q 100 410 130 440' stroke='%23C9A24B' stroke-width='2' fill='none' opacity='0.6'/%3E%3Cpath d='M 30 60 Q 50 80 45 110 Q 40 140 60 165 Q 80 190 70 220 Q 60 250 80 275 Q 100 300 90 330 Q 80 360 100 390' stroke='%23C9A24B' stroke-width='1.5' fill='none' opacity='0.4'/%3E%3Cpath d='M 90 20 Q 110 45 105 75 Q 100 105 120 130 Q 140 155 130 185 Q 120 215 140 240 Q 160 265 150 295 Q 140 325 160 355' stroke='%23C9A24B' stroke-width='1.5' fill='none' opacity='0.4'/%3E%3Ccircle cx='70' cy='90' r='8' stroke='%23C9A24B' stroke-width='1.5' fill='none' opacity='0.3'/%3E%3Ccircle cx='110' cy='160' r='6' stroke='%23C9A24B' stroke-width='1.5' fill='none' opacity='0.3'/%3E%3Ccircle cx='90' cy='300' r='7' stroke='%23C9A24B' stroke-width='1.5' fill='none' opacity='0.3'/%3E%3C/svg%3E");
        }

        @media (max-width: 1023px) {
            body::before {
                width: 200px;
                height: 350px;
                opacity: 0.1;
            }
        }

        @media (max-width: 767px) {
            body::before {
                display: none;
            }
        }

        /* Top-right decorative flourish */
        .decorative-curve-right {
            position: fixed;
            top: 0;
            right: 0;
            width: 280px;
            height: 450px;
            pointer-events: none;
            z-index: 1;
            opacity: 0.15;
            background-image: url("data:image/svg+xml,%3Csvg width='280' height='450' viewBox='0 0 280 450' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 230 30 Q 200 50 210 90 Q 220 130 190 160 Q 160 190 180 230 Q 200 270 170 300 Q 140 330 160 370 Q 180 410 150 440' stroke='%23C9A24B' stroke-width='2' fill='none' opacity='0.6'/%3E%3Cpath d='M 250 60 Q 230 80 235 110 Q 240 140 220 165 Q 200 190 210 220 Q 220 250 200 275 Q 180 300 190 330 Q 200 360 180 390' stroke='%23C9A24B' stroke-width='1.5' fill='none' opacity='0.4'/%3E%3Cpath d='M 190 20 Q 170 45 175 75 Q 180 105 160 130 Q 140 155 150 185 Q 160 215 140 240 Q 120 265 130 295 Q 140 325 120 355' stroke='%23C9A24B' stroke-width='1.5' fill='none' opacity='0.4'/%3E%3Ccircle cx='210' cy='90' r='8' stroke='%23C9A24B' stroke-width='1.5' fill='none' opacity='0.3'/%3E%3Ccircle cx='170' cy='160' r='6' stroke='%23C9A24B' stroke-width='1.5' fill='none' opacity='0.3'/%3E%3Ccircle cx='190' cy='300' r='7' stroke='%23C9A24B' stroke-width='1.5' fill='none' opacity='0.3'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-size: contain;
        }

        @media (max-width: 1023px) {
            .decorative-curve-right {
                width: 200px;
                height: 350px;
                opacity: 0.1;
            }
        }

        @media (max-width: 767px) {
            .decorative-curve-right {
                display: none;
            }
        }

        /* Bottom decorative flourishes */
        .decorative-curve-bottom-left {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 350px;
            height: 250px;
            pointer-events: none;
            z-index: 1;
            opacity: 0.15;
            background-image: url("data:image/svg+xml,%3Csvg width='350' height='250' viewBox='0 0 350 250' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 20 230 Q 60 200 100 210 Q 140 220 180 190 Q 220 160 260 180 Q 300 200 330 170' stroke='%23C9A24B' stroke-width='2' fill='none' opacity='0.6'/%3E%3Cpath d='M 10 210 Q 45 185 80 195 Q 115 205 150 180 Q 185 155 220 170 Q 255 185 290 160' stroke='%23C9A24B' stroke-width='1.5' fill='none' opacity='0.4'/%3E%3Cpath d='M 35 240 Q 70 215 105 223 Q 140 231 175 208 Q 210 185 245 200 Q 280 215 315 190' stroke='%23C9A24B' stroke-width='1.5' fill='none' opacity='0.4'/%3E%3Ccircle cx='100' cy='210' r='7' stroke='%23C9A24B' stroke-width='1.5' fill='none' opacity='0.3'/%3E%3Ccircle cx='180' cy='190' r='6' stroke='%23C9A24B' stroke-width='1.5' fill='none' opacity='0.3'/%3E%3Ccircle cx='260' cy='180' r='8' stroke='%23C9A24B' stroke-width='1.5' fill='none' opacity='0.3'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-size: contain;
        }

        @media (max-width: 1023px) {
            .decorative-curve-bottom-left {
                width: 250px;
                height: 180px;
                opacity: 0.1;
            }
        }

        @media (max-width: 767px) {
            .decorative-curve-bottom-left {
                display: none;
            }
        }

        .decorative-curve-bottom-right {
            position: fixed;
            bottom: 0;
            right: 0;
            width: 350px;
            height: 250px;
            pointer-events: none;
            z-index: 1;
            opacity: 0.15;
            background-image: url("data:image/svg+xml,%3Csvg width='350' height='250' viewBox='0 0 350 250' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 330 230 Q 290 200 250 210 Q 210 220 170 190 Q 130 160 90 180 Q 50 200 20 170' stroke='%23C9A24B' stroke-width='2' fill='none' opacity='0.6'/%3E%3Cpath d='M 340 210 Q 305 185 270 195 Q 235 205 200 180 Q 165 155 130 170 Q 95 185 60 160' stroke='%23C9A24B' stroke-width='1.5' fill='none' opacity='0.4'/%3E%3Cpath d='M 315 240 Q 280 215 245 223 Q 210 231 175 208 Q 140 185 105 200 Q 70 215 35 190' stroke='%23C9A24B' stroke-width='1.5' fill='none' opacity='0.4'/%3E%3Ccircle cx='250' cy='210' r='7' stroke='%23C9A24B' stroke-width='1.5' fill='none' opacity='0.3'/%3E%3Ccircle cx='170' cy='190' r='6' stroke='%23C9A24B' stroke-width='1.5' fill='none' opacity='0.3'/%3E%3Ccircle cx='90' cy='180' r='8' stroke='%23C9A24B' stroke-width='1.5' fill='none' opacity='0.3'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-size: contain;
        }

        @media (max-width: 1023px) {
            .decorative-curve-bottom-right {
                width: 250px;
                height: 180px;
                opacity: 0.1;
            }
        }

        @media (max-width: 767px) {
            .decorative-curve-bottom-right {
                display: none;
            }
        }

        html {
            height: -webkit-fill-available;
        }

        /* Language-specific text direction */
        html[lang="ar"] {
            direction: rtl;
        }

        html[lang="ru"],
        html[lang="en"] {
            direction: ltr;
        }

        html[lang="ru"] .side-panel,
        html[lang="en"] .side-panel {
            direction: ltr;
            text-align: left;
        }

        html[lang="ru"] .panel-header,
        html[lang="en"] .panel-header {
            direction: ltr;
        }

        html[lang="ru"] .panel-title,
        html[lang="en"] .panel-title {
            text-align: left;
        }

        html[lang="ru"] .panel-content,
        html[lang="en"] .panel-content,
        html[lang="uz"] .panel-content {
            direction: ltr;
            text-align: left;
        }

        html[lang="ru"] .auth-form,
        html[lang="en"] .auth-form,
        html[lang="uz"] .auth-form {
            direction: ltr;
        }

        html[lang="ru"] .auth-input,
        html[lang="en"] .auth-input,
        html[lang="uz"] .auth-input {
            direction: ltr;
        }

        html[lang="ru"] .auth-checkbox,
        html[lang="en"] .auth-checkbox,
        html[lang="uz"] .auth-checkbox {
            direction: ltr;
            flex-direction: row;
        }

        html[lang="ru"] .cart-empty,
        html[lang="en"] .cart-empty,
        html[lang="uz"] .cart-empty {
            direction: ltr;
        }

        html[lang="ru"] .cart-item,
        html[lang="en"] .cart-item,
        html[lang="uz"] .cart-item {
            direction: ltr;
        }

        html[lang="ru"] .cart-item-details,
        html[lang="en"] .cart-item-details,
        html[lang="uz"] .cart-item-details {
            text-align: left;
        }

        html[lang="ru"] .faq-modal,
        html[lang="en"] .faq-modal,
        html[lang="uz"] .faq-modal {
            direction: ltr;
        }

        html[lang="ru"] .faq-modal-content,
        html[lang="en"] .faq-modal-content,
        html[lang="uz"] .faq-modal-content {
            direction: ltr;
            text-align: left;
        }

        html[lang="ru"] .faq-modal-header,
        html[lang="en"] .faq-modal-header,
        html[lang="uz"] .faq-modal-header {
            direction: ltr;
        }

        html[lang="ru"] .faq-item,
        html[lang="en"] .faq-item,
        html[lang="uz"] .faq-item {
            text-align: left;
        }

        html[lang="ru"] .faq-contact,
        html[lang="en"] .faq-contact {
            direction: ltr;
        }

        * {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 24px;
            width: 100%;
        }

        .constructor-wrapper {
            min-height: calc(100vh - 180px);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px 24px;
            box-sizing: border-box;
        }

        /* Promo Banner */
        .promo-banner {
            background: #C41E3A;
            color: white;
            text-align: center;
            padding: 0;
            font-size: 14px;
            font-weight: 600;
            position: sticky;
            top: 0;
            z-index: 101;
            box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
            overflow: hidden;
            height: 32px;
            line-height: 32px;
        }

        .promo-banner-slider {
            display: flex;
            flex-direction: column;
            animation: slide-vertical 8s infinite;
        }

        .promo-banner-item {
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            line-height: 32px;
        }

        @keyframes slide-vertical {
            0%, 45% {
                transform: translateY(0);
            }
            50%, 95% {
                transform: translateY(-32px);
            }
            100% {
                transform: translateY(0);
            }
        }

        @media (max-width: 767px) {
            .promo-banner {
                font-size: 11px;
                height: 28px;
                line-height: 28px;
            }
            .promo-banner-item {
                height: 28px;
                line-height: 28px;
            }
            @keyframes slide-vertical {
                0%, 45% {
                    transform: translateY(0);
                }
                50%, 95% {
                    transform: translateY(-28px);
                }
                100% {
                    transform: translateY(0);
                }
            }
        }

        /* Header */
        header {
            background: rgba(250, 248, 245, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(201, 162, 75, 0.2);
            padding: 20px 0;
            position: sticky;
            top: 32px;
            z-index: 100;
            safe-area-inset-top: env(safe-area-inset-top);
            padding-top: max(20px, env(safe-area-inset-top));
            box-shadow: 0 2px 12px rgba(201, 162, 75, 0.08);
        }

        @media (max-width: 767px) {
            header {
                position: relative;
                top: auto;
                padding: clamp(4px, calc(10px + (100vw - 440px) * 0.1), 10px) 0;
            }
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            direction: ltr;
            min-height: 72px;
        }

        @media (max-width: 767px) {
            .header-content {
                min-height: 50px;
            }
        }

        .header-content .social-links {
            gap: clamp(4px, calc(10px + (100vw - 440px) * 0.1), 20px);
            direction: ltr;
        }

        .logo {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 24px;
            font-weight: 700;
            letter-spacing: 0.05em;
            color: #C9A24B;
            text-shadow: 0 1px 2px rgba(201, 162, 75, 0.2);
            order: 2;
        }

        .logo-image {
            height: 135px;
            width: auto;
            object-fit: contain;
            filter: drop-shadow(0 2px 4px rgba(201, 162, 75, 0.2));
        }

        @media (max-width: 1023px) {
            .logo-image {
                height: 120px;
            }
        }

        @media (max-width: 767px) {
            .logo {
                font-size: 18px;
                gap: 8px;
            }

            .logo-image {
                height: 96px;
            }
        }

        @media (max-width: 480px) {
            .logo-image {
                height: 78px;
            }
        }

        .header-social-icons {
            display: flex;
            gap: clamp(6px, calc(12px + (100vw - 440px) * 0.1), 12px);
            align-items: center;
            margin-right: auto;
        }

        .header-social-link {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(201, 162, 75, 0.1);
            transition: all 0.3s ease;
        }

        .header-social-link:hover {
            background: rgba(201, 162, 75, 0.2);
            transform: translateY(-2px);
        }

        .header-social-link svg {
            transition: fill 0.3s ease;
        }

        .header-social-link:hover svg {
            fill: #F59E0B;
        }

        .social-links {
            display: flex;
            gap: 6px;
            align-items: center;
            margin-left: auto;
        }

        .header-controls {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .cart-btn {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: rgba(201, 162, 75, 0.1);
            border: 1.5px solid rgba(201, 162, 75, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            box-shadow: 0 2px 8px rgba(201, 162, 75, 0.1);
            z-index: 1000;
        }

        .cart-btn:hover {
            background: rgba(201, 162, 75, 0.2);
            border-color: rgba(201, 162, 75, 0.5);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(201, 162, 75, 0.2);
        }

        .cart-count {
            position: absolute;
            top: -4px;
            right: -4px;
            background: #C9A24B;
            color: #FAF8F5;
            font-size: 11px;
            font-weight: 700;
            min-width: 20px;
            height: 20px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 6px;
            box-shadow: 0 2px 6px rgba(201, 162, 75, 0.4);
        }

        /* Language Selector */
        .language-selector {
            position: relative;
        }

        .language-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: none;
            background: transparent;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 600;
            color: #2C2416;
            letter-spacing: 0.5px;
        }

        .language-btn:hover {
            background: rgba(201, 162, 75, 0.1);
            transform: scale(1.1);
        }

        .language-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            background: #FAF8F5;
            border: 1.5px solid rgba(201, 162, 75, 0.3);
            border-radius: 12px;
            padding: 8px;
            min-width: 140px;
            box-shadow: 0 8px 24px rgba(201, 162, 75, 0.2);
            display: none;
            z-index: 1000;
        }

        .language-dropdown.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        .language-option {
            padding: 12px 16px;
            cursor: pointer;
            border-radius: 8px;
            transition: all 0.2s;
            font-size: 14px;
            font-weight: 500;
            color: #2C2416;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .language-option:hover {
            background: rgba(201, 162, 75, 0.1);
        }

        .language-option.selected {
            background: rgba(201, 162, 75, 0.15);
            color: #C9A24B;
            font-weight: 600;
        }

        /* Side Panels */
        .side-panel {
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            width: 420px;
            max-width: 90vw;
            background: #FAF8F5;
            box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
            z-index: 1000;
            transform: translate3d(100%, 0, 0);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            will-change: transform;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            direction: rtl;
            text-align: right;
        }

        .side-panel.open {
            transform: translate3d(0, 0, 0);
        }

        .side-panel.left {
            left: 0;
            right: auto;
            box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
            transform: translate3d(-100%, 0, 0);
        }

        .side-panel.left.open {
            transform: translate3d(0, 0, 0);
        }

        .panel-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .panel-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }

        .panel-header {
            padding: 24px;
            border-bottom: 1px solid rgba(201, 162, 75, 0.2);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(250, 248, 245, 0.98);
            position: sticky;
            top: 0;
            z-index: 10;
            direction: rtl;
        }

        .panel-title {
            font-size: 24px;
            font-weight: 700;
            color: #2C2416;
            text-align: right;
        }

        .panel-close {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(201, 162, 75, 0.1);
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
        }

        .panel-close:hover {
            background: rgba(201, 162, 75, 0.2);
            transform: rotate(90deg);
        }

        .panel-content {
            padding: 24px;
            flex: 1;
            direction: rtl;
            text-align: right;
        }

        /* Account Panel */
        .auth-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
            direction: rtl;
        }

        .auth-primary-btn {
            width: 100%;
            padding: 18px;
            background: #6366F1;
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .auth-primary-btn:hover {
            background: #5558E3;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        }

        .auth-divider {
            text-align: center;
            color: #6B7280;
            font-size: 14px;
            position: relative;
            margin: 8px 0;
        }

        .auth-divider::before,
        .auth-divider::after {
            content: '';
            position: absolute;
            top: 50%;
            width: 42%;
            height: 1px;
            background: rgba(201, 162, 75, 0.2);
        }

        .auth-divider::before {
            right: 0;
        }

        .auth-divider::after {
            left: 0;
        }

        .auth-input {
            width: 100%;
            padding: 16px;
            border: 1.5px solid rgba(201, 162, 75, 0.3);
            border-radius: 12px;
            font-size: 15px;
            background: white;
            transition: all 0.3s;
            direction: rtl;
        }

        .auth-input:focus {
            outline: none;
            border-color: #C9A24B;
            box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.1);
        }

        .auth-checkbox {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            color: #4B5563;
            direction: rtl;
            flex-direction: row-reverse;
        }

        .auth-actions {
            display: flex;
            gap: 12px;
            margin-top: 12px;
        }

        .auth-secondary-btn {
            flex: 1;
            padding: 14px;
            background: white;
            border: 1.5px solid rgba(201, 162, 75, 0.3);
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .auth-secondary-btn:hover {
            background: rgba(201, 162, 75, 0.1);
            border-color: #C9A24B;
        }

        /* Cart Panel */
        .cart-empty {
            text-align: center;
            padding: 60px 20px;
            direction: rtl;
        }

        .cart-empty-title {
            font-size: 24px;
            font-weight: 700;
            color: #2C2416;
            margin-bottom: 12px;
        }

        .cart-empty-text {
            font-size: 15px;
            color: #6B7280;
            margin-bottom: 8px;
        }

        .cart-continue-btn {
            margin-top: 24px;
            padding: 16px 32px;
            background: #2C2416;
            color: #FAF8F5;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .cart-continue-btn:hover {
            background: #1a1510;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(44, 36, 22, 0.3);
        }

        .cart-items {
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-bottom: 24px;
        }

        .cart-item {
            display: flex;
            gap: 16px;
            padding: 16px;
            background: white;
            border: 1.5px solid rgba(201, 162, 75, 0.2);
            border-radius: 12px;
            transition: all 0.3s;
            direction: rtl;
        }

        /* LTR direction for cart items on non-Arabic languages */
        html[lang="ru"] .cart-item,
        html[lang="en"] .cart-item,
        html[lang="uz"] .cart-item {
            direction: ltr;
        }

        html[lang="ru"] .cart-item-details,
        html[lang="en"] .cart-item-details,
        html[lang="uz"] .cart-item-details {
            text-align: left;
        }

        .cart-item:hover {
            box-shadow: 0 4px 12px rgba(201, 162, 75, 0.15);
        }

        .cart-item-image {
            width: 80px;
            height: 80px;
            object-fit: contain;
            flex-shrink: 0;
        }

        .cart-item-details {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 6px;
            text-align: right;
        }

        .cart-item-name {
            font-size: 16px;
            font-weight: 600;
            color: #2C2416;
        }

        .cart-item-notes {
            font-size: 13px;
            color: #6B7280;
        }

        .cart-item-remove {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(239, 68, 68, 0.1);
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            flex-shrink: 0;
            align-self: flex-start;
        }

        .cart-item-remove:hover {
            background: rgba(239, 68, 68, 0.2);
            transform: scale(1.1);
        }

        .cart-set {
            position: relative;
            display: block;
            padding: 12px;
            direction: inherit;
        }

        .cart-set-image {
            display: block;
            width: 100%;
            height: auto;
            aspect-ratio: 1746 / 900;
            object-fit: contain;
        }

        .cart-set-visual { position: relative; width: 100%; }
        .cart-set-visual::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 2;
            pointer-events: none;
            background: url("aromabox2-frame-extended.png") center / 100% 100% no-repeat;
        }
        .cart-set-bottles {
            position: absolute;
            inset: 32% 13.4% 31.1%;
            display: flex;
            align-items: stretch;
            box-sizing: border-box;
            padding-inline: 7%;
            gap: 1px;
            overflow: hidden;
            border-radius: 999px;
            isolation: isolate;
        }
        .cart-set-bottles::after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            pointer-events: none;
            box-shadow: inset 0 14px 20px rgba(0, 0, 0, .48), inset 0 -12px 20px rgba(0, 0, 0, .4);
        }
        .cart-set-bottle {
            position: relative;
            min-width: 0;
            height: 100%;
            flex: 1;
        }
        .cart-set-bottle img {
            display: block;
            position: absolute;
            top: -67%;
            left: 50%;
            width: auto;
            max-width: none;
            height: 205%;
            object-fit: contain;
            transform: translateX(-50%);
            filter: drop-shadow(5px 3px 5px rgba(0, 0, 0, .55));
        }
        .cart-set-details {
            padding: 12px 2px 2px;
            text-align: start;
            display: grid;
            grid-template-columns: minmax(0, 1fr) 40px;
            column-gap: 8px;
            align-items: start;
        }

        .cart-set-details > :not(.cart-item-remove) { grid-column: 1; }

        html[dir="rtl"] .cart-set-details {
            padding: 12px 2px 2px;
        }

        .cart-set-fragrances {
            margin-top: 6px;
            color: #6B7280;
            font-size: 13px;
            line-height: 1.5;
            overflow-wrap: anywhere;
        }

        .cart-set .cart-item-remove {
            position: static;
            grid-column: 2;
            grid-row: 1 / span 3;
            justify-self: end;
            align-self: end;
            margin: 0;
        }

        html[dir="rtl"] .cart-set .cart-item-remove {
            margin: 0;
        }

        /* Promo Code Section */
        .cart-promo {
            padding: 20px;
            background: rgba(201, 162, 75, 0.05);
            border-radius: 12px;
            margin-top: 16px;
        }

        .promo-input-wrapper {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
            direction: rtl;
            flex-wrap: wrap;
        }

        @media (max-width: 767px) {
            .promo-input-wrapper {
                flex-direction: column;
            }

            .promo-apply-btn {
                width: 100%;
            }
        }

        .promo-input {
            flex: 1;
            padding: 12px 16px;
            border: 1.5px solid rgba(201, 162, 75, 0.3);
            border-radius: 10px;
            font-size: 14px;
            background: white;
            transition: all 0.3s;
            text-align: left;
            direction: ltr;
        }

        body[dir="rtl"] .promo-input {
            text-align: right;
            direction: rtl;
        }

        .promo-input:focus {
            outline: none;
            border-color: #C9A24B;
            box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.1);
        }

        .promo-apply-btn {
            padding: 12px 24px;
            background: #C9A24B;
            color: #FAF8F5;
            border: none;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            white-space: nowrap;
        }

        .promo-apply-btn:hover {
            background: #B8934A;
            transform: translateY(-1px);
        }

        .promo-message {
            font-size: 13px;
            margin-bottom: 12px;
            padding: 8px 12px;
            border-radius: 8px;
            text-align: right;
            display: none;
        }

        .promo-message.success {
            display: block;
            background: rgba(16, 185, 129, 0.1);
            color: #059669;
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        .promo-message.error {
            display: block;
            background: rgba(239, 68, 68, 0.1);
            color: #DC2626;
            border: 1px solid rgba(239, 68, 68, 0.3);
        }

        .cart-summary {
            padding-top: 16px;
            border-top: 1.5px solid rgba(201, 162, 75, 0.2);
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            font-size: 14px;
            color: #2C2416;
            direction: rtl;
        }

        /* LTR direction for summary rows on non-Arabic languages */
        html[lang="ru"] .summary-row,
        html[lang="en"] .summary-row,
        html[lang="uz"] .summary-row {
            direction: ltr;
            flex-direction: row;
        }

        html[lang="ru"] .total-row,
        html[lang="en"] .total-row,
        html[lang="uz"] .total-row {
            direction: ltr;
            flex-direction: row;
        }

        .discount-row {
            color: #000;
            font-weight: 600;
        }

        .total-row {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1.5px solid rgba(201, 162, 75, 0.2);
            font-size: 18px;
            font-weight: 700;
            color: #C9A24B;
        }

        .cart-footer {
            margin-top: auto;
            padding: 24px;
            border-top: 1px solid rgba(201, 162, 75, 0.2);
            background: #FAF8F5;
            position: sticky;
            bottom: 0;
            z-index: 20;
            isolation: isolate;
            flex-shrink: 0;
        }

        .cart-checkout-btn {
            width: 100%;
            padding: 18px;
            background: #C9A24B;
            color: #FAF8F5;
            border: none;
            border-radius: 12px;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
        }

        .cart-checkout-btn:hover {
            background: #B8934A;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(201, 162, 75, 0.4);
        }

        .cart-checkout-btn:disabled {
            background: #D1D5DB;
            cursor: not-allowed;
            transform: none;
        }

        .sound-toggle {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: transparent;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            touch-action: manipulation;
        }

        .sound-toggle:hover {
            background: rgba(201, 162, 75, 0.1);
            transform: scale(1.1);
        }

        .sound-toggle:active {
            transform: scale(0.95);
        }

        .sound-toggle.muted {
            background: transparent;
        }

        .sound-toggle svg {
            width: 24px;
            height: 24px;
            fill: #fff !important;
        }

        .theme-toggle {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: transparent;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            touch-action: manipulation;
        }

        .theme-toggle:hover {
            background: rgba(201, 162, 75, 0.1);
            transform: scale(1.1);
        }

        .theme-toggle:active {
            transform: scale(0.95);
        }

        .theme-toggle svg {
            width: 24px;
            height: 24px;
            transition: transform 0.3s ease;
        }

        /* Dark theme styles */
        body.dark-theme {
            background: #0B0E14 url('фон.png') center center fixed;
            background-size: cover;
            color: #F8FAFC;
            transition: background-color 0.5s ease, color 0.5s ease;
        }

        body.dark-theme header {
            background: rgba(15, 23, 42, 0.98);
            border-bottom-color: rgba(201, 162, 75, 0.3);
        }

        body.dark-theme .logo-image {
            filter: brightness(1.1);
        }

        body.dark-theme .perfume-name {
            color: #F8FAFC;
        }

        body.dark-theme .slot-number {
            background: rgba(15, 23, 42, 0.9);
            color: #C9A24B;
            border-color: rgba(201, 162, 75, 0.3);
        }

        body.dark-theme .perfume-info-tooltip {
            background: rgba(15, 23, 42, 0.98);
            border-color: #C9A24B;
        }

        body.dark-theme .perfume-info-title,
        body.dark-theme .note-layer-title,
        body.dark-theme .weather-label {
            color: #C9A24B;
        }

        body.dark-theme .note-layer-content,
        body.dark-theme .weather-value {
            color: #F8FAFC;
        }

        body.dark-theme .btn-order {
            background: linear-gradient(135deg, #C9A24B 0%, #B8922E 100%);
            box-shadow: 0 8px 24px rgba(201, 162, 75, 0.4);
        }

        body.dark-theme .btn-order:hover {
            box-shadow: 0 12px 32px rgba(201, 162, 75, 0.5);
        }

        body.dark-theme .btn-secondary {
            background: rgba(15, 23, 42, 0.9);
            border-color: rgba(201, 162, 75, 0.3);
            color: #C9A24B;
        }

        body.dark-theme .btn-secondary:hover {
            background: rgba(201, 162, 75, 0.15);
            border-color: #C9A24B;
        }

        body.dark-theme .center-order-group .btn-presets {
            background: rgba(15, 23, 42, 0.9);
            border-color: rgba(201, 162, 75, 0.3);
            color: #C9A24B;
        }

        body.dark-theme .center-order-group .btn-presets:hover {
            background: rgba(201, 162, 75, 0.15);
            border-color: #C9A24B;
        }

        body.dark-theme .footer {
            color: #F8FAFC;
        }

        body.dark-theme .footer-nav-link {
            color: #9CA3AF;
            border-bottom-color: #9CA3AF;
        }

        body.dark-theme .footer-nav-link:hover {
            color: #C9A24B;
            border-bottom-color: #C9A24B;
        }

        body.dark-theme .faq-modal-content,
        body.dark-theme .presets-modal-content {
            background: #0F172A;
            border-color: rgba(201, 162, 75, 0.3);
        }

        body.dark-theme .faq-modal-title {
            color: #C9A24B;
        }

        body.dark-theme .faq-question {
            color: #F8FAFC;
        }

        body.dark-theme .faq-answer {
            color: #CBD5E1;
        }

        body.dark-theme .preset-card {
            background: #1E293B;
            border-color: rgba(201, 162, 75, 0.3);
        }

        body.dark-theme .preset-card-title {
            color: #F8FAFC;
        }

        body.dark-theme .preset-card-desc {
            color: #CBD5E1;
        }

        body.dark-theme .preset-tag {
            background: rgba(201, 162, 75, 0.15);
            color: #C9A24B;
        }

        body.dark-theme .side-panel {
            background: #0F172A;
            border-color: rgba(201, 162, 75, 0.3);
        }

        body.dark-theme .panel-title {
            color: #C9A24B;
        }

        body.dark-theme .auth-input {
            background: #1E293B;
            border-color: rgba(201, 162, 75, 0.3);
            color: #F8FAFC;
        }

        body.dark-theme .cart-item {
            background: #1E293B;
            border-color: rgba(201, 162, 75, 0.2);
        }

        body.dark-theme .cart-item-name {
            color: #F8FAFC;
        }

        body.dark-theme .cart-item-notes {
            color: #CBD5E1;
        }

        body.dark-theme .cart-set-fragrances {
            color: #CBD5E1;
        }

        body.dark-theme .copy-notification {
            background: rgba(15, 23, 42, 0.98);
            border-color: #C9A24B;
            color: #C9A24B;
        }

        body.dark-theme .language-dropdown {
            background: rgba(15, 23, 42, 0.98);
            border-color: rgba(201, 162, 75, 0.3);
        }

        body.dark-theme .language-option {
            color: #F8FAFC;
        }

        body.dark-theme .language-option:hover {
            background: rgba(201, 162, 75, 0.15);
        }

        body.dark-theme .decorative-curve-right,
        body.dark-theme .decorative-curve-bottom-left,
        body.dark-theme .decorative-curve-bottom-right {
            opacity: 0.3;
        }

        .social-link {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: rgba(201, 162, 75, 0.1);
            border: 1.5px solid rgba(201, 162, 75, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            touch-action: manipulation;
            box-shadow: 0 2px 8px rgba(201, 162, 75, 0.1);
        }

        .social-link:active {
            transform: scale(0.92);
            box-shadow: 0 1px 4px rgba(201, 162, 75, 0.15);
        }

        @media (hover: hover) {
            .social-link:hover {
                transform: translateY(-2px);
                border-color: #C9A24B;
                background: rgba(201, 162, 75, 0.15);
                box-shadow: 0 4px 12px rgba(201, 162, 75, 0.2);
            }
        }

        .social-link svg {
            width: 22px;
            height: 22px;
            transition: transform 0.3s;
        }

        .social-link:active svg {
            transform: scale(0.9);
        }

        .tooltip {
            position: absolute;
            bottom: -36px;
            left: 50%;
            transform: translateX(-50%) scale(0);
            background: #C9A24B;
            color: #2C2416;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            white-space: nowrap;
            pointer-events: none;
            transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 0 4px 12px rgba(201, 162, 75, 0.2);
            font-weight: 600;
        }

        @media (hover: hover) {
            .social-link:hover .tooltip {
                transform: translateX(-50%) scale(1);
            }
        }

        /* Main Title - hidden */
        .main-title {
            display: none;
        }

        /* Perfume Grid */
        .perfume-grid {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 16px;
            padding: 20px 0;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
        }

        .perfume-slot {
            background: transparent !important;
            border: none !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            outline: none !important;
            padding: 20px 24px;
            position: relative;
            overflow: visible;
            cursor: grab;
            touch-action: pan-y;
            -webkit-user-select: none;
            user-select: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .perfume-slot:last-child {
            border-right: none;
        }

        @media (hover: hover) {
            .perfume-slot:hover {
                background: transparent !important;
            }
        }

        .perfume-slot:active {
            cursor: grabbing;
            background: transparent !important;
        }

        .slot-number {
            position: absolute;
            top: -24px;
            right: 50%;
            transform: translateX(50%);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(250, 248, 245, 0.9);
            border: 1.5px solid rgba(201, 162, 75, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 600;
            color: #C9A24B;
            direction: ltr;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 15;
        }

        .slot-number.active {
            background: #C9A24B;
            color: #FAF8F5;
            border-color: #C9A24B;
            transform: translateX(50%) scale(1.15);
            box-shadow: 0 4px 12px rgba(201, 162, 75, 0.3);
        }

        /* Perfume info tooltip */
        .perfume-info-tooltip {
            position: absolute;
            top: 48px;
            right: 50%;
            transform: translateX(50%) scale(0);
            transform-origin: top center;
            background: rgba(250, 248, 245, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 2px solid #C9A24B;
            border-radius: 16px;
            padding: 20px;
            min-width: 280px;
            max-width: 320px;
            box-shadow: 0 12px 36px rgba(201, 162, 75, 0.35);
            z-index: 1000;
            opacity: 0;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
            pointer-events: none;
            text-align: center;
        }

        .perfume-info-tooltip.active {
            transform: translateX(50%) scale(1);
            opacity: 1;
            pointer-events: auto;
        }

        .perfume-info-title {
            font-size: 18px;
            font-weight: 700;
            color: #C9A24B;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 2px solid rgba(201, 162, 75, 0.3);
        }

        .perfume-notes {
            text-align: right;
            margin-bottom: 16px;
        }

        /* LTR direction for tooltip on non-Arabic languages */
        html[lang="ru"] .perfume-notes,
        html[lang="en"] .perfume-notes,
        html[lang="uz"] .perfume-notes {
            text-align: left;
            direction: ltr;
        }

        html[lang="ru"] .perfume-info-tooltip,
        html[lang="en"] .perfume-info-tooltip,
        html[lang="uz"] .perfume-info-tooltip {
            direction: ltr;
        }

        .note-layer {
            margin-bottom: 12px;
        }

        .note-layer-title {
            font-size: 13px;
            font-weight: 600;
            color: #C9A24B;
            margin-bottom: 6px;
        }

        .note-layer-content {
            font-size: 13px;
            color: #2C2416;
            line-height: 1.5;
        }

        .perfume-weather {
            padding-top: 12px;
            border-top: 2px solid rgba(201, 162, 75, 0.3);
        }

        .weather-label {
            font-size: 13px;
            font-weight: 600;
            color: #C9A24B;
            margin-bottom: 6px;
        }

        .weather-value {
            font-size: 14px;
            color: #2C2416;
            font-weight: 500;
        }

        .perfume-image-container {
            height: 380px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .perfume-image-container::before,
        .perfume-image-container::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            height: 80px;
            pointer-events: none;
            z-index: 10;
            opacity: 0;
            transition: opacity 0.15s ease;
        }

        .perfume-image-container::before {
            top: 0;
            background: linear-gradient(to bottom, #FAF8F5 0%, transparent 100%);
        }

        .perfume-image-container::after {
            bottom: 0;
            background: linear-gradient(to top, #FAF8F5 0%, transparent 100%);
        }

        .perfume-image-container.is-dragging::before,
        .perfume-image-container.is-dragging::after {
            opacity: 0.45;
        }

        .perfume-image-container.is-moving-up::before,
        .perfume-image-container.is-moving-down::after {
            opacity: 0.9;
        }

        .perfume-image {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            pointer-events: none;
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            z-index: 2;
        }

        /* Preview images - next/previous bottles shown during swipe */
        .perfume-image-preview {
            position: absolute;
            width: 100%;
            height: 100%;
            left: 50%;
            object-fit: contain;
            pointer-events: none;
            opacity: 0;
            z-index: 1;
            transition: transform 0.1s ease-out, opacity 0.1s ease-out;
        }

        .perfume-image-preview.preview-from-top {
            top: 0;
            transform: translateY(-100%);
        }

        .perfume-image-preview.preview-from-bottom {
            bottom: 0;
            transform: translateY(100%);
        }

        /* Slide animations for manual swipe */
        .perfume-image.slide-up-out {
            animation: slideUpOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        .perfume-image.slide-up-in {
            animation: slideUpIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        .perfume-image.slide-down-out {
            animation: slideDownOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        .perfume-image.slide-down-in {
            animation: slideDownIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        @keyframes slideUpOut {
            to {
                transform: translateY(-100%);
                opacity: 0;
            }
        }

        @keyframes slideUpIn {
            from {
                transform: translateY(100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        @keyframes slideDownOut {
            to {
                transform: translateY(100%);
                opacity: 0;
            }
        }

        @keyframes slideDownIn {
            from {
                transform: translateY(-100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        /* Fast slide animations for random button - smoother with previews */
        .perfume-image.slide-fast-up-out {
            animation: slideUpOut 0.2s ease-out forwards;
        }

        .perfume-image.slide-fast-up-in {
            animation: slideUpIn 0.2s ease-out forwards;
        }

        .perfume-image.slide-fast-down-out {
            animation: slideDownOut 0.2s ease-out forwards;
        }

        .perfume-image.slide-fast-down-in {
            animation: slideDownIn 0.2s ease-out forwards;
        }

        .perfume-name {
            text-align: center !important;
            font-size: 16px !important;
            font-weight: 500 !important;
            color: #2C2416 !important;
            margin-top: 20px !important;
            letter-spacing: 0.02em !important;
            transition: opacity 0.4s !important;
            word-break: break-word !important;
            overflow-wrap: break-word !important;
            hyphens: auto !important;
        }

        .swipe-hint {
            text-align: center;
            font-size: 13px;
            color: #C9A24B;
            margin-top: 12px;
            opacity: 0.7;
        }

        @media (max-width: 767px) {
            .swipe-hint {
                display: none !important;
            }
        }

        /* Action Buttons - split layout */
        .action-buttons {
            position: fixed;
            right: 32px;
            bottom: 160px;
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 12px;
            z-index: 50;
        }

        @media (max-width: 1023px) {
            .action-buttons {
                right: 20px;
                bottom: 140px;
                gap: 10px;
            }
        }

        @media (max-width: 767px) {
            .action-buttons {
                right: 16px;
                bottom: 120px;
                gap: 8px;
                flex-direction: column;
            }
        }

        /* Order Button - centered at bottom */
        .order-button-container {
            position: fixed;
            bottom: 140px;
            left: 0;
            right: 0;
            z-index: 50;
        }

        @media (max-width: 767px) {
            .order-button-container {
                position: relative;
                bottom: auto;
                left: auto;
                right: auto;
                margin: 30px auto;
                z-index: 50;
            }
        }

        .center-order-group {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .center-order-group .btn-presets {
            background: transparent;
            border: 1px solid rgba(201, 162, 75, 0.3);
            color: #C9A24B;
            padding: 16px 32px;
            font-size: 16px;
            font-weight: 600;
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: none;
        }

        .center-order-group .btn-presets:hover {
            background: transparent;
            border-color: #C9A24B;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(201, 162, 75, 0.2);
        }

        @media (max-width: 1023px) {
            .order-button-container {
                bottom: 120px;
            }
        }

        @media (max-width: 767px) {
            .order-button-container {
                bottom: 100px;
            }
        }

        .order-button-container .btn-order {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }

        .side-buttons {
            position: absolute;
            left: 50%;
            margin-left: 180px;
            display: flex;
            gap: 8px;
        }

        @media (max-width: 1023px) {
            .side-buttons {
                margin-left: 140px;
            }
        }

        @media (max-width: 767px) {
            .side-buttons {
                position: static;
                left: auto;
                transform: none;
                margin-left: 0;
                bottom: auto;
                gap: 12px;
                margin-top: 10px;
                justify-content: center;
            }
        }

        /* Footer with FAQ and social links */
        .footer {
            position: fixed;
            bottom: 60px;
            left: 32px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            z-index: 50;
        }

        @media (max-width: 1023px) {
            .footer {
                left: 20px;
                bottom: 50px;
            }
        }

        @media (max-width: 767px) {
            .footer {
                position: relative;
                left: auto;
                bottom: auto;
                margin: 20px 16px;
                gap: 10px;
            }
        }

        .footer-row {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        @media (max-width: 767px) {
            .footer-row {
                gap: 12px;
            }
        }

        .footer-top {
            gap: 16px;
            flex-direction: row-reverse;
        }

        @media (max-width: 767px) {
            .footer-top {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
        }

        .footer .social-links {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        @media (max-width: 767px) {
            .footer .social-links {
                gap: 10px;
            }
        }

        .footer-nav {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        @media (max-width: 767px) {
            .footer-nav {
                flex-direction: row;
                flex-wrap: wrap;
                gap: 12px;
            }
        }

        .copyright {
            color: rgba(44, 36, 22, 0.68);
            font-size: 12px;
            letter-spacing: 0.04em;
            direction: ltr;
            text-align: left;
            padding: 8px 4px 0;
            border-top: 1px solid rgba(201, 162, 75, 0.35);
            white-space: nowrap;
        }

        @media (max-width: 767px) {
            .copyright {
                font-size: 11px;
                white-space: normal;
                max-width: 200px;
            }
        }

        .footer-nav-link {
            color: #9CA3AF;
            text-decoration: none;
            font-weight: 600;
            font-size: 13px;
            transition: color 0.2s ease, border-color 0.2s ease;
            padding: 2px 0;
            background: transparent;
            border: none;
            border-bottom: 1.5px solid #9CA3AF;
            border-radius: 0;
            display: inline-block;
            box-shadow: none;
            cursor: pointer;
        }

        @media (max-width: 767px) {
            .footer-nav-link {
                font-size: 12px;
                padding: 2px 0;
            }
        }

        .footer-nav-link:hover {
            color: #C9A24B;
            background: transparent;
            border-bottom: 1.5px solid #C9A24B;
            transform: none;
        }

        .faq-link {
            padding: 2px 0;
            background: transparent;
            border: none;
            border-bottom: 1.5px solid #2C2416;
            border-radius: 0;
            color: #2C2416;
            text-decoration: none;
            font-weight: 600;
            font-size: 13px;
            transition: color 0.2s ease, border-color 0.2s ease;
            cursor: pointer;
            display: inline-block;
            box-shadow: none;
        }

        @media (max-width: 767px) {
            .faq-link {
                font-size: 12px;
                padding: 2px 0;
            }
        }

        .faq-link:hover {
            color: #C9A24B;
            background: transparent;
            border-bottom: 1.5px solid #C9A24B;
            transform: none;
        }

        .email-link {
            color: #C9A24B;
            text-decoration: none;
            font-weight: 600;
            font-size: 15px;
            transition: all 0.3s ease;
        }

        .email-link:hover {
            color: #B8922E;
            text-decoration: underline;
        }

        /* FAQ Modal */
        .faq-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(44, 36, 22, 0.7);
            backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            padding: 20px;
            direction: rtl;
        }

        .faq-modal.active {
            opacity: 1;
            pointer-events: all;
        }

        .faq-modal-content {
            background: #FAF8F5;
            border: 2px solid rgba(201, 162, 75, 0.3);
            border-radius: 16px;
            padding: 32px;
            max-width: 600px;
            width: 100%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 8px 32px rgba(201, 162, 75, 0.3);
            transform: scale(0.9);
            transition: transform 0.3s ease;
            direction: rtl;
            text-align: right;
        }

        .faq-modal.active .faq-modal-content {
            transform: scale(1);
        }

        .faq-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 2px solid rgba(201, 162, 75, 0.3);
            direction: rtl;
        }

        .faq-modal-title {
            font-size: 24px;
            font-weight: 700;
            color: #C9A24B;
        }

        .faq-modal-close {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(201, 162, 75, 0.1);
            border: 1.5px solid rgba(201, 162, 75, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .faq-modal-close:hover {
            background: rgba(201, 162, 75, 0.2);
            transform: rotate(90deg);
        }

        .faq-item {
            margin-bottom: 20px;
            text-align: right;
        }

        .faq-question {
            font-size: 16px;
            font-weight: 700;
            color: #C9A24B;
            margin-bottom: 8px;
        }

        .faq-answer {
            font-size: 14px;
            color: #2C2416;
            line-height: 1.6;
        }

        .faq-contact {
            margin-top: 24px;
            padding-top: 20px;
            border-top: 2px solid rgba(201, 162, 75, 0.3);
            text-align: center;
            direction: rtl;
        }

        .faq-contact-label {
            font-size: 14px;
            color: #2C2416;
            margin-bottom: 8px;
        }

        .faq-contact-email {
            font-size: 16px;
            font-weight: 600;
            color: #C9A24B;
            text-decoration: none;
            transition: all 0.3s ease;
            direction: ltr;
            display: inline-block;
        }

        .faq-contact-email:hover {
            color: #B8922E;
            text-decoration: underline;
        }

        .btn {
            padding: 12px 24px;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            border: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            min-height: 44px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .btn-primary {
            background: linear-gradient(135deg, #C9A24B 0%, #B8922E 100%);
            color: #FFFFFF;
        }

        .btn-primary:active {
            transform: scale(0.96);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        }

        @media (hover: hover) {
            .btn-primary:hover {
                box-shadow: 0 6px 20px rgba(201, 162, 75, 0.3);
            }
        }

        .btn-secondary {
            background: transparent;
            color: #2C2416;
            border: 2px solid rgba(201, 162, 75, 0.3);
        }

        .btn-secondary:active {
            transform: scale(0.96);
            border-color: #C9A24B;
            background: transparent;
        }

        @media (hover: hover) {
            .btn-secondary:hover {
                transform: translateY(-2px);
                border-color: #C9A24B;
                background: transparent;
                box-shadow: 0 6px 20px rgba(201, 162, 75, 0.2);
            }
        }

        .btn-small {
            padding: 12px 32px;
            font-size: 16px;
            font-weight: 600;
            min-height: 48px;
        }

        .btn-copy {
            padding: 12px 32px;
            font-size: 16px;
            font-weight: 600;
            min-height: 48px;
        }

        .btn-order {
            padding: 22px 72px;
            font-size: 22px;
            font-weight: 700;
            min-height: 80px;
        }

        /* Copy Notification */
        .copy-notification {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            background: #C9A24B;
            color: #2C2416;
            padding: 24px 40px;
            border-radius: 16px;
            box-shadow: 0 12px 32px rgba(201, 162, 75, 0.3);
            z-index: 1000;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            font-size: 16px;
            font-weight: 700;
        }

        .copy-notification.show {
            transform: translate(-50%, -50%) scale(1);
        }

        /* ============================================
           FIXED-SCALE SOLID CONSTRUCTOR BLOCK
        ============================================ */

        .constructor-wrapper {
            min-height: calc(100vh - 180px);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            margin: 0 auto;
            padding: 20px 24px 80px;
            box-sizing: border-box;
            overflow-x: auto;
        }

        .perfume-grid {
            display: grid !important;
            grid-template-columns: repeat(5, 220px) !important;
            width: 1160px !important;
            min-width: 1160px !important;
            max-width: 1160px !important;
            gap: 15px !important;
            padding: 0 !important;
            margin: 0 auto !important;
            box-sizing: border-box !important;
            flex-shrink: 0 !important;
        }

        .perfume-slot {
            width: 220px !important;
            min-width: 220px !important;
            max-width: 220px !important;
            background: transparent !important;
            border: none !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            outline: none !important;
            padding: 20px 10px !important;
            position: relative !important;
            overflow: visible !important;
            cursor: grab !important;
            box-sizing: border-box !important;
            flex-shrink: 0 !important;
        }

        .perfume-image-container {
            height: 380px !important;
            min-height: 380px !important;
            max-height: 380px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            position: relative !important;
            overflow: hidden !important;
        }

        .perfume-image {
            max-width: 100% !important;
            max-height: 100% !important;
            height: 360px !important;
            object-fit: contain !important;
        }

        .perfume-name {
            font-size: 16px !important;
            font-weight: 600 !important;
            text-align: center !important;
            margin-top: 8px !important;
            color: #2C2416 !important;
            line-height: 1.3 !important;
            max-width: 100% !important;
            width: 100% !important;
            padding: 0 4px !important;
            box-sizing: border-box !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            word-break: break-word !important;
            overflow-wrap: break-word !important;
            hyphens: auto !important;
            height: auto !important;
            min-height: 36px !important;
            max-height: 48px !important;
            overflow: hidden !important;
            white-space: normal !important;
        }

        body.dark-theme .perfume-name {
            color: #F1F5F9 !important;
        }

        .slot-number {
            width: 32px !important;
            height: 32px !important;
            font-size: 14px !important;
            top: -20px !important;
        }

        /* Order button centered, random and copy buttons on the right */
        .order-button-container {
            position: fixed !important;
            bottom: 60px !important;
            left: 0 !important;
            right: 0 !important;
            transform: none !important;
            width: 100% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            pointer-events: auto !important;
            z-index: 90 !important;
        }

        .order-button-container .btn {
            width: auto !important;
            pointer-events: auto !important;
        }

        .order-button-container .btn-order {
            position: static !important;
            transform: none !important;
            margin: 0 auto !important;
            pointer-events: auto !important;
        }

        .center-order-group {
            position: static !important;
            transform: none !important;
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            gap: 10px !important;
            pointer-events: auto !important;
            justify-content: center !important;
        }

        .btn-presets {
            padding: 12px 24px !important;
            font-size: 15px !important;
            font-weight: 600 !important;
            min-height: 48px !important;
            background: linear-gradient(135deg, rgba(201, 162, 75, 0.2) 0%, rgba(184, 146, 46, 0.25) 100%) !important;
            border: 2px solid #C9A24B !important;
            color: #2C2416 !important;
            border-radius: 12px !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        }

        .btn-presets:hover {
            background: linear-gradient(135deg, #C9A24B 0%, #B8922E 100%) !important;
            color: #FFFFFF !important;
            box-shadow: 0 6px 20px rgba(201, 162, 75, 0.35) !important;
            transform: translateY(-2px) !important;
        }

        .side-buttons {
            position: absolute !important;
            right: 32px !important;
            left: auto !important;
            margin-left: 0 !important;
            transform: none !important;
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
            pointer-events: auto !important;
        }

        .side-buttons #randomBtn {
            order: 1 !important;
        }

        .side-buttons #copyBtn {
            order: 2 !important;
        }

        /* Preset Sets Modal Styles */
        .presets-modal-content {
            max-width: 680px !important;
            width: 92% !important;
        }

        /* RTL support for presets modal */
        [dir="rtl"] .presets-modal-content {
            direction: rtl;
            text-align: right;
        }

        [dir="rtl"] .preset-card-header {
            flex-direction: row-reverse;
        }

        [dir="ltr"] .presets-modal-content {
            direction: ltr;
            text-align: left;
        }

        .presets-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-top: 12px;
            max-height: 60vh;
            overflow-y: auto;
            padding-right: 8px;
        }

        /* Scrollbar styling */
        .presets-list::-webkit-scrollbar {
            width: 8px;
        }

        .presets-list::-webkit-scrollbar-track {
            background: rgba(201, 162, 75, 0.1);
            border-radius: 10px;
        }

        .presets-list::-webkit-scrollbar-thumb {
            background: rgba(201, 162, 75, 0.4);
            border-radius: 10px;
        }

        .presets-list::-webkit-scrollbar-thumb:hover {
            background: rgba(201, 162, 75, 0.6);
        }

        .preset-card {
            background: #FFFFFF;
            border: 1.5px solid rgba(201, 162, 75, 0.3);
            border-radius: 14px;
            padding: 18px 20px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            transition: all 0.3s ease;
        }

        .preset-card:hover {
            border-color: #C9A24B;
            box-shadow: 0 6px 20px rgba(201, 162, 75, 0.18);
        }

        .preset-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }

        .preset-card-title {
            font-size: 18px;
            font-weight: 700;
            color: #C9A24B;
        }

        .preset-card-desc {
            font-size: 14px;
            color: #6B7280;
            line-height: 1.4;
        }

        .preset-card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .preset-tag {
            background: rgba(201, 162, 75, 0.1);
            color: #2C2416;
            font-size: 12px;
            font-weight: 600;
            padding: 5px 12px;
            border-radius: 20px;
            border: 1px solid rgba(201, 162, 75, 0.25);
        }

        .clickable-tag {
            cursor: pointer;
            border: 1.5px solid rgba(201, 162, 75, 0.5);
            transition: all 0.3s ease;
        }

        .clickable-tag:hover {
            background: rgba(201, 162, 75, 0.2);
            border-color: #C9A24B;
            transform: translateY(-2px);
            box-shadow: 0 2px 8px rgba(201, 162, 75, 0.3);
        }

        /* Fragrance Info Modal */
        .fragrance-info-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .fragrance-info-modal.active {
            opacity: 1;
            pointer-events: all;
        }

        @media (max-width: 767px) {
            .fragrance-info-modal {
                z-index: 11000;
                padding: 16px;
                box-sizing: border-box;
            }

            .fragrance-info-modal-content {
                box-sizing: border-box;
                width: min(100%, 360px);
                max-width: none;
                max-height: min(80vh, 620px);
                padding: 24px 20px;
                transform: translateY(24px) scale(0.96);
                opacity: 0;
                transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
            }

            .fragrance-info-modal.active .fragrance-info-modal-content {
                transform: translateY(0) scale(1);
                opacity: 1;
            }

        }

        @media (max-width: 767px) and (prefers-reduced-motion: reduce) {
            .fragrance-info-modal-content { transition: none; }
        }

        .fragrance-info-modal-content {
            background: rgba(250, 248, 245, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 2px solid #C9A24B;
            border-radius: 16px;
            padding: 20px;
            max-width: 320px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 12px 36px rgba(201, 162, 75, 0.35);
            padding-right: 40px;
            text-align: center;
        }

        .fragrance-info-modal-content::-webkit-scrollbar {
            width: 8px;
        }

        .fragrance-info-modal-content::-webkit-scrollbar-track {
            background: rgba(201, 162, 75, 0.1);
            border-radius: 10px;
        }

        .fragrance-info-modal-content::-webkit-scrollbar-thumb {
            background: rgba(201, 162, 75, 0.4);
            border-radius: 10px;
        }

        .fragrance-info-modal-content::-webkit-scrollbar-thumb:hover {
            background: rgba(201, 162, 75, 0.6);
        }

        html[lang="ru"] .fragrance-info-modal-content,
        html[lang="en"] .fragrance-info-modal-content,
        html[lang="uz"] .fragrance-info-modal-content {
            direction: ltr;
            text-align: center;
        }

        .fragrance-info-close {
            position: absolute;
            top: 10px;
            right: 10px;
            background: transparent;
            border: none;
            font-size: 24px;
            color: #2C2416;
            cursor: pointer;
            line-height: 1;
            padding: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            opacity: 0.6;
        }

        .fragrance-info-close:hover {
            color: #C9A24B;
            opacity: 1;
        }

        .fragrance-info-modal-title {
            font-size: 18px;
            font-weight: 700;
            color: #C9A24B;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 2px solid rgba(201, 162, 75, 0.3);
            text-align: center;
        }

        .fragrance-notes-section {
            text-align: right;
            margin-bottom: 16px;
        }

        /* LTR direction for fragrance modal on non-Arabic languages */
        html[lang="ru"] .fragrance-notes-section,
        html[lang="en"] .fragrance-notes-section,
        html[lang="uz"] .fragrance-notes-section {
            text-align: left;
            direction: ltr;
        }

        html[lang="ru"] .fragrance-weather-section,
        html[lang="en"] .fragrance-weather-section,
        html[lang="uz"] .fragrance-weather-section {
            text-align: left;
            direction: ltr;
        }

        html[lang="ru"] .fragrance-info-modal-content,
        html[lang="en"] .fragrance-info-modal-content,
        html[lang="uz"] .fragrance-info-modal-content {
            direction: ltr;
        }

        .fragrance-weather-section {
            text-align: right;
            padding-top: 12px;
            border-top: 1px solid rgba(201, 162, 75, 0.2);
        }

        .weather-label {
            font-weight: 600;
            color: #C9A24B;
            font-size: 13px;
            margin-bottom: 4px;
        }

        .weather-value {
            color: #4A3F2E;
            font-size: 14px;
        }

        .preset-apply-btn {
            align-self: flex-end;
            padding: 10px 22px;
            background: #C9A24B;
            color: #FAF8F5;
            border: none;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .preset-apply-btn:hover {
            background: #B8922E;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(201, 162, 75, 0.3);
        }

        /* Footer links on bottom left */
        .footer {
            position: fixed !important;
            bottom: 24px !important;
            left: 24px !important;
            right: auto !important;
            z-index: 80 !important;
            display: flex !important;
            flex-direction: column !important;
            gap: 8px !important;
            direction: ltr !important;
        }

        .footer-nav {
            display: flex !important;
            gap: 20px !important;
            align-items: center !important;
            direction: ltr !important;
        }

        .footer-nav-link, .faq-link {
            padding: 2px 0 !important;
            font-size: 13px !important;
            background: transparent !important;
            border: none !important;
            border-bottom: 1.5px solid #9CA3AF !important;
            border-radius: 0 !important;
            transition: color 0.2s ease, border-color 0.2s ease !important;
            transform: none !important;
            box-shadow: none !important;
            display: inline-block !important;
            color: #9CA3AF !important;
        }

        .footer-nav-link:hover, .faq-link:hover {
            color: #C9A24B !important;
            border-bottom-color: #C9A24B !important;
            background: transparent !important;
            transform: none !important;
        }

        /* Responsiveness for small screens */
        @media (max-width: 1100px) {
            .center-order-group {
                gap: 8px !important;
            }
            .side-buttons {
                right: 20px !important;
                gap: 8px !important;
            }
            .btn-order {
                padding: 18px 48px !important;
                font-size: 18px !important;
            }
            .btn-small, .btn-copy, .btn-presets {
                padding: 10px 20px !important;
                font-size: 14px !important;
            }
        }

        @media (max-width: 768px) {
            .promo-banner {
                position: relative !important;
                top: auto !important;
            }

            header {
                position: sticky !important;
                top: 0 !important;
                z-index: 100 !important;
            }

            .perfume-grid {
                display: flex !important;
                flex-direction: row !important;
                justify-content: space-between !important;
                width: 100% !important;
                min-width: auto !important;
                max-width: 100% !important;
                gap: 4px !important;
                padding: 10px 8px !important;
                margin: 0 auto !important;
                overflow: visible !important;
                height: auto !important;
            }

            .perfume-slot {
                width: 19% !important;
                min-width: auto !important;
                max-width: none !important;
                margin: 0 !important;
                padding: 8px !important;
                box-sizing: border-box !important;
                flex-shrink: 0 !important;
                overflow: visible !important;
                height: auto !important;
                min-height: 400px !important;
            }

            .perfume-image-container {
                height: 320px !important;
                min-height: 320px !important;
                max-height: 320px !important;
                overflow: hidden !important;
                position: relative !important;
                -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
                mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
            }

            .perfume-image {
                height: 250px !important;
                min-height: 250px !important;
                max-height: 250px !important;
                width: auto !important;
                max-width: none !important;
                object-fit: contain !important;
            }

            .perfume-image-preview {
                height: 250px !important;
                min-height: 250px !important;
                max-height: 250px !important;
                width: auto !important;
                max-width: none !important;
                object-fit: contain !important;
                position: absolute !important;
                left: 50% !important;
                top: 50% !important;
                z-index: 1 !important;
            }

            .perfume-image-preview.preview-from-top {
                transform: translate(-50%, calc(-50% - 320px));
            }

            .perfume-image-preview.preview-from-bottom {
                transform: translate(-50%, calc(-50% + 320px));
            }

            .perfume-label {
                font-size: 5.5px !important;
                font-weight: 300 !important;
                margin: 2px 0 !important;
                line-height: 1.1 !important;
                max-width: 100% !important;
                width: 100% !important;
                padding: 1px 2px !important;
                box-sizing: border-box !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                height: 14px !important;
                min-height: 14px !important;
                max-height: 14px !important;
                overflow: hidden !important;
                white-space: normal !important;
                word-wrap: break-word !important;
                text-align: center !important;
                position: relative !important;
                flex-shrink: 0 !important;
                /* Visual grid border for debugging */
                border: 1px solid rgba(255, 0, 0, 0.3) !important;
                background: rgba(255, 255, 0, 0.05) !important;
            }

            .perfume-label span {
                display: block !important;
                text-align: center !important;
                max-width: 100% !important;
                overflow: hidden !important;
                line-height: 1.1 !important;
                word-wrap: break-word !important;
                hyphens: auto !important;
            }

            .perfume-name {
                font-size: 10px !important;
                font-weight: 500 !important;
                margin: 3px 0 !important;
                line-height: 1.3 !important;
                max-width: 100% !important;
                width: 100% !important;
                padding: 2px 3px !important;
                box-sizing: border-box !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                height: 28px !important;
                min-height: 28px !important;
                max-height: 28px !important;
                overflow: hidden !important;
                white-space: normal !important;
                word-break: break-word !important;
                text-align: center !important;
                flex-shrink: 0 !important;
            }

            .swipe-hint {
                display: none !important;
            }

            .slot-number {
                width: 20px !important;
                height: 20px !important;
                font-size: 10px !important;
            }

            .constructor-wrapper {
                overflow: visible !important;
                padding: 0 !important;
                padding-bottom: 20px !important;
                margin-bottom: 0 !important;
                height: auto !important;
                min-height: auto !important;
            }

            .perfume-grid {
                margin-bottom: 5px !important;
                padding-bottom: 0 !important;
                padding-top: 30px !important;
            }

            .swipe-hint {
                display: none !important;
            }

            /* Keep buttons in document flow */
            .order-button-container {
                position: static !important;
                z-index: 100 !important;
                margin-top: 8px !important;
                margin-bottom: 20px !important;
                padding: 0 16px !important;
                flex-direction: column !important;
                align-items: center !important;
                gap: 10px !important;
                pointer-events: auto !important;
                background: transparent !important;
            }
            .modal {
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
            }

            .modal-content {
                position: relative !important;
                top: auto !important;
                left: auto !important;
                transform: none !important;
                max-width: 90% !important;
                width: 90% !important;
                max-height: 70vh !important;
                margin: 0 !important;
                overflow-y: auto !important;
            }

            /* Fix perfume info tooltip to show centered on mobile like a modal */
            .perfume-info-tooltip.active {
                position: fixed !important;
                top: 50% !important;
                left: 50% !important;
                right: auto !important;
                transform: translate(-50%, -50%) scale(1) !important;
                z-index: 10000 !important;
                max-width: 85% !important;
                width: 85% !important;
                max-height: 80vh !important;
                overflow-y: auto !important;
                border-radius: 20px !important;
                padding: 24px 20px !important;
                box-shadow: 0 20px 60px rgba(201, 162, 75, 0.4) !important;
            }

            .perfume-info-tooltip {
                border-radius: 16px !important;
            }

            .perfume-info-title {
                font-size: 20px !important;
                margin-bottom: 20px !important;
                padding-bottom: 16px !important;
            }

            .note-layer {
                margin-bottom: 16px !important;
            }

            .note-layer-title {
                font-size: 14px !important;
                margin-bottom: 8px !important;
            }

            .note-layer-content {
                font-size: 13px !important;
                line-height: 1.5 !important;
            }

            /* Add backdrop when tooltip is active */
            .perfume-slot:has(.perfume-info-tooltip.active)::before {
                content: '' !important;
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                background: rgba(44, 36, 22, 0.7) !important;
                backdrop-filter: blur(8px) !important;
                z-index: 9999 !important;
            }

            .order-button-container .btn-order {
                position: static !important;
                transform: none !important;
                width: calc(100% - 32px) !important;
                max-width: 360px !important;
                margin: 0 auto !important;
                order: 1 !important;
                pointer-events: auto !important;
            }
            .center-order-group {
                position: static !important;
                transform: none !important;
                order: 2 !important;
                display: flex !important;
                flex-direction: column !important;
                justify-content: center !important;
                gap: 10px !important;
                width: calc(100% - 32px) !important;
                max-width: 360px !important;
                margin: 0 auto !important;
                pointer-events: auto !important;
            }
            .center-order-group .btn {
                width: 100% !important;
                pointer-events: auto !important;
            }
            .side-buttons {
                position: static !important;
                transform: none !important;
                right: auto !important;
                order: 3 !important;
                display: flex !important;
                justify-content: center !important;
                gap: 10px !important;
                width: calc(100% - 32px) !important;
                max-width: 360px !important;
                margin: 0 auto !important;
                pointer-events: auto !important;
            }
            .side-buttons .btn {
                flex: 1 !important;
                pointer-events: auto !important;
            }
            .footer {
                position: relative !important;
                bottom: auto !important;
                left: auto !important;
                margin: 20px 12px !important;
            }
            .footer-nav {
                flex-wrap: wrap !important;
                gap: 12px !important;
            }
            .footer-nav-link, .faq-link {
                padding: 2px 0 !important;
                font-size: 12px !important;
            }
        }

        /* Aroma Set visual system: dark header, warm marble canvas, compact controls. */
        :root {
            --ink: #2d2418;
            --gold: #b88a3d;
            --gold-light: #d6b66a;
            --cream: #f4eee3;
            --header: #17130f;
        }

        body {
            background-color: var(--cream);
            background-image: linear-gradient(rgba(248, 243, 234, .72), rgba(248, 243, 234, .72)), url('фон.png');
            background-size: cover;
            background-position: center;
            color: var(--ink);
        }

        .promo-banner { display: none !important; }

        header {
            top: 0 !important;
            padding: 12px 0 !important;
            background: linear-gradient(115deg, #100d0a, #2a2118 52%, #100d0a) !important;
            border-bottom: 1px solid rgba(214, 182, 106, .36) !important;
            box-shadow: 0 8px 24px rgba(34, 24, 12, .2) !important;
        }

        .header-content { min-height: 76px !important; }
        .logo-image { height: 86px !important; filter: drop-shadow(0 3px 8px rgba(214, 182, 106, .3)); }
        .header-social-link, .cart-btn { background: transparent !important; border-color: rgba(214, 182, 106, .7) !important; }
        .header-social-link { border: 1px solid rgba(214, 182, 106, .7); }
        .header-social-link svg, .cart-btn svg { filter: brightness(1.18); }
        .sound-toggle, .language-btn { color: #f7edda !important; }

        .constructor-wrapper {
            min-height: calc(100vh - 190px) !important;
            padding: 58px 24px 110px !important;
            background: radial-gradient(ellipse at center, rgba(255,255,255,.24), transparent 66%);
        }

        .perfume-grid {
            width: min(1160px, 100%) !important;
            min-width: 0 !important;
            max-width: 1160px !important;
            gap: clamp(4px, 1.3vw, 18px) !important;
        }

        .perfume-slot { width: auto !important; min-width: 0 !important; max-width: none !important; padding: 20px 8px !important; }
        .slot-number { top: -18px !important; background: rgba(248,243,234,.84) !important; border-color: var(--gold) !important; color: #76531f !important; }
        .perfume-image-container { height: clamp(290px, 30vw, 390px) !important; }
        .perfume-image { height: min(360px, 29vw) !important; }
        .perfume-image-container::before { background: linear-gradient(to bottom, rgba(244,238,227,.92), transparent) !important; }
        .perfume-image-container::after { background: linear-gradient(to top, rgba(244,238,227,.92), transparent) !important; }
        .perfume-name { color: var(--ink) !important; font-size: 14px !important; }

        .order-button-container { bottom: 30px !important; }
        @media (min-width: 768px) {
            .order-button-container { pointer-events: none !important; }
            .order-button-container .btn { pointer-events: auto !important; }
        }
        .center-order-group { gap: 14px !important; }
        .btn-presets, .btn-secondary { border-color: rgba(122, 86, 32, .55) !important; color: #67491f !important; background: rgba(255,255,255,.25) !important; }
        .btn-presets { border-radius: 999px !important; padding: 12px 30px !important; }
        .btn-order { min-width: 320px; border-radius: 999px !important; background: linear-gradient(135deg, #b88a3d, #76521f) !important; box-shadow: 0 8px 24px rgba(109, 74, 25, .28) !important; }
        .side-buttons { right: max(24px, calc((100vw - 1400px) / 2)) !important; }

        @media (max-width: 767px) {
            header { padding: 6px 0 !important; }
            .header-content { min-height: 58px !important; padding: 0 12px; }
            .logo-image { height: calc(56px + 10vw) !important; }
            .header-social-icons { gap: 5px !important; }
            .header-social-link { width: 32px !important; height: 32px !important; }
            .header-social-link svg { width: 15px; height: 15px; }
            .social-links { gap: 3px !important; }
            .cart-btn { width: 36px !important; height: 36px !important; }
            .cart-btn svg { width: 19px; height: 19px; }
            .constructor-wrapper { padding: 42px 5px 24px !important; min-height: auto !important; }
            .perfume-grid { gap: 2px !important; padding: 0 !important; }
            .perfume-slot { padding: 10px 1px !important; }
            .slot-number { top: -14px !important; width: 25px !important; height: 25px !important; font-size: 11px !important; }
            .perfume-image-container { height: 260px !important; }
            .perfume-image { height: 235px !important; max-width: 100% !important; }
            .perfume-name { font-size: 9px !important; min-height: 28px !important; margin-top: 5px !important; }
            .order-button-container { margin: 12px auto 18px !important; padding: 0 12px !important; gap: 9px !important; }
            .order-button-container .btn-order { min-width: 0 !important; width: 100% !important; max-width: 350px !important; min-height: 54px !important; font-size: 16px !important; }
            .center-order-group { width: 100% !important; gap: 9px !important; }
            .center-order-group .btn-presets { width: 100% !important; min-height: 44px !important; font-size: 13px !important; }
            .side-buttons { position: static !important; width: 100% !important; max-width: 350px !important; gap: 8px !important; }
            .side-buttons .btn { min-height: 44px !important; font-size: 13px !important; }

            /* Keep swipe previews under JS control while matching the reference scale. */
            .constructor-wrapper { padding-bottom: 8px !important; }
            .perfume-image-container { height: 330px !important; min-height: 330px !important; max-height: 330px !important; }
            .perfume-image, .perfume-image-preview { height: 305px !important; min-height: 305px !important; max-height: 305px !important; }
            .order-button-container { margin-top: 2px !important; margin-bottom: 12px !important; }
        }
    
        /* Final mobile five-column and touch preview corrections */
        @media (max-width: 767px) {
            .perfume-grid { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 4px !important; width: 100% !important; padding: 0 !important; overflow: visible !important; }
            .perfume-slot { width: auto !important; min-width: 0 !important; padding: 8px 0 !important; }
            .perfume-image-container { height: 330px !important; min-height: 330px !important; max-height: 330px !important; }
            .perfume-image, .perfume-image-preview { height: 305px !important; min-height: 305px !important; max-height: 305px !important; }
            .perfume-image-preview.preview-from-top,
            .perfume-image-preview.preview-from-bottom { transform: none; }
            .constructor-wrapper { padding-bottom: 8px !important; }
            .order-button-container { margin-top: 2px !important; margin-bottom: 12px !important; }
        }

        /* Final mobile preview positioning and bottle scale. The inline transform
           written by the swipe handler remains authoritative during dragging. */
        @media (max-width: 767px) {
            .perfume-image-container {
                height: 270px !important;
                min-height: 270px !important;
                max-height: 270px !important;
                overflow: hidden !important;
                isolation: isolate;
            }

            .perfume-image,
            .perfume-image-preview {
                height: 230px !important;
                min-height: 230px !important;
                max-height: 230px !important;
                width: auto !important;
                max-width: none !important;
                object-fit: contain !important;
            }

            .perfume-image-preview,
            .perfume-image-preview.preview-from-top,
            .perfume-image-preview.preview-from-bottom {
                left: 50% !important;
                top: 0% !important;
                right: auto !important;
                bottom: auto !important;
                /* The following class rules provide the initial offset;
                   inline transforms from handleMove/handleEnd still win. */
            }

            .perfume-image-preview.preview-from-top {
                transform: translate(-50%, calc(-50% - 270px));
            }

            .perfume-image-preview.preview-from-bottom {
                transform: translate(-50%, calc(-50% + 270px));
            }

            /* Keep the mobile controls close to the bottle row. */
            .order-button-container {
                position: relative !important;
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                margin-top: -75px !important;
                margin-bottom: 12px !important;
                padding: 0 12px !important;
                gap: 9px !important;
                pointer-events: auto !important;
            }

            .center-order-group {
                position: relative !important;
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                width: 100% !important;
                gap: 9px !important;
                pointer-events: auto !important;
            }

            .center-order-group .btn-order {
                order: 1 !important;
                position: static !important;
                width: 100% !important;
                max-width: 350px !important;
                margin: 0 auto !important;
            }

            .center-order-group .btn-presets {
                order: 2 !important;
                width: 55% !important;
                min-height: 44px !important;
                padding: 10px 8px !important;
                position: relative !important;
                z-index: 3 !important;
                pointer-events: auto !important;
                touch-action: manipulation !important;
            }

            /* Random/copy sit beside the preset button and show only their emoji. */
            .side-buttons {
                position: absolute !important;
                top: 63px !important;
                left: 0 !important;
                right: 0 !important;
                width: 100% !important;
                max-width: none !important;
                display: flex !important;
                justify-content: space-between !important;
                align-items: center !important;
                padding: 0 12px !important;
                margin: 0 !important;
                gap: 8px !important;
                pointer-events: none !important;
                z-index: 4 !important;
            }

            .side-buttons .btn {
                flex: 0 0 44px !important;
                width: 44px !important;
                height: 44px !important;
                min-height: 44px !important;
                max-width: 44px !important;
                padding: 0 !important;
                border-radius: 50% !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                font-size: 0 !important;
                pointer-events: auto !important;
                touch-action: manipulation !important;
            }

            .side-buttons .btn > span:first-child {
                display: inline-flex !important;
                font-size: 18px !important;
                line-height: 1 !important;
            }

            .side-buttons .btn > span:last-child {
                display: none !important;
            }

            #presetsModal {
                z-index: 10000 !important;
            }

            .sound-toggle svg {
                fill: #fff !important;
            }
        }

        /* Desktop-specific alignment requested for the fixed side controls. */
        @media (min-width: 768px) {
            .side-buttons {
                left: 75% !important;
                right: auto !important;
            }
        }

        /* Final phone layout: keep the five bottles in one row and place the
           controls around that row without changing the desktop composition. */
        @media (max-width: 767px) {
            html,
            body {
                width: 100% !important;
                min-width: 0 !important;
                overflow-x: hidden !important;
            }

            .constructor-wrapper {
                display: block !important;
                width: 100% !important;
                max-width: none !important;
                min-height: 0 !important;
                margin: 0 !important;
                padding: 108px 4px 150px !important;
                overflow: visible !important;
            }

            .perfume-grid {
                display: grid !important;
                grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
                width: 100% !important;
                max-width: none !important;
                min-width: 0 !important;
                gap: 0 !important;
                padding: 0 !important;
                margin: 0 !important;
                overflow: visible !important;
            }

            .perfume-slot {
                width: auto !important;
                min-width: 0 !important;
                max-width: none !important;
                min-height: 0 !important;
                padding: 8px 0 0 !important;
                overflow: visible !important;
            }

            .slot-number {
                top: -14px !important;
                right: 50% !important;
                width: 25px !important;
                height: 25px !important;
                font-size: 11px !important;
                z-index: 4 !important;
            }

            .perfume-image-container {
                height: 270px !important;
                min-height: 270px !important;
                max-height: 270px !important;
                width: 100% !important;
                overflow: hidden !important;
                isolation: isolate !important;
            }

            .perfume-image,
            .perfume-image-preview {
                height: 230px !important;
                min-height: 230px !important;
                max-height: 230px !important;
                width: auto !important;
                max-width: none !important;
                object-fit: contain !important;
            }

            /* The swipe handler writes translate(-50%, y) inline. Keeping the
               preview anchored at 50% lets that animation work on touch too. */
            .perfume-image-preview {
                left: 50% !important;
                top: 0 !important;
                right: auto !important;
                bottom: auto !important;
            }

            .perfume-name {
                width: 100% !important;
                min-height: 30px !important;
                height: 30px !important;
                max-height: 30px !important;
                margin: 5px 0 0 !important;
                padding: 0 1px !important;
                font-size: 8px !important;
                line-height: 1.2 !important;
                overflow: hidden !important;
                text-align: center !important;
            }

            /* The controls overlay the reserved wrapper space, so the preset
               button can sit above the bottles while the cart stays below. */
            .order-button-container {
                position: absolute !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                width: 100% !important;
                height: 100% !important;
                margin: 0 !important;
                padding: 0 !important;
                display: block !important;
                pointer-events: none !important;
                z-index: 120 !important;
            }

            .center-order-group {
                display: contents !important;
            }

            .center-order-group .btn-presets {
                position: absolute !important;
                top: 86px !important;
                left: 50% !important;
                transform: translateX(-50%) !important;
                width: 55% !important;
                min-width: 0 !important;
                max-width: 250px !important;
                min-height: 42px !important;
                height: 42px !important;
                margin: 0 !important;
                padding: 8px 10px !important;
                border-radius: 999px !important;
                font-size: 12px !important;
                line-height: 1 !important;
                white-space: nowrap !important;
                pointer-events: auto !important;
                z-index: 2 !important;
            }

            .order-button-container .btn-order,
            .center-order-group .btn-order {
                position: absolute !important;
                top: calc(100vh - 144px) !important;
                left: 50% !important;
                transform: translateX(-50%) !important;
                width: min(74%, 320px) !important;
                min-width: 0 !important;
                max-width: 320px !important;
                min-height: 54px !important;
                height: 54px !important;
                margin: 0 !important;
                padding: 12px 18px !important;
                border-radius: 999px !important;
                font-size: 16px !important;
                line-height: 1.2 !important;
                pointer-events: auto !important;
                z-index: 2 !important;
            }

            .side-buttons {
                position: absolute !important;
                top: calc(100vh - 78px) !important;
                left: 0 !important;
                right: 0 !important;
                width: 100% !important;
                max-width: none !important;
                height: 46px !important;
                margin: 0 !important;
                padding: 0 !important;
                display: flex !important;
                justify-content: center !important;
                align-items: center !important;
                gap: 42px !important;
                pointer-events: none !important;
                z-index: 3 !important;
            }

            .side-buttons .btn {
                flex: 0 0 44px !important;
                width: 44px !important;
                height: 44px !important;
                min-width: 44px !important;
                min-height: 44px !important;
                max-width: 44px !important;
                max-height: 44px !important;
                padding: 0 !important;
                border-radius: 50% !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                font-size: 0 !important;
                pointer-events: auto !important;
                touch-action: manipulation !important;
            }

            .side-buttons .btn > span:first-child {
                display: inline-block !important;
                font-size: 19px !important;
                line-height: 1 !important;
            }

            .side-buttons .btn > span:last-child {
                display: none !important;
            }

            .sound-toggle svg,
            .sound-toggle .sound-on,
            .sound-toggle .sound-off {
                fill: #fff !important;
            }

            .footer {
                position: static !important;
                margin: 0 14px 18px !important;
                padding: 0 !important;
            }
        }

        /* Final mobile control flow: presets, bottle grid, cart, icon buttons.
           The order-button wrapper is flattened so CSS order can interleave
           its controls with the constructor grid without changing the DOM or
           desktop layout. */
        @media (max-width: 767px) {
            html,
            body {
                overflow-x: hidden !important;
            }

            body {
                display: flex !important;
                flex-direction: column !important;
                align-items: stretch !important;
                min-height: 100vh !important;
                overflow-y: visible !important;
            }

            .promo-banner { order: 0 !important; }
            header { order: 1 !important; }

            .order-button-container {
                display: contents !important;
                position: static !important;
                width: auto !important;
                height: auto !important;
                min-height: 0 !important;
                margin: 0 !important;
                padding: 0 !important;
                overflow: visible !important;
                pointer-events: auto !important;
            }

            .center-order-group {
                display: contents !important;
                position: static !important;
                width: auto !important;
                margin: 0 !important;
                padding: 0 !important;
                overflow: visible !important;
            }

            .center-order-group .btn-presets {
                order: 2 !important;
                position: static !important;
                display: flex !important;
                width: 55% !important;
                min-width: 0 !important;
                max-width: 250px !important;
                height: 42px !important;
                min-height: 42px !important;
                margin: 16px auto 18px !important;
                transform: none !important;
                overflow: hidden !important;
                pointer-events: auto !important;
            }

            .constructor-wrapper {
                order: 3 !important;
                display: block !important;
                width: 100% !important;
                max-width: none !important;
                min-height: 0 !important;
                height: auto !important;
                margin: 0 !important;
                padding: 18px 4px 0 !important;
                overflow: visible !important;
            }

            .perfume-grid {
                display: grid !important;
                grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
                width: 100% !important;
                max-width: none !important;
                min-width: 0 !important;
                gap: 0 !important;
                margin: 0 !important;
                padding: 0 !important;
                overflow: visible !important;
            }

            .perfume-slot {
                width: auto !important;
                min-width: 0 !important;
                max-width: none !important;
                min-height: 0 !important;
                padding: 8px 0 0 !important;
                overflow: visible !important;
            }

            .perfume-image-container {
                width: 100% !important;
                height: 270px !important;
                min-height: 270px !important;
                max-height: 270px !important;
                overflow: hidden !important;
            }

            .perfume-image,
            .perfume-image-preview {
                height: 230px !important;
                min-height: 230px !important;
                max-height: 230px !important;
                width: auto !important;
                max-width: none !important;
            }

            .perfume-name {
                width: 100% !important;
                height: 30px !important;
                min-height: 30px !important;
                max-height: 30px !important;
                margin: 5px 0 0 !important;
                padding: 0 1px !important;
                font-size: 8px !important;
                line-height: 1.2 !important;
                overflow: hidden !important;
                text-align: center !important;
            }

            .order-button-container .btn-order,
            .center-order-group .btn-order {
                order: 4 !important;
                position: static !important;
                display: flex !important;
                width: min(74%, 320px) !important;
                min-width: 0 !important;
                max-width: 320px !important;
                height: 54px !important;
                min-height: 54px !important;
                margin: 30px auto 0 !important;
                transform: none !important;
                overflow: hidden !important;
                pointer-events: auto !important;
            }

            .side-buttons {
                order: 5 !important;
                position: static !important;
                display: flex !important;
                width: auto !important;
                max-width: none !important;
                height: 46px !important;
                min-height: 46px !important;
                margin: 14px auto 0 !important;
                padding: 0 !important;
                justify-content: center !important;
                align-items: center !important;
                gap: 42px !important;
                overflow: visible !important;
                pointer-events: auto !important;
            }

            .side-buttons .btn {
                position: static !important;
                flex: 0 0 44px !important;
                width: 44px !important;
                height: 44px !important;
                min-width: 44px !important;
                min-height: 44px !important;
                max-width: 44px !important;
                max-height: 44px !important;
                padding: 0 !important;
                border-radius: 50% !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                font-size: 0 !important;
                overflow: hidden !important;
                pointer-events: auto !important;
                touch-action: manipulation !important;
            }

            .side-buttons .btn > span:first-child {
                display: inline-flex !important;
                font-size: 19px !important;
                line-height: 1 !important;
            }

            .side-buttons .btn > span:last-child { display: none !important; }

            .footer {
                order: 6 !important;
                position: static !important;
                margin: 18px 14px 18px !important;
                padding: 0 !important;
                overflow: visible !important;
            }
        }

        .mobile-social-toggle, .mobile-social-menu { display: none; }

        @media (max-width: 767px) {
            .header-social-icons, .sound-toggle { display: none !important; }

            .mobile-social-toggle {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                flex: 0 0 38px;
                width: 38px;
                height: 38px;
                padding: 0;
                border: 1px solid rgba(214, 182, 106, .65);
                border-radius: 50%;
                background: rgba(255, 255, 255, .05);
                color: #e8c47d;
                cursor: pointer;
                touch-action: manipulation;
            }
            .mobile-social-toggle svg { width: 21px; height: 21px; }

            .mobile-social-menu {
                display: block;
                position: fixed;
                inset: 0;
                z-index: 10020;
                visibility: hidden;
                opacity: 0;
                pointer-events: none;
                transition: opacity .2s ease, visibility .2s ease;
            }
            .mobile-social-menu.is-open {
                visibility: visible;
                opacity: 1;
                pointer-events: auto;
            }
            .mobile-social-scrim {
                position: absolute;
                inset: 0;
                background: rgba(14, 11, 8, .56);
                backdrop-filter: blur(4px);
            }
            .mobile-social-panel {
                position: absolute;
                top: 72px;
                left: 12px;
                width: min(350px, calc(100vw - 24px));
                max-height: calc(100dvh - 88px);
                overflow-y: auto;
                padding: 18px;
                border: 1px solid rgba(214, 182, 106, .55);
                border-radius: 8px;
                background: #211b15;
                box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
                color: #f7edda;
                transform: translateY(-8px);
                transition: transform .2s ease;
            }
            .mobile-social-menu.is-open .mobile-social-panel { transform: translateY(0); }
            .mobile-social-head {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 0 0 14px;
                border-bottom: 1px solid rgba(214, 182, 106, .25);
                font-size: 16px;
                font-weight: 600;
            }
            .mobile-social-close {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 32px;
                height: 32px;
                padding: 0;
                border: 0;
                background: transparent;
                color: #f7edda;
                cursor: pointer;
            }
            .mobile-social-close svg { width: 20px; height: 20px; }
            .mobile-social-list { display: grid; gap: 6px; padding-top: 12px; }
            .mobile-social-list a {
                display: flex;
                align-items: center;
                gap: 14px;
                min-height: 50px;
                padding: 8px 12px;
                border-radius: 6px;
                color: #f7edda;
                font-size: 15px;
                text-decoration: none;
            }
            .mobile-social-list a:hover, .mobile-social-list a:focus-visible {
                background: rgba(214, 182, 106, .15);
                outline: 1px solid rgba(214, 182, 106, .5);
            }
            .mobile-social-list svg { flex: 0 0 22px; width: 22px; height: 22px; }
        }

        /* Desktop composition follows the reference image. */
        @media (min-width: 768px) {
            body {
                background-image: linear-gradient(rgba(248, 243, 234, .16), rgba(248, 243, 234, .16)), url('фон.png') !important;
            }

            header {
                height: 96px !important;
                padding: 0 !important;
            }
            header .container, .header-content { height: 100% !important; }
            .header-content { min-height: 0 !important; }
            .header-social-icons { gap: 20px !important; }
            .header-social-link { width: 36px !important; height: 36px !important; }
            .header-social-link svg { width: 18px !important; height: 18px !important; }
            .header-content .social-links { gap: 8px !important; }
            .logo { height: 90px !important; overflow: hidden !important; }
            .logo-image { height: 158px !important; max-width: none !important; }

            .constructor-wrapper {
                min-height: calc(100vh - 96px) !important;
                align-items: flex-start !important;
                padding: 120px 24px 115px !important;
                overflow-x: hidden !important;
                background: none !important;
            }
            .perfume-grid {
                grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
                width: min(100%, 1160px) !important;
                min-width: 0 !important;
                padding: 0 !important;
            }
            .perfume-slot { padding: 20px 8px !important; }
            .perfume-image-container {
                height: clamp(250px, 30vw, 310px) !important;
                min-height: 0 !important;
                max-height: none !important;
            }
            .perfume-image { height: clamp(245px, 29vw, 300px) !important; }
            .perfume-name, .swipe-hint { display: none !important; }

            .order-button-container {
                position: fixed !important;
                inset: 0 !important;
                width: 100% !important;
                height: 100% !important;
                display: block !important;
                pointer-events: none !important;
                z-index: 90 !important;
            }
            .center-order-group, .side-buttons { display: contents !important; }
            .order-button-container .btn {
                position: absolute !important;
                margin: 0 !important;
                transform: none !important;
                pointer-events: auto !important;
                box-sizing: border-box !important;
            }
            .center-order-group .btn-presets {
                top: 116px !important;
                left: 50% !important;
                width: 280px !important;
                height: 46px !important;
                min-height: 0 !important;
                padding: 8px 18px !important;
                transform: translateX(-50%) !important;
                border-width: 1px !important;
                background: rgba(255, 255, 255, .35) !important;
                font-size: 15px !important;
                font-weight: 500 !important;
                white-space: nowrap !important;
            }
            .order-button-container .btn-order {
                bottom: 30px !important;
                left: 50% !important;
                width: min(35%, 354px) !important;
                min-width: 0 !important;
                height: 62px !important;
                min-height: 0 !important;
                padding: 10px 20px !important;
                transform: translateX(-50%) !important;
                font-size: 19px !important;
            }
            .side-buttons #randomBtn, .side-buttons #copyBtn {
                bottom: 34px !important;
                height: 52px !important;
                min-height: 0 !important;
                padding: 8px 18px !important;
                border-width: 1px !important;
                border-radius: 999px !important;
                background: rgba(255, 255, 255, .32) !important;
                font-size: 14px !important;
                font-weight: 400 !important;
                white-space: nowrap !important;
            }
            .side-buttons #randomBtn { left: max(24px, calc(50% - 430px)) !important; width: 215px !important; }
            .side-buttons #copyBtn { right: max(24px, calc(50% - 420px)) !important; left: auto !important; width: 190px !important; }
            .footer { bottom: 4px !important; left: 24px !important; gap: 0 !important; }
            .footer .copyright {
                display: block !important;
                position: fixed !important;
                right: 24px !important;
                bottom: 4px !important;
                margin: 0 !important;
                padding: 0 !important;
                border: 0 !important;
                text-align: right !important;
                font-size: 12px !important;
                letter-spacing: 0 !important;
            }
            .footer-nav-link, .faq-link { color: #765b38 !important; border-bottom-color: #765b38 !important; }
        }

        @media (min-width: 768px) and (max-width: 900px) {
            .side-buttons #randomBtn { left: 16px !important; width: 170px !important; }
            .side-buttons #copyBtn { right: 16px !important; width: 150px !important; }
            .order-button-container .btn-order { width: 36% !important; }
        }

        .order-button-container .btn:disabled {
            opacity: .5 !important;
            cursor: wait !important;
            pointer-events: none !important;
        }


    @media (max-width: 767px) {
        .presets-modal-content {
            width: 100% !important;
            box-sizing: border-box;
            padding: 20px;
        }

        .presets-list {
            display: flex !important;
            flex-direction: column;
            max-height: none;
            overflow: visible;
            padding-right: 0;
        }

        .preset-card {
            margin: 0 !important;
            min-width: 0;
            padding: 16px;
        }

        .preset-card-header {
            flex-wrap: wrap;
        }

        .preset-apply-btn {
            white-space: normal;
        }

        .fragrance-info-modal-content {
            padding: 24px 20px;
        }

        .perfume-info-tooltip {
            display: none !important;
        }
    }


    .promo-banner {
        display: block !important;
        height: 28px !important;
        line-height: 28px !important;
        position: relative !important;
        background: linear-gradient(90deg, #89100d, #c42019 50%, #89100d) !important;
        box-shadow: inset 0 -1px rgba(255, 190, 135, .4) !important;
        letter-spacing: .26em;
        font-size: 11px !important;
    }
    .promo-banner-slider { animation: none !important; }
    .promo-banner-item { height: 28px !important; line-height: 28px !important; }
    .promo-banner-item + .promo-banner-item { display: none !important; }
    header { background: linear-gradient(110deg, #100c08, #21180f 52%, #100c08) !important; box-shadow: none !important; }
    .perfume-grid { direction: ltr !important; }
    .perfume-floor {
        position: relative;
        top: -5px;
        height: 0;
        margin-top: 0;
        overflow: visible;
        pointer-events: none;
        --floor-opacity: 1;
        --reflection-shift: 0px;
    }
    .perfume-floor::before {
        content: none;
    }
    .perfume-reflection-clip {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 22px;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .65), transparent 90%);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .65), transparent 90%);
        opacity: var(--floor-opacity);
        transform: translateY(var(--reflection-shift));
    }
    .perfume-reflection {
        position: absolute;
        top: 0;
        left: 50%;
        width: auto;
        height: 400px;
        max-width: none;
        opacity: .22;
        transform: translateX(-50%) scaleY(-1);
        transform-origin: center 50%;
    }
    .perfume-name { direction: ltr !important; text-transform: uppercase !important; font-family: Arial, Helvetica, sans-serif !important; font-weight: 500 !important; letter-spacing: .06em; white-space: pre-line !important; text-align: center !important; align-items: center !important; justify-content: center !important; overflow-wrap: normal !important; }
    .slot-number:hover, .slot-number:focus-visible, .slot-number.active { color: #fff !important; background: linear-gradient(180deg, #bf8538 0%, #86531e 48%, #4b2a0f 100%) !important; border-color: #d5a45a !important; }
    .fragrance-info-bottle { height: 180px; display: flex; justify-content: center; align-items: flex-end; box-sizing: border-box; padding-bottom: 44px; margin: 4px auto 16px; overflow: hidden; background: linear-gradient(to bottom, transparent 72%, rgba(190,167,133,.09) 73%, transparent 100%); }
    .fragrance-info-bottle img { height: 120px; width: auto; max-width: 90%; object-fit: contain; -webkit-box-reflect: below 1px linear-gradient(to bottom, rgba(0,0,0,.22), transparent 40%); }
    .perfume-info-tooltip { box-sizing: border-box; max-height: calc(100vh - 280px); overflow-y: auto; padding: 15px; }
    .perfume-info-tooltip .fragrance-info-bottle { height: 130px; margin: 0 auto 8px; padding-bottom: 33px; }
    .perfume-info-tooltip .fragrance-info-bottle img { height: 88px; }
    .perfume-info-tooltip .perfume-notes { margin-bottom: 8px; }
    .perfume-info-tooltip .note-layer { margin-bottom: 7px; }
    .perfume-info-tooltip .perfume-weather { padding-top: 7px; }
    .perfume-image-container {
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent) !important;
        mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent) !important;
    }
    .perfume-image-container::before,
    .perfume-image-container::after { content: none !important; }
    .perfume-image-preview,
    .perfume-image-preview.preview-from-top,
    .perfume-image-preview.preview-from-bottom {
        width: auto !important;
        max-width: none !important;
        left: 50% !important;
        top: 50% !important;
        right: auto !important;
        bottom: auto !important;
    }
    .perfume-image-preview.preview-from-top { transform: translate(-50%, calc(-50% - var(--preview-travel, 410px))); }
    .perfume-image-preview.preview-from-bottom { transform: translate(-50%, calc(-50% + var(--preview-travel, 410px))); }
    body.is-randomizing .slot-number { pointer-events: none !important; }
    body.is-randomizing .perfume-info-tooltip { opacity: 0 !important; pointer-events: none !important; }
    body.is-randomizing .perfume-image-container { pointer-events: none !important; cursor: default !important; }
    .cart-set-author-name { margin-top: 3px; color: #77716c; font-size: 12px; font-weight: 500; line-height: 1.3; direction: ltr; }
    .cart-discount-hint { color: #000; font-size: 12px; line-height: 1.35; margin: 5px 0 8px; }
    .cart-item.cart-set {
        background: #0b0b0a !important;
        border: 1px solid #0b0b0a !important;
        box-shadow: inset 0 1px rgba(228, 188, 108, .12), 0 8px 22px rgba(20, 15, 9, .16) !important;
    }
    .cart-set .cart-item-name { color: #e6ba70 !important; }
    .cart-set .cart-set-author-name { color: #fff !important; }
    .cart-set .cart-set-fragrances { color: #dbba81 !important; }
    .cart-set .cart-item-remove { background: rgba(215, 173, 105, .12); }
    .cart-set .cart-item-remove:hover { background: rgba(215, 173, 105, .25); }
    .cart-set .cart-item-remove svg { stroke: #e4ba75; }
    .perfume-image-container {
        isolation: isolate;
        overflow: clip !important;
        contain: paint;
        clip-path: inset(0 1px);
        align-items: center !important;
        justify-content: center !important;
    }
    .perfume-image, .perfume-image-preview {
        max-width: min(58%, calc(100% - 12px)) !important;
        object-fit: contain !important;
    }
    .perfume-image { flex: none; align-self: center; margin-block: auto; }
    .liquid-canvas {
        position: absolute;
        z-index: 3;
        left: 50%;
        top: 50%;
        pointer-events: none;
        transform: translate(-50%, -50%);
        transition: transform .3s ease, opacity .12s ease;
    }
    .perfume-image-container.is-dragging .liquid-canvas { transition: none; }
    .perfume-image.slide-fast-up-out ~ .liquid-canvas,
    .perfume-image.slide-up-out ~ .liquid-canvas { animation: liquid-up-out .2s ease-out forwards; }
    .perfume-image.slide-fast-down-out ~ .liquid-canvas,
    .perfume-image.slide-down-out ~ .liquid-canvas { animation: liquid-down-out .2s ease-out forwards; }
    .perfume-image.slide-fast-up-in ~ .liquid-canvas,
    .perfume-image.slide-up-in ~ .liquid-canvas { animation: liquid-up-in .2s ease-out forwards; }
    .perfume-image.slide-fast-down-in ~ .liquid-canvas,
    .perfume-image.slide-down-in ~ .liquid-canvas { animation: liquid-down-in .2s ease-out forwards; }
    @keyframes liquid-up-out { to { transform: translate(-50%, -150%); opacity: 0; } }
    @keyframes liquid-down-out { to { transform: translate(-50%, 50%); opacity: 0; } }
    @keyframes liquid-up-in { from { transform: translate(-50%, 50%); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
    @keyframes liquid-down-in { from { transform: translate(-50%, -150%); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
    @media (min-width: 768px) {
        .constructor-stage .btn-presets { margin-bottom: 60px !important; }
        .constructor-wrapper {
            min-height: calc(100dvh - 125px) !important;
            height: auto !important;
            padding: clamp(16px, 5vh, 86px) 24px !important;
            align-items: center !important;
        }
    }
    .language-btn {
        width: 46px !important;
        min-width: 46px;
        height: 46px;
        gap: 3px;
        padding: 0;
        border-radius: 0 !important;
        color: #e9bd6b !important;
        font-size: 16px !important;
        font-weight: 400 !important;
        letter-spacing: 0 !important;
    }
    .language-btn:hover { background: transparent !important; color: #fff0c2 !important; transform: none !important; }
    .language-btn svg { width: 14px; height: 14px; flex: none; stroke: currentColor; }
    .swipe-hint { display: none !important; }
    .order-button-container .btn { border-radius: 999px !important; }
    .action-icon { display: inline-flex !important; align-items: center; justify-content: center; line-height: 1; }
    .action-icon svg { width: 19px; height: 19px; display: block; }
    .btn-order .action-icon svg { width: 23px; height: 23px; }
    .center-order-group .btn-presets, .order-button-container .btn-order {
        color: #fff !important;
        background: linear-gradient(180deg, #bf8538 0%, #86531e 48%, #4b2a0f 100%) !important;
        border: 1px solid #d5a45a !important;
        box-shadow: 0 7px 17px rgba(110, 65, 19, .28), inset 0 1px rgba(255, 225, 174, .65) !important;
        font-weight: 600 !important;
        transition: transform .22s ease, filter .22s ease, box-shadow .22s ease !important;
    }
    .center-order-group .btn-presets:hover, .order-button-container .btn-order:hover {
        transform: translateY(-3px);
        filter: brightness(1.12);
        box-shadow: 0 11px 22px rgba(110, 65, 19, .35), inset 0 1px rgba(255, 225, 174, .75) !important;
    }
    .center-order-group .btn-presets:active, .order-button-container .btn-order:active {
        transform: translateY(1px) scale(.98);
        filter: brightness(.96);
    }
    .center-order-group .btn-presets:focus-visible, .order-button-container .btn-order:focus-visible {
        outline: 2px solid #e8c47d;
        outline-offset: 3px;
    }
    @media (prefers-reduced-motion: reduce) {
        .center-order-group .btn-presets, .order-button-container .btn-order { transition: none !important; }
    }
    .center-order-group .btn-presets::after { content: '\2192'; font-size: 19px; font-weight: 400; line-height: 1; margin-left: 8px; }
    html[lang="ar"] .center-order-group .btn-presets::after { content: '\2190'; margin-left: 0; margin-right: 8px; }
    .footer-nav-link, .faq-link { text-decoration: none !important; border-bottom: 0 !important; color: #755634 !important; }
    .footer-nav-link + .footer-nav-link::before { content: '|'; display: inline-block; margin-right: 16px; color: #a68961; }
    @media (min-width: 768px) {
        body {
            background-color: #f8efe2 !important;
            background-image: url('marble-reference.jpg') !important;
            background-size: 100% calc(100vh - 125px) !important;
            background-position: center bottom !important;
        }
        body::before, body::after, .decorative-curve-right, .decorative-curve-bottom-left, .decorative-curve-bottom-right { display: none !important; }
        header { height: 97px !important; }
        .header-content .sound-toggle { display: none !important; }
        .logo { height: 97px !important; }
        .logo-image { height: 185px !important; }
        .header-social-link { width: 43px !important; height: 43px !important; }
        .header-social-link svg { width: 22px !important; height: 22px !important; }
        .header-social-icons { gap: 22px !important; }
        .cart-btn { width: 58px !important; height: 58px !important; }
        .cart-btn svg { width: 29px !important; height: 29px !important; }
        .constructor-wrapper { max-width: 1450px !important; min-height: calc(100dvh - 125px) !important; padding: clamp(16px, 5vh, 86px) 24px !important; align-items: center !important; }
        .perfume-grid { width: min(100%, 1400px) !important; max-width: 1400px !important; gap: 0 !important; }
        .perfume-slot { padding: 20px 0 !important; }
        .slot-number { top: -16px !important; width: 31px !important; height: 31px !important; font-size: 15px !important; }
        .perfume-image-container { height: 330px !important; }
        .perfume-image { height: 320px !important; max-height: none !important; }
        .perfume-image-preview { height: 320px !important; max-height: none !important; }
        .perfume-reflection { height: 320px; }
        .perfume-name { display: flex !important; width: min(100%, 165px) !important; height: 55px !important; min-height: 55px !important; max-height: 55px !important; margin: 4px auto 0 !important; font-size: 15px !important; line-height: 1.18 !important; }
        .center-order-group .btn-presets { top: 132px !important; width: 283px !important; height: 48px !important; font-size: 15px !important; }
        .order-button-container .btn-order { bottom: 80px !important; width: 320px !important; height: 54px !important; font-size: 16px !important; }
        .side-buttons #randomBtn, .side-buttons #copyBtn { bottom: 81px !important; width: 204px !important; height: 54px !important; font-size: 14px !important; }
        .side-buttons #randomBtn { left: calc(50% - 512px) !important; }
        .side-buttons #copyBtn { right: calc(50% - 512px) !important; }
        .footer { bottom: 18px !important; left: 40px !important; }
        .footer .copyright { bottom: 18px !important; right: 40px !important; }
    }
    @media (max-width: 767px) {
        .header-content { position: relative; }
        .header-social-icons {
            display: flex !important;
            position: absolute;
            z-index: 20;
            top: 2px;
            left: 65px;
            flex-direction: column;
            gap: 0 !important;
            margin: 0;
            padding: 0;
            visibility: hidden;
            opacity: 0;
            pointer-events: none;
            transform: translateY(-8px);
            transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
        }
        .header-social-icons.is-open {
            visibility: visible;
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }
        .header-social-icons .header-social-link {
            width: 19px !important;
            height: 19px !important;
            background: transparent;
            border: 0;
            box-shadow: none;
        }
        .header-social-icons .header-social-link svg { width: 16px !important; height: 16px !important; }
        .mobile-social-toggle { position: relative; z-index: 21; }
        .promo-banner { height: 22px !important; line-height: 22px !important; font-size: 8px !important; letter-spacing: .16em; }
        .promo-banner-item { height: 22px !important; line-height: 22px !important; }
        header { height: 56px !important; padding: 0 !important; }
        header .container, .header-content { height: 100% !important; }
        header .container { padding: 0 5px !important; }
        .header-content { min-height: 0 !important; padding: 0 2px !important; }
        .mobile-social-toggle { background: none !important; border: 0 !important; border-radius: 0 !important; }
        .mobile-social-toggle svg { width: 24px !important; height: 24px !important; }
        .logo { height: 56px !important; overflow: hidden !important; }
        .logo-image { height: 113px !important; max-width: none !important; }
        .cart-btn { border-radius: 50% !important; width: 34px !important; height: 34px !important; }
        .cart-btn svg { width: 20px !important; height: 20px !important; }
        .cart-count { top: -5px !important; right: -5px !important; min-width: 14px !important; height: 14px !important; padding: 0 2px !important; font-size: 9px !important; box-shadow: none !important; }
        .center-order-group .btn-presets { box-sizing: border-box !important; width: 43% !important; max-width: none !important; height: 32px !important; min-height: 32px !important; margin: 21px auto 16px !important; font-size: 11px !important; }
        .constructor-wrapper { padding: 13px 5px 0 !important; }
        .perfume-slot { padding: 8px 0 0 !important; }
        .slot-number { top: -13px !important; width: 20px !important; height: 20px !important; font-size: 10px !important; }
        .perfume-image-container { height: 188px !important; min-height: 188px !important; max-height: 188px !important; }
        .perfume-image, .perfume-image-preview { height: 180px !important; min-height: 180px !important; max-height: 180px !important; }
        .perfume-floor { top: -5px; margin-top: 0; }
        .perfume-reflection-clip { height: 15px; }
        .perfume-reflection { height: 180px; top: 0; opacity: .18; }
        .language-btn { width: 30px !important; min-width: 30px; height: 30px; gap: 1px; font-size: 11px !important; }
        .language-btn svg { width: 9px; height: 9px; }
        .perfume-name { display: flex !important; height: 42px !important; min-height: 42px !important; max-height: 42px !important; margin: 1px 0 0 !important; font-size: 8px !important; line-height: 1.16 !important; letter-spacing: .02em; }
        .order-button-container .btn-order { box-sizing: border-box !important; width: min(58%, 320px) !important; max-width: none !important; height: 39px !important; min-height: 39px !important; margin: 35px auto 0 !important; font-size: 12px !important; }
        .side-buttons { width: 60% !important; max-width: none !important; height: 34px !important; min-height: 34px !important; margin: 20px auto 0 !important; gap: 12px !important; }
        .side-buttons .btn { flex: 1 1 0 !important; width: auto !important; max-width: none !important; min-width: 0 !important; height: 34px !important; min-height: 34px !important; max-height: 34px !important; border-radius: 999px !important; padding: 0 5px !important; font-size: 10px !important; }
        .side-buttons .btn > span:first-child { font-size: 17px !important; }
        .side-buttons .action-icon svg { width: 19px; height: 19px; }
        .side-buttons .btn > span:last-child { display: inline !important; }
        .footer { margin: 23px 14px 12px !important; flex-direction: row !important; justify-content: space-between !important; align-items: center !important; }
        .footer .copyright { display: block !important; position: static !important; font-size: 9px !important; white-space: nowrap; padding: 0 !important; border: 0 !important; margin: 0 !important; line-height: 1.2 !important; }
        .footer-nav { gap: 8px !important; }
        .footer-nav-link { font-size: 10px !important; }
        .footer-nav-link + .footer-nav-link::before { margin-right: 8px; }
    }
    @media (min-width: 768px) and (max-height: 820px) {
        .constructor-wrapper { padding-top: clamp(16px, 5vh, 86px) !important; }
        .perfume-image-container { height: clamp(190px, calc(100vh - 460px), 280px) !important; }
        .perfume-image { height: clamp(180px, calc(100vh - 470px), 272px) !important; }
        .perfume-image-preview { height: clamp(180px, calc(100vh - 470px), 272px) !important; }
        .perfume-reflection { height: clamp(180px, calc(100vh - 470px), 272px); }
        .perfume-name { height: 42px !important; min-height: 42px !important; max-height: 42px !important; font-size: 13px !important; }
    }
    @media (min-width: 768px) and (max-aspect-ratio: 4/3) {
        .constructor-wrapper { padding-top: clamp(16px, 5vh, 86px) !important; }
        .perfume-image-container { height: clamp(190px, calc(100vh - 478px), 312px) !important; }
        .perfume-image { height: clamp(180px, calc(100vh - 488px), 304px) !important; }
        .perfume-image-preview { height: clamp(180px, calc(100vh - 488px), 304px) !important; }
        .perfume-reflection { height: clamp(180px, calc(100vh - 488px), 304px) !important; }
        .perfume-name { height: 48px !important; min-height: 48px !important; max-height: 48px !important; font-size: 14px !important; }
        .center-order-group .btn-presets { top: 142px !important; }
        .order-button-container .btn-order { bottom: 55px !important; width: 38% !important; }
        .side-buttons #randomBtn, .side-buttons #copyBtn { bottom: 56px !important; width: 23% !important; }
        .side-buttons #randomBtn { left: 3% !important; }
        .side-buttons #copyBtn { right: 3% !important; }
    }
    @media (min-width: 768px) and (max-height: 620px) {
        .constructor-wrapper { padding-top: 16px !important; padding-bottom: 16px !important; }
        .perfume-grid { align-self: center !important; }
        .perfume-image-container { display: flex !important; place-items: center !important; }
    }

    /* Keep the bottle row centered while the controls follow its edges. */
    body { min-height: 100dvh; display: flex; flex-direction: column; }
    .promo-banner, header { flex: none; }
    .promo-banner { order: 0 !important; }
    header { order: 1 !important; }
    .constructor-stage {
        order: 2 !important;
        flex: 1 0 auto;
        width: 100%;
        min-height: max(410px, calc(100dvh - 170px));
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
        justify-items: center;
        position: relative;
    }
    .constructor-stage .constructor-wrapper {
        grid-row: 2;
        grid-column: 1;
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 12px !important;
        margin: 0 !important;
        align-self: center !important;
        overflow: visible !important;
    }
    .constructor-stage .order-button-container,
    .constructor-stage .center-order-group { display: contents !important; }
    .constructor-stage .btn-presets,
    .constructor-stage .btn-order {
        position: relative !important;
        inset: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: 2;
    }
    .constructor-stage .btn-presets {
        grid-row: 1;
        grid-column: 1;
        align-self: end;
        margin: 0 0 24px !important;
    }
    .constructor-stage .btn-order {
        grid-row: 3;
        grid-column: 1;
        align-self: start;
        margin: 24px 0 0 !important;
    }
    .constructor-stage .side-buttons {
        grid-row: 3;
        grid-column: 1;
        position: relative !important;
        inset: auto !important;
        align-self: start;
        pointer-events: none !important;
        z-index: 1;
    }
    .constructor-stage .side-buttons .btn { pointer-events: auto !important; }
    .footer {
        order: 3 !important;
        position: relative !important;
        inset: auto !important;
        flex: none;
        width: calc(100% - 32px);
        margin: 0 16px 12px !important;
        padding: 0 !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .footer .copyright { position: static !important; inset: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
    @media (min-width: 768px) {
        .constructor-stage .perfume-image-container { height: clamp(155px, calc(100dvh - 490px), 330px) !important; }
        .constructor-stage .perfume-image,
        .constructor-stage .perfume-image-preview,
        .constructor-stage .perfume-reflection { height: clamp(150px, calc(100dvh - 500px), 320px) !important; }
        .constructor-stage .btn-presets { width: 283px !important; height: 48px !important; }
        .constructor-stage .btn-order { width: 320px !important; height: 54px !important; }
        .constructor-stage .side-buttons {
            width: min(1024px, 100%) !important;
            max-width: none !important;
            height: 54px !important;
            margin: 24px 0 0 !important;
            display: flex !important;
            justify-content: space-between;
        }
        .constructor-stage .side-buttons #randomBtn,
        .constructor-stage .side-buttons #copyBtn { position: relative !important; inset: auto !important; left: auto !important; right: auto !important; bottom: auto !important; top: auto !important; width: 204px !important; height: 54px !important; }
        .footer { width: calc(100% - 80px); margin: 0 40px 18px !important; }
        .footer .copyright { font-size: 12px !important; }
    }
    @media (max-width: 767px) {
        .constructor-stage {
            flex: 1 0 auto;
            min-height: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: 32px;
        }
        .constructor-stage .btn-presets {
            order: 1;
            align-self: center !important;
            margin: 0 0 24px !important;
        }
        .constructor-stage .constructor-wrapper {
            order: 2;
            align-self: stretch !important;
        }
        .constructor-stage .btn-order {
            order: 3;
            align-self: center !important;
            margin: 22px 0 0 !important;
        }
        .constructor-stage .side-buttons {
            order: 4;
            align-self: center !important;
            margin: 14px 0 0 !important;
        }
        .constructor-stage .constructor-wrapper { padding: 0 5px !important; }
        .constructor-stage .perfume-image-container { height: clamp(150px, calc(100dvh - 560px), 188px) !important; min-height: 150px !important; max-height: none !important; }
        .constructor-stage .perfume-image,
        .constructor-stage .perfume-image-preview,
        .constructor-stage .perfume-reflection { height: clamp(145px, calc(100dvh - 568px), 180px) !important; min-height: 145px !important; max-height: none !important; }
        .constructor-stage .perfume-image,
        .constructor-stage .perfume-image-preview { max-width: min(74%, calc(100% - 8px)) !important; }
        .constructor-stage .perfume-name { box-sizing: border-box; width: 100% !important; padding: 0 2px !important; overflow: hidden !important; overflow-wrap: anywhere !important; font-size: 8px !important; line-height: 1.18 !important; letter-spacing: 0 !important; }
        .constructor-stage .btn-presets { align-self: center !important; margin: 0 0 24px !important; width: 43% !important; height: 32px !important; }
        .constructor-stage .btn-order { margin: 22px 0 0 !important; width: min(58%, 320px) !important; height: 39px !important; }
        .constructor-stage .side-buttons {
            width: 60% !important;
            max-width: none !important;
            height: 34px !important;
            margin: 14px 0 0 !important;
            display: flex !important;
            gap: 12px !important;
        }
        .constructor-stage .side-buttons .btn { position: relative !important; inset: auto !important; flex: 1 1 0 !important; width: auto !important; }
        .footer { width: calc(100% - 28px); margin: 0 14px 12px !important; }
        header { overflow: visible !important; }
        .header-social-icons {
            top: 0;
            left: 10%;
            gap: 6px !important;
            padding: 9px !important;
            border: 1px solid rgba(214,182,106,.55);
            border-radius: 12px;
            background: rgba(29,23,17,.97);
            box-shadow: 0 12px 24px rgba(20,14,8,.2);
            backdrop-filter: none !important;
        }
        .header-social-icons .header-social-link { width: 34px !important; height: 34px !important; border: 0 !important; }
        .header-social-icons .header-social-link svg { width: 25px !important; height: 25px !important; fill: #f6f2e9 !important; filter: none !important; }
    }
    @media (min-width: 768px) and (max-height: 680px) {
        .constructor-stage .btn-presets { margin-bottom: 44px !important; }
        .constructor-stage .btn-order,
        .constructor-stage .side-buttons { margin-top: 8px !important; }
    }
    /* Original bottles: larger, solid highlights and no faded reflection. */
    .fragrance-info-bottle,
    .perfume-info-tooltip .fragrance-info-bottle {
        height: auto !important;
        padding: 0 !important;
        margin: 8px auto 18px !important;
        background: none !important;
        overflow: visible !important;
    }
    .fragrance-info-bottle img,
    .perfume-info-tooltip .fragrance-info-bottle img {
        height: 170px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain;
        opacity: 1 !important;
        filter: contrast(1.12) saturate(1.12) !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
        -webkit-box-reflect: unset !important;
    }
    .fragrance-info-modal .fragrance-info-bottle img {
        height: 200px !important;
    }
    /* Compact header and closely grouped desktop controls. */
    header {
        background: linear-gradient(110deg, #21160f 0%, #3b291b 52%, #21160f 100%) !important;
    }
    @media (min-width: 768px) {
        header, .logo { height: 87.3px !important; }
        .logo-image { height: 166.5px !important; }
        .header-social-link { width: 38.7px !important; height: 38.7px !important; }
        .header-social-link svg { width: 19.8px !important; height: 19.8px !important; }
        .header-social-icons { gap: 19.8px !important; }
        .cart-btn { width: 52.2px !important; height: 52.2px !important; }
        .cart-btn svg { width: 26.1px !important; height: 26.1px !important; }
        .language-btn { font-size: 18px !important; }
        .constructor-stage .perfume-grid {
            width: min(90%, 1260px) !important;
            max-width: 1260px !important;
            margin-inline: auto !important;
        }
        .constructor-stage .btn-presets {
            align-self: center !important;
            margin: 0 !important;
            width: 240px !important;
            height: 40px !important;
            font-size: 14px !important;
            padding: 6px 16px !important;
        }
        .constructor-stage .side-buttons {
            width: min(752px, 96%) !important;
        }
    }
    /* Animate the image pixels themselves, leaving the surrounding header untouched. */
    .logo-image { animation: logo-soft-light 10s ease-in-out infinite; }
    .copyright-mobile { display: none; }
    @media (max-width: 767px) {
        .copyright-desktop { display: none; }
        .copyright-mobile { display: inline; }
    }
    @keyframes logo-soft-light {
        0%, 100% { filter: brightness(1) drop-shadow(0 3px 8px rgba(214, 182, 106, .3)); }
        50% { filter: brightness(1.055) drop-shadow(0 3px 8px rgba(214, 182, 106, .3)); }
    }
    @media (prefers-reduced-motion: reduce) {
        .logo-image { animation: none; }
    }
    /* The numbered-slot preview and preset fragrance dialog share one card design. */
    .perfume-info-tooltip,
    .fragrance-info-modal-content {
        box-sizing: border-box;
        width: min(92vw, 390px);
        max-width: 390px;
        padding: 22px 25px 24px;
        border: 2px solid #b99a5a;
        border-radius: 21px;
        background: radial-gradient(ellipse at 65% 8%, #29221c 0%, #12100e 38%, #080807 78%);
        box-shadow: 0 22px 55px rgba(0, 0, 0, .48), inset 0 0 30px rgba(185, 154, 90, .05);
        color: #e8e2d8;
        text-align: left;
    }
    @media (min-width: 768px) {
        .perfume-info-tooltip {
            transition: none !important;
            transform: none !important;
            visibility: hidden;
        }
        .perfume-info-tooltip.active {
            position: fixed !important;
            top: 50% !important;
            left: var(--tooltip-left, 16px) !important;
            right: auto !important;
            transform: translateY(-50%) !important;
            max-height: 88dvh !important;
            overflow-y: auto !important;
            visibility: visible;
        }
    }
    .perfume-info-tooltip .fragrance-info-bottle,
    .fragrance-info-modal-content .fragrance-info-bottle {
        height: 205px !important;
        width: 100%;
        margin: 0 0 20px !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none !important;
        overflow: hidden;
    }
    .perfume-info-tooltip .fragrance-info-bottle img,
    .fragrance-info-modal-content .fragrance-info-bottle img {
        width: auto !important;
        height: 185px !important;
        max-width: 90% !important;
        object-fit: contain;
        filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .65)) !important;
    }
    .perfume-info-tooltip .perfume-notes,
    .fragrance-info-modal-content .fragrance-notes-section {
        text-align: start;
        margin: 0;
    }
    .perfume-info-tooltip .note-layer,
    .fragrance-info-modal-content .note-layer { margin: 0 0 22px !important; }
    .perfume-info-tooltip .note-layer-title,
    .fragrance-info-modal-content .note-layer-title,
    .perfume-info-tooltip .weather-label,
    .fragrance-info-modal-content .weather-label {
        color: #d5b574 !important;
        font-size: 13px !important;
        font-weight: 700;
        letter-spacing: .1em;
        text-transform: uppercase;
        margin-bottom: 9px !important;
    }
    .perfume-info-tooltip .note-layer-content,
    .fragrance-info-modal-content .note-layer-content,
    .perfume-info-tooltip .weather-value,
    .fragrance-info-modal-content .weather-value {
        color: #e5dfd7 !important;
        font-size: 16px !important;
        line-height: 1.45 !important;
        font-weight: 400;
    }
    .perfume-info-tooltip .perfume-weather,
    .fragrance-info-modal-content .fragrance-weather-section {
        border-top: 2px solid #a9864e !important;
        padding: 20px 0 0 !important;
        margin: 0;
        text-align: center !important;
    }
    .weather-value[data-weather="Cold weather"]::before { content: '❄'; }
    .weather-value[data-weather="Hot weather"]::before { content: '☀'; }
    .weather-value[data-weather="All seasons"]::before { content: '✦'; }
    .weather-value::before {
        display: inline-block;
        color: #d5b574;
        font-size: 25px;
        line-height: 1;
        vertical-align: middle;
        margin-inline-end: 14px;
    }
    .fragrance-info-modal-content .fragrance-info-close { color: #d5b574; opacity: 1; }
    @media (min-width: 768px) {
        .perfume-info-tooltip {
            width: 304px;
            min-width: 304px;
            max-width: 304px;
            padding: 16px 19px 18px;
            border: 1px solid #ad8b50;
            border-radius: 15px;
            background: radial-gradient(circle at 50% 19%, rgba(146, 97, 43, .2), transparent 38%), linear-gradient(145deg, #1c1713, #0b0a09 70%);
            box-shadow: 0 16px 36px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 226, 167, .16);
        }
        .perfume-info-tooltip .fragrance-info-bottle {
            height: 130px !important;
            margin-bottom: 13px !important;
        }
        .perfume-info-tooltip .fragrance-info-bottle img { height: 122px !important; }
        .perfume-info-tooltip .note-layer { margin-bottom: 13px !important; }
        .perfume-info-tooltip .note-layer-title,
        .perfume-info-tooltip .weather-label {
            font-size: 11px !important;
            letter-spacing: .09em;
            margin-bottom: 4px !important;
        }
        .perfume-info-tooltip .note-layer-content,
        .perfume-info-tooltip .weather-value {
            font-size: 13px !important;
            line-height: 1.35 !important;
        }
        .perfume-info-tooltip .perfume-weather { padding-top: 12px !important; }
        .perfume-info-tooltip .weather-value::before {
            font-size: 18px;
            margin-inline-end: 8px;
        }
    }
    @media (max-width: 767px) {
        .fragrance-info-modal-content { width: min(92vw, 390px); max-width: 390px; max-height: 88dvh; padding: 22px 25px 24px; }
    }


    /* Final proportions follow the supplied desktop and phone layouts. */
    body { background: #f8efe4 url('marble-reference.jpg') center / cover fixed !important; }
    .promo-banner { background: linear-gradient(90deg,#920e0d,#bd201a 50%,#920e0d) !important; }
    header { background: linear-gradient(90deg,#21160f,#38271b 50%,#21160f) !important; }
    .constructor-stage .btn-presets,
    .constructor-stage .btn-order,
    .constructor-stage .side-buttons .btn { font-family: Arial,Helvetica,sans-serif !important; font-weight: 400 !important; letter-spacing: .015em; }
    .constructor-stage .btn-presets,
    .constructor-stage .side-buttons .btn {
        color: #5c482f !important;
        background: rgba(255,250,243,.55) !important;
        border: 1px solid #bca47d !important;
        box-shadow: 0 6px 12px rgba(93,67,38,.12), inset 0 1px rgba(255,255,255,.9) !important;
    }
    .constructor-stage .btn-presets:hover,
    .constructor-stage .side-buttons .btn:hover { background: #fff9ee !important; }
    .constructor-stage .btn-order {
        color: #fff5df !important;
        background: linear-gradient(#3e2c1c,#1d140e 78%) !important;
        border: 2px solid #cda35c !important;
        box-shadow: 0 0 0 3px #3a2819, 0 9px 18px rgba(85,55,29,.22), inset 0 1px rgba(255,238,191,.22) !important;
    }
    .constructor-stage .btn-order:hover { filter: brightness(1.18); }
    .constructor-stage .btn-presets::after { margin-left: 20px; }
    .constructor-stage .btn-presets,
    .constructor-stage .btn-order {
        border: 2px solid transparent !important;
        border-radius: 999px !important;
        background-size: 100% 100%, 250% 100% !important;
        background-position: center, 0% 50%;
        position: relative !important;
    }
    .constructor-stage .btn-presets {
        color: #3b3025 !important;
        background-image:
            linear-gradient(180deg,#faf4eb 0%,#f2e9db 65%,#e7dac9 100%),
            linear-gradient(110deg,#674322,#e6c789,#fff4c7,#946027,#e6c789,#674322) !important;
        background-origin: padding-box,border-box !important;
        background-clip: padding-box,border-box !important;
        box-shadow: 0 7px 12px rgba(77,52,29,.18), inset 0 1px rgba(255,255,255,.9) !important;
    }
    .constructor-stage .btn-order {
        color: #fff8eb !important;
        background-image:
            linear-gradient(180deg,#34271c 0%,#1a130d 78%,#21170f 100%),
            linear-gradient(110deg,#75502b,#dfb36b,#fff2bd,#986229,#dfb36b,#75502b) !important;
        background-origin: padding-box,border-box !important;
        background-clip: padding-box,border-box !important;
        box-shadow: 0 0 0 2px #3c2919, 0 8px 17px rgba(81,53,28,.24), inset 0 1px rgba(255,238,192,.18) !important;
    }
    .constructor-stage .btn-presets:hover,
    .constructor-stage .btn-order:hover { filter: brightness(1.08); }
    .constructor-stage .btn-presets::before,
    .constructor-stage .btn-order::before {
        content: '';
        position: absolute;
        inset: -1px;
        border-radius: inherit;
        padding: 2px;
        pointer-events: none;
        background: linear-gradient(90deg,#70502b 0px,#d4a355 48px,#fff6ce 96px,#ab7336 144px,#f5d692 192px,#70502b 240px);
        background-size: 240px 100%;
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        animation: gold-rim-sweep 3.5s linear infinite;
    }
    .constructor-stage .btn-presets:hover {
        background-image:
            linear-gradient(180deg,#faf4eb 0%,#f2e9db 65%,#e7dac9 100%),
            linear-gradient(110deg,#674322,#e6c789,#fff4c7,#946027,#e6c789,#674322) !important;
    }
    @keyframes gold-edge-flow {
        from { background-position: center, 0% 50%; }
        to { background-position: center, 100% 50%; }
    }
    @keyframes gold-rim-sweep {
        from { background-position: 0 50%; }
        to { background-position: 240px 50%; }
    }
    @media (prefers-reduced-motion: reduce) {
        .constructor-stage .btn-presets::before,
        .constructor-stage .btn-order::before { animation: none !important; }
    }
    .perfume-name { color: #302820 !important; letter-spacing: 0 !important; }
    .slot-number { background: #fbf3e8 !important; border: 1.5px solid #b99245 !important; color: #6a502d !important; }
    .mobile-delivery-link { display: none; }
    @media (min-width:768px) {
        .promo-banner,.promo-banner-item { height: 39px !important; line-height: 39px !important; font-size: 14px !important; }
        header,.logo { height: 121px !important; }
        .logo-image { height: 220px !important; }
        .header-social-link { width: 53px !important; height: 53px !important; }
        .header-social-icons { gap: 27px !important; }
        .cart-btn { width: 72px !important; height: 72px !important; }
        .cart-count { font-size: 16px !important; min-width: 25px !important; height: 25px !important; }
        .constructor-stage { min-height: calc(100dvh - 220px); grid-template-rows: minmax(130px,1fr) auto minmax(140px,1fr); }
        .constructor-stage .perfume-grid { width: min(92%,1740px) !important; max-width: 1740px !important; }
        .constructor-stage .perfume-image-container { height: clamp(280px,36vh,445px) !important; }
        .constructor-stage .perfume-image,
        .constructor-stage .perfume-image-preview,
        .constructor-stage .perfume-reflection { height: clamp(272px,35vh,435px) !important; }
        .constructor-stage .perfume-name { height: 65px !important; min-height: 65px !important; max-height: 65px !important; font-size: clamp(16px,1.15vw,22px) !important; }
        .constructor-stage .slot-number { width: 42px !important; height: 42px !important; font-size: 20px !important; top: -28px !important; }
        .constructor-stage .btn-presets { width: 402px !important; height: 69px !important; margin-bottom: 44px !important; font-size: 23px !important; }
        .constructor-stage .btn-order { width: 420px !important; height: 83px !important; margin-top: 26px !important; font-size: 21px !important; }
        .constructor-stage .side-buttons { width: min(1040px,95%) !important; height: 74px !important; margin-top: 29px !important; }
        .constructor-stage .side-buttons #randomBtn,
        .constructor-stage .side-buttons #copyBtn { width: 280px !important; height: 74px !important; font-size: 18px !important; }
        .footer { margin-bottom: 24px !important; }
        .footer-nav-link { font-size: 16px !important; }
        .footer .copyright { font-size: 16px !important; }
        .perfume-slot:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 46px; height: calc(100% - 94px); width: 1px; background: linear-gradient(to bottom, rgba(143, 116, 79, 0) 0%, rgba(143, 116, 79, 0.18) 12%, rgba(143, 116, 79, 0.55) 35%, rgba(143, 116, 79, 0.55) 65%, rgba(143, 116, 79, 0.18) 88%, rgba(143, 116, 79, 0) 100%); }
    }
    @media (max-width:767px) {
        .mobile-delivery-link { display: inline !important; }
        .constructor-stage .btn-presets,
        .constructor-stage .btn-order { border-width: 1px !important; }
        .constructor-stage .btn-presets::before,
        .constructor-stage .btn-order::before { inset: 0; padding: 1px; }
        .constructor-stage .btn-order {
            box-shadow: 0 0 0 1px #3c2919, 0 6px 13px rgba(81,53,28,.2), inset 0 1px rgba(255,238,192,.18) !important;
        }
        body { background-size: auto 100% !important; }
        .promo-banner,.promo-banner-item { height: 22px !important; line-height: 22px !important; font-size: clamp(7px,2vw,9px) !important; }
        header,.logo { height: 75px !important; }
        .logo-image { height: 110px !important; }
        .mobile-social-toggle svg { width: 27px !important; height: 27px !important; }
        .cart-btn { width: 40px !important; height: 40px !important; }
        .cart-count { min-width: 18px !important; height: 18px !important; font-size: 10px !important; }
        .constructor-stage { padding-top: 22px; }
        .constructor-stage .btn-presets { width: min(45%,220px) !important; height: 33px !important; margin-bottom: 45px !important; font-size: clamp(10px,2.5vw,13px) !important; }
        .constructor-stage .constructor-wrapper { padding: 0 3px !important; }
        .constructor-stage .perfume-grid { width: 100% !important; }
        .constructor-stage .perfume-image-container { height: clamp(180px,49vw,220px) !important; min-height: 180px !important; }
        .constructor-stage .perfume-image,
        .constructor-stage .perfume-image-preview,
        .constructor-stage .perfume-reflection { height: clamp(175px,48vw,215px) !important; min-height: 175px !important; }
        .constructor-stage .slot-number { width: 20px !important; height: 20px !important; top: -25px !important; font-size: 11px !important; }
        .constructor-stage .perfume-name { height: 51px !important; min-height: 51px !important; max-height: 51px !important; font-size: clamp(8px,2.1vw,11px) !important; line-height: 1.25 !important; overflow-wrap: normal !important; }
        .constructor-stage .btn-order { width: min(57%,260px) !important; height: 42px !important; min-height: 42px !important; margin-top: 30px !important; font-size: clamp(11px,2.8vw,14px) !important; }
        .constructor-stage .side-buttons { width: min(56%,245px) !important; height: 34px !important; margin-top: 18px !important; gap: 12px !important; }
        .constructor-stage .side-buttons .btn { height: 34px !important; min-height: 34px !important; font-size: clamp(9px,2.4vw,12px) !important; }
        .footer { margin: 0 12px 20px !important; width: calc(100% - 24px); }
        .footer-nav-link { font-size: clamp(8px,2.2vw,11px) !important; }
        .footer .copyright { font-size: clamp(7px,1.8vw,9px) !important; }
    }


/* Desktop composition only. Existing phone rules and scripts remain unchanged. */
@media (min-width: 768px) {
    :root body { --pc-unit: min(0.048828125vw, 0.092250923dvh); min-height: 100dvh !important; }
    :root body .promo-banner, :root body .promo-banner-item { height: calc(38 * var(--pc-unit)) !important; line-height: calc(38 * var(--pc-unit)) !important; font-size: calc(14 * var(--pc-unit)) !important; }
    :root body header, :root body .logo { height: calc(116 * var(--pc-unit)) !important; }
    :root body header .container { width: calc(1360 * var(--pc-unit)) !important; max-width: 100% !important; padding: 0 calc(30 * var(--pc-unit)) !important; }
    :root body .logo-image { height: calc(211 * var(--pc-unit)) !important; }
    :root body .header-social-link { width: calc(51 * var(--pc-unit)) !important; height: calc(51 * var(--pc-unit)) !important; }
    :root body .header-social-icons { gap: calc(26 * var(--pc-unit)) !important; }
    :root body .header-social-link svg { width: calc(21 * var(--pc-unit)) !important; height: calc(21 * var(--pc-unit)) !important; }
    :root body .cart-btn { width: calc(69 * var(--pc-unit)) !important; height: calc(69 * var(--pc-unit)) !important; }
    :root body .cart-btn svg { width: calc(25 * var(--pc-unit)) !important; height: calc(25 * var(--pc-unit)) !important; }
    :root body .language-btn { font-size: calc(18 * var(--pc-unit)) !important; }
    :root body .constructor-stage { --pc-top: calc((100% - 865 * var(--pc-unit)) / 2); display: block !important; position: relative !important; flex: 1 0 auto !important; min-height: calc(865 * var(--pc-unit)) !important; padding: 0 !important; }
    :root body .constructor-stage .constructor-wrapper { position: absolute !important; top: calc(var(--pc-top) + 164 * var(--pc-unit)) !important; left: 0 !important; width: 100% !important; max-width: none !important; height: auto !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; display: block !important; }
    :root body .constructor-stage .perfume-grid { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; width: calc(1260 * var(--pc-unit)) !important; max-width: none !important; padding: 0 !important; gap: 0 !important; margin: 0 auto !important; }
    :root body .constructor-stage .perfume-slot { padding: calc(54 * var(--pc-unit)) 0 0 !important; height: calc(492 * var(--pc-unit)) !important; min-height: 0 !important; }
    :root body .constructor-stage .slot-number { top: 0 !important; width: calc(42 * var(--pc-unit)) !important; height: calc(42 * var(--pc-unit)) !important; font-size: calc(20 * var(--pc-unit)) !important; }
    :root body .constructor-stage .perfume-image-container { height: calc(380 * var(--pc-unit)) !important; min-height: 0 !important; max-height: none !important; margin: 0 !important; }
    :root body .constructor-stage .perfume-image, :root body .constructor-stage .perfume-image-preview, :root body .constructor-stage .perfume-reflection { height: calc(380 * var(--pc-unit)) !important; min-height: 0 !important; max-height: none !important; }
    :root body .constructor-stage .perfume-name { display: flex !important; width: calc(220 * var(--pc-unit)) !important; height: calc(60 * var(--pc-unit)) !important; min-height: 0 !important; max-height: none !important; margin: calc(14 * var(--pc-unit)) auto 0 !important; font-size: calc(22 * var(--pc-unit)) !important; line-height: 1.15 !important; }
    :root body .constructor-stage .perfume-slot:not(:last-child)::after { top: calc(72 * var(--pc-unit)) !important; height: calc(405 * var(--pc-unit)) !important; }
    :root body .constructor-stage .order-button-container, :root body .constructor-stage .center-order-group { display: contents !important; }
    :root body .constructor-stage .btn-presets, :root body .constructor-stage .btn-order { position: absolute !important; left: 50% !important; right: auto !important; bottom: auto !important; transform: translateX(-50%) !important; margin: 0 !important; padding: 0 !important; min-height: 0 !important; }
    :root body .constructor-stage .btn-presets { top: calc(var(--pc-top) + 42 * var(--pc-unit)) !important; width: calc(384 * var(--pc-unit)) !important; height: calc(66 * var(--pc-unit)) !important; font-size: calc(23 * var(--pc-unit)) !important; }
    :root body .constructor-stage .btn-order { top: calc(var(--pc-top) + 710 * var(--pc-unit)) !important; width: calc(404 * var(--pc-unit)) !important; height: calc(83 * var(--pc-unit)) !important; font-size: calc(21 * var(--pc-unit)) !important; }
    :root body .constructor-stage .side-buttons { position: absolute !important; top: calc(var(--pc-top) + 715 * var(--pc-unit)) !important; left: 50% !important; right: auto !important; bottom: auto !important; transform: translateX(-50%) !important; width: calc(998 * var(--pc-unit)) !important; max-width: none !important; height: calc(73 * var(--pc-unit)) !important; margin: 0 !important; gap: 0 !important; }
    :root body .constructor-stage .side-buttons #randomBtn, :root body .constructor-stage .side-buttons #copyBtn { position: relative !important; inset: auto !important; width: calc(269 * var(--pc-unit)) !important; height: calc(73 * var(--pc-unit)) !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; font-size: calc(18 * var(--pc-unit)) !important; }
    :root body .constructor-stage .action-icon, :root body .constructor-stage .action-icon svg { width: calc(21 * var(--pc-unit)) !important; height: calc(21 * var(--pc-unit)) !important; }
    :root body .footer { box-sizing: border-box !important; width: 100% !important; height: calc(65 * var(--pc-unit)) !important; margin: 0 !important; padding: 0 calc(38 * var(--pc-unit)) !important; display: flex !important; align-items: center !important; }
    :root body .footer-nav-link, :root body .footer .copyright { font-size: calc(16 * var(--pc-unit)) !important; }
}

@media (min-width: 768px) {
 :root body .constructor-stage .slot-number { min-width: 0 !important; max-width: none !important; min-height: 0 !important; max-height: none !important; }
 :root body .constructor-stage .side-buttons .btn { flex: 0 0 auto !important; max-height: none !important; max-width: none !important; }
 :root body .header-social-icons .header-social-link, :root body .cart-btn { min-width: 0 !important; max-width: none !important; max-height: none !important; }
}


/* Touch tablets only; narrow phone and mouse-driven desktop layouts stay intact. */
@media (min-width: 768px) and (max-width: 1366px) and (pointer: coarse) {
    :root body { --pc-unit: clamp(0.65px, 0.07vw, 0.85px); --tablet-bottle: clamp(260px, 32dvh, 380px); }
    :root body header .container { width: 100% !important; padding: 0 28px !important; }
    :root body .promo-banner, :root body .promo-banner-item { height: 26px !important; line-height: 26px !important; font-size: 10px !important; }
    :root body header, :root body .logo { height: 90px !important; }
    :root body .logo-image { height: 164px !important; }
    :root body .header-social-link { width: 44px !important; height: 44px !important; }
    :root body .header-social-icons { gap: 16px !important; }
    :root body .cart-btn { width: 54px !important; height: 54px !important; }
    :root body .language-btn { font-size: 16px !important; }
    :root body .constructor-stage { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: 52px auto 56px !important; row-gap: 36px !important; align-content: start !important; justify-items: center !important; min-height: 0 !important; padding: clamp(40px, 6dvh, 72px) 0 40px !important; }
    :root body .constructor-stage .constructor-wrapper { position: relative !important; inset: auto !important; grid-row: 2 !important; grid-column: 1 !important; }
    :root body .constructor-stage .perfume-grid { width: calc(100% - 48px) !important; max-width: 1100px !important; }
    :root body .constructor-stage .perfume-slot { padding: 44px 0 0 !important; height: calc(var(--tablet-bottle) + 108px) !important; }
    :root body .constructor-stage .slot-number { width: 32px !important; height: 32px !important; font-size: 16px !important; }
    :root body .constructor-stage .perfume-image-container,
    :root body .constructor-stage .perfume-image,
    :root body .constructor-stage .perfume-image-preview,
    :root body .constructor-stage .perfume-reflection { height: var(--tablet-bottle) !important; }
    :root body .constructor-stage .perfume-name { width: 100% !important; height: 48px !important; margin-top: 12px !important; font-size: clamp(13px, 1.7vw, 18px) !important; }
    :root body .constructor-stage .perfume-slot:not(:last-child)::after { top: 58px !important; height: calc(var(--tablet-bottle) + 42px) !important; }
    :root body .constructor-stage .btn-presets,
    :root body .constructor-stage .btn-order { position: relative !important; inset: auto !important; transform: none !important; grid-column: 1 !important; align-self: center !important; }
    :root body .constructor-stage .btn-presets { grid-row: 1 !important; width: 300px !important; height: 52px !important; font-size: 18px !important; }
    :root body .constructor-stage .btn-order { grid-row: 3 !important; width: 280px !important; height: 56px !important; font-size: 17px !important; }
    :root body .constructor-stage .side-buttons { position: relative !important; inset: auto !important; transform: none !important; grid-row: 3 !important; grid-column: 1 !important; align-self: center !important; width: calc(100% - 64px) !important; max-width: 920px !important; display: flex !important; justify-content: space-between !important; gap: 0 !important; height: 52px !important; }
    :root body .constructor-stage .side-buttons #randomBtn,
    :root body .constructor-stage .side-buttons #copyBtn { width: clamp(155px, 20vw, 220px) !important; height: 52px !important; font-size: 15px !important; }
    :root body .constructor-stage .action-icon, :root body .constructor-stage .action-icon svg { width: 20px !important; height: 20px !important; }
    :root body .footer { min-height: 52px !important; height: auto !important; padding: 16px 24px !important; }
    :root body .footer-nav-link, :root body .footer .copyright { font-size: 12px !important; }
}
@media (min-width: 768px) and (max-width: 1366px) and (pointer: coarse) and (orientation: landscape) {
    :root body { --tablet-bottle: clamp(180px, 32dvh, 320px); }
    :root body .constructor-stage { row-gap: 16px !important; padding: 16px 0 !important; }
    :root body .constructor-stage .perfume-slot { height: calc(var(--tablet-bottle) + 96px) !important; }
    :root body .constructor-stage .perfume-name { height: 40px !important; margin-top: 8px !important; }
}


@media (min-width: 768px) and (max-width: 1366px) and (pointer: coarse) {
    :root body .constructor-stage .slot-number { z-index: 139 !important; }

    :root body .perfume-info-tooltip.active {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        width: min(390px, calc(100vw - 48px)) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 48px) !important;
        max-height: calc(100dvh - 48px) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        box-sizing: border-box;
    }
    :root body .perfume-slot:has(.perfume-info-tooltip.active)::before {
        content: '' !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(44, 36, 22, .7) !important;
        backdrop-filter: blur(8px) !important;
        z-index: 140 !important;
    }
    :root body .fragrance-info-modal-content {
        width: min(390px, calc(100vw - 48px)) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 48px) !important;
        max-height: calc(100dvh - 48px) !important;
        overflow-y: auto !important;
        box-sizing: border-box;
    }
}


@media (min-width: 768px) {
    .slot-number { z-index: 151 !important; }
    .perfume-info-tooltip { z-index: 150 !important; }
}
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    .perfume-info-tooltip {
        position: fixed !important;
        top: 50% !important;
        left: var(--tooltip-left, 16px) !important;
        right: auto !important;
        transform: translateY(-50%) scale(0) !important;
        transform-origin: top center;
        max-height: 88dvh !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease, visibility 0s .3s !important;
    }
    .perfume-info-tooltip.active {
        transform: translateY(-50%) scale(1) !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease, visibility 0s !important;
    }
}
@media (hover: none), (pointer: coarse) {
    .slot-number { transition: none !important; }
    .perfume-info-tooltip { transition: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .perfume-info-tooltip { transition: none !important; }
}


@property --rim-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
:root body .constructor-stage .btn-presets::before {
    background: conic-gradient(from var(--rim-angle), #70502b, #d4a355 18%, #fff6ce 27%, #ab7336 42%, #70502b 55%, #d4a355 70%, #fff6ce 80%, #70502b) !important;
    background-size: 100% 100% !important;
    animation: clockwise-gold-rim 4s linear infinite !important;
}
@keyframes clockwise-gold-rim {
    from { --rim-angle: 0deg; }
    to { --rim-angle: 360deg; }
}
:root body .constructor-stage .btn-order {
    border: 2px solid #c9a45e !important;
    background-image: linear-gradient(180deg,#34271c 0%,#1a130d 78%,#21170f 100%) !important;
    background-clip: padding-box !important;
    box-shadow: 0 8px 17px rgba(81,53,28,.24), inset 0 1px rgba(255,238,192,.18) !important;
}
:root body .constructor-stage .btn-order::before { content: none !important; }
:root body .constructor-stage .btn-presets,
:root body .constructor-stage .btn-order,
:root body .constructor-stage .side-buttons .btn {
    transition: translate .28s ease, scale .28s ease, filter .28s ease, box-shadow .28s ease !important;
}
@media (hover: hover) and (pointer: fine) {
    :root body .constructor-stage .btn-presets:hover,
    :root body .constructor-stage .btn-order:hover {
        translate: 0 -6px;
        scale: 1.025;
        filter: brightness(1.12);
        box-shadow: 0 16px 26px rgba(81,53,28,.36), inset 0 1px rgba(255,238,192,.2) !important;
    }
    :root body .constructor-stage .side-buttons .btn:hover {
        translate: 0 -5px;
        scale: 1.045;
        filter: brightness(1.08);
        box-shadow: 0 12px 22px rgba(81,53,28,.28) !important;
    }
    :root body .constructor-stage .btn:active { translate: 0 0; scale: .98; }
}
@media (prefers-reduced-motion: reduce) {
    :root body .constructor-stage .btn-presets::before { animation: none !important; }
    :root body .constructor-stage .btn { transition: none !important; translate: none !important; scale: none !important; }
}


:root body .copy-notification {
    top: auto !important;
    bottom: max(24px, env(safe-area-inset-bottom)) !important;
    left: 50% !important;
    width: max-content;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    padding: 11px 18px !important;
    border: 1px solid rgba(185,154,90,.35);
    border-radius: 12px !important;
    background: #faf7f1 !important;
    color: #51412b !important;
    box-shadow: 0 4px 16px rgba(44,36,22,.12) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px) !important;
    transition: opacity .2s ease, transform .2s ease, visibility 0s .2s !important;
}
:root body .copy-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) !important;
    transition: opacity .2s ease, transform .2s ease, visibility 0s !important;
}
@media (prefers-reduced-motion: reduce) {
    :root body .copy-notification { transition: none !important; }
}


/* Use the screen ratio so browser toolbars do not change the desktop layout. */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    :root.desktop-screen-16x10 body {
        --pc-unit: min(0.092250923dvh, 0.069444444vw);
    }
}


@media (min-width:768px) and (hover:hover) and (pointer:fine) {
    :root body header .container { width:100% !important; padding:0 clamp(24px,4vw,80px) !important; }
    :root body .constructor-stage .perfume-grid { width:87% !important; max-width:none !important; }
    :root body .perfume-info-tooltip {
        width:456px !important; min-width:456px !important; max-width:456px !important;
        padding:24px 28.5px 27px !important; border-radius:22.5px;
        left:var(--tooltip-left,16px) !important; top:var(--tooltip-top,200px) !important; transform:scale(0) !important;
        max-height:none !important; overflow:visible !important; transform-origin:top left !important;
    }
    :root body .perfume-info-tooltip.active { transform:scale(var(--desktop-card-scale,1)) !important; }
    :root body .perfume-info-tooltip .fragrance-info-bottle { height:195px !important; margin-bottom:19.5px !important; }
    :root body .perfume-info-tooltip .fragrance-info-bottle img { height:183px !important; }
    :root body .perfume-info-tooltip .note-layer { margin-bottom:19.5px !important; }
    :root body .perfume-info-tooltip .note-layer-title,
    :root body .perfume-info-tooltip .weather-label { font-size:16.5px !important; margin-bottom:6px !important; }
    :root body .perfume-info-tooltip .note-layer-content,
    :root body .perfume-info-tooltip .weather-value { font-size:19.5px !important; }
    :root body .perfume-info-tooltip .perfume-weather { padding-top:18px !important; }
    :root body .perfume-info-tooltip .weather-value::before { font-size:27px; margin-inline-end:12px; }
}
@media (max-width:767px), (pointer:coarse) {
    :root body .constructor-stage .constructor-wrapper { margin-top:var(--bottle-center-offset,0px) !important; }
}
:root body .constructor-stage .btn-presets::before {
    background:conic-gradient(from var(--rim-angle), #93703e 0deg, #93703e 265deg, #d6ad66 300deg, #fff6ce 325deg, #d6ad66 342deg, #93703e 360deg) !important;
    animation-duration:10s !important;
}


@media (min-width:768px) and (hover:hover) and (pointer:fine) {
    :root body .perfume-info-tooltip {
        transform:translateY(10px) scale(var(--desktop-card-scale,1)) !important;
        opacity:0;
        visibility:hidden;
        transition:transform .24s cubic-bezier(.2,.65,.3,1), opacity .2s ease-out, visibility 0s .24s !important;
    }
    :root body .perfume-info-tooltip.active {
        transform:translateY(0) scale(var(--desktop-card-scale,1)) !important;
        opacity:1;
        visibility:visible;
        transition:transform .3s cubic-bezier(.2,.8,.25,1), opacity .22s ease-out, visibility 0s !important;
    }
}
@media (prefers-reduced-motion:reduce) {
    :root body .perfume-info-tooltip { transition:none !important; }
}
