/* ----- СБРОС И БАЗА ----- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #f8f9fa;
            padding-bottom: 80px;
            color: #1a1a1a;
            touch-action: pan-y;
        }
        a {
            text-decoration: none;
            color: inherit;
        }

        /* ----- ШАПКА ----- */
        .header {
            background: #fff;
            padding: 12px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #eee;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 1px 4px rgba(0,0,0,0.04);
        }
        .header .logo {
            font-weight: 700;
            font-size: 18px;
            color: #000;
            letter-spacing: -0.3px;
        }
        .header .right-group {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .header .currency-toggle {
            display: flex;
            background: #f0f0f0;
            border-radius: 24px;
            padding: 4px;
            font-size: 15px;
            font-weight: 600;
        }
        .header .currency-toggle button {
            background: transparent;
            border: none;
            padding: 6px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-weight: 600;
            color: #888;
            transition: 0.15s;
            font-size: 15px;
        }
        .header .currency-toggle button .flag {
            margin-right: 4px;
        }
        .header .currency-toggle button.active {
            background: #fff;
            color: #1a1a1a;
            box-shadow: 0 1px 4px rgba(0,0,0,0.1);
        }

        /* ----- ХЛЕБНЫЕ КРОШКИ ----- */
        .breadcrumb {
            padding: 10px 16px 4px;
            font-size: 13px;
            color: #999;
            background: #f8f9fa;
            transition: transform 0.3s ease, opacity 0.3s ease;
            position: sticky;
            top: 60px;
            z-index: 90;
            transform: translateY(0);
            opacity: 1;
        }
        .breadcrumb.hidden {
            transform: translateY(-100%);
            opacity: 0;
            pointer-events: none;
        }
        .breadcrumb span {
            color: #666;
        }
        .breadcrumb .current {
            color: #1a1a1a;
            font-weight: 500;
        }
        .breadcrumb .clickable {
            cursor: pointer;
            color: #6726AB;
            text-decoration: underline;
        }

        /* ----- КОНТЕЙНЕР (на всю ширину) ----- */
        .container {
            width: 100%;
            padding: 16px;
            margin: 0 auto;
        }
        @media (min-width: 768px) {
            .container {
                padding: 16px 32px;
            }
        }

        /* ----- РАЗДЕЛЫ (3 колонки на мобилке, 4 на десктопе) ----- */
        .categories-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin-bottom: 20px;
        }
        @media (min-width: 768px) {
            .categories-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 24px;
            }
        }
        .category-card {
            aspect-ratio: 1 / 1;
            border-radius: 16px;
            overflow: hidden;
            position: relative;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            background: #fff;
            width: 100%;
        }
        .category-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .category-card .category-label {
            position: absolute;
            bottom: 12px;
            left: 12px;
            color: #fff;
            font-size: 16px;
            font-weight: 700;
            text-shadow: 0 2px 8px rgba(0,0,0,0.5);
            pointer-events: none;
            line-height: 1.2;
        }
        .category-card .category-label small {
            font-weight: 400;
            font-size: 12px;
            opacity: 0.9;
            display: block;
        }

        /* ----- СЕТКА ТОВАРОВ: всегда использует всю доступную ширину ----- */
        #productList {
            width: 100%;
            display: block;
            min-width: 0;
        }

        .product-grid {
            width: 100%;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            align-items: stretch;
        }

        /* Планшеты */
        @media (min-width: 768px) {
            .product-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 20px;
            }
        }

        /* Компьютеры */
        @media (min-width: 1100px) {
            .product-grid {
                grid-template-columns: repeat(4, minmax(0, 1fr));
                gap: 24px;
            }
        }

        /* ----- КАРТОЧКА ТОВАРА (3:4) ----- */
        .product-card {
            background: #fff;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            display: flex;
            flex-direction: column;
            padding-bottom: 12px;
            position: relative;
            cursor: pointer;
            width: 100%;
            min-width: 0;
            height: 100%;
        }
        .product-card .image-wrap {
            width: 100%;
            aspect-ratio: 3 / 4;
            background: #f4f4f6;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }
        .product-card .image-wrap .slider-container {
            width: 100%;
            height: 100%;
            display: flex;
            transition: transform 0.3s ease;
        }
        .product-card .image-wrap .slider-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            flex-shrink: 0;
        }
        .product-card .image-wrap .slider-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.8);
            border: none;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            cursor: pointer;
            color: #333;
            z-index: 3;
            box-shadow: 0 1px 4px rgba(0,0,0,0.1);
            pointer-events: auto;
        }
        .product-card .image-wrap .slider-nav.prev { left: 6px; }
        .product-card .image-wrap .slider-nav.next { right: 6px; }
        .product-card .badge {
            position: absolute;
            top: 8px;
            left: 8px;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            color: #fff;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            background: #00b341;
            z-index: 2;
            pointer-events: none;
        }
        .product-card .badge.out { background: #f44336; }
        .product-card .info {
            padding: 10px 12px 0;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        .product-card .info .name {
            font-size: 16px;
            font-weight: 700;
            line-height: 1.3;
            color: #1a1a1a;
            margin-bottom: 2px;
        }
        .product-card .info .description {
            font-size: 12px;
            color: #888;
            line-height: 1.4;
            margin-bottom: 6px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .product-card .info .price-row {
            display: flex;
            align-items: baseline;
            gap: 6px;
            margin-top: 2px;
        }
        .product-card .info .price {
            font-size: 18px;
            font-weight: 700;
            color: #1a1a1a;
        }
        .product-card .info .currency-label {
            font-size: 13px;
            font-weight: 400;
            color: #888;
        }
        .product-card .cart-controls {
            margin: 10px 12px 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .product-card .cart-controls .add-btn {
            flex: 1;
            padding: 12px 0;
            background: #6726AB;
            color: #fff;
            border: none;
            border-radius: 30px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.15s;
            text-align: center;
        }
        .product-card .cart-controls .add-btn:active { background: #4f1a87; }
        .product-card .cart-controls .add-btn.out {
            background: #e0e0e0;
            color: #999;
            pointer-events: none;
        }
        .product-card .cart-controls .qty-control {
            display: flex;
            align-items: center;
            gap: 6px;
            background: #f0f0f0;
            border-radius: 30px;
            padding: 4px 8px;
            flex: 1;
            justify-content: space-between;
        }
        .product-card .cart-controls .qty-control button {
            background: none;
            border: none;
            font-size: 22px;
            font-weight: 700;
            padding: 0 6px;
            cursor: pointer;
            color: #333;
            line-height: 1;
            min-width: 36px;
            min-height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .product-card .cart-controls .qty-control button:active { opacity: 0.5; }
        .product-card .cart-controls .qty-control input {
            width: 40px;
            text-align: center;
            font-size: 16px;
            font-weight: 600;
            border: none;
            background: transparent;
            color: #6726AB;
            padding: 4px 0;
            outline: none;
            -moz-appearance: textfield;
        }
        .product-card .cart-controls .qty-control input::-webkit-outer-spin-button,
        .product-card .cart-controls .qty-control input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .loading-placeholder {
            grid-column: 1 / -1;
            text-align: center;
            padding: 40px 0;
            color: #999;
            font-size: 14px;
        }

        /* ----- НИЖНЯЯ НАВИГАЦИЯ ----- */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #fff;
            border-top: 1px solid #e9e9e9;
            display: flex;
            align-items: center;
            justify-content: space-around;
            padding: 8px 0 env(safe-area-inset-bottom, 8px) 0;
            box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
            z-index: 200;
            height: 64px;
        }
        .bottom-nav .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 10px;
            color: #999;
            cursor: pointer;
            background: none;
            border: none;
            padding: 4px 12px;
            position: relative;
        }
        .bottom-nav .nav-item.active { color: #6726AB; }
        .bottom-nav .nav-item .icon { font-size: 22px; line-height: 1.2; }
        .bottom-nav .nav-item .label { margin-top: 2px; font-weight: 500; }
        .bottom-nav .cart-badge { position: relative; }
        .bottom-nav .cart-badge .count {
            position: absolute;
            top: -4px;
            right: -8px;
            background: #f44336;
            color: #fff;
            font-size: 10px;
            font-weight: 700;
            min-width: 18px;
            height: 18px;
            border-radius: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 5px;
            box-shadow: 0 2px 6px rgba(244,67,54,0.3);
        }

        /* ----- КОРЗИНА (выдвижная) ----- */
        .cart-sheet {
            position: fixed;
            bottom: 64px;
            left: 0;
            right: 0;
            background: #fff;
            border-radius: 20px 20px 0 0;
            box-shadow: 0 -8px 30px rgba(0,0,0,0.12);
            padding: 20px 16px 24px;
            transform: translateY(110%);
            transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
            z-index: 150;
            max-height: 70vh;
            overflow-y: auto;
            border-top: 1px solid #eee;
        }
        .cart-sheet.open { transform: translateY(0); }
        .cart-sheet .handle {
            width: 40px;
            height: 4px;
            background: #ddd;
            border-radius: 4px;
            margin: 0 auto 16px;
            cursor: grab;
            touch-action: none;
        }
        .cart-sheet .handle:active { cursor: grabbing; }
        .cart-sheet h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
        .cart-sheet .cart-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #f0f0f0;
            font-size: 14px;
        }
        .cart-sheet .cart-item:last-child { border-bottom: none; }
        .cart-sheet .cart-item .item-name { flex: 1; font-weight: 500; }
        .cart-sheet .cart-item .item-qty {
            display: flex;
            align-items: center;
            gap: 6px;
            margin: 0 12px;
        }
        .cart-sheet .cart-item .item-qty button {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: 1px solid #ddd;
            background: #fff;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #333;
        }
        .cart-sheet .cart-item .item-qty button:active { background: #f0f0f0; }
        .cart-sheet .cart-item .item-qty input {
            width: 40px;
            text-align: center;
            font-size: 16px;
            font-weight: 600;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 4px 0;
            background: #fff;
            color: #6726AB;
            outline: none;
            -moz-appearance: textfield;
        }
        .cart-sheet .cart-item .item-qty input::-webkit-outer-spin-button,
        .cart-sheet .cart-item .item-qty input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .cart-sheet .cart-item .item-price {
            font-weight: 600;
            min-width: 60px;
            text-align: right;
            font-size: 14px;
        }
        .cart-sheet .cart-total {
            display: flex;
            justify-content: space-between;
            font-size: 18px;
            font-weight: 700;
            padding: 16px 0 12px;
            border-top: 2px solid #eee;
            margin-top: 4px;
        }
        .cart-sheet .order-form input,
        .cart-sheet .order-form select {
            width: 100%;
            padding: 12px 14px;
            margin: 6px 0 10px;
            border: 1px solid #ddd;
            border-radius: 12px;
            font-size: 15px;
            background: #f8f9fa;
            transition: border 0.15s;
        }
        .cart-sheet .order-form input:focus,
        .cart-sheet .order-form select:focus {
            border-color: #6726AB;
            outline: none;
            background: #fff;
        }
        .cart-sheet .order-form .phone-row {
            display: flex;
            gap: 8px;
            align-items: center;
        }
        .cart-sheet .order-form .phone-row select {
            width: 110px;
            flex-shrink: 0;
            padding: 12px 8px;
            margin: 6px 0 10px;
            border: 1px solid #ddd;
            border-radius: 12px;
            font-size: 15px;
            background: #f8f9fa;
        }
        .cart-sheet .order-form .phone-row input { flex: 1; margin: 6px 0 10px; }
        .cart-sheet .order-form .submit-btn {
            width: 100%;
            padding: 14px;
            background: #6726AB;
            color: #fff;
            border: none;
            border-radius: 30px;
            font-size: 17px;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.15s;
            margin-top: 6px;
        }
        .cart-sheet .order-form .submit-btn:active { background: #4f1a87; }
        .cart-sheet .order-form .submit-btn:disabled {
            background: #ccc;
            pointer-events: none;
        }
        .cart-sheet .empty-cart {
            text-align: center;
            padding: 30px 0;
            color: #999;
            font-size: 15px;
        }

        /* ----- ТОСТ ----- */
        .toast {
            position: fixed;
            top: 70px;
            left: 50%;
            transform: translateX(-50%);
            background: #1a1a1a;
            color: #fff;
            padding: 10px 24px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 500;
            z-index: 300;
            opacity: 0;
            transition: opacity 0.25s ease;
            pointer-events: none;
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
            max-width: 90%;
            text-align: center;
        }
        .toast.show { opacity: 1; }
        .toast.error { background: #d32f2f; }
        .toast.success { background: #2e7d32; }

        /* ----- МОДАЛКА ПОДТВЕРЖДЕНИЯ ----- */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            justify-content: center;
            align-items: center;
            z-index: 400;
            backdrop-filter: blur(2px);
        }
        .modal-overlay.active { display: flex; }
        .modal-window {
            background: #fff;
            max-width: 400px;
            width: 90%;
            padding: 28px 24px;
            border-radius: 24px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            text-align: center;
            max-height: 90vh;
            overflow-y: auto;
        }
        .modal-window h3 {
            font-size: 22px;
            color: #2e7d32;
            margin-bottom: 12px;
        }
        .modal-window .order-details {
            text-align: left;
            background: #f8f9fa;
            padding: 16px;
            border-radius: 16px;
            margin-bottom: 16px;
            font-size: 14px;
        }
        .modal-window .order-details p { margin: 4px 0; }
        .modal-window .order-details .items-list {
            list-style: none;
            padding: 0;
            margin: 8px 0;
        }
        .modal-window .order-details .items-list li {
            padding: 4px 0;
            border-bottom: 1px solid #eee;
        }
        .modal-window .total-row {
            font-weight: 700;
            font-size: 18px;
            margin: 10px 0;
        }
        .modal-window .contact-phone {
            color: #666;
            font-size: 14px;
            margin: 12px 0 16px;
        }
        .modal-window .btn-group {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
        }
        .modal-window .btn-confirm {
            background: #2e7d32;
            color: #fff;
            border: none;
            padding: 12px 24px;
            border-radius: 30px;
            font-size: 17px;
            font-weight: 600;
            cursor: pointer;
        }
        .modal-window .btn-confirm:active { background: #1b5e20; }
        .modal-window .btn-pdf {
            background: #1976d2;
            color: #fff;
            border: none;
            padding: 12px 24px;
            border-radius: 30px;
            font-size: 17px;
            font-weight: 600;
            cursor: pointer;
        }
        .modal-window .btn-pdf:active { background: #0d47a1; }

        /* ----- МОДАЛКА ДЕТАЛЕЙ ТОВАРА ----- */
        .product-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.6);
            justify-content: center;
            align-items: center;
            z-index: 600;
            backdrop-filter: blur(4px);
            padding: 20px;
        }
        .product-modal.active { display: flex; }
        .product-modal .modal-content {
            background: #fff;
            border-radius: 24px;
            max-width: 480px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            padding: 24px 20px 20px;
            position: relative;
        }
        .product-modal .modal-content .close-btn {
            position: sticky;
            top: 0;
            float: right;
            font-size: 28px;
            cursor: pointer;
            color: #999;
            background: #fff;
            border: none;
            z-index: 10;
            padding: 0 8px;
            line-height: 1;
        }
        .product-modal .modal-content .close-btn:hover { color: #333; }
        .product-modal .modal-content .product-detail-image {
            width: 100%;
            aspect-ratio: 3/4;
            background: #f4f4f6;
            border-radius: 16px;
            overflow: hidden;
            margin-bottom: 16px;
        }
        .product-modal .modal-content .product-detail-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .product-modal .modal-content .detail-slider {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding-bottom: 8px;
            margin-bottom: 16px;
        }
        .product-modal .modal-content .detail-slider img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 12px;
            cursor: pointer;
            border: 2px solid transparent;
            flex-shrink: 0;
        }
        .product-modal .modal-content .detail-slider img.active {
            border-color: #6726AB;
        }
        .product-modal .modal-content .detail-name {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 4px;
        }
        .product-modal .modal-content .detail-description {
            font-size: 14px;
            color: #555;
            line-height: 1.6;
            margin-bottom: 12px;
            white-space: pre-wrap;
        }
        .product-modal .modal-content .detail-price {
            font-size: 22px;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 16px;
        }
        .product-modal .modal-content .add-to-cart-btn {
            width: 100%;
            padding: 14px;
            background: #6726AB;
            color: #fff;
            border: none;
            border-radius: 30px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
        }
        .product-modal .modal-content .add-to-cart-btn:active { background: #4f1a87; }
        .product-modal .modal-content .add-to-cart-btn.out {
            background: #e0e0e0;
            color: #999;
            pointer-events: none;
        }

        /* ----- БЛОК ДЛЯ PDF (скрыт) ----- */
        #pdfContent {
            position: fixed;
            left: -10000px;
            top: 0;
            width: 760px;
            background: #f4f1f7;
            padding: 0;
            font-family: Arial, Helvetica, sans-serif;
            color: #1d1725;
            z-index: 9999;
            opacity: 0;
            pointer-events: none;
            box-sizing: border-box;
        }
        #pdfContent * { box-sizing: border-box; }
        #pdfContent.show {
            left: 50%;
            transform: translateX(-50%);
            opacity: 1;
            pointer-events: auto;
        }
        .pdf-document {
            position: relative;
            width: 100%;
            min-height: 1040px;
            background: #ffffff;
            overflow: hidden;
        }
        .pdf-top-accent {
            height: 8px;
            background: linear-gradient(90deg, #582193 0%, #7d3bc4 52%, #b58adb 100%);
        }
        .pdf-inner {
            padding: 42px 46px 34px;
        }
        .pdf-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 32px;
            padding-bottom: 28px;
            border-bottom: 1px solid #ece7f1;
        }
        .pdf-brand {
            min-width: 0;
        }
        .pdf-brand-name {
            font-size: 25px;
            line-height: 1.1;
            font-weight: 800;
            letter-spacing: -0.8px;
            color: #21172b;
            margin-bottom: 7px;
        }
        .pdf-brand-subtitle {
            font-size: 12px;
            line-height: 1.45;
            font-weight: 600;
            letter-spacing: 0.7px;
            text-transform: uppercase;
            color: #8b8197;
        }
        .pdf-order-head {
            min-width: 250px;
            text-align: right;
        }
        .pdf-status {
            display: inline-block;
            margin-bottom: 11px;
            padding: 7px 11px;
            border-radius: 999px;
            background: #f1e9f8;
            color: #6523a0;
            font-size: 11px;
            line-height: 1;
            font-weight: 800;
            letter-spacing: 0.25px;
        }
        .pdf-order-number {
            font-size: 22px;
            line-height: 1.15;
            font-weight: 800;
            letter-spacing: -0.5px;
            color: #1d1725;
            margin-bottom: 6px;
        }
        .pdf-order-date {
            font-size: 12px;
            line-height: 1.4;
            color: #8a8194;
        }
        .pdf-section {
            margin-top: 27px;
        }
        .pdf-section-title {
            margin-bottom: 12px;
            font-size: 12px;
            line-height: 1.2;
            font-weight: 800;
            letter-spacing: 0.7px;
            text-transform: uppercase;
            color: #7d7289;
        }
        .pdf-client-card {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1px;
            overflow: hidden;
            border: 1px solid #ece7f1;
            border-radius: 16px;
            background: #ece7f1;
        }
        .pdf-client-item {
            min-height: 72px;
            padding: 15px 17px;
            background: #fbf9fc;
        }
        .pdf-client-item.pdf-client-wide {
            grid-column: 1 / -1;
        }
        .pdf-client-label {
            display: block;
            margin-bottom: 5px;
            font-size: 10px;
            line-height: 1.2;
            font-weight: 700;
            letter-spacing: 0.45px;
            text-transform: uppercase;
            color: #968da0;
        }
        .pdf-client-value {
            display: block;
            font-size: 15px;
            line-height: 1.35;
            font-weight: 700;
            color: #251c2e;
            overflow-wrap: anywhere;
        }
        .pdf-table {
            overflow: hidden;
            border: 1px solid #e9e3ee;
            border-radius: 16px;
            background: #fff;
        }
        .pdf-table-head,
        .pdf-item-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 74px 104px 112px;
            align-items: center;
            column-gap: 12px;
        }
        .pdf-table-head {
            min-height: 42px;
            padding: 0 16px;
            background: #f7f3fa;
            border-bottom: 1px solid #e9e3ee;
            font-size: 10px;
            line-height: 1.2;
            font-weight: 800;
            letter-spacing: 0.45px;
            text-transform: uppercase;
            color: #84788f;
        }
        .pdf-table-head > div:nth-child(n+2),
        .pdf-item-row > div:nth-child(n+2) {
            text-align: right;
        }
        .pdf-item-row {
            min-height: 62px;
            padding: 12px 16px;
            border-bottom: 1px solid #eee9f2;
        }
        .pdf-item-row:last-child {
            border-bottom: none;
        }
        .pdf-item-name {
            min-width: 0;
            padding-right: 8px;
            font-size: 14px;
            line-height: 1.35;
            font-weight: 750;
            color: #21182a;
            overflow-wrap: anywhere;
        }
        .pdf-item-qty,
        .pdf-item-unit {
            font-size: 12px;
            line-height: 1.3;
            font-weight: 650;
            color: #675c72;
            white-space: nowrap;
        }
        .pdf-item-sum {
            font-size: 14px;
            line-height: 1.2;
            font-weight: 800;
            color: #24192e;
            white-space: nowrap;
        }
        .pdf-total-box {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
            margin-top: 18px;
            padding: 18px 20px;
            border: 1px solid #e6daef;
            border-radius: 16px;
            background: linear-gradient(135deg, #faf7fd 0%, #f3ebf9 100%);
        }
        .pdf-total-label {
            font-size: 13px;
            line-height: 1.25;
            font-weight: 700;
            color: #6f637b;
        }
        .pdf-total-value {
            font-size: 25px;
            line-height: 1;
            font-weight: 850;
            letter-spacing: -0.6px;
            color: #5b2091;
            white-space: nowrap;
        }
        .pdf-thankyou {
            margin-top: 26px;
            padding: 18px 20px;
            border-radius: 16px;
            background: #f8f6f9;
        }
        .pdf-thankyou-title {
            margin-bottom: 5px;
            font-size: 15px;
            line-height: 1.3;
            font-weight: 800;
            color: #2a2033;
        }
        .pdf-thankyou-text {
            margin: 0;
            font-size: 12px;
            line-height: 1.55;
            color: #786f82;
        }
        .pdf-footer {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 24px;
            margin-top: 27px;
            padding-top: 17px;
            border-top: 1px solid #ece7f1;
        }
        .pdf-footer-contact {
            font-size: 12px;
            line-height: 1.55;
            color: #6e6478;
        }
        .pdf-footer-contact strong {
            color: #33253f;
        }
        .pdf-footer-note {
            max-width: 250px;
            text-align: right;
            font-size: 10px;
            line-height: 1.5;
            color: #9b92a4;
        }

        /* ----- АДАПТИВ ДЛЯ МАЛЕНЬКИХ ЭКРАНОВ ----- */
        @media (max-width: 699px) {
    body[data-page="home"] .home-new-panel .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media (max-width: 380px) {
            .product-card .info .price { font-size: 16px; }
            .product-card .info .name { font-size: 14px; }
            .bottom-nav .nav-item .icon { font-size: 20px; }
            .bottom-nav .nav-item .label { font-size: 9px; }
            .categories-grid { gap: 8px; }
            .category-card .category-label { font-size: 14px; }
        }

        /* ============================================================
           ДОРАБОТКИ V2
           ============================================================ */

        /* На компьютере каталог не растягивается бесконечно */
        .container {
            max-width: 1480px;
        }
        @media (min-width: 900px) {
            .container {
                padding: 20px 28px;
            }
        }

        /* Главные группы и разделы: крупнее на телефоне */
        .categories-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }
        @media (min-width: 700px) {
            .categories-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 18px;
            }
        }
        @media (min-width: 1100px) {
            .categories-grid {
                grid-template-columns: repeat(4, minmax(0, 1fr));
                gap: 22px;
            }
        }

        /* Описание в каталоге: несколько строк, длинные слова не ломают карточку */
        .product-card .info .description {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: break-word;
            min-height: calc(1.4em * 2);
        }

        /* Полное описание внутри товара может быть любой длины */
        .product-modal .modal-content {
            max-width: 560px;
        }
        .product-modal .modal-content .detail-description {
            white-space: pre-wrap;
            overflow-wrap: anywhere;
            word-break: break-word;
            max-width: 100%;
        }

        /* Картинки листаются свайпом/перетаскиванием */
        .product-card .image-wrap,
        .product-modal .product-detail-image {
            touch-action: pan-y;
            user-select: none;
            -webkit-user-select: none;
            cursor: grab;
        }
        .product-card .image-wrap:active,
        .product-modal .product-detail-image:active {
            cursor: grabbing;
        }
        .product-card .image-wrap img,
        .product-modal .product-detail-image img {
            user-select: none;
            -webkit-user-drag: none;
        }
        .product-card .image-wrap .slider-nav {
            display: none !important;
        }
        .slider-dots {
            position: absolute;
            left: 50%;
            bottom: 8px;
            transform: translateX(-50%);
            display: flex;
            gap: 5px;
            z-index: 3;
            pointer-events: none;
        }
        .slider-dots .dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: rgba(255,255,255,0.55);
            box-shadow: 0 1px 3px rgba(0,0,0,0.25);
        }
        .slider-dots .dot.active {
            width: 16px;
            border-radius: 8px;
            background: #fff;
        }

        .detail-image-counter {
            position: absolute;
            right: 10px;
            bottom: 10px;
            background: rgba(0,0,0,0.55);
            color: #fff;
            border-radius: 18px;
            padding: 5px 9px;
            font-size: 12px;
            font-weight: 600;
            pointer-events: none;
        }
        .product-modal .modal-content .detail-slider {
            scrollbar-width: thin;
            overscroll-behavior-x: contain;
        }

        /* Управление количеством прямо во всплывающей карточке */
        .detail-cart-controls {
            width: 100%;
            margin-top: 4px;
        }
        .detail-cart-controls .add-btn {
            width: 100%;
            padding: 14px;
            background: #6726AB;
            color: #fff;
            border: none;
            border-radius: 30px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
        }
        .detail-cart-controls .add-btn.out {
            background: #e0e0e0;
            color: #999;
            pointer-events: none;
        }
        .detail-cart-controls .qty-control {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            background: #f0f0f0;
            border-radius: 30px;
            padding: 5px 10px;
        }
        .detail-cart-controls .qty-control button {
            width: 46px;
            height: 46px;
            border: none;
            background: transparent;
            border-radius: 50%;
            font-size: 26px;
            font-weight: 700;
            cursor: pointer;
        }
        .detail-cart-controls .qty-control input {
            flex: 1;
            min-width: 0;
            width: 80px;
            text-align: center;
            border: none;
            background: transparent;
            color: #6726AB;
            font-size: 20px;
            font-weight: 700;
            outline: none;
            -moz-appearance: textfield;
        }
        .detail-cart-controls .qty-control input::-webkit-outer-spin-button,
        .detail-cart-controls .qty-control input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        /* Нижняя навигация: две действительно кликабельные половины */
        .bottom-nav {
            justify-content: stretch;
            padding: 0 0 env(safe-area-inset-bottom, 0px);
            height: calc(68px + env(safe-area-inset-bottom, 0px));
        }
        .bottom-nav .nav-item {
            flex: 1 1 50%;
            width: 50%;
            height: 68px;
            justify-content: center;
            padding: 6px 0;
            border-radius: 0;
        }
        .bottom-nav .nav-item + .nav-item {
            border-left: 1px solid #e5e5e5;
        }
        .bottom-nav .nav-item .icon-wrap {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 36px;
            min-height: 28px;
        }
        .bottom-nav .cart-badge .count {
            top: -5px;
            right: -9px;
        }

        /* Корзину легче ухватить и закрыть свайпом вниз */
        .cart-sheet {
            bottom: calc(68px + env(safe-area-inset-bottom, 0px));
            max-height: 76vh;
            overscroll-behavior: contain;
            will-change: transform;
        }
        .cart-drag-zone {
            margin: -12px -16px 4px;
            padding: 12px 16px 6px;
            cursor: grab;
            touch-action: none;
        }
        .cart-drag-zone:active {
            cursor: grabbing;
        }
        .cart-sheet .handle {
            width: 58px;
            height: 5px;
            margin-bottom: 10px;
        }
        .cart-sheet .cart-drag-zone h3 {
            margin-bottom: 8px;
        }

        @media (max-width: 480px) {
            .container {
                padding-left: 10px;
                padding-right: 10px;
            }
            .product-grid {
                gap: 10px;
            }
            .product-card .info {
                padding-left: 10px;
                padding-right: 10px;
            }
            .product-card .cart-controls {
                margin-left: 10px;
                margin-right: 10px;
            }
            .product-card .info .description {
                -webkit-line-clamp: 3;
                font-size: 12px;
            }
        }


        /* ============================================================
           ДОРАБОТКИ V3 — визуал главной, разделов и корзины
           ============================================================ */
        .view-header {
            display: block;
            background: linear-gradient(135deg, #ffffff 0%, #f5f1fb 100%);
            border: 1px solid rgba(103, 38, 171, 0.08);
            border-radius: 24px;
            padding: 22px 22px 18px;
            margin-bottom: 18px;
            box-shadow: 0 10px 30px rgba(38, 20, 72, 0.06);
        }
        .view-header.hidden { display: none; }
        .view-header .kicker {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 7px 12px;
            border-radius: 999px;
            background: rgba(103, 38, 171, 0.08);
            color: #6726AB;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.3px;
            text-transform: uppercase;
            margin-bottom: 12px;
        }
        .view-header .title {
            font-size: clamp(24px, 3vw, 34px);
            font-weight: 800;
            line-height: 1.1;
            letter-spacing: -0.03em;
            margin-bottom: 8px;
            color: #171220;
        }
        .view-header .subtitle {
            max-width: 760px;
            color: #5b5566;
            font-size: 15px;
            line-height: 1.6;
        }
        .view-header .meta {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 16px;
        }
        .view-header .meta-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #fff;
            border: 1px solid rgba(103, 38, 171, 0.10);
            border-radius: 999px;
            padding: 9px 12px;
            font-size: 13px;
            color: #3b3447;
            box-shadow: 0 4px 12px rgba(0,0,0,0.03);
        }
        .category-card {
            border: 1px solid rgba(103, 38, 171, 0.10);
            box-shadow: 0 10px 26px rgba(0,0,0,0.06);
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
            min-height: 210px;
            display: flex;
            align-items: stretch;
        }
        .category-card::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(16,12,20,0.06) 0%, rgba(16,12,20,0.18) 28%, rgba(16,12,20,0.72) 100%);
            z-index: 1;
        }
        .category-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 16px 34px rgba(0,0,0,0.10);
            border-color: rgba(103, 38, 171, 0.22);
        }
        .category-card img {
            transform: scale(1.01);
            transition: transform 0.35s ease;
        }
        .category-card:hover img {
            transform: scale(1.05);
        }
        .category-card .category-topline {
            position: absolute;
            top: 14px;
            left: 14px;
            z-index: 2;
            display: inline-flex;
            padding: 6px 10px;
            border-radius: 999px;
            background: rgba(255,255,255,0.16);
            backdrop-filter: blur(8px);
            color: #fff;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }
        .category-card .category-label {
            left: 14px;
            right: 14px;
            bottom: 14px;
            z-index: 2;
            font-size: 22px;
            line-height: 1.1;
            letter-spacing: -0.02em;
        }
        .category-card .category-label small {
            margin-top: 8px;
            font-size: 13px;
            line-height: 1.4;
            opacity: 0.95;
        }
        .main-group-card { min-height: 250px; }
        .section-card { min-height: 220px; }
        .cart-sheet {
            border-radius: 24px 24px 0 0;
            box-shadow: 0 -14px 40px rgba(16, 12, 20, 0.14);
            background: linear-gradient(180deg, #ffffff 0%, #fcfbfe 100%);
        }
        .cart-sheet-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
        }
        .cart-eyebrow {
            display: inline-block;
            margin-bottom: 6px;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.35px;
            text-transform: uppercase;
            color: #6726AB;
        }
        .cart-sheet .cart-drag-zone h3 {
            font-size: 24px;
            margin-bottom: 4px;
            line-height: 1.1;
        }
        .cart-subtitle {
            margin: 0;
            font-size: 13px;
            line-height: 1.5;
            color: #6d6779;
            max-width: 420px;
        }
        .cart-close-btn {
            width: 38px;
            height: 38px;
            border: none;
            border-radius: 50%;
            background: #f3eff8;
            color: #5c4779;
            font-size: 18px;
            cursor: pointer;
            flex-shrink: 0;
        }
        .cart-summary {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin: 6px 0 16px;
        }
        .cart-summary-card {
            background: #f7f3fb;
            border: 1px solid rgba(103, 38, 171, 0.08);
            border-radius: 18px;
            padding: 12px 14px;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .cart-summary-label {
            font-size: 12px;
            color: #7a7387;
        }
        .cart-summary-card strong {
            font-size: 22px;
            line-height: 1;
            color: #1c1526;
        }
        .cart-sheet .cart-item {
            padding: 14px 0;
            align-items: flex-start;
            gap: 12px;
        }
        .cart-sheet .cart-item .item-name {
            line-height: 1.45;
            color: #1d1826;
        }
        .cart-sheet .cart-item .item-name small {
            display: inline-block;
            margin-top: 4px;
            color: #7a7387;
            font-size: 12px;
            font-weight: 500;
        }
        .cart-sheet .cart-item .item-price {
            min-width: 84px;
            font-size: 15px;
            color: #22192f;
            white-space: nowrap;
        }
        .cart-sheet .cart-item .item-qty {
            background: #f6f2fb;
            padding: 4px 6px;
            border-radius: 999px;
            margin: 0;
        }
        .cart-sheet .cart-item .item-qty button {
            border: none;
            background: #fff;
            box-shadow: 0 2px 6px rgba(0,0,0,0.04);
        }
        .cart-total {
            margin-top: 14px;
            padding: 18px 0 14px;
            border-top: 1px solid #ece7f3;
            border-bottom: 1px solid #ece7f3;
        }
        .cart-total span:first-child {
            color: #655d73;
            font-size: 14px;
            font-weight: 600;
        }
        .cart-total span:last-child {
            font-size: 24px;
            color: #1c1526;
        }
        .order-form {
            margin-top: 18px;
            background: #fff;
            border: 1px solid #efebf5;
            border-radius: 22px;
            padding: 18px 16px 16px;
            box-shadow: 0 8px 22px rgba(0,0,0,0.04);
        }
        .order-form-head {
            margin-bottom: 14px;
        }
        .order-form-kicker {
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.35px;
            text-transform: uppercase;
            color: #6726AB;
            margin-bottom: 4px;
        }
        .order-form-head h4 {
            font-size: 20px;
            margin: 0 0 6px;
            color: #1c1526;
        }
        .order-form-head p {
            margin: 0;
            color: #6d6779;
            font-size: 13px;
            line-height: 1.5;
        }
        .form-group {
            margin-bottom: 12px;
        }
        .form-group label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: #433a52;
            margin-bottom: 6px;
        }
        .order-form-note {
            margin: 10px 2px 0;
            font-size: 12px;
            line-height: 1.45;
            color: #80788d;
            text-align: center;
        }
        .empty-cart {
            background: linear-gradient(180deg, #faf7fd 0%, #f5effb 100%);
            border: 1px dashed rgba(103, 38, 171, 0.18);
            border-radius: 22px;
            padding: 24px 18px;
        }
        .empty-cart-icon {
            font-size: 28px;
            margin-bottom: 10px;
        }
        .empty-cart-title {
            font-size: 18px;
            font-weight: 700;
            color: #1d1826;
            margin-bottom: 6px;
        }
        .empty-cart-text {
            color: #6d6779;
            font-size: 14px;
            line-height: 1.5;
        }
        @media (max-width: 720px) {
            .view-header {
                padding: 18px 16px 16px;
                border-radius: 20px;
            }
            .view-header .subtitle {
                font-size: 14px;
            }
            .category-card,
            .main-group-card,
            .section-card {
                min-height: 170px;
            }
            .category-card .category-label {
                font-size: 18px;
            }
            .cart-sheet .cart-item {
                flex-wrap: wrap;
            }
            .cart-sheet .cart-item .item-name {
                width: 100%;
            }
            .cart-sheet .cart-item .item-price {
                margin-left: auto;
            }
            .cart-summary-card strong {
                font-size: 20px;
            }
        }


        /* ============================================================
           ДОРАБОТКИ V4 — упрощение визуала и фиксированные зоны
           ============================================================ */
        .view-header {
            padding: 12px 16px 11px;
            border-radius: 18px;
            margin-bottom: 14px;
        }
        .view-header .kicker {
            padding: 5px 10px;
            font-size: 10px;
            margin-bottom: 8px;
        }
        .view-header .title {
            font-size: clamp(18px, 2.2vw, 24px);
            margin-bottom: 4px;
            line-height: 1.12;
        }
        .view-header .subtitle {
            font-size: 13px;
            line-height: 1.45;
            max-width: 720px;
        }
        .view-header .meta {
            margin-top: 10px;
            gap: 8px;
        }
        .view-header .meta-chip {
            padding: 6px 10px;
            font-size: 12px;
        }

        .category-card {
            min-height: 190px;
            border-radius: 18px;
            overflow: hidden;
        }
        .main-group-card { min-height: 220px; }
        .section-card { min-height: 195px; }
        .category-card .category-label {
            left: 12px;
            right: 12px;
            bottom: 12px;
            font-size: 20px;
        }
        .category-card .category-label small {
            margin-top: 6px;
            font-size: 12px;
        }

        /* Убираем лишнюю надпись сверху слева */
        .category-card .category-topline {
            display: none !important;
        }

        /* Корзина: зона перетаскивания закреплена */
        .cart-sheet {
            padding-top: 0;
            overflow-y: auto;
        }
        .cart-drag-zone {
            position: sticky;
            top: 0;
            z-index: 10;
            background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.96) 100%);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid #efeaf5;
            padding-top: 10px;
            padding-bottom: 10px;
            margin-bottom: 10px;
        }
        .cart-sheet-header {
            align-items: center;
        }
        .cart-sheet .cart-drag-zone h3 {
            font-size: 20px;
            margin-bottom: 2px;
        }
        .cart-subtitle {
            font-size: 12px;
            line-height: 1.4;
        }
        .cart-close-btn {
            width: 34px;
            height: 34px;
            font-size: 16px;
        }
        .cart-summary {
            margin-top: 0;
            margin-bottom: 14px;
        }
        .cart-summary-card {
            padding: 10px 12px;
            border-radius: 16px;
        }
        .cart-summary-card strong {
            font-size: 18px;
        }
        .order-form {
            border-radius: 18px;
        }

        /* Модалка товара — более аккуратный дизайн */
        .product-modal .modal-content {
            max-width: 600px;
            border-radius: 26px;
            padding: 18px 18px 0;
            box-shadow: 0 26px 70px rgba(0,0,0,0.24);
            background: linear-gradient(180deg, #ffffff 0%, #fcfbfe 100%);
            scrollbar-gutter: stable;
        }
        .product-modal .modal-content .close-btn {
            position: sticky;
            top: 0;
            right: 0;
            float: right;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: rgba(255,255,255,0.96);
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        }
        .product-modal .modal-content .product-detail-image {
            border-radius: 20px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.08);
            margin-bottom: 14px;
        }
        .product-modal .modal-content .detail-slider {
            gap: 10px;
            margin-bottom: 14px;
        }
        .product-modal .modal-content .detail-slider img {
            width: 72px;
            height: 72px;
            border-radius: 14px;
            border: 2px solid #ece7f2;
            background: #fff;
        }
        .product-modal .modal-content .detail-slider img.active {
            border-color: #6726AB;
            box-shadow: 0 6px 16px rgba(103, 38, 171, 0.20);
        }
        .product-modal .modal-content .detail-name {
            font-size: 24px;
            line-height: 1.15;
            letter-spacing: -0.02em;
            margin-bottom: 8px;
            color: #191421;
            padding-right: 44px;
        }
        .product-modal .modal-content .detail-description {
            font-size: 14px;
            line-height: 1.6;
            color: #564f62;
            margin-bottom: 14px;
            padding-bottom: 10px;
        }
        .detail-footer-bar {
            position: sticky;
            bottom: 0;
            z-index: 12;
            margin: 0 -18px;
            padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px));
            background: rgba(255,255,255,0.98);
            backdrop-filter: blur(12px);
            border-top: 1px solid #efeaf5;
            box-shadow: 0 -8px 24px rgba(0,0,0,0.06);
        }
        .product-modal .modal-content .detail-price {
            font-size: 24px;
            margin-bottom: 10px;
            color: #1b1424;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .product-modal .modal-content .detail-price::before {
            content: 'Цена';
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.35px;
            color: #7a7387;
        }
        .detail-cart-controls {
            margin-top: 0;
        }
        .detail-cart-controls .add-btn {
            padding: 15px;
            border-radius: 16px;
            font-size: 17px;
            box-shadow: 0 10px 24px rgba(103, 38, 171, 0.18);
        }
        .detail-cart-controls .qty-control {
            border-radius: 18px;
            background: #f5f1fa;
            border: 1px solid #ece7f2;
            padding: 6px 8px;
        }
        .detail-cart-controls .qty-control button {
            width: 44px;
            height: 44px;
            background: #fff;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
            font-size: 24px;
        }
        .detail-cart-controls .qty-control input {
            font-size: 18px;
        }
        .detail-image-counter {
            bottom: 12px;
            right: 12px;
            background: rgba(23,19,31,0.65);
            padding: 6px 10px;
        }

        @media (max-width: 720px) {
            .view-header {
                padding: 10px 12px;
                border-radius: 16px;
            }
            .view-header .title {
                font-size: 18px;
            }
            .view-header .subtitle {
                font-size: 12px;
            }
            .main-group-card { min-height: 180px; }
            .section-card, .category-card { min-height: 165px; }
            .category-card .category-label {
                font-size: 17px;
            }
            .product-modal .modal-content {
                padding: 16px 14px 0;
                border-radius: 22px 22px 0 0;
                max-height: 92vh;
            }
            .product-modal {
                align-items: flex-end;
                padding: 0;
            }
            .detail-footer-bar {
                margin: 0 -14px;
                padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
            }
            .product-modal .modal-content .detail-name {
                font-size: 21px;
            }
            .product-modal .modal-content .detail-price {
                font-size: 22px;
            }
        }


        /* ============================================================
           ДОРАБОТКИ V5 — корзина, типографика товаров, сумма позиции
           ============================================================ */

        /* В корзине закреплена ТОЛЬКО полоска для свайпа */
        .cart-sheet {
            overflow-y: auto;
        }
        .cart-drag-zone {
            position: sticky;
            top: 0;
            z-index: 30;
            height: 30px;
            min-height: 30px;
            margin: 0 -16px 4px;
            padding: 8px 16px 7px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,0.96);
            backdrop-filter: blur(10px);
            border-bottom: 0;
            cursor: grab;
            touch-action: none;
        }
        .cart-drag-zone:active { cursor: grabbing; }
        .cart-sheet .cart-drag-zone .handle {
            width: 58px;
            height: 5px;
            margin: 0;
            background: #d4cedc;
            border-radius: 999px;
        }
        .cart-sheet-header {
            position: static;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
        }
        .cart-close-btn {
            position: relative;
            z-index: 2;
            flex-shrink: 0;
            touch-action: manipulation;
        }
        .cart-close-btn:hover { background: #ebe4f3; color: #342347; }
        .cart-close-btn:active { transform: scale(0.94); }

        /* Более аккуратная типографика карточек товара */
        .product-card {
            border: 1px solid rgba(30, 22, 40, 0.06);
            box-shadow: 0 7px 22px rgba(31, 22, 43, 0.055);
            transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
        }
        @media (hover: hover) {
            .product-card:hover {
                transform: translateY(-3px);
                box-shadow: 0 13px 30px rgba(31, 22, 43, 0.09);
                border-color: rgba(103, 38, 171, 0.12);
            }
        }
        .product-card .info {
            padding-top: 12px;
        }
        .product-card .info .name {
            font-size: 17px;
            font-weight: 750;
            line-height: 1.28;
            letter-spacing: -0.018em;
            color: #1b1622;
            margin-bottom: 6px;
            overflow-wrap: anywhere;
        }
        .product-card .info .description {
            font-size: 13px;
            font-weight: 400;
            line-height: 1.52;
            color: #716a7c;
            margin-bottom: 9px;
            min-height: calc(1.52em * 2);
        }
        .product-card .info .price-row {
            margin-top: auto;
            padding-top: 2px;
            gap: 5px;
            align-items: baseline;
        }
        .product-card .info .price {
            font-size: 21px;
            font-weight: 800;
            letter-spacing: -0.025em;
            color: #17121e;
        }
        .product-card .info .currency-label {
            font-size: 12px;
            font-weight: 650;
            color: #8b8495;
            letter-spacing: 0.02em;
        }
        .product-card .badge {
            font-size: 10px;
            font-weight: 750;
            letter-spacing: 0.25px;
            padding: 5px 9px;
            background: rgba(33, 164, 87, 0.92);
            backdrop-filter: blur(8px);
        }
        .product-card .badge.out { background: rgba(225, 68, 68, 0.92); }

        /* Сумма именно по текущему товару */
        .product-line-total {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin: 0 0 8px;
            padding: 8px 10px;
            border-radius: 12px;
            background: #f7f3fb;
            border: 1px solid rgba(103, 38, 171, 0.08);
            color: #746c80;
            font-size: 11px;
            line-height: 1.25;
        }
        .product-line-total strong {
            color: #6726AB;
            font-size: 13px;
            font-weight: 800;
            white-space: nowrap;
        }
        .product-card .cart-controls .qty-control {
            background: #f5f2f8;
            border: 1px solid #ece7f1;
            padding: 4px 6px;
        }
        .product-card .cart-controls .qty-control button {
            width: 34px;
            min-width: 34px;
            height: 34px;
            min-height: 34px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 2px 7px rgba(0,0,0,0.045);
            font-size: 20px;
        }
        .product-card .cart-controls .qty-control input {
            color: #55208c;
            font-size: 15px;
            font-weight: 750;
        }
        .product-card .cart-controls .add-btn {
            border-radius: 14px;
            font-size: 14px;
            font-weight: 700;
            box-shadow: 0 7px 18px rgba(103, 38, 171, 0.13);
        }

        /* В открытой карточке сумма позиции более заметна */
        .detail-footer-bar .product-line-total {
            margin-bottom: 9px;
            padding: 9px 12px;
            border-radius: 14px;
            font-size: 12px;
        }
        .detail-footer-bar .product-line-total strong {
            font-size: 15px;
        }

        /* Небольшая визуальная доработка изображения товара */
        .product-card .image-wrap {
            background: linear-gradient(180deg, #f7f6f8 0%, #f1eff4 100%);
        }
        .product-card .image-wrap::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 34px;
            background: linear-gradient(180deg, transparent, rgba(20,15,26,0.06));
            pointer-events: none;
            z-index: 1;
        }
        .product-card .slider-dots { z-index: 4; }

        @media (max-width: 600px) {
            .product-card .info .name {
                font-size: 15px;
                line-height: 1.3;
                margin-bottom: 5px;
            }
            .product-card .info .description {
                font-size: 12px;
                line-height: 1.48;
                margin-bottom: 7px;
            }
            .product-card .info .price {
                font-size: 18px;
            }
            .product-line-total {
                padding: 7px 8px;
                font-size: 10px;
            }
            .product-line-total strong {
                font-size: 12px;
            }
        }


        /* ============================================================
           ДОРАБОТКИ V6 — peek-карусели, компактный header, валютный слайдер
           ============================================================ */

        /* Шапка остаётся доступной даже при открытой корзине */
        .header {
            z-index: 260;
        }

        /* Плавный переключатель валюты */
        .header .currency-toggle {
            position: relative;
            isolation: isolate;
            display: grid;
            grid-template-columns: 1fr 1fr;
            min-width: 184px;
            padding: 4px;
            overflow: hidden;
            background: #eeeaf3;
            border: 1px solid rgba(103, 38, 171, 0.08);
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
        }
        .header .currency-toggle::before {
            content: '';
            position: absolute;
            z-index: 0;
            top: 4px;
            bottom: 4px;
            left: 4px;
            width: calc(50% - 4px);
            border-radius: 20px;
            background: #fff;
            box-shadow: 0 4px 14px rgba(37, 22, 54, 0.12);
            transition: transform 0.34s cubic-bezier(0.22, 0.8, 0.2, 1), box-shadow 0.25s ease;
        }
        .header .currency-toggle.rub-active::before {
            transform: translateX(100%);
        }
        .header .currency-toggle button {
            position: relative;
            z-index: 1;
            width: 100%;
            padding: 7px 10px;
            background: transparent !important;
            box-shadow: none !important;
            color: #8a8392;
            transition: color 0.28s ease, transform 0.28s ease;
        }
        .header .currency-toggle button.active {
            color: #241a30;
            transform: scale(1.025);
        }
        .header .currency-toggle button .flag {
            display: inline-block;
            transition: transform 0.28s ease;
        }
        .header .currency-toggle button.active .flag {
            transform: scale(1.12);
        }

        /* Верхний информационный блок ещё компактнее */
        .view-header {
            padding: 8px 12px 8px;
            margin-bottom: 10px;
            border-radius: 14px;
            box-shadow: 0 5px 16px rgba(38, 20, 72, 0.035);
        }
        .view-header .kicker {
            padding: 3px 8px;
            margin-bottom: 5px;
            font-size: 9px;
        }
        .view-header .title {
            margin-bottom: 2px;
            font-size: clamp(16px, 1.8vw, 20px);
            line-height: 1.12;
        }
        .view-header .subtitle {
            font-size: 11px;
            line-height: 1.35;
        }
        .view-header .meta {
            margin-top: 6px;
            gap: 6px;
        }
        .view-header .meta-chip {
            padding: 4px 8px;
            font-size: 10px;
            min-height: 25px;
        }
        .view-header button.meta-chip {
            appearance: none;
            font-family: inherit;
            cursor: pointer;
            color: #6726AB;
            background: #fff;
            transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
        }
        .view-header button.meta-chip:hover {
            background: #f8f3fc;
            box-shadow: 0 5px 12px rgba(103,38,171,0.09);
            transform: translateY(-1px);
        }
        .view-header button.meta-chip:active {
            transform: scale(0.97);
        }

        /* Каталог: карусель с видимыми соседними изображениями */
        .product-card .image-wrap {
            background: #ece9ef;
            overflow: hidden;
        }
        .product-card .image-wrap .slider-container {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: stretch;
            gap: 8px;
            padding: 0 8%;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-snap-type: x mandatory;
            scroll-padding-inline: 8%;
            scroll-behavior: smooth;
            scrollbar-width: none;
            overscroll-behavior-x: contain;
            transform: none !important;
            transition: none;
            cursor: grab;
        }
        .product-card .image-wrap .slider-container::-webkit-scrollbar {
            display: none;
        }
        .product-card .image-wrap .slider-container:active {
            cursor: grabbing;
        }
        .product-card .image-wrap .slider-container img {
            flex: 0 0 84%;
            width: 84%;
            height: 100%;
            scroll-snap-align: center;
            scroll-snap-stop: always;
            object-fit: cover;
            border-radius: 12px;
            opacity: 0.72;
            transform: scale(0.94);
            transition: transform 0.24s ease, opacity 0.24s ease, filter 0.24s ease;
            filter: saturate(0.88);
        }
        .product-card .image-wrap .slider-container img.carousel-active {
            opacity: 1;
            transform: scale(1);
            filter: saturate(1);
        }
        .product-card .image-wrap .slider-dots {
            bottom: 9px;
            padding: 4px 7px;
            border-radius: 999px;
            background: rgba(20, 15, 27, 0.25);
            backdrop-filter: blur(7px);
        }

        /* Открытая карточка: аналогичная карусель */
        .product-modal .modal-content .product-detail-image {
            aspect-ratio: 3 / 4;
            background: #ece9ef;
            overflow: hidden;
            padding: 0;
        }
        .detail-swipe-track {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: stretch;
            gap: 12px;
            padding: 0 7%;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-snap-type: x mandatory;
            scroll-padding-inline: 7%;
            scroll-behavior: smooth;
            scrollbar-width: none;
            overscroll-behavior-x: contain;
            cursor: grab;
        }
        .detail-swipe-track::-webkit-scrollbar { display: none; }
        .detail-swipe-track:active { cursor: grabbing; }
        .detail-swipe-track img {
            flex: 0 0 86%;
            width: 86%;
            height: 100%;
            object-fit: cover;
            scroll-snap-align: center;
            scroll-snap-stop: always;
            border-radius: 17px;
            opacity: 0.72;
            transform: scale(0.95);
            transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
            filter: saturate(0.9);
            user-select: none;
            -webkit-user-drag: none;
        }
        .detail-swipe-track img.carousel-active {
            opacity: 1;
            transform: scale(1);
            filter: saturate(1);
        }
        .detail-image-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            min-height: 28px;
            margin: -4px 2px 10px;
        }
        .detail-image-counter {
            position: static !important;
            right: auto !important;
            bottom: auto !important;
            transform: none !important;
            display: inline-flex;
            align-items: center;
            min-height: 25px;
            padding: 4px 9px;
            border-radius: 999px;
            background: #f3eff7;
            color: #5e536c;
            font-size: 11px;
            font-weight: 700;
            box-shadow: none;
        }
        .detail-swipe-hint {
            font-size: 11px;
            color: #8a8392;
        }

        /* В модалке при добавленном товаре показываем только итоговую сумму */
        .product-modal .modal-content .detail-price {
            margin-bottom: 9px;
        }
        .product-modal .modal-content .detail-price::before {
            content: attr(data-label);
        }
        .detail-cart-controls .product-line-total {
            display: none !important;
        }

        @media (max-width: 720px) {
            .header .currency-toggle {
                min-width: 166px;
            }
            .header .currency-toggle button {
                padding-left: 7px;
                padding-right: 7px;
                font-size: 13px;
            }
            .view-header {
                padding: 7px 10px;
            }
            .view-header .subtitle {
                display: none;
            }
            .view-header .meta {
                margin-top: 5px;
            }
            .product-card .image-wrap .slider-container {
                gap: 6px;
                padding-inline: 7%;
                scroll-padding-inline: 7%;
            }
            .product-card .image-wrap .slider-container img {
                flex-basis: 86%;
                width: 86%;
                border-radius: 10px;
            }
            .detail-swipe-track {
                gap: 9px;
                padding-inline: 6%;
                scroll-padding-inline: 6%;
            }
            .detail-swipe-track img {
                flex-basis: 88%;
                width: 88%;
                border-radius: 15px;
            }
        }


        /* ============================================================
           V7 — единая типографика, чистая корзина, новая карусель
           ============================================================ */
        :root {
            --ui-text: #1b1720;
            --ui-muted: #746e7b;
            --ui-soft: #f6f3f8;
            --ui-border: #ece7f0;
            --ui-purple: #6726AB;
            --ui-radius: 16px;
            --fs-xs: 11px;
            --fs-sm: 12px;
            --fs-body: 14px;
            --fs-md: 15px;
            --fs-lg: 18px;
            --fs-xl: 22px;
        }

        body { color: var(--ui-text); }

        /* Единая типографика */
        .header .logo { font-size: 17px; line-height: 1.2; }
        .breadcrumb { font-size: var(--fs-sm); }
        .view-header .kicker { font-size: 9px; }
        .view-header .title { font-size: 18px; line-height: 1.2; }
        .view-header .subtitle { font-size: var(--fs-xs); line-height: 1.35; }
        .view-header .meta-chip { font-size: var(--fs-xs); line-height: 1; }

        .category-card .category-label { font-size: 19px; line-height: 1.15; }
        .category-card .category-label small { font-size: var(--fs-sm); line-height: 1.35; }

        .product-card .info .name {
            font-size: 16px;
            line-height: 1.3;
            font-weight: 750;
            letter-spacing: -0.01em;
        }
        .product-card .info .description {
            font-size: var(--fs-sm);
            line-height: 1.5;
            color: var(--ui-muted);
        }
        .product-card .info .price-row {
            display: flex;
            align-items: baseline;
            justify-content: flex-start;
            gap: 5px;
        }
        .product-card .info .price { font-size: 19px; line-height: 1; font-weight: 800; }
        .product-card .info .currency-label { font-size: var(--fs-xs); line-height: 1; }
        .product-card .badge { font-size: 9px; line-height: 1; }
        .product-card .cart-controls .add-btn { font-size: 14px; line-height: 1.2; }
        .product-line-total { font-size: var(--fs-xs); }
        .product-line-total strong { font-size: var(--fs-sm); }

        .product-modal .modal-content .detail-name {
            font-size: 22px;
            line-height: 1.22;
            font-weight: 800;
            letter-spacing: -0.018em;
        }
        .product-modal .modal-content .detail-description {
            font-size: var(--fs-body);
            line-height: 1.6;
        }
        .product-modal .modal-content .detail-price {
            font-size: 22px;
            line-height: 1.1;
        }
        .product-modal .modal-content .detail-price::before {
            font-size: var(--fs-xs);
            line-height: 1;
        }

        /* Новая карусель каталога: полноразмерный слайд, соседний виден только во время движения */
        .product-card .image-wrap {
            overflow: hidden;
            background: #f2f0f4;
        }
        .product-card .image-wrap::after { display: none; }
        .product-card .image-wrap .slider-container {
            width: 100%;
            height: 100%;
            display: flex;
            gap: 0;
            padding: 0;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-snap-type: x mandatory;
            scroll-padding: 0;
            scrollbar-width: none;
            overscroll-behavior-x: contain;
            scroll-behavior: smooth;
            transform: none !important;
            cursor: grab;
        }
        .product-card .image-wrap .slider-container::-webkit-scrollbar { display: none; }
        .product-card .image-wrap .slider-container:active { cursor: grabbing; }
        .product-card .image-wrap .slider-container img {
            flex: 0 0 100%;
            width: 100%;
            height: 100%;
            border-radius: 0;
            opacity: 1;
            transform: none;
            filter: none;
            object-fit: cover;
            scroll-snap-align: start;
            scroll-snap-stop: always;
            transition: none;
        }
        .product-card .image-wrap .slider-container img.carousel-active {
            opacity: 1;
            transform: none;
            filter: none;
        }
        .slider-dots { display: none !important; }
        .catalog-image-count {
            position: absolute;
            right: 9px;
            bottom: 9px;
            z-index: 5;
            display: inline-flex;
            align-items: center;
            gap: 3px;
            min-height: 24px;
            padding: 0 8px;
            border-radius: 999px;
            background: rgba(20, 16, 25, 0.54);
            backdrop-filter: blur(7px);
            color: #fff;
            font-size: 10px;
            font-weight: 700;
            line-height: 1;
            pointer-events: none;
        }
        .catalog-image-count .sep { opacity: .55; }

        /* Новая карусель открытого товара */
        .product-modal .modal-content .product-detail-image {
            background: #f3f1f5;
            border-radius: 18px;
            box-shadow: none;
            overflow: hidden;
        }
        .detail-swipe-track {
            width: 100%;
            height: 100%;
            display: flex;
            gap: 0;
            padding: 0;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-snap-type: x mandatory;
            scroll-padding: 0;
            scrollbar-width: none;
            overscroll-behavior-x: contain;
            scroll-behavior: smooth;
            cursor: grab;
        }
        .detail-swipe-track::-webkit-scrollbar { display: none; }
        .detail-swipe-track img,
        .detail-swipe-track img.carousel-active {
            flex: 0 0 100%;
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 0;
            opacity: 1;
            transform: none;
            filter: none;
            scroll-snap-align: start;
            scroll-snap-stop: always;
            background: #f3f1f5;
        }
        .detail-image-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            min-height: 30px;
            margin: 8px 2px 12px;
        }
        .detail-image-counter {
            position: static !important;
            display: inline-flex;
            align-items: center;
            min-width: 38px;
            min-height: 24px;
            padding: 0 8px;
            border-radius: 999px;
            background: var(--ui-soft);
            color: #655e6e;
            font-size: var(--fs-xs);
            font-weight: 700;
            line-height: 1;
        }
        .product-modal .modal-content .detail-slider {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 6px;
            margin: 0;
            padding: 0;
            overflow: visible;
        }
        .detail-dot {
            width: 7px;
            height: 7px;
            padding: 0;
            border: 0;
            border-radius: 999px;
            background: #d7d1dc;
            cursor: pointer;
            transition: width .2s ease, background .2s ease, transform .2s ease;
        }
        .detail-dot.active {
            width: 18px;
            background: var(--ui-purple);
        }
        .detail-swipe-hint { display: none !important; }

        /* Корзина: только нужная информация */
        .cart-sheet {
            padding-left: 16px;
            padding-right: 16px;
            background: #fff;
        }
        .cart-drag-zone {
            position: sticky;
            top: 0;
            z-index: 30;
            height: 28px;
            min-height: 28px;
            margin: 0 -16px 2px;
            padding: 8px 16px 6px;
            background: rgba(255,255,255,.98);
            backdrop-filter: blur(10px);
        }
        .cart-sheet .cart-drag-zone .handle {
            width: 48px;
            height: 4px;
            background: #d5cfda;
        }
        .cart-sheet-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin: 2px 0 10px;
        }
        .cart-sheet-header h3 {
            margin: 0;
            font-size: 20px;
            line-height: 1.2;
            font-weight: 800;
            letter-spacing: -0.01em;
        }
        .cart-close-btn {
            width: 34px;
            height: 34px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 0;
            border-radius: 50%;
            background: var(--ui-soft);
            color: #51495a;
            font-size: 15px;
            line-height: 1;
        }
        .cart-summary, .cart-eyebrow, .cart-subtitle,
        .order-form-head, .order-form-kicker, .order-form-note { display: none !important; }

        .cart-sheet .cart-item {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 9px;
            padding: 12px 0;
            border-bottom: 1px solid var(--ui-border);
        }
        .cart-item-top {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 14px;
        }
        .cart-sheet .cart-item .item-name {
            flex: 1;
            min-width: 0;
            font-size: var(--fs-body);
            line-height: 1.35;
            font-weight: 650;
            color: var(--ui-text);
            overflow-wrap: anywhere;
        }
        .cart-sheet .cart-item .item-price {
            flex-shrink: 0;
            min-width: auto;
            font-size: var(--fs-body);
            line-height: 1;
            font-weight: 800;
            color: var(--ui-text);
            white-space: nowrap;
        }
        .cart-sheet .cart-item .item-qty {
            width: fit-content;
            display: flex;
            align-items: center;
            gap: 3px;
            margin: 0;
            padding: 3px;
            border-radius: 999px;
            background: var(--ui-soft);
        }
        .cart-sheet .cart-item .item-qty button {
            width: 30px;
            height: 30px;
            border: 0;
            border-radius: 50%;
            background: #fff;
            font-size: 18px;
            line-height: 1;
            box-shadow: 0 1px 4px rgba(0,0,0,.04);
        }
        .cart-sheet .cart-item .item-qty input {
            width: 38px;
            padding: 0;
            border: 0;
            background: transparent;
            font-size: 14px;
            line-height: 30px;
            font-weight: 750;
        }
        .cart-total {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 16px;
            margin-top: 8px;
            padding: 14px 0;
            border-top: 0;
            border-bottom: 1px solid var(--ui-border);
        }
        .cart-total span:first-child {
            font-size: var(--fs-body);
            line-height: 1.2;
            font-weight: 650;
            color: #5f5867;
        }
        .cart-total span:last-child {
            font-size: 20px;
            line-height: 1;
            font-weight: 850;
            color: var(--ui-text);
            white-space: nowrap;
        }
        .order-form {
            margin-top: 14px;
            padding: 0 0 4px;
            border: 0;
            border-radius: 0;
            box-shadow: none;
            background: transparent;
        }
        .order-form h4 {
            margin: 0 0 10px;
            font-size: 16px;
            line-height: 1.2;
            font-weight: 800;
        }
        .form-group { margin-bottom: 10px; }
        .form-group label {
            margin-bottom: 5px;
            font-size: var(--fs-sm);
            line-height: 1.2;
            font-weight: 650;
        }
        .cart-sheet .order-form input,
        .cart-sheet .order-form select {
            height: 44px;
            margin: 0;
            padding: 0 12px;
            border: 1px solid var(--ui-border);
            border-radius: 12px;
            background: #faf9fb;
            font-size: var(--fs-body);
            line-height: 1;
        }
        .cart-sheet .order-form .phone-row {
            gap: 7px;
            align-items: stretch;
        }
        .cart-sheet .order-form .phone-row select {
            width: 105px;
            height: 44px;
            margin: 0;
            padding: 0 8px;
            font-size: var(--fs-body);
        }
        .cart-sheet .order-form .phone-row input { margin: 0; }
        .cart-sheet .order-form .submit-btn {
            width: 100%;
            min-height: 46px;
            margin-top: 2px;
            padding: 0 16px;
            border-radius: 14px;
            font-size: var(--fs-md);
            line-height: 1;
            font-weight: 750;
        }
        .empty-cart {
            padding: 20px 14px;
            border-radius: 16px;
        }
        .empty-cart-icon { font-size: 24px; margin-bottom: 7px; }
        .empty-cart-title { font-size: 16px; line-height: 1.2; margin-bottom: 4px; }
        .empty-cart-text { font-size: var(--fs-sm); line-height: 1.4; }

        /* Нижняя навигация — одинаковая геометрия текста */
        .bottom-nav .nav-item .icon { font-size: 21px; line-height: 1; }
        .bottom-nav .nav-item .label {
            margin-top: 5px;
            font-size: var(--fs-xs);
            line-height: 1;
            font-weight: 650;
        }

        @media (max-width: 600px) {
            .header .logo { font-size: 16px; }
            .product-card .info .name { font-size: 14px; }
            .product-card .info .description { font-size: 11px; }
            .product-card .info .price { font-size: 17px; }
            .product-modal .modal-content .detail-name { font-size: 20px; }
            .product-modal .modal-content .detail-description { font-size: 13px; }
            .product-modal .modal-content .detail-price { font-size: 20px; }
            .category-card .category-label { font-size: 17px; }
            .cart-sheet-header h3 { font-size: 18px; }
            .cart-total span:last-child { font-size: 19px; }
        }

    
        /* ============================================================
           ДОРАБОТКИ V8 — удобство каталога, корзины и единый визуал
           ============================================================ */
        body {
            background: #f7f5f9;
            color: #1f1728;
        }
        .container { max-width: 1440px; }

        /* Верхний блок делаем спокойным и минимальным */
        .view-header {
            background: transparent;
            border: none;
            box-shadow: none;
            padding: 2px 0 8px;
            margin-bottom: 8px;
        }
        .view-header .title {
            font-size: clamp(20px, 2vw, 26px);
            font-weight: 800;
            line-height: 1.15;
            letter-spacing: -0.03em;
            color: #1d1725;
            margin: 0;
        }
        .view-header .meta {
            margin-top: 8px;
            gap: 8px;
        }
        .view-header .kicker,
        .view-header .subtitle { display: none !important; }
        .view-header .meta-chip {
            padding: 7px 11px;
            min-height: 32px;
            font-size: 12px;
            border-radius: 999px;
            background: #ffffff;
            border: 1px solid rgba(103,38,171,0.10);
            color: #5e526c;
            box-shadow: 0 4px 12px rgba(27, 16, 42, 0.04);
        }
        .view-header .meta-chip-back {
            color: #6726AB;
            font-weight: 700;
        }

        /* Главные карточки каталога */
        .product-grid {
            gap: 18px;
        }
        .product-card {
            background: #fff;
            border-radius: 18px;
            border: 1px solid rgba(34, 24, 46, 0.08);
            box-shadow: 0 10px 28px rgba(29, 18, 41, 0.05);
            overflow: hidden;
        }
        .product-card .image-wrap {
            position: relative;
            background: linear-gradient(180deg, #f4f2f6 0%, #efedf3 100%);
        }
        .product-card .image-wrap::after {
            background: linear-gradient(180deg, transparent 0%, rgba(17, 12, 22, 0.08) 100%);
        }
        .slider-container,
        .detail-swipe-track {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }
        .slider-container img,
        .detail-swipe-track img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transform: scale(1.02);
            transition: opacity 0.24s ease, transform 0.24s ease;
            pointer-events: none;
        }
        .slider-container img.carousel-active,
        .detail-swipe-track img.carousel-active {
            opacity: 1;
            transform: scale(1);
            pointer-events: auto;
        }
        .product-card .image-wrap .slider-container img { object-fit: cover; }
        .detail-swipe-track img { object-fit: contain; }
        .image-nav,
        .detail-image-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 5;
            width: 34px;
            height: 34px;
            border: none;
            border-radius: 50%;
            background: rgba(255,255,255,0.92);
            color: #352843;
            font-size: 20px;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 6px 16px rgba(18, 12, 25, 0.12);
            cursor: pointer;
            transition: transform 0.15s ease, background 0.15s ease, opacity 0.2s ease;
        }
        .image-nav:hover,
        .detail-image-nav:hover { background: #fff; transform: translateY(-50%) scale(1.04); }
        .image-nav.prev,
        .detail-image-nav.prev { left: 10px; }
        .image-nav.next,
        .detail-image-nav.next { right: 10px; }
        .slider-dots {
            position: absolute;
            left: 50%;
            bottom: 10px;
            transform: translateX(-50%);
            display: flex;
            gap: 6px;
            z-index: 5;
        }
        .slider-dots .dot,
        .detail-slider .detail-dot {
            width: 7px;
            height: 7px;
            padding: 0;
            border: none;
            border-radius: 999px;
            background: rgba(255,255,255,0.56);
            cursor: pointer;
            transition: all 0.18s ease;
        }
        .slider-dots .dot.active,
        .detail-slider .detail-dot.active {
            width: 18px;
            background: #ffffff;
        }
        .catalog-image-count { display: none !important; }

        .product-card .badge {
            top: 10px;
            left: 10px;
            border-radius: 999px;
            padding: 5px 10px;
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 0.03em;
        }
        .product-card .info {
            padding: 14px 14px 10px;
            gap: 0;
        }
        .product-card .info .name {
            font-size: 16px;
            font-weight: 750;
            line-height: 1.3;
            letter-spacing: -0.02em;
            margin-bottom: 6px;
            min-height: calc(1.3em * 2);
            color: #1d1626;
        }
        .product-card .info .description {
            font-size: 13px;
            line-height: 1.48;
            color: #756d82;
            margin-bottom: 10px;
            min-height: calc(1.48em * 2);
        }
        .product-card .info .price-row {
            display: flex;
            align-items: baseline;
            justify-content: flex-start;
            gap: 6px;
        }
        .product-card .info .price {
            font-size: 22px;
            font-weight: 800;
            line-height: 1;
            letter-spacing: -0.03em;
            color: #16111d;
        }
        .product-card .info .currency-label {
            font-size: 12px;
            font-weight: 700;
            color: #8c8298;
        }
        .product-card .cart-controls {
            padding: 0 14px 14px;
        }
        .product-card .cart-controls .add-btn {
            width: 100%;
            min-height: 46px;
            border-radius: 15px;
            background: linear-gradient(180deg, #7a35c7 0%, #6726AB 100%);
            color: #fff;
            font-size: 15px;
            font-weight: 750;
            box-shadow: 0 10px 22px rgba(103, 38, 171, 0.16);
        }
        .product-card .cart-controls .add-btn:hover {
            filter: brightness(1.02);
        }
        .catalog-cart-state {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .product-card .cart-controls .qty-control.qty-control--catalog {
            width: 100%;
            display: grid;
            grid-template-columns: 46px minmax(0, 1fr) 46px;
            align-items: center;
            gap: 10px;
            padding: 6px;
            border-radius: 16px;
            background: #f6f2fb;
            border: 1px solid #ece5f5;
        }
        .product-card .cart-controls .qty-control.qty-control--catalog button {
            width: 46px;
            min-width: 46px;
            height: 46px;
            min-height: 46px;
            border-radius: 14px;
            background: #fff;
            color: #3d3050;
            font-size: 24px;
            font-weight: 700;
        }
        .product-card .cart-controls .qty-control.qty-control--catalog input {
            width: 100%;
            min-width: 0;
            text-align: center;
            font-size: 18px;
            font-weight: 800;
            color: #5b2294;
        }
        .catalog-line-total {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 4px;
            font-size: 12px;
            line-height: 1.3;
            color: #7a7188;
        }
        .catalog-line-total strong {
            color: #1c1526;
            font-size: 15px;
            font-weight: 800;
        }

        /* Корзина — построчно и понятнее */
        .cart-sheet {
            background: linear-gradient(180deg, #ffffff 0%, #fbf9fd 100%);
            border-radius: 24px 24px 0 0;
        }
        .cart-drag-zone {
            background: #fff;
        }
        .cart-sheet-header h3 {
            font-size: 20px;
            line-height: 1.15;
            margin: 0;
        }
        .cart-subtitle {
            font-size: 12px;
            color: #7b7188;
        }
        .cart-item {
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 14px 0;
            border-bottom: 1px solid #eee8f4;
        }
        .cart-item-top,
        .cart-item-bottom {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
        }
        .cart-item-top .item-main {
            min-width: 0;
            flex: 1 1 auto;
        }
        .cart-item .item-name {
            display: block;
            font-size: 15px;
            font-weight: 700;
            line-height: 1.35;
            color: #1d1626;
            margin: 0;
        }
        .cart-item .item-meta,
        .cart-item .item-unit {
            font-size: 12px;
            line-height: 1.4;
            color: #867c93;
        }
        .cart-item .item-price {
            flex-shrink: 0;
            font-size: 16px;
            font-weight: 800;
            line-height: 1.2;
            color: #17111f;
            white-space: nowrap;
            text-align: right;
        }
        .cart-item .item-qty {
            margin-left: auto;
            display: grid;
            grid-template-columns: 36px 48px 36px;
            gap: 6px;
            align-items: center;
            padding: 4px;
            border-radius: 14px;
            background: #f7f3fb;
            border: 1px solid #ece5f5;
        }
        .cart-item .item-qty button {
            width: 36px;
            min-width: 36px;
            height: 36px;
            min-height: 36px;
            border: none;
            border-radius: 12px;
            background: #fff;
            font-size: 20px;
            color: #3c3150;
            box-shadow: 0 2px 8px rgba(15, 11, 22, 0.05);
        }
        .cart-item .item-qty input {
            width: 48px;
            min-width: 48px;
            text-align: center;
            border: none;
            background: transparent;
            font-size: 16px;
            font-weight: 800;
            color: #5b2294;
        }
        .cart-total {
            padding: 16px 0 14px;
            border-top: 1px solid #eee8f4;
            border-bottom: 1px solid #eee8f4;
        }
        .cart-total span:first-child {
            font-size: 14px;
            font-weight: 650;
            color: #695f76;
        }
        .cart-total span:last-child {
            font-size: 22px;
            font-weight: 800;
            color: #17111f;
        }
        .order-form {
            background: #fff;
            border-radius: 18px;
            border: 1px solid #efe9f5;
            box-shadow: 0 8px 20px rgba(24, 18, 36, 0.04);
        }
        .order-form-head h4,
        .detail-name {
            color: #1c1526;
        }
        .form-group label,
        .order-form-note {
            color: #736a80;
        }

        /* Карточка товара — аккуратнее и современнее */
        .product-modal .modal-content {
            background: linear-gradient(180deg, #ffffff 0%, #fcfbfd 100%);
            border-radius: 26px;
            box-shadow: 0 30px 80px rgba(18, 12, 26, 0.24);
        }
        .product-modal .modal-content .product-detail-image {
            position: relative;
            background: linear-gradient(180deg, #f6f4f8 0%, #efedf3 100%);
            border-radius: 22px;
            overflow: hidden;
        }
        .detail-image-meta {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin: 10px 0 14px;
        }
        .detail-image-counter {
            position: static;
            background: transparent;
            color: #81768f;
            padding: 0;
            font-size: 12px;
            font-weight: 650;
        }
        .detail-slider {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin: 0;
        }
        .detail-image-nav {
            width: 40px;
            height: 40px;
            font-size: 22px;
        }
        .product-modal .modal-content .detail-name {
            font-size: 24px;
            font-weight: 800;
            line-height: 1.18;
            letter-spacing: -0.03em;
            margin-bottom: 8px;
        }
        .product-modal .modal-content .detail-description {
            font-size: 14px;
            line-height: 1.6;
            color: #62596f;
        }
        .detail-footer-bar {
            background: rgba(255,255,255,0.98);
            border-top: 1px solid #eee8f4;
        }
        .product-modal .modal-content .detail-price {
            font-size: 24px;
            font-weight: 800;
            color: #17111f;
        }
        .product-modal .modal-content .detail-price::before {
            color: #867c93;
        }
        .detail-cart-controls .qty-control {
            background: #f6f2fb;
            border: 1px solid #ece5f5;
            border-radius: 18px;
        }
        .detail-cart-controls .qty-control button {
            border-radius: 14px;
        }
        .detail-cart-controls .add-btn {
            border-radius: 16px;
            background: linear-gradient(180deg, #7a35c7 0%, #6726AB 100%);
        }

        @media (max-width: 720px) {
            .product-grid { gap: 12px; }
            .product-card .info { padding: 12px 12px 9px; }
            .product-card .cart-controls { padding: 0 12px 12px; }
            .product-card .info .name { font-size: 14px; }
            .product-card .info .description { font-size: 12px; }
            .product-card .info .price { font-size: 19px; }
            .product-card .cart-controls .qty-control.qty-control--catalog {
                grid-template-columns: 42px minmax(0, 1fr) 42px;
            }
            .product-card .cart-controls .qty-control.qty-control--catalog button {
                width: 42px; min-width: 42px; height: 42px; min-height: 42px;
            }
            .catalog-line-total strong { font-size: 14px; }
            .cart-item-top, .cart-item-bottom { gap: 8px; }
            .cart-item .item-name { font-size: 14px; }
            .cart-item .item-price { font-size: 15px; }
            .cart-item .item-qty { grid-template-columns: 34px 44px 34px; }
            .cart-item .item-qty button { width: 34px; min-width: 34px; height: 34px; min-height: 34px; }
            .cart-item .item-qty input { width: 44px; min-width: 44px; font-size: 15px; }
            .view-header .title { font-size: 18px; }
            .detail-image-nav { width: 36px; height: 36px; }
        }


        /* ============================================================
           ДОРАБОТКИ V9 — лаконичный каталог, drag-карусели и типографика
           ============================================================ */
        :root {
            --bg-page: #f6f4f8;
            --bg-card: #ffffff;
            --bg-soft: #f3f0f6;
            --stroke-soft: rgba(34, 24, 46, 0.08);
            --text-main: #1d1725;
            --text-muted: #776f84;
            --text-soft: #91889d;
            --accent: #6d2bb6;
            --accent-dark: #582193;
            --shadow-card: 0 10px 30px rgba(22, 16, 31, 0.05);
        }
        body { background: var(--bg-page); color: var(--text-main); }
        .container { padding-top: 10px; }

        /* Главный информационный блок ещё спокойнее */
        .view-header { margin-bottom: 6px; }
        .view-header .title {
            font-size: clamp(18px, 1.8vw, 24px);
            font-weight: 800;
            letter-spacing: -0.03em;
            line-height: 1.12;
        }
        .view-header .meta { margin-top: 6px; }
        .view-header .meta-chip {
            background: #fff;
            border: 1px solid rgba(109,43,182,0.10);
            color: var(--text-muted);
            box-shadow: none;
            font-size: 11px;
            padding: 6px 10px;
        }
        .view-header .meta-chip-back { color: var(--accent); }

        /* Разделы */
        .category-card {
            border-radius: 18px;
            border: 1px solid rgba(34,24,46,0.08);
            box-shadow: var(--shadow-card);
        }
        .category-card .category-label {
            font-size: 20px;
            font-weight: 800;
            letter-spacing: -0.025em;
        }
        .category-card .category-label small {
            font-size: 12px;
            line-height: 1.35;
        }

        /* Каталог как в аккуратном маркетплейсе */
        .product-grid { gap: 16px; }
        .product-card {
            border-radius: 18px;
            background: var(--bg-card);
            border: 1px solid var(--stroke-soft);
            box-shadow: var(--shadow-card);
            overflow: hidden;
        }
        .product-card .image-wrap {
            aspect-ratio: 1 / 1.16;
            background: linear-gradient(180deg, #f5f3f7 0%, #efecf2 100%);
        }
        .product-card .image-wrap::after { height: 26px; }
        .slider-container,
        .detail-swipe-track {
            position: relative;
            width: 100%;
            height: 100%;
            touch-action: pan-y;
            cursor: grab;
            user-select: none;
            -webkit-user-select: none;
        }
        .slider-container:active,
        .detail-swipe-track:active { cursor: grabbing; }
        .slider-container img,
        .detail-swipe-track img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transform: translateX(18px) scale(0.985);
            transition: opacity 0.22s ease, transform 0.22s ease;
            pointer-events: none;
        }
        .slider-container img.carousel-active,
        .detail-swipe-track img.carousel-active {
            opacity: 1;
            transform: translateX(0) scale(1);
            pointer-events: auto;
        }
        .product-card .image-wrap .slider-container img { object-fit: cover; }
        .detail-swipe-track img { object-fit: contain; }
        .image-nav,
        .detail-image-nav,
        .catalog-image-count { display: none !important; }
        .slider-dots {
            left: 50%;
            bottom: 9px;
            transform: translateX(-50%);
            display: flex;
            gap: 6px;
            z-index: 5;
        }
        .slider-dots .dot,
        .detail-slider .detail-dot {
            width: 6px;
            height: 6px;
            min-width: 6px;
            padding: 0;
            border: none;
            border-radius: 999px;
            background: rgba(255,255,255,0.58);
            transition: width 0.18s ease, background 0.18s ease;
        }
        .slider-dots .dot.active,
        .detail-slider .detail-dot.active { width: 16px; background: #fff; }

        .product-card .badge {
            top: 10px;
            left: 10px;
            padding: 5px 10px;
            border-radius: 999px;
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 0.02em;
        }
        .product-card .info {
            padding: 10px 12px 8px;
            gap: 0;
        }
        .product-card .info .name {
            min-height: 0;
            margin-bottom: 4px;
            font-size: 15px;
            line-height: 1.3;
            font-weight: 750;
            letter-spacing: -0.02em;
            color: var(--text-main);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .product-card .info .description {
            min-height: 0;
            margin-bottom: 8px;
            font-size: 12px;
            line-height: 1.42;
            color: var(--text-muted);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .product-card .info .price-row {
            margin-top: 0;
            gap: 5px;
        }
        .product-card .info .price {
            font-size: 20px;
            font-weight: 800;
            letter-spacing: -0.03em;
            line-height: 1;
        }
        .product-card .info .currency-label {
            font-size: 11px;
            font-weight: 700;
            color: var(--text-soft);
        }
        .product-card .cart-controls {
            padding: 0 12px 12px;
        }
        .product-card .cart-controls .add-btn {
            width: 100%;
            min-height: 42px;
            border-radius: 14px;
            background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
            font-size: 14px;
            font-weight: 750;
            box-shadow: 0 8px 18px rgba(109,43,182,0.16);
        }
        .catalog-cart-state {
            display: grid;
            gap: 7px;
        }
        .product-card .cart-controls .qty-control.qty-control--catalog {
            width: 100%;
            display: grid;
            grid-template-columns: 42px minmax(0, 1fr) 42px;
            align-items: center;
            gap: 8px;
            padding: 5px;
            border-radius: 14px;
            background: #f6f2fb;
            border: 1px solid #ece5f5;
        }
        .product-card .cart-controls .qty-control.qty-control--catalog button {
            width: 42px;
            min-width: 42px;
            height: 42px;
            min-height: 42px;
            border-radius: 12px;
            background: #fff;
            color: #403351;
            font-size: 22px;
            box-shadow: 0 2px 8px rgba(22,16,31,0.05);
        }
        .product-card .cart-controls .qty-control.qty-control--catalog input {
            width: 100%;
            min-width: 0;
            text-align: center;
            font-size: 17px;
            font-weight: 800;
            color: var(--accent-dark);
        }
        .catalog-line-total {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 0 2px;
            font-size: 11px;
            line-height: 1.3;
            color: var(--text-muted);
        }
        .catalog-line-total strong {
            font-size: 14px;
            font-weight: 800;
            color: var(--text-main);
            white-space: nowrap;
        }

        /* Корзина */
        .cart-sheet {
            background: linear-gradient(180deg, #ffffff 0%, #fcfbfd 100%);
            border-radius: 22px 22px 0 0;
        }
        .cart-drag-zone {
            background: rgba(255,255,255,0.98);
            backdrop-filter: blur(10px);
        }
        .cart-sheet-header {
            margin-bottom: 8px;
            align-items: center;
        }
        .cart-sheet .cart-drag-zone h3 {
            font-size: 19px;
            font-weight: 800;
            line-height: 1.15;
        }
        .cart-subtitle {
            font-size: 12px;
            line-height: 1.35;
            color: var(--text-muted);
        }
        .cart-close-btn {
            width: 34px;
            height: 34px;
            background: #f3eff7;
            color: #4a3a5e;
        }
        .cart-item {
            display: flex;
            flex-direction: column;
            gap: 7px;
            padding: 13px 0;
            border-bottom: 1px solid #eee8f4;
        }
        .cart-item-top,
        .cart-item-bottom {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
        }
        .cart-item .item-main { min-width: 0; flex: 1; }
        .cart-item .item-name {
            display: block;
            font-size: 14px;
            font-weight: 750;
            line-height: 1.32;
            color: var(--text-main);
            margin: 0 0 2px;
        }
        .cart-item .item-meta,
        .cart-item .item-unit {
            font-size: 11px;
            line-height: 1.35;
            color: var(--text-soft);
        }
        .cart-item .item-price {
            flex-shrink: 0;
            font-size: 15px;
            font-weight: 800;
            line-height: 1.2;
            color: var(--text-main);
            white-space: nowrap;
            text-align: right;
        }
        .cart-item .item-qty {
            margin-left: auto;
            display: grid;
            grid-template-columns: 34px 44px 34px;
            gap: 6px;
            align-items: center;
            padding: 4px;
            border-radius: 13px;
            background: #f7f3fb;
            border: 1px solid #ece5f5;
        }
        .cart-item .item-qty button {
            width: 34px;
            min-width: 34px;
            height: 34px;
            min-height: 34px;
            border: none;
            border-radius: 11px;
            background: #fff;
            color: #403351;
            font-size: 19px;
            box-shadow: 0 2px 7px rgba(22,16,31,0.05);
        }
        .cart-item .item-qty input {
            width: 44px;
            min-width: 44px;
            border: none;
            background: transparent;
            text-align: center;
            font-size: 15px;
            font-weight: 800;
            color: var(--accent-dark);
        }
        .cart-total {
            padding: 14px 0 12px;
            margin-top: 2px;
        }
        .cart-total span:first-child {
            font-size: 13px;
            font-weight: 650;
            color: var(--text-muted);
        }
        .cart-total span:last-child {
            font-size: 21px;
            font-weight: 800;
            color: var(--text-main);
        }

        /* Контактные данные в корзине */
        .order-form {
            margin-top: 14px;
            padding: 14px;
            background: #fff;
            border: 1px solid #eee8f4;
            border-radius: 18px;
            box-shadow: 0 8px 18px rgba(22,16,31,0.035);
        }
        .order-form-head,
        .order-form-kicker,
        .order-form-note { display: none !important; }
        .form-group {
            margin-bottom: 10px;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .form-group label {
            font-size: 12px;
            font-weight: 700;
            line-height: 1.2;
            color: #5c516a;
        }
        .cart-sheet .order-form input,
        .cart-sheet .order-form select {
            width: 100%;
            height: 42px;
            margin: 0;
            padding: 0 12px;
            border-radius: 12px;
            border: 1px solid #e7dfef;
            background: #fbfafe;
            font-size: 14px;
            color: var(--text-main);
            box-sizing: border-box;
        }
        .cart-sheet .order-form .phone-row {
            display: grid;
            grid-template-columns: 104px 1fr;
            gap: 8px;
            align-items: center;
        }
        .cart-sheet .order-form .phone-row input,
        .cart-sheet .order-form .phone-row select { margin: 0; }
        .cart-sheet .order-form .submit-btn {
            width: 100%;
            margin-top: 4px;
            min-height: 44px;
            border-radius: 14px;
            background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
            font-size: 14px;
            font-weight: 750;
        }

        /* Модалка товара */
        .product-modal .modal-content {
            background: linear-gradient(180deg, #ffffff 0%, #fcfbfd 100%);
            border-radius: 24px;
        }
        .product-modal .modal-content .close-btn {
            width: 36px;
            height: 36px;
            background: rgba(255,255,255,0.96);
        }
        .product-modal .modal-content .product-detail-image {
            border-radius: 20px;
            background: linear-gradient(180deg, #f5f3f7 0%, #efecf2 100%);
        }
        .detail-image-meta {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin: 9px 0 12px;
        }
        .detail-image-counter {
            position: static;
            background: transparent;
            color: var(--text-soft);
            padding: 0;
            font-size: 12px;
            font-weight: 650;
        }
        .product-modal .modal-content .detail-name {
            font-size: 22px;
            font-weight: 800;
            letter-spacing: -0.03em;
            line-height: 1.16;
            margin-bottom: 8px;
            color: var(--text-main);
        }
        .product-modal .modal-content .detail-description {
            font-size: 14px;
            line-height: 1.56;
            color: #62596f;
            margin-bottom: 12px;
        }
        .detail-footer-bar {
            background: rgba(255,255,255,0.98);
            border-top: 1px solid #eee8f4;
            box-shadow: 0 -8px 24px rgba(0,0,0,0.05);
        }
        .product-modal .modal-content .detail-price {
            font-size: 23px;
            font-weight: 800;
            color: var(--text-main);
        }
        .product-modal .modal-content .detail-price::before {
            color: var(--text-soft);
            font-size: 11px;
        }
        .detail-cart-controls .qty-control {
            background: #f6f2fb;
            border: 1px solid #ece5f5;
            border-radius: 16px;
        }
        .detail-cart-controls .qty-control button {
            border-radius: 12px;
        }
        .detail-cart-controls .add-btn {
            border-radius: 14px;
            background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
        }

        @media (max-width: 720px) {
            .product-grid { gap: 12px; }
            .product-card .image-wrap { aspect-ratio: 1 / 1.12; }
            .product-card .info { padding: 9px 10px 7px; }
            .product-card .cart-controls { padding: 0 10px 10px; }
            .product-card .info .name { font-size: 14px; }
            .product-card .info .description { font-size: 11px; margin-bottom: 7px; }
            .product-card .info .price { font-size: 18px; }
            .product-card .cart-controls .qty-control.qty-control--catalog {
                grid-template-columns: 40px minmax(0, 1fr) 40px;
            }
            .product-card .cart-controls .qty-control.qty-control--catalog button {
                width: 40px; min-width: 40px; height: 40px; min-height: 40px;
            }
            .cart-sheet .order-form .phone-row { grid-template-columns: 96px 1fr; }
            .product-modal .modal-content { border-radius: 22px 22px 0 0; }
            .product-modal .modal-content .detail-name { font-size: 20px; }
            .product-modal .modal-content .detail-price { font-size: 21px; }
        }


        /* ============================================================
           ДОРАБОТКИ V10 — 3:4 фото и компактное количество
           ============================================================ */
        .product-card .image-wrap {
            aspect-ratio: 3 / 4 !important;
            width: 100%;
            height: auto;
            overflow: hidden;
        }
        .product-card .image-wrap .slider-container {
            width: 100%;
            height: 100%;
            overflow: hidden;
            touch-action: pan-y;
        }
        .product-card .image-wrap .slider-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            max-width: none;
            max-height: none;
            -webkit-user-drag: none;
            user-select: none;
        }
        .product-card .image-wrap.dragging,
        .product-card .image-wrap:active {
            cursor: grabbing;
        }
        .product-card .slider-dots {
            bottom: 8px;
        }

        /* После добавления в корзину блок количества ниже и компактнее */
        .catalog-cart-state {
            gap: 4px;
        }
        .product-card .cart-controls .qty-control.qty-control--catalog {
            grid-template-columns: 34px minmax(0, 1fr) 34px;
            gap: 5px;
            min-height: 38px;
            padding: 3px 4px;
            border-radius: 12px;
        }
        .product-card .cart-controls .qty-control.qty-control--catalog button {
            width: 34px;
            min-width: 34px;
            height: 34px;
            min-height: 34px;
            border-radius: 10px;
            font-size: 19px;
            padding: 0;
        }
        .product-card .cart-controls .qty-control.qty-control--catalog input {
            height: 34px;
            padding: 0;
            font-size: 15px;
            line-height: 34px;
        }
        .catalog-line-total {
            min-height: 14px;
            padding: 0 2px;
            font-size: 10px;
            line-height: 1.2;
        }
        .catalog-line-total strong {
            font-size: 12px;
        }

        @media (max-width: 720px) {
            .product-card .image-wrap {
                aspect-ratio: 3 / 4 !important;
            }
            .product-card .cart-controls .qty-control.qty-control--catalog {
                grid-template-columns: 32px minmax(0, 1fr) 32px;
                min-height: 36px;
            }
            .product-card .cart-controls .qty-control.qty-control--catalog button {
                width: 32px;
                min-width: 32px;
                height: 32px;
                min-height: 32px;
                font-size: 18px;
            }
            .product-card .cart-controls .qty-control.qty-control--catalog input {
                height: 32px;
                line-height: 32px;
                font-size: 14px;
            }
        }


        /* ============================================================
           ДОРАБОТКИ V12 — desktop arrows / mobile swipe
           ============================================================ */
        .product-card .image-wrap {
            aspect-ratio: 3 / 4 !important;
            overflow: hidden;
        }
        .product-card .image-wrap .slider-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
        .product-modal .product-detail-image {
            position: relative;
            overflow: hidden;
        }

        .carousel-arrow {
            position: absolute;
            top: 50%;
            z-index: 12;
            width: 38px;
            height: 38px;
            padding: 0;
            border: 1px solid rgba(32, 23, 43, 0.08);
            border-radius: 50%;
            background: rgba(255,255,255,0.92);
            color: #33253f;
            box-shadow: 0 7px 20px rgba(19, 13, 27, 0.13);
            backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: inherit;
            font-size: 25px;
            font-weight: 400;
            line-height: 1;
            cursor: pointer;
            opacity: 0;
            transform: translateY(-50%) scale(0.94);
            transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
        }
        .carousel-arrow.prev { left: 10px; }
        .carousel-arrow.next { right: 10px; }
        .image-wrap:hover .carousel-arrow,
        .product-detail-image:hover .carousel-arrow,
        .carousel-arrow:focus-visible {
            opacity: 1;
            transform: translateY(-50%) scale(1);
        }
        .carousel-arrow:hover {
            background: #fff;
            transform: translateY(-50%) scale(1.06);
        }
        .carousel-arrow:active {
            transform: translateY(-50%) scale(0.96);
        }

        /* На компьютере изображения меняются стрелками — drag отключён логикой JS. */
        @media (min-width: 768px) {
            .product-card .image-wrap,
            .product-modal .product-detail-image {
                touch-action: auto;
                cursor: default;
            }
        }

        /* На мобильном стрелок нет вообще — только свайп пальцем. */
        @media (max-width: 767px) {
            .carousel-arrow {
                display: none !important;
            }
            .product-card .image-wrap,
            .product-modal .product-detail-image {
                touch-action: pan-y;
                cursor: grab;
            }
            .product-card .image-wrap:active,
            .product-modal .product-detail-image:active {
                cursor: grabbing;
            }
        }


        /* ============================================================
           ДОРАБОТКИ V13 — исправление стрелок и слоёв при мобильном свайпе
           ============================================================ */
        .product-card .image-wrap {
            position: relative;
            isolation: isolate;
        }
        .product-card .image-wrap .slider-container {
            position: relative;
            z-index: 1;
        }
        .product-card .image-wrap .slider-container img {
            z-index: 1;
        }
        .product-card .image-wrap .slider-container img.carousel-active {
            z-index: 2;
        }
        .product-card .badge {
            position: absolute;
            z-index: 30 !important;
            pointer-events: none;
            transform: translateZ(0);
        }
        .product-card .slider-dots {
            z-index: 24 !important;
            pointer-events: auto;
        }
        .product-card .carousel-arrow {
            z-index: 26 !important;
            pointer-events: auto !important;
        }

        @media (min-width: 768px) {
            .product-card .carousel-arrow,
            .product-modal .carousel-arrow {
                display: flex !important;
            }
            .product-card .image-wrap:hover .carousel-arrow,
            .product-modal .product-detail-image:hover .carousel-arrow,
            .carousel-arrow:focus-visible {
                opacity: 1;
                visibility: visible;
            }
        }

        @media (max-width: 767px) {
            .product-card .carousel-arrow,
            .product-modal .carousel-arrow {
                display: none !important;
            }
            .product-card .badge {
                z-index: 40 !important;
            }
        }


        /* ============================================================
           ДОРАБОТКИ V14 — стабильное перелистывание в карточке товара
           ============================================================ */
        .product-modal .product-detail-image {
            position: relative;
            isolation: isolate;
        }
        .product-modal .detail-swipe-track {
            position: relative;
            z-index: 1;
            overflow: hidden;
        }
        .product-modal .detail-swipe-track img {
            z-index: 1;
            object-fit: contain;
            object-position: center;
        }
        .product-modal .detail-swipe-track img.carousel-active {
            z-index: 2;
        }
        .product-modal .carousel-arrow {
            z-index: 30 !important;
            pointer-events: auto !important;
        }
        .product-modal .carousel-arrow[hidden] {
            display: none !important;
        }
        .product-modal .detail-slider {
            position: relative;
            z-index: 5;
        }
        @media (min-width: 768px) {
            .product-modal .detail-arrow:not([hidden]) {
                display: flex !important;
            }
        }
        @media (max-width: 767px) {
            .product-modal .detail-arrow {
                display: none !important;
            }
            .product-modal .product-detail-image {
                touch-action: pan-y;
            }
        }


        /* ============================================================
           ДОРАБОТКИ V16 — убрать подрезание соседнего фото в модалке
           ============================================================ */
        .product-modal .modal-content {
            overflow: hidden;
        }
        .product-modal .product-detail-image {
            width: 100%;
            overflow: hidden !important;
            isolation: isolate;
        }
        .product-modal .detail-swipe-track {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden !important;
            contain: layout paint;
        }
        .product-modal .detail-swipe-track img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transform: translateX(0) scale(0.985);
            backface-visibility: hidden;
            will-change: transform, opacity;
        }
        .product-modal .detail-swipe-track img.carousel-active {
            opacity: 1;
            transform: translateX(0) scale(1);
        }
        @media (min-width: 768px) {
            .product-modal .detail-swipe-track img {
                transform: translateX(0) scale(0.985);
            }
            .product-modal .detail-swipe-track img.carousel-active {
                transform: translateX(0) scale(1);
            }
        }


        /* ============================================================
           ДОРАБОТКИ V17 — вернуть вертикальный скролл карточки товара
           ============================================================ */
        .product-modal .modal-content {
            overflow-x: hidden !important;
            overflow-y: auto !important;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
        }

        /* Обрезаем соседние слайды только внутри фотогалереи */
        .product-modal .product-detail-image,
        .product-modal .detail-swipe-track {
            overflow: hidden !important;
        }


        /* ============================================================
           ДОРАБОТКИ V18 — нижняя зона корзины в карточке каталога
           ============================================================ */

        /* Нижняя зона становится частью карточки и подходит почти к краям */
        .product-card .cart-controls {
            width: auto !important;
            margin: auto 7px 7px !important;
            padding: 0 !important;
        }

        /* Кнопка "В корзину" и блок количества — одной ширины */
        .product-card .cart-controls .add-btn {
            width: 100% !important;
            min-height: 44px !important;
            margin: 0 !important;
            border-radius: 13px !important;
        }

        .product-card .catalog-cart-state {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 7px !important;
            margin: 0;
            padding: 0;
        }

        /* Как в карточке товара: сначала сумма */
        .product-card .catalog-line-total {
            width: 100%;
            box-sizing: border-box;
            min-height: 24px;
            padding: 0 4px !important;
            margin: 0 !important;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            background: transparent !important;
            border: none !important;
            font-size: 11px !important;
            line-height: 1.25;
            color: #81778d;
        }

        .product-card .catalog-line-total strong {
            font-size: 15px !important;
            line-height: 1.15;
            font-weight: 800;
            letter-spacing: -0.015em;
            color: #1d1725;
            white-space: nowrap;
        }

        /* Потом широкий цельный контрол количества */
        .product-card .cart-controls .qty-control.qty-control--catalog {
            width: 100% !important;
            box-sizing: border-box;
            display: grid !important;
            grid-template-columns: 42px minmax(0, 1fr) 42px !important;
            gap: 6px !important;
            min-height: 46px !important;
            margin: 0 !important;
            padding: 3px !important;
            border-radius: 14px !important;
            background: #f4eff9 !important;
            border: 1px solid rgba(109, 43, 182, 0.10) !important;
        }

        .product-card .cart-controls .qty-control.qty-control--catalog button {
            width: 40px !important;
            min-width: 40px !important;
            height: 40px !important;
            min-height: 40px !important;
            padding: 0 !important;
            border-radius: 11px !important;
            background: #fff !important;
            color: #403250 !important;
            font-size: 21px !important;
            font-weight: 700 !important;
            box-shadow: 0 2px 7px rgba(27, 18, 39, 0.05) !important;
        }

        .product-card .cart-controls .qty-control.qty-control--catalog input {
            width: 100% !important;
            min-width: 0 !important;
            height: 40px !important;
            padding: 0 !important;
            border: none !important;
            background: transparent !important;
            text-align: center !important;
            font-size: 17px !important;
            line-height: 40px !important;
            font-weight: 800 !important;
            color: #6425a3 !important;
        }

        /* Чуть меньше пустоты между ценой и нижней зоной */
        .product-card .info {
            padding-bottom: 7px !important;
        }

        @media (max-width: 720px) {
            .product-card .cart-controls {
                margin: auto 5px 5px !important;
            }

            .product-card .catalog-cart-state {
                gap: 5px !important;
            }

            .product-card .catalog-line-total {
                min-height: 20px;
                padding: 0 3px !important;
                font-size: 10px !important;
            }

            .product-card .catalog-line-total strong {
                font-size: 13px !important;
            }

            .product-card .cart-controls .qty-control.qty-control--catalog {
                grid-template-columns: 38px minmax(0, 1fr) 38px !important;
                min-height: 42px !important;
                padding: 2px !important;
            }

            .product-card .cart-controls .qty-control.qty-control--catalog button {
                width: 36px !important;
                min-width: 36px !important;
                height: 36px !important;
                min-height: 36px !important;
                font-size: 19px !important;
            }

            .product-card .cart-controls .qty-control.qty-control--catalog input {
                height: 36px !important;
                line-height: 36px !important;
                font-size: 15px !important;
            }

            .product-card .cart-controls .add-btn {
                min-height: 42px !important;
            }
        }


        /* ============================================================
           ДОРАБОТКИ V19 — компактная нижняя часть карточки каталога
           ============================================================ */

        /* Отдельная строка суммы больше не используется */
        .product-card .catalog-line-total {
            display: none !important;
        }

        /* Итог по выбранному количеству показывается вместо обычной цены */
        .product-card .info .price.cart-total-price {
            color: #5e2399;
        }

        /* Чуть плотнее содержимое карточки */
        .product-card .info {
            padding-bottom: 5px !important;
        }

        .product-card .cart-controls {
            margin: auto 6px 6px !important;
        }

        .product-card .catalog-cart-state {
            gap: 0 !important;
        }

        .product-card .cart-controls .add-btn {
            min-height: 40px !important;
            height: 40px !important;
            border-radius: 12px !important;
            font-size: 13px !important;
        }

        .product-card .cart-controls .qty-control.qty-control--catalog {
            grid-template-columns: 36px minmax(0, 1fr) 36px !important;
            min-height: 40px !important;
            height: 40px !important;
            padding: 2px !important;
            gap: 5px !important;
            border-radius: 12px !important;
        }

        .product-card .cart-controls .qty-control.qty-control--catalog button {
            width: 34px !important;
            min-width: 34px !important;
            height: 34px !important;
            min-height: 34px !important;
            border-radius: 10px !important;
            font-size: 19px !important;
        }

        .product-card .cart-controls .qty-control.qty-control--catalog input {
            height: 34px !important;
            line-height: 34px !important;
            font-size: 15px !important;
        }

        @media (max-width: 720px) {
            .product-card .cart-controls {
                margin: auto 4px 4px !important;
            }

            .product-card .cart-controls .add-btn {
                min-height: 38px !important;
                height: 38px !important;
                font-size: 12px !important;
            }

            .product-card .cart-controls .qty-control.qty-control--catalog {
                grid-template-columns: 34px minmax(0, 1fr) 34px !important;
                min-height: 38px !important;
                height: 38px !important;
            }

            .product-card .cart-controls .qty-control.qty-control--catalog button {
                width: 32px !important;
                min-width: 32px !important;
                height: 32px !important;
                min-height: 32px !important;
                font-size: 18px !important;
            }

            .product-card .cart-controls .qty-control.qty-control--catalog input {
                height: 32px !important;
                line-height: 32px !important;
                font-size: 14px !important;
            }
        }


        /* ============================================================
           ДОРАБОТКИ V20 — новая компоновка товаров в корзине
           Контактные данные не изменяются.
           ============================================================ */

        /* Одна строка: товар | количество | сумма позиции */
        .cart-sheet #cartItemsList .cart-item {
            display: grid !important;
            grid-template-columns: minmax(0, 1fr) auto minmax(92px, auto) !important;
            align-items: center !important;
            column-gap: 18px !important;
            row-gap: 0 !important;
            padding: 15px 0 !important;
            border-bottom: 1px solid #eee8f4 !important;
        }

        .cart-sheet #cartItemsList .cart-item:last-child {
            border-bottom: none !important;
        }

        /* Слева: название и цена за штуку */
        .cart-sheet #cartItemsList .item-main {
            min-width: 0 !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: center !important;
            gap: 4px !important;
        }

        .cart-sheet #cartItemsList .item-name {
            display: block !important;
            margin: 0 !important;
            font-size: 16px !important;
            line-height: 1.25 !important;
            font-weight: 800 !important;
            letter-spacing: -0.015em !important;
            color: #1d1725 !important;
            overflow-wrap: anywhere;
        }

        .cart-sheet #cartItemsList .item-unit {
            display: block !important;
            margin: 0 !important;
            font-size: 12px !important;
            line-height: 1.25 !important;
            font-weight: 600 !important;
            color: #8c8397 !important;
            white-space: nowrap;
        }

        /* Артикул больше нигде не показываем */
        .cart-sheet #cartItemsList .item-meta {
            display: none !important;
        }

        /* По центру: управление количеством */
        .cart-sheet #cartItemsList .item-qty {
            margin: 0 !important;
            display: grid !important;
            grid-template-columns: 34px 42px 34px !important;
            gap: 5px !important;
            align-items: center !important;
            padding: 3px !important;
            border-radius: 13px !important;
            background: #f6f2fa !important;
            border: 1px solid #ebe4f3 !important;
        }

        .cart-sheet #cartItemsList .item-qty button {
            width: 34px !important;
            min-width: 34px !important;
            height: 34px !important;
            min-height: 34px !important;
            padding: 0 !important;
            border: none !important;
            border-radius: 10px !important;
            background: #fff !important;
            color: #403250 !important;
            font-size: 19px !important;
            line-height: 1 !important;
            font-weight: 700 !important;
            box-shadow: 0 2px 7px rgba(27, 18, 39, 0.05) !important;
        }

        .cart-sheet #cartItemsList .item-qty input {
            width: 42px !important;
            min-width: 42px !important;
            height: 34px !important;
            padding: 0 !important;
            border: none !important;
            background: transparent !important;
            text-align: center !important;
            font-size: 15px !important;
            line-height: 34px !important;
            font-weight: 800 !important;
            color: #6425a3 !important;
            outline: none !important;
        }

        /* Справа: сумма именно этой позиции */
        .cart-sheet #cartItemsList .item-price {
            min-width: 92px !important;
            margin: 0 !important;
            text-align: right !important;
            white-space: nowrap !important;
            font-size: 18px !important;
            line-height: 1.1 !important;
            font-weight: 850 !important;
            letter-spacing: -0.025em !important;
            color: #1b1423 !important;
        }

        /* Общий итог — отдельной строкой под всеми товарами */
        .cart-sheet .cart-total {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 16px !important;
            margin: 4px 0 0 !important;
            padding: 17px 2px 14px !important;
            border-top: 1px solid #e7dfef !important;
            border-bottom: 1px solid #eee8f4 !important;
        }

        .cart-sheet .cart-total span:first-child {
            font-size: 15px !important;
            line-height: 1.2 !important;
            font-weight: 750 !important;
            color: #54495f !important;
        }

        .cart-sheet .cart-total span:last-child {
            font-size: 24px !important;
            line-height: 1 !important;
            font-weight: 850 !important;
            letter-spacing: -0.03em !important;
            color: #1b1423 !important;
            white-space: nowrap !important;
        }

        /* На узком телефоне сохраняем ту же логику,
           но немного ужимаем центр и правую колонку */
        @media (max-width: 560px) {
            .cart-sheet #cartItemsList .cart-item {
                grid-template-columns: minmax(0, 1fr) auto minmax(74px, auto) !important;
                column-gap: 8px !important;
                padding: 13px 0 !important;
            }

            .cart-sheet #cartItemsList .item-name {
                font-size: 14px !important;
                line-height: 1.25 !important;
            }

            .cart-sheet #cartItemsList .item-unit {
                font-size: 10.5px !important;
            }

            .cart-sheet #cartItemsList .item-qty {
                grid-template-columns: 30px 34px 30px !important;
                gap: 3px !important;
                padding: 2px !important;
                border-radius: 11px !important;
            }

            .cart-sheet #cartItemsList .item-qty button {
                width: 30px !important;
                min-width: 30px !important;
                height: 30px !important;
                min-height: 30px !important;
                border-radius: 9px !important;
                font-size: 17px !important;
            }

            .cart-sheet #cartItemsList .item-qty input {
                width: 34px !important;
                min-width: 34px !important;
                height: 30px !important;
                line-height: 30px !important;
                font-size: 13px !important;
            }

            .cart-sheet #cartItemsList .item-price {
                min-width: 74px !important;
                font-size: 15px !important;
            }

            .cart-sheet .cart-total span:first-child {
                font-size: 14px !important;
            }

            .cart-sheet .cart-total span:last-child {
                font-size: 21px !important;
            }
        }


        /* ============================================================
           ДОРАБОТКИ V21 — шире количество + акцент на общем итоге
           ============================================================ */

        /* Чуть шире область "− количество +" */
        .cart-sheet #cartItemsList .item-qty {
            grid-template-columns: 38px 52px 38px !important;
            gap: 6px !important;
            padding: 4px !important;
        }

        .cart-sheet #cartItemsList .item-qty button {
            width: 38px !important;
            min-width: 38px !important;
            height: 36px !important;
            min-height: 36px !important;
        }

        .cart-sheet #cartItemsList .item-qty input {
            width: 52px !important;
            min-width: 52px !important;
            height: 36px !important;
            line-height: 36px !important;
        }

        /* Общий итог визуально отделён как самостоятельный блок */
        .cart-sheet .cart-total {
            margin: 10px 0 2px !important;
            padding: 14px 16px !important;
            border: 1px solid rgba(109, 43, 182, 0.10) !important;
            border-radius: 16px !important;
            background: linear-gradient(180deg, #faf7fd 0%, #f6f1fb 100%) !important;
            box-shadow: 0 7px 18px rgba(42, 25, 61, 0.045) !important;
        }

        .cart-sheet .cart-total span:first-child {
            color: #6b6077 !important;
            font-size: 14px !important;
            font-weight: 700 !important;
        }

        .cart-sheet .cart-total span:last-child {
            color: #4f1f82 !important;
            font-size: 23px !important;
            font-weight: 850 !important;
        }

        @media (max-width: 560px) {
            .cart-sheet #cartItemsList .item-qty {
                grid-template-columns: 32px 40px 32px !important;
                gap: 4px !important;
                padding: 3px !important;
            }

            .cart-sheet #cartItemsList .item-qty button {
                width: 32px !important;
                min-width: 32px !important;
                height: 31px !important;
                min-height: 31px !important;
            }

            .cart-sheet #cartItemsList .item-qty input {
                width: 40px !important;
                min-width: 40px !important;
                height: 31px !important;
                line-height: 31px !important;
            }

            .cart-sheet .cart-total {
                margin-top: 8px !important;
                padding: 13px 14px !important;
                border-radius: 14px !important;
            }

            .cart-sheet .cart-total span:last-child {
                font-size: 21px !important;
            }
        }


        /* ============================================================
           ДОРАБОТКИ V22 — длиннее, но не толще + крупнее текст корзины
           ============================================================ */

        /* Контрол количества: длиннее по горизонтали, высота снова компактная */
        .cart-sheet #cartItemsList .item-qty {
            grid-template-columns: 34px 66px 34px !important;
            gap: 8px !important;
            padding: 3px !important;
            min-height: 40px !important;
        }

        .cart-sheet #cartItemsList .item-qty button {
            width: 34px !important;
            min-width: 34px !important;
            height: 34px !important;
            min-height: 34px !important;
            font-size: 19px !important;
        }

        .cart-sheet #cartItemsList .item-qty input {
            width: 66px !important;
            min-width: 66px !important;
            height: 34px !important;
            line-height: 34px !important;
            font-size: 16px !important;
        }

        /* Название товара заметнее */
        .cart-sheet #cartItemsList .item-name {
            font-size: 17px !important;
            line-height: 1.25 !important;
            font-weight: 800 !important;
        }

        /* Цена за штуку остаётся вторичной */
        .cart-sheet #cartItemsList .item-unit {
            font-size: 12px !important;
            line-height: 1.3 !important;
        }

        /* Сумма позиции справа крупнее и визуально сильнее */
        .cart-sheet #cartItemsList .item-price {
            min-width: 108px !important;
            font-size: 20px !important;
            line-height: 1.05 !important;
            font-weight: 850 !important;
            letter-spacing: -0.03em !important;
        }

        /* Чуть больше места между тремя смысловыми колонками */
        .cart-sheet #cartItemsList .cart-item {
            grid-template-columns: minmax(0, 1fr) auto minmax(108px, auto) !important;
            column-gap: 20px !important;
        }

        @media (max-width: 560px) {
            .cart-sheet #cartItemsList .cart-item {
                grid-template-columns: minmax(0, 1fr) auto minmax(78px, auto) !important;
                column-gap: 7px !important;
            }

            .cart-sheet #cartItemsList .item-name {
                font-size: 14.5px !important;
            }

            .cart-sheet #cartItemsList .item-unit {
                font-size: 10.5px !important;
            }

            .cart-sheet #cartItemsList .item-qty {
                grid-template-columns: 30px 44px 30px !important;
                gap: 4px !important;
                padding: 2px !important;
                min-height: 34px !important;
            }

            .cart-sheet #cartItemsList .item-qty button {
                width: 30px !important;
                min-width: 30px !important;
                height: 30px !important;
                min-height: 30px !important;
                font-size: 17px !important;
            }

            .cart-sheet #cartItemsList .item-qty input {
                width: 44px !important;
                min-width: 44px !important;
                height: 30px !important;
                line-height: 30px !important;
                font-size: 14px !important;
            }

            .cart-sheet #cartItemsList .item-price {
                min-width: 78px !important;
                font-size: 16px !important;
            }
        }


        /* ============================================================
           ДОРАБОТКИ V23 — код страны и поле телефона
           ============================================================ */

        .cart-sheet .order-form .phone-row {
            display: grid !important;
            grid-template-columns: 102px minmax(0, 1fr) !important;
            gap: 8px !important;
            align-items: center !important;
            width: 100% !important;
        }

        /* Важное: обе колонки могут реально ужиматься и не налезают друг на друга */
        .cart-sheet .order-form .phone-row > * {
            min-width: 0 !important;
        }

        .cart-sheet .order-form .phone-code-wrap {
            position: relative;
            width: 100%;
            min-width: 0;
        }

        .cart-sheet .order-form .phone-code-wrap select {
            width: 100% !important;
            min-width: 0 !important;
            height: 42px !important;
            margin: 0 !important;
            padding: 0 29px 0 10px !important;
            box-sizing: border-box !important;
            appearance: none !important;
            -webkit-appearance: none !important;
            -moz-appearance: none !important;
            background-image: none !important;
            cursor: pointer;
            font-size: 13px !important;
            font-weight: 650 !important;
        }

        /* Собственная стрелка — ближе к содержимому и не у самого края */
        .cart-sheet .order-form .phone-code-arrow {
            position: absolute;
            top: 50%;
            right: 10px;
            transform: translateY(-56%);
            z-index: 2;
            pointer-events: none;
            color: #756a82;
            font-size: 16px;
            line-height: 1;
            font-weight: 700;
        }

        .cart-sheet .order-form .phone-row #userPhone {
            width: 100% !important;
            min-width: 0 !important;
            margin: 0 !important;
            box-sizing: border-box !important;
        }

        @media (max-width: 560px) {
            .cart-sheet .order-form .phone-row {
                grid-template-columns: 94px minmax(0, 1fr) !important;
                gap: 7px !important;
            }

            .cart-sheet .order-form .phone-code-wrap select {
                padding-left: 8px !important;
                padding-right: 25px !important;
                font-size: 12px !important;
            }

            .cart-sheet .order-form .phone-code-arrow {
                right: 8px;
                font-size: 15px;
            }

            .cart-sheet .order-form .phone-row #userPhone {
                padding-left: 10px !important;
                padding-right: 10px !important;
            }
        }

        @media (max-width: 699px) {
    body[data-page="home"] .home-new-panel .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media (max-width: 380px) {
            .cart-sheet .order-form .phone-row {
                grid-template-columns: 90px minmax(0, 1fr) !important;
                gap: 6px !important;
            }
        }


        /* ============================================================
           ДОРАБОТКИ V24 — флаг, код страны и стрелка
           ============================================================ */

        .cart-sheet .order-form .phone-row {
            grid-template-columns: 112px minmax(0, 1fr) !important;
        }

        .cart-sheet .order-form .phone-code-wrap select {
            font-size: 15px !important;
            font-weight: 700 !important;
            padding-left: 11px !important;
            padding-right: 34px !important;
            letter-spacing: -0.01em;
        }

        .cart-sheet .order-form .phone-code-arrow {
            right: 12px !important;
            font-size: 16px !important;
            color: #685d75 !important;
            transform: translateY(-54%) !important;
        }

        @media (max-width: 560px) {
            .cart-sheet .order-form .phone-row {
                grid-template-columns: 104px minmax(0, 1fr) !important;
                gap: 7px !important;
            }

            .cart-sheet .order-form .phone-code-wrap select {
                font-size: 14px !important;
                padding-left: 9px !important;
                padding-right: 30px !important;
            }

            .cart-sheet .order-form .phone-code-arrow {
                right: 10px !important;
                font-size: 15px !important;
            }
        }

        @media (max-width: 699px) {
    body[data-page="home"] .home-new-panel .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media (max-width: 380px) {
            .cart-sheet .order-form .phone-row {
                grid-template-columns: 100px minmax(0, 1fr) !important;
            }
        }


        /* ============================================================
           ДОРАБОТКИ V25 — точное вертикальное выравнивание стрелки
           ============================================================ */

        .cart-sheet .order-form .phone-code-arrow {
            top: 50% !important;
            transform: translateY(-50%) !important;
            line-height: 1 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }


        /* ============================================================
           ДОРАБОТКИ V26 — оптическое выравнивание стрелки кода страны
           ============================================================ */

        .cart-sheet .order-form .phone-code-arrow {
            top: 46% !important;
            right: 12px !important;
            width: 8px !important;
            height: 8px !important;
            font-size: 0 !important;
            line-height: 0 !important;
            display: block !important;
            border-right: 2px solid #685d75 !important;
            border-bottom: 2px solid #685d75 !important;
            transform: translateY(-50%) rotate(45deg) !important;
            transform-origin: center !important;
        }

        @media (max-width: 560px) {
            .cart-sheet .order-form .phone-code-arrow {
                top: 46% !important;
                right: 10px !important;
                width: 7px !important;
                height: 7px !important;
                border-right-width: 1.8px !important;
                border-bottom-width: 1.8px !important;
            }
        }


        /* ============================================================
           ДОРАБОТКИ V28 — выравнивание товаров по блоку контактов
           ============================================================ */

        /* Список товаров получает такой же внутренний горизонтальный ритм,
           как карточка "Контактные данные" */
        .cart-sheet #cartItemsList {
            box-sizing: border-box;
            padding-left: 14px !important;
            padding-right: 14px !important;
        }

        /* Общий итог выравниваем по тем же краям */
        .cart-sheet .cart-total {
            margin-left: 14px !important;
            margin-right: 14px !important;
            width: auto !important;
            box-sizing: border-box !important;
        }

        /* Заголовок корзины также чуть подравниваем визуально */
        .cart-sheet .cart-sheet-header {
            padding-left: 14px;
            padding-right: 14px;
            box-sizing: border-box;
        }

        @media (max-width: 560px) {
            .cart-sheet #cartItemsList {
                padding-left: 12px !important;
                padding-right: 12px !important;
            }

            .cart-sheet .cart-total {
                margin-left: 12px !important;
                margin-right: 12px !important;
            }

            .cart-sheet .cart-sheet-header {
                padding-left: 12px;
                padding-right: 12px;
            }
        }


        /* ============================================================
           ДОРАБОТКИ V29 — единая ширина всех блоков корзины
           ============================================================ */

        /*
           Внешние края:
           товары = Итого = Контактные данные.
           Внутренние отступы делаем уже внутри каждого блока.
        */

        .cart-sheet #cartItemsList {
            width: 100% !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            box-sizing: border-box !important;
        }

        .cart-sheet #cartItemsList .cart-item {
            width: 100% !important;
            box-sizing: border-box !important;
            padding-left: 14px !important;
            padding-right: 14px !important;
        }

        /* Итого снова на полную ширину — как Контактные данные */
        .cart-sheet .cart-total {
            width: 100% !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            box-sizing: border-box !important;
            padding-left: 14px !important;
            padding-right: 14px !important;
        }

        /* Форма контактов — та же внешняя ширина */
        .cart-sheet .order-form {
            width: 100% !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            box-sizing: border-box !important;
        }

        /* Заголовок не сужаем дополнительно */
        .cart-sheet .cart-sheet-header {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

        @media (max-width: 560px) {
            .cart-sheet #cartItemsList {
                padding-left: 0 !important;
                padding-right: 0 !important;
            }

            .cart-sheet #cartItemsList .cart-item {
                padding-left: 12px !important;
                padding-right: 12px !important;
            }

            .cart-sheet .cart-total {
                margin-left: 0 !important;
                margin-right: 0 !important;
                padding-left: 12px !important;
                padding-right: 12px !important;
            }

            .cart-sheet .cart-sheet-header {
                padding-left: 0 !important;
                padding-right: 0 !important;
            }
        }


        /* ============================================================
           ДОРАБОТКИ V32 — favicon / nav / mobile gallery / modal UX
           ============================================================ */

        /* Логотип теперь кликабельный, но выглядит как раньше */
        .header .logo-home-btn {
            appearance: none;
            -webkit-appearance: none;
            border: 0;
            background: transparent;
            padding: 4px 0;
            margin: 0;
            font-family: inherit;
            font-weight: 800;
            font-size: 17px;
            line-height: 1.15;
            letter-spacing: -0.02em;
            color: #17121e;
            cursor: pointer;
            text-align: left;
        }
        .header .logo-home-btn:hover {
            color: #6726AB;
        }

        /* Крошки чуть крупнее, свободнее и современнее */
        .breadcrumb {
            padding: 10px 20px 8px !important;
            font-size: 14px !important;
            line-height: 1.35 !important;
            letter-spacing: -0.005em;
        }
        .breadcrumb span {
            display: inline-block;
            padding: 2px 1px;
        }
        .breadcrumb .current {
            font-weight: 650 !important;
        }
        .breadcrumb .clickable {
            font-weight: 600;
            text-decoration-thickness: 1px;
            text-underline-offset: 3px;
        }
        @media (min-width: 900px) {
            .breadcrumb {
                padding-left: 28px !important;
                padding-right: 28px !important;
                font-size: 15px !important;
            }
        }

        /* Фон за открытым товаром — светлый, а не чёрный */
        .product-modal {
            background: rgba(250, 249, 252, 0.90) !important;
            backdrop-filter: blur(8px) saturate(0.85) !important;
            -webkit-backdrop-filter: blur(8px) saturate(0.85) !important;
        }

        /* Свайп вниз: визуальная подсказка на телефоне */
        @media (max-width: 767px) {
            .product-modal .modal-content {
                position: relative;
                padding-top: 22px !important;
                will-change: transform;
            }
            .product-modal .modal-content::before {
                content: '';
                position: absolute;
                top: 7px;
                left: 50%;
                transform: translateX(-50%);
                width: 48px;
                height: 5px;
                border-radius: 999px;
                background: #d9d2df;
                z-index: 30;
                pointer-events: none;
            }
        }

        /*
           Мобильные изображения: настоящий нативный scroll-snap.
           Никаких вычислений направления свайпа — браузер сам одинаково
           корректно листает вправо и влево.
        */
        @media (max-width: 767px) {
            .product-card .image-wrap .slider-container,
            .product-modal .detail-swipe-track {
                display: flex !important;
                flex-direction: row !important;
                flex-wrap: nowrap !important;
                width: 100% !important;
                height: 100% !important;
                gap: 0 !important;
                padding: 0 !important;
                overflow-x: auto !important;
                overflow-y: hidden !important;
                scroll-snap-type: x mandatory !important;
                scroll-behavior: smooth;
                scroll-padding: 0 !important;
                overscroll-behavior-x: contain;
                -webkit-overflow-scrolling: touch;
                touch-action: pan-x pan-y !important;
                scrollbar-width: none;
            }

            .product-card .image-wrap .slider-container::-webkit-scrollbar,
            .product-modal .detail-swipe-track::-webkit-scrollbar {
                display: none;
            }

            .product-card .image-wrap .slider-container img,
            .product-modal .detail-swipe-track img,
            .product-card .image-wrap .slider-container img.carousel-active,
            .product-modal .detail-swipe-track img.carousel-active {
                position: relative !important;
                inset: auto !important;
                flex: 0 0 100% !important;
                width: 100% !important;
                min-width: 100% !important;
                max-width: 100% !important;
                height: 100% !important;
                opacity: 1 !important;
                transform: none !important;
                transition: none !important;
                scroll-snap-align: start !important;
                scroll-snap-stop: always;
                pointer-events: auto !important;
                border-radius: 0 !important;
                margin: 0 !important;
            }

            .product-card .image-wrap .slider-container img {
                object-fit: cover !important;
                object-position: center !important;
            }

            .product-modal .detail-swipe-track img {
                object-fit: contain !important;
                object-position: center !important;
            }

            .product-card .carousel-arrow,
            .product-modal .carousel-arrow {
                display: none !important;
            }
        }
/* ============================================================
   V33 — ЛИЧНЫЙ КАБИНЕТ / SUPABASE AUTH
   ============================================================ */

body.account-open {
    overflow: hidden;
}

.bottom-nav .account-nav-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
}

.bottom-nav .account-nav-icon svg {
    display: block;
}

.account-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(28, 20, 34, .20);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
    z-index: 1180;
}

.account-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.account-sheet {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(520px, 100%);
    background: #fff;
    z-index: 1190;
    transform: translateX(105%);
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
    box-shadow: -18px 0 60px rgba(39, 22, 50, .14);
    display: flex;
    flex-direction: column;
}

.account-sheet.open {
    transform: translateX(0);
}

.account-sheet-header {
    min-height: 72px;
    padding: 16px 18px;
    border-bottom: 1px solid #eee9f1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255,255,255,.96);
}

.account-sheet-header h3 {
    margin: 2px 0 0;
    font-size: 21px;
    line-height: 1.15;
    color: #1c1522;
}

.account-kicker {
    color: #6726AB;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: .12em;
}

.account-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e8e1ec;
    background: #faf8fb;
    color: #332a39;
    font-size: 17px;
    cursor: pointer;
}

.account-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
    background: #f5f1f7;
    margin-bottom: 16px;
}

.auth-tab {
    min-height: 42px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #716778;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.auth-tab.active {
    background: #fff;
    color: #6726AB;
    box-shadow: 0 2px 12px rgba(58, 32, 68, .08);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.account-intro {
    margin-bottom: 18px;
}

.account-intro-title {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    color: #1d1722;
}

.account-intro-text {
    margin-top: 6px;
    color: #766d7b;
    font-size: 13px;
    line-height: 1.45;
}

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

.account-sheet .form-group label {
    display: block;
    margin-bottom: 6px;
    color: #574e5d;
    font-size: 12px;
    font-weight: 700;
}

.account-sheet .form-group input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #ded6e2;
    border-radius: 12px;
    background: #fff;
    padding: 0 13px;
    box-sizing: border-box;
    font: inherit;
    color: #211a26;
    outline: none;
}

.account-sheet .form-group input:focus {
    border-color: #8a55bd;
    box-shadow: 0 0 0 3px rgba(103, 38, 171, .10);
}

.account-primary-btn,
.account-secondary-btn,
.account-logout-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.account-primary-btn {
    border: 0;
    background: #6726AB;
    color: #fff;
    box-shadow: 0 8px 22px rgba(103, 38, 171, .18);
}

.account-primary-btn:disabled,
.account-secondary-btn:disabled {
    opacity: .58;
    cursor: wait;
}

.account-secondary-btn {
    border: 1px solid #d9cbe5;
    background: #f8f4fb;
    color: #6726AB;
}

.auth-helper {
    margin-top: 10px;
    text-align: center;
    color: #8a818f;
    font-size: 11px;
    line-height: 1.4;
}

.account-user-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 14px;
    border: 1px solid #ece5f0;
    border-radius: 16px;
    background: linear-gradient(135deg, #fbf8fd 0%, #fff 70%);
    margin-bottom: 14px;
}

.account-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #6726AB;
    color: #fff;
    font-size: 20px;
    font-weight: 850;
}

.account-user-main {
    min-width: 0;
}

.account-user-name {
    color: #211a26;
    font-size: 15px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-user-email {
    margin-top: 3px;
    color: #817786;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-approved-badge {
    padding: 6px 8px;
    border-radius: 999px;
    background: #fff4de;
    color: #9a6514;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.account-approved-badge.approved {
    background: #eaf8ef;
    color: #267744;
}

.account-section {
    margin-top: 12px;
    border: 1px solid #ece6ef;
    border-radius: 16px;
    padding: 14px;
    background: #fff;
}

.account-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 13px;
}

.account-section-title {
    font-size: 15px;
    font-weight: 850;
    color: #241c29;
}

.account-section-subtitle {
    margin-top: 3px;
    color: #8a808e;
    font-size: 10px;
}

.terms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.term-card {
    min-height: 75px;
    padding: 11px;
    border-radius: 12px;
    background: #f8f5fa;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.term-card span {
    color: #8a808f;
    font-size: 10px;
    line-height: 1.2;
}

.term-card strong {
    color: #2b2130;
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.account-mini-btn {
    border: 1px solid #ded4e5;
    background: #faf7fb;
    color: #6726AB;
    border-radius: 9px;
    min-height: 30px;
    padding: 0 10px;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.account-orders-list {
    display: grid;
    gap: 8px;
}

.account-order-card {
    padding: 12px;
    border: 1px solid #e8e1ec;
    border-radius: 13px;
    background: #fff;
}

.account-order-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.account-order-number {
    font-size: 13px;
    font-weight: 850;
    color: #2b2130;
}

.account-order-date {
    margin-top: 3px;
    color: #918795;
    font-size: 10px;
}

.account-order-status {
    padding: 5px 7px;
    border-radius: 999px;
    background: #f1edf4;
    color: #62586a;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.account-order-status.status-completed,
.account-order-status.status-ready {
    background: #eaf8ef;
    color: #267744;
}

.account-order-status.status-cancelled {
    background: #fdecec;
    color: #a33e3e;
}

.account-order-total {
    margin-top: 10px;
    font-size: 17px;
    font-weight: 850;
    color: #6726AB;
}

.account-empty,
.account-loading {
    padding: 18px 12px;
    text-align: center;
    border-radius: 12px;
    background: #f9f7fa;
    color: #817787;
    font-size: 11px;
    line-height: 1.45;
}

.account-empty-title {
    color: #33273a;
    font-size: 13px;
    font-weight: 850;
}

.account-empty-text {
    margin-top: 5px;
}

.account-error {
    color: #9e4141;
    background: #fff3f3;
}

.account-logout-btn {
    margin-top: 16px;
    border: 1px solid #eadfe7;
    background: #fff;
    color: #9b4059;
}

@media (max-width: 600px) {
    .account-sheet {
        top: 6vh;
        width: 100%;
        border-radius: 20px 20px 0 0;
        transform: translateY(105%);
        box-shadow: 0 -18px 50px rgba(39, 22, 50, .16);
    }

    .account-sheet.open {
        transform: translateY(0);
    }

    .account-sheet-header {
        min-height: 62px;
        padding: 12px 14px;
    }

    .account-scroll {
        padding: 14px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .account-user-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .account-avatar {
        width: 42px;
        height: 42px;
    }

    .account-approved-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }
}


/* ============================================================
   V35 — СОСТАВ ЗАКАЗА В ЛИЧНОМ КАБИНЕТЕ
   ============================================================ */

.account-order-card {
    overflow: hidden;
}

.account-order-toggle {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.account-order-bottom {
    margin-top: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.account-order-open-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #776c7e;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.account-order-chevron {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    transition: transform .18s ease;
}

.account-order-card.open .account-order-chevron {
    transform: rotate(180deg);
}

.account-order-details {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee8f1;
}

.account-order-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 9px 0;
}

.account-order-item + .account-order-item {
    border-top: 1px solid #f1edf3;
}

.account-order-item-name {
    color: #2b2130;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
}

.account-order-item-meta {
    margin-top: 3px;
    color: #928897;
    font-size: 10px;
}

.account-order-item-total {
    color: #382d3e;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.account-order-no-items {
    padding: 8px 0 2px;
    color: #948a99;
    font-size: 10px;
}


/* ============================================================
   V36 — ЦЕНТР ЗАКАЗОВ
   ============================================================ */

.account-order-summary {
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

body.orders-center-open {
    overflow: hidden;
}

.orders-center {
    position: fixed;
    inset: 0;
    z-index: 1600;
    background: #f7f4f8;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.orders-center.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.orders-center-shell,
.orders-center-view {
    width: 100%;
    height: 100%;
}

.orders-center-view {
    display: flex;
    flex-direction: column;
}

.orders-center-header {
    min-height: 82px;
    padding: 16px 24px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #e9e2ec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex: 0 0 auto;
}

.orders-center-header h2 {
    margin: 2px 0 0;
    font-size: 24px;
    line-height: 1.1;
    color: #211825;
}

.orders-center-kicker,
.order-detail-kicker {
    color: #6726AB;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .14em;
}

.orders-center-subtitle {
    margin-top: 5px;
    color: #817787;
    font-size: 11px;
}

.orders-center-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #e4dce8;
    background: #fff;
    color: #34283a;
    cursor: pointer;
    font-size: 17px;
}

.orders-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px;
    gap: 10px;
    padding: 14px 24px;
    background: #fff;
    border-bottom: 1px solid #ede7ef;
    flex: 0 0 auto;
}

.orders-search-wrap {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid #ded6e2;
    border-radius: 12px;
    background: #fff;
}

.orders-search-icon {
    color: #8a7f90;
    font-size: 18px;
}

.orders-search-wrap input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    color: #241c29;
}

.orders-status-filter {
    min-height: 44px;
    border: 1px solid #ded6e2;
    border-radius: 12px;
    background: #fff;
    padding: 0 12px;
    font: inherit;
    color: #302536;
    outline: none;
}

.orders-list-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 24px;
}

.orders-center-list {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 8px;
}

.orders-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(120px, 1.2fr) minmax(130px, .8fr) minmax(120px, .6fr) 22px;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border: 1px solid #e7e0ea;
    border-radius: 14px;
    background: #fff;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.orders-row:hover {
    border-color: #cdb7db;
    box-shadow: 0 7px 22px rgba(52, 31, 62, .06);
    transform: translateY(-1px);
}

.orders-row-main {
    min-width: 0;
}

.orders-row-number {
    font-size: 14px;
    font-weight: 900;
    color: #2b2030;
}

.orders-row-date {
    margin-top: 4px;
    color: #928799;
    font-size: 10px;
}

.orders-row-status-wrap {
    display: flex;
    align-items: center;
}

.orders-row-total {
    text-align: right;
    color: #6726AB;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.orders-row-arrow {
    color: #9c91a2;
    font-size: 24px;
    text-align: right;
}

.orders-pagination {
    min-height: 68px;
    padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #e8e1eb;
    background: #fff;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 120px;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.orders-pagination button {
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid #ddd3e3;
    background: #faf7fb;
    color: #6726AB;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.orders-pagination button:disabled {
    opacity: .35;
    cursor: default;
}

.orders-page-info {
    text-align: center;
    color: #766c7c;
    font-size: 11px;
    font-weight: 700;
}

.orders-center-loading,
.orders-center-empty {
    padding: 50px 18px;
    border: 1px dashed #ddd4e1;
    border-radius: 16px;
    background: #fff;
    color: #817687;
    text-align: center;
    font-size: 12px;
}

.orders-empty-icon {
    font-size: 30px;
    color: #a99caf;
}

.orders-empty-title {
    margin-top: 8px;
    color: #34293a;
    font-size: 16px;
    font-weight: 900;
}

.orders-empty-text {
    margin-top: 5px;
}

.orders-center-error {
    color: #9a4242;
    background: #fff7f7;
}

/* ORDER DETAIL */

.order-detail-header {
    justify-content: space-between;
}

.order-detail-back {
    min-height: 40px;
    border: 0;
    background: transparent;
    color: #6726AB;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.order-detail-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    width: 100%;
    padding: 24px;
}

.order-detail-scroll > * {
    width: min(900px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.order-detail-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.order-detail-hero h2 {
    margin: 3px 0 0;
    font-size: 30px;
    color: #241b29;
}

.order-detail-date {
    margin-top: 5px;
    color: #8e8493;
    font-size: 11px;
}

.order-detail-status {
    margin-top: 5px;
}

.order-detail-card {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid #e8e1eb;
    border-radius: 16px;
    background: #fff;
}

.order-detail-card-title {
    margin-bottom: 13px;
    color: #302536;
    font-size: 13px;
    font-weight: 900;
}

.order-progress {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    position: relative;
}

.order-progress-step {
    position: relative;
    text-align: center;
    color: #aaa0af;
    font-size: 9px;
    font-weight: 750;
}

.order-progress-step::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e8e1eb;
    z-index: 0;
}

.order-progress-step:first-child::before {
    left: 50%;
}

.order-progress-step:last-child::before {
    right: 50%;
}

.order-progress-step.done::before {
    background: #8f5bc0;
}

.order-progress-dot {
    position: relative;
    z-index: 1;
    width: 14px;
    height: 14px;
    margin: 0 auto 7px;
    border: 3px solid #e8e1eb;
    border-radius: 50%;
    background: #fff;
}

.order-progress-step.done .order-progress-dot {
    border-color: #6726AB;
    background: #6726AB;
    box-shadow: 0 0 0 3px #f1e8f8;
}

.order-progress-step.done {
    color: #5f456f;
}

.order-cancelled-note {
    padding: 12px;
    border-radius: 11px;
    background: #fff0f0;
    color: #a44343;
    font-size: 12px;
    font-weight: 850;
}

.order-detail-items {
    display: grid;
}

.order-detail-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 15px;
    padding: 11px 0;
}

.order-detail-item + .order-detail-item {
    border-top: 1px solid #f0ebf2;
}

.order-detail-item-name {
    color: #2c2131;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
}

.order-detail-item-meta {
    margin-top: 3px;
    color: #958a9b;
    font-size: 10px;
}

.order-detail-item-sum {
    color: #382d3e;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.order-detail-total {
    margin-top: 10px;
    padding-top: 13px;
    border-top: 1px solid #ded5e3;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
}

.order-detail-total span {
    color: #766d7c;
    font-size: 11px;
    font-weight: 750;
}

.order-detail-total strong {
    color: #6726AB;
    font-size: 22px;
}

.order-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.order-detail-info-grid > div {
    min-height: 60px;
    padding: 11px 12px;
    border-radius: 12px;
    background: #f8f5fa;
}

.order-detail-info-grid span {
    display: block;
    color: #918697;
    font-size: 9px;
}

.order-detail-info-grid strong {
    display: block;
    margin-top: 5px;
    color: #2c2331;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.order-detail-comment {
    color: #514657;
    font-size: 12px;
    line-height: 1.5;
}

.order-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 25px;
}

.order-detail-actions button {
    min-height: 50px;
    border-radius: 13px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.order-repeat-btn {
    border: 0;
    background: #6726AB;
    color: #fff;
}

.order-pdf-btn {
    border: 1px solid #d9cce2;
    background: #fff;
    color: #6726AB;
}

@media (max-width: 720px) {
    .orders-center-header {
        min-height: 66px;
        padding: 12px 14px;
    }

    .orders-center-header h2 {
        font-size: 20px;
    }

    .orders-toolbar {
        grid-template-columns: 1fr;
        padding: 10px 14px;
    }

    .orders-list-body {
        padding: 12px 14px;
    }

    .orders-row {
        grid-template-columns: minmax(0, 1fr) auto 18px;
        gap: 8px;
        padding: 13px;
    }

    .orders-row-status-wrap {
        grid-column: 1 / 2;
        grid-row: 2;
    }

    .orders-row-total {
        grid-column: 2 / 3;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .orders-row-arrow {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .orders-pagination {
        grid-template-columns: 92px minmax(0, 1fr) 92px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .orders-pagination button {
        font-size: 10px;
    }

    .orders-page-info {
        font-size: 9px;
    }

    .order-detail-scroll {
        padding: 14px;
    }

    .order-detail-hero h2 {
        font-size: 25px;
    }

    .order-progress {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 16px;
    }

    .order-progress-step::before {
        display: none;
    }

    .order-detail-info-grid {
        grid-template-columns: 1fr;
    }

    .order-detail-actions {
        grid-template-columns: 1fr;
        position: sticky;
        bottom: 0;
        padding: 9px 0 calc(9px + env(safe-area-inset-bottom));
        background: linear-gradient(to bottom, rgba(247,244,248,0), #f7f4f8 18%);
    }
}


/* ============================================================
   V37 — ИСПРАВЛЕНИЕ ЦЕНТРА ЗАКАЗОВ
   ============================================================ */

.orders-row-card {
    border: 1px solid #e7e0ea;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.orders-row-card:hover {
    border-color: #cdb7db;
    box-shadow: 0 7px 22px rgba(52, 31, 62, .06);
}

.orders-row-open {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(120px, 1.2fr) minmax(130px, .8fr) minmax(120px, .6fr) 22px;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.orders-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    padding: 9px 12px;
    border-top: 1px solid #f0ebf2;
    background: #fbf9fc;
}

.orders-row-action {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #ddd2e4;
    border-radius: 9px;
    background: #fff;
    color: #6726AB;
    font: inherit;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.orders-row-repeat {
    background: #6726AB;
    color: #fff;
    border-color: #6726AB;
}

.orders-row-action:disabled {
    opacity: .55;
    cursor: wait;
}

.order-progress.order-progress-4 {
    grid-template-columns: repeat(4, 1fr);
}

.order-detail-items-warning {
    padding: 13px;
    border-radius: 11px;
    background: #fff8e9;
    color: #806329;
    font-size: 11px;
    line-height: 1.5;
}

.order-detail-actions button:disabled {
    opacity: .42;
    cursor: not-allowed;
}

.account-order-status.status-processing {
    background: #eef2ff;
    color: #455aa0;
}

.account-order-status.status-ready {
    background: #eef8ec;
    color: #34733b;
}

.account-order-status.status-completed {
    background: #e8f6ef;
    color: #25734c;
}

@media (max-width: 720px) {
    .orders-row-open {
        grid-template-columns: minmax(0, 1fr) auto 18px;
        gap: 8px;
        padding: 13px;
    }

    .orders-row-actions {
        justify-content: stretch;
    }

    .orders-row-action {
        flex: 1;
    }

    .order-progress.order-progress-4 {
        grid-template-columns: repeat(4, 1fr);
        row-gap: 0;
    }
}


/* ============================================================
   V38 — МОИ ЗАКАЗЫ: UI + FIX ОТКРЫТИЯ
   ============================================================ */

/* Важно: авторские display:flex не должны перебивать HTML hidden */
.orders-center-view[hidden],
.order-detail-view[hidden] {
    display: none !important;
}

.orders-center-list {
    gap: 10px;
}

.orders-row-card {
    display: block;
    border: 1px solid #e7e0ea;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    outline: none;
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease,
        background .16s ease;
}

.orders-row-card:hover {
    transform: translateY(-1px);
    border-color: #ccb8da;
    box-shadow: 0 10px 28px rgba(52, 31, 62, .07);
}

.orders-row-card:active {
    transform: translateY(0);
    background: #fdfbfe;
}

.orders-row-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(103, 38, 171, .13);
    border-color: #9f79bf;
}

.orders-row-main-block {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 15px 12px;
}

.orders-row-left {
    min-width: 0;
}

.orders-row-number-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.orders-row-number {
    font-size: 17px;
    line-height: 1.1;
    font-weight: 900;
    color: #251b2b;
    letter-spacing: -.01em;
}

.orders-row-date {
    margin-top: 7px;
    color: #978c9d;
    font-size: 10px;
    font-weight: 650;
}

.orders-row-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.orders-row-total {
    text-align: right;
    color: #6726AB;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 900;
    white-space: nowrap;
}

.orders-row-chevron-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #e0d6e5;
    border-radius: 50%;
    background: #faf7fb;
    color: #6726AB;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.orders-row-chevron-btn:hover {
    transform: translateX(2px);
    background: #f4ecf9;
    border-color: #cbb6d9;
}

.orders-row-footer {
    min-height: 39px;
    padding: 7px 12px;
    border-top: 1px solid #f0ebf2;
    background: #fbf9fc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.orders-row-repeat-link {
    min-height: 28px;
    padding: 0 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6726AB;
    font: inherit;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.orders-row-repeat-link:hover {
    background: #f0e7f6;
}

.orders-row-repeat-link:disabled {
    opacity: .5;
    cursor: wait;
}

.orders-row-hint {
    color: #aaa0ae;
    font-size: 9px;
    line-height: 1.2;
}

/* Чуть более "воздушный" тулбар */
.orders-toolbar {
    background: rgba(255,255,255,.98);
}

.orders-search-wrap:focus-within,
.orders-status-filter:focus {
    border-color: #a47cc4;
    box-shadow: 0 0 0 3px rgba(103, 38, 171, .08);
}

/* Детали заказа */
.order-detail-view {
    background: #f7f4f8;
}

.order-detail-scroll {
    scroll-behavior: smooth;
}

.order-detail-card {
    box-shadow: 0 2px 12px rgba(47, 27, 57, .025);
}

.order-detail-hero {
    padding: 4px 2px;
}

.order-detail-actions {
    z-index: 2;
}

/* Мобильный вид */
@media (max-width: 720px) {
    .orders-row-main-block {
        min-height: 70px;
        padding: 12px 12px 10px;
        gap: 10px;
    }

    .orders-row-number {
        font-size: 16px;
    }

    .orders-row-total {
        font-size: 14px;
    }

    .orders-row-chevron-btn {
        width: 34px;
        height: 34px;
        font-size: 23px;
    }

    .orders-row-footer {
        min-height: 36px;
        padding: 6px 9px;
    }

    .orders-row-hint {
        display: none;
    }

    .orders-row-repeat-link {
        min-height: 27px;
        padding-left: 7px;
        padding-right: 7px;
    }

    .orders-center-list {
        gap: 8px;
    }
}


/* ============================================================
   V39 — МОИ ЗАКАЗЫ PRO
   ============================================================ */

.orders-pro-top {
    flex: 0 0 auto;
    background: #fff;
    border-bottom: 1px solid #ede7ef;
}

.orders-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 14px 24px 4px;
}

.orders-stat-card {
    min-height: 66px;
    padding: 10px 12px;
    border: 1px solid #e8e1eb;
    border-radius: 14px;
    background: #fbf9fc;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.orders-stat-card:hover {
    border-color: #ceb9db;
    transform: translateY(-1px);
}

.orders-stat-card.active {
    border-color: #9f74bf;
    background: #f5eef9;
    box-shadow: inset 0 0 0 1px rgba(103,38,171,.04);
}

.orders-stat-card span {
    display: block;
    color: #8d8293;
    font-size: 9px;
    font-weight: 750;
}

.orders-stat-card strong {
    display: block;
    margin-top: 5px;
    color: #2d2232;
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
}

.orders-stat-card.active strong {
    color: #6726AB;
}

.orders-toolbar {
    grid-template-columns: minmax(260px, 1fr) 230px;
    border-bottom: 0;
    padding-bottom: 10px;
}

.orders-search-wrap {
    position: relative;
}

.orders-search-clear {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #f2edf4;
    color: #7d7283;
    cursor: pointer;
    flex: 0 0 auto;
}

.orders-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 24px 13px;
}

.orders-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.orders-filter-chip {
    min-height: 31px;
    padding: 0 11px;
    border: 1px solid #e2dae6;
    border-radius: 999px;
    background: #fff;
    color: #6d6273;
    font: inherit;
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.orders-filter-chip:hover {
    border-color: #cbb8d8;
    background: #faf6fc;
}

.orders-filter-chip.active {
    border-color: #6726AB;
    background: #6726AB;
    color: #fff;
}

.orders-reset-btn {
    min-height: 31px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #9a7188;
    font: inherit;
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
}

.orders-reset-btn:hover {
    color: #6726AB;
}

.orders-sort-select {
    cursor: pointer;
}

@media (max-width: 720px) {
    .orders-stats {
        grid-template-columns: repeat(4, minmax(72px, 1fr));
        gap: 6px;
        padding: 10px 10px 3px;
        overflow-x: auto;
    }

    .orders-stat-card {
        min-width: 72px;
        min-height: 58px;
        padding: 8px 9px;
    }

    .orders-stat-card strong {
        font-size: 17px;
    }

    .orders-toolbar {
        grid-template-columns: 1fr;
        padding: 8px 10px;
    }

    .orders-filter-row {
        align-items: flex-start;
        padding: 0 10px 10px;
    }

    .orders-filter-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .orders-filter-chips::-webkit-scrollbar {
        display: none;
    }

    .orders-filter-chip {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .orders-reset-btn {
        flex: 0 0 auto;
    }
}


/* ============================================================
   V40 — ADMIN PANEL
   ============================================================ */

.account-admin-access[hidden],
.admin-view[hidden],
.admin-detail-view[hidden] {
    display: none !important;
}

.account-admin-access {
    background: linear-gradient(135deg, #2f1f3b 0%, #482a5f 100%);
    border-color: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.account-admin-access .account-section-title {
    color: #fff;
}

.account-admin-access .account-section-subtitle {
    color: rgba(255,255,255,.62);
}

.admin-access-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-access-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255,255,255,.13);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    flex: 0 0 auto;
}

.admin-access-btn {
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;
    background: rgba(255,255,255,.1);
    color: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
}

body.admin-panel-open {
    overflow: hidden;
}

.admin-panel {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #f5f3f6;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.admin-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-panel-shell,
.admin-view {
    width: 100%;
    height: 100%;
}

.admin-view {
    display: flex;
    flex-direction: column;
}

.admin-header {
    min-height: 78px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #24192c;
    color: #fff;
    flex: 0 0 auto;
}

.admin-header-main {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.admin-brand-mark {
    width: 43px;
    height: 43px;
    border-radius: 13px;
    background: #6726AB;
    display: grid;
    place-items: center;
    font-size: 19px;
    font-weight: 900;
    flex: 0 0 auto;
}

.admin-kicker {
    color: #cdaee6;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
}

.admin-header h2,
.admin-detail-hero h2 {
    margin: 3px 0 0;
}

.admin-header h2 {
    color: #fff;
    font-size: 21px;
}

.admin-subtitle {
    margin-top: 4px;
    color: rgba(255,255,255,.58);
    font-size: 10px;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-refresh-btn,
.admin-close-btn,
.admin-back-btn {
    min-height: 38px;
    border-radius: 10px;
    font: inherit;
    cursor: pointer;
}

.admin-refresh-btn {
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.admin-close-btn {
    width: 38px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 16px;
}

.admin-back-btn {
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 11px;
    font-weight: 850;
}

.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 22px 5px;
    background: #fff;
}

.admin-stat {
    min-height: 62px;
    padding: 9px 11px;
    border: 1px solid #e7e0ea;
    border-radius: 13px;
    background: #faf8fb;
    text-align: left;
    cursor: pointer;
}

.admin-stat.active {
    border-color: #6726AB;
    background: #f3ecf8;
}

.admin-stat span {
    display: block;
    color: #8d8293;
    font-size: 9px;
    font-weight: 750;
}

.admin-stat strong {
    display: block;
    margin-top: 5px;
    color: #2e2333;
    font-size: 19px;
    font-weight: 900;
}

.admin-stat.active strong {
    color: #6726AB;
}

.admin-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 230px;
    gap: 8px;
    padding: 10px 22px 8px;
    background: #fff;
}

.admin-search-wrap {
    min-height: 42px;
    padding: 0 11px;
    border: 1px solid #ded6e2;
    border-radius: 11px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff;
}

.admin-search-wrap input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    color: #29202e;
}

.admin-search-wrap button {
    width: 27px;
    height: 27px;
    border: 0;
    border-radius: 50%;
    background: #f1edf3;
    color: #7c7182;
    cursor: pointer;
}

.admin-select {
    min-height: 42px;
    border: 1px solid #ded6e2;
    border-radius: 11px;
    background: #fff;
    padding: 0 10px;
    font: inherit;
    color: #302536;
}

.admin-filter-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 22px 11px;
    background: #fff;
    border-bottom: 1px solid #e8e2ea;
}

.admin-chip {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #e2dae6;
    border-radius: 999px;
    background: #fff;
    color: #6d6273;
    font: inherit;
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
}

.admin-chip.active {
    background: #2d2035;
    color: #fff;
    border-color: #2d2035;
}

.admin-reset-btn {
    min-height: 30px;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #8f6680;
    font: inherit;
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
}

.admin-list-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 13px 22px;
}

.admin-orders-list {
    display: grid;
    gap: 7px;
}

.admin-order-row {
    display: grid;
    grid-template-columns: 100px minmax(160px, 1.15fr) minmax(150px, 1fr) 125px 150px 34px;
    gap: 12px;
    align-items: center;
    min-height: 67px;
    padding: 9px 11px;
    border: 1px solid #e5dee8;
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.admin-order-row:hover {
    border-color: #cab7d6;
    box-shadow: 0 6px 18px rgba(43,25,52,.05);
    transform: translateY(-1px);
}

.admin-order-number {
    color: #281e2d;
    font-size: 14px;
    font-weight: 900;
}

.admin-order-date {
    margin-top: 4px;
    color: #958a9b;
    font-size: 9px;
}

.admin-order-customer,
.admin-order-contact {
    min-width: 0;
}

.admin-order-customer strong,
.admin-order-customer span,
.admin-order-contact span,
.admin-order-contact small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-order-customer strong {
    color: #302536;
    font-size: 11px;
    font-weight: 850;
}

.admin-order-customer span,
.admin-order-contact small {
    margin-top: 3px;
    color: #978c9d;
    font-size: 9px;
}

.admin-order-contact span {
    color: #554a5b;
    font-size: 10px;
    font-weight: 750;
}

.admin-order-total {
    text-align: right;
    color: #6726AB;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-status-select {
    width: 100%;
    min-height: 34px;
    border: 1px solid #ddd4e2;
    border-radius: 9px;
    padding: 0 7px;
    background: #faf8fb;
    font: inherit;
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
}

.admin-status-select.status-new {
    color: #8a5e22;
    background: #fff8e8;
}

.admin-status-select.status-processing {
    color: #455aa0;
    background: #f0f3ff;
}

.admin-status-select.status-ready {
    color: #34733b;
    background: #eff8ed;
}

.admin-status-select.status-completed {
    color: #26714c;
    background: #eaf6ef;
}

.admin-status-select.status-cancelled {
    color: #a04343;
    background: #fff0f0;
}

.admin-order-arrow {
    width: 32px;
    height: 32px;
    border: 1px solid #e0d7e4;
    border-radius: 50%;
    background: #faf8fb;
    color: #6726AB;
    font-size: 22px;
    cursor: pointer;
}

.admin-pagination {
    min-height: 61px;
    padding: 10px 22px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #e5dfe7;
    background: #fff;
    display: grid;
    grid-template-columns: 110px minmax(0,1fr) 110px;
    align-items: center;
    gap: 10px;
}

.admin-pagination button {
    min-height: 38px;
    border: 1px solid #ddd4e2;
    border-radius: 10px;
    background: #faf8fb;
    color: #6726AB;
    font: inherit;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.admin-pagination button:disabled {
    opacity: .35;
    cursor: default;
}

.admin-pagination div {
    text-align: center;
    color: #786d7e;
    font-size: 10px;
}

.admin-loading,
.admin-empty {
    padding: 45px 15px;
    border: 1px dashed #ddd4e1;
    border-radius: 14px;
    background: #fff;
    color: #857a8b;
    text-align: center;
    font-size: 11px;
}

.admin-empty strong,
.admin-empty span {
    display: block;
}

.admin-empty span {
    margin-top: 5px;
}

.admin-error {
    color: #9b4141;
    background: #fff7f7;
}

/* DETAIL */

.admin-detail-view {
    background: #f5f3f6;
}

.admin-detail-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px;
}

.admin-detail-scroll > * {
    width: min(980px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.admin-detail-hero {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.admin-detail-hero h2 {
    color: #251b2a;
    font-size: 28px;
}

.admin-detail-date {
    margin-top: 5px;
    color: #8f8495;
    font-size: 10px;
}

.admin-detail-card {
    margin-bottom: 11px;
    padding: 15px;
    border: 1px solid #e4dde7;
    border-radius: 15px;
    background: #fff;
}

.admin-detail-title {
    margin-bottom: 12px;
    color: #302536;
    font-size: 12px;
    font-weight: 900;
}

.admin-status-buttons {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 6px;
}

.admin-status-button {
    min-height: 40px;
    border: 1px solid #e1d9e5;
    border-radius: 10px;
    background: #faf8fb;
    color: #706576;
    font: inherit;
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
}

.admin-status-button.active {
    border-color: #6726AB;
    background: #6726AB;
    color: #fff;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 11px;
}

.admin-customer-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.admin-customer-info > div,
.admin-order-summary-card > div {
    padding: 10px;
    border-radius: 10px;
    background: #f8f5fa;
}

.admin-customer-info span,
.admin-order-summary-card span {
    display: block;
    color: #918697;
    font-size: 8px;
}

.admin-customer-info strong,
.admin-customer-info a,
.admin-order-summary-card strong {
    display: block;
    margin-top: 4px;
    color: #2d2332;
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.admin-order-summary-card {
    display: grid;
    gap: 8px;
}

.admin-order-summary-total strong {
    color: #6726AB;
    font-size: 18px;
}

.admin-detail-items {
    display: grid;
}

.admin-detail-item {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 12px;
    padding: 10px 0;
}

.admin-detail-item + .admin-detail-item {
    border-top: 1px solid #f0ebf2;
}

.admin-detail-item strong,
.admin-detail-item span {
    display: block;
}

.admin-detail-item strong {
    color: #2e2433;
    font-size: 11px;
}

.admin-detail-item span {
    margin-top: 3px;
    color: #94899a;
    font-size: 9px;
}

.admin-detail-item b {
    color: #382d3e;
    font-size: 11px;
    white-space: nowrap;
}

.admin-detail-total {
    margin-top: 9px;
    padding-top: 12px;
    border-top: 1px solid #ddd5e1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.admin-detail-total span {
    color: #776d7d;
    font-size: 10px;
}

.admin-detail-total strong {
    color: #6726AB;
    font-size: 20px;
}

.admin-comment {
    color: #534858;
    font-size: 11px;
    line-height: 1.5;
}

.admin-detail-empty {
    color: #8f8495;
    font-size: 10px;
}

@media (max-width: 800px) {
    .account-admin-access {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-access-btn {
        width: 100%;
    }

    .admin-header {
        min-height: 72px;
        padding: 12px 12px;
    }

    .admin-header-main {
        align-items: flex-start;
    }

    .admin-header h2 {
        font-size: 18px;
        line-height: 1.08;
    }

    .admin-subtitle {
        font-size: 12px;
        line-height: 1.2;
    }

    .admin-brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .admin-refresh-btn {
        display: none;
    }

    .admin-close-btn,
    .admin-detail-close-btn {
        width: 42px;
        min-height: 42px;
        border-radius: 14px;
        font-size: 18px;
    }

    .admin-dashboard {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 10px 6px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .admin-dashboard::-webkit-scrollbar,
    .admin-filter-row::-webkit-scrollbar {
        display: none;
    }

    .admin-stat {
        flex: 0 0 104px;
        min-width: 104px;
        min-height: 70px;
        padding: 11px 12px;
    }

    .admin-stat span {
        font-size: 12px;
    }

    .admin-stat strong {
        margin-top: 7px;
        font-size: 24px;
        line-height: 1;
    }

    .admin-toolbar {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 8px 10px 10px;
    }

    .admin-search-wrap,
    .admin-select {
        min-height: 48px;
        border-radius: 14px;
    }

    .admin-search-wrap {
        gap: 10px;
        padding: 0 13px;
    }

    .admin-search-wrap input,
    .admin-select {
        font-size: 15px;
    }

    .admin-search-wrap button {
        width: 30px;
        height: 30px;
    }

    .admin-filter-row {
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding: 0 10px 12px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .admin-chip {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 0 14px;
        white-space: nowrap;
        font-size: 14px;
    }

    .admin-reset-btn {
        flex: 0 0 auto;
        font-size: 13px;
    }

    .admin-list-scroll {
        padding: 10px 10px 16px;
        overscroll-behavior: contain;
    }

    .admin-orders-list {
        gap: 12px;
    }

    .admin-order-row {
        grid-template-columns: minmax(0,1fr) auto;
        grid-template-areas:
            "number total"
            "customer customer"
            "status arrow";
        align-items: start;
        gap: 10px 12px;
        min-height: auto;
        padding: 14px;
        border-radius: 18px;
    }

    .admin-order-number-block {
        grid-area: number;
        min-width: 0;
    }

    .admin-order-number {
        font-size: 18px;
        line-height: 1;
    }

    .admin-order-date {
        margin-top: 6px;
        font-size: 13px;
        line-height: 1.2;
    }

    .admin-order-customer {
        grid-area: customer;
    }

    .admin-order-customer strong,
    .admin-order-customer span {
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
    }

    .admin-order-customer strong {
        font-size: 17px;
        line-height: 1.18;
    }

    .admin-order-customer span {
        margin-top: 5px;
        font-size: 14px;
        line-height: 1.35;
    }

    .admin-order-contact {
        display: none;
    }

    .admin-order-total {
        grid-area: total;
        align-self: center;
        text-align: right;
        font-size: 18px;
        line-height: 1.1;
    }

    .admin-order-status-cell {
        grid-area: status;
        min-width: 0;
    }

    .admin-status-select {
        min-height: 46px;
        border-radius: 14px;
        padding: 0 14px;
        font-size: 15px;
    }

    .admin-order-arrow {
        grid-area: arrow;
        width: 46px;
        height: 46px;
        font-size: 30px;
        justify-self: end;
        align-self: end;
    }

    .admin-pagination {
        grid-template-columns: 1fr auto 1fr;
        gap: 12px;
        min-height: 70px;
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    }

    .admin-pagination button {
        min-height: 44px;
        border-radius: 14px;
        font-size: 14px;
    }

    .admin-pagination div {
        font-size: 14px;
        white-space: nowrap;
    }

    .admin-detail-scroll {
        padding: 11px;
    }

    .admin-status-buttons {
        grid-template-columns: 1fr 1fr;
    }

    .admin-status-button:last-child {
        grid-column: 1 / -1;
    }

    .admin-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-customer-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .admin-kicker {
        font-size: 10px;
        letter-spacing: .12em;
    }

    .admin-header h2 {
        font-size: 16px;
    }

    .admin-subtitle {
        margin-top: 5px;
        font-size: 11px;
    }

    .admin-stat {
        flex-basis: 98px;
        min-width: 98px;
    }

    .admin-search-wrap input::placeholder {
        font-size: 13px;
    }

    .admin-order-row {
        padding: 13px;
    }

    .admin-order-number {
        font-size: 17px;
    }

    .admin-order-customer strong {
        font-size: 16px;
    }

    .admin-order-customer span {
        font-size: 13px;
    }

    .admin-order-total {
        font-size: 16px;
    }

    .admin-status-select {
        font-size: 14px;
    }
}


/* ============================================================
   V42 — FINAL ADMIN / CLIENTS / RECEIVABLES
   ============================================================ */

.account-discount-section .account-section-head {
    align-items: center;
    margin-bottom: 0;
}

.account-discount-value {
    flex: 0 0 auto;
    min-width: 72px;
    padding: 9px 12px;
    border-radius: 12px;
    background: #f3ecf8;
    color: #6726AB;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
}

/* admin shell */
.admin-panel-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.admin-header {
    min-height: 66px;
    padding: 10px 18px;
}

.admin-header h2 {
    font-size: 19px;
}

.admin-main-tabs {
    min-height: 48px;
    display: flex;
    align-items: stretch;
    gap: 3px;
    padding: 5px 10px;
    border-bottom: 1px solid #e7e0ea;
    background: #fff;
    flex: 0 0 auto;
}

.admin-main-tabs[hidden] {
    display: none !important;
}

.admin-main-tab {
    position: relative;
    min-height: 38px;
    padding: 0 15px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #756b7b;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.admin-main-tab.active {
    background: #2d2035;
    color: #fff;
}

.admin-tab-badge {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 999px;
    background: #c84949;
    color: #fff;
    font-size: 8px;
}

.admin-content {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
}

.admin-content > .admin-view {
    height: 100%;
}

.admin-view[hidden],
.admin-detail-view[hidden] {
    display: none !important;
}

/* compact order controls */
.admin-compact-stats {
    display: flex;
    gap: 7px;
    padding: 8px 14px 4px;
    overflow-x: auto;
    background: #fff;
    scrollbar-width: none;
}

.admin-compact-stats::-webkit-scrollbar {
    display: none;
}

.admin-mini-stat {
    flex: 0 0 100px;
    min-height: 50px;
    padding: 7px 10px;
    border: 1px solid #e6dfe9;
    border-radius: 11px;
    background: #faf8fb;
    text-align: left;
    cursor: pointer;
}

.admin-mini-stat.active {
    border-color: #8e5eb4;
    background: #f3ecf8;
}

.admin-mini-stat span {
    display: block;
    color: #8b808f;
    font-size: 9px;
}

.admin-mini-stat strong {
    display: block;
    margin-top: 3px;
    color: #2d2232;
    font-size: 17px;
    line-height: 1;
}

.admin-compact-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px;
    gap: 7px;
    padding: 7px 14px;
    background: #fff;
}

.admin-search-wrap,
.admin-select {
    min-height: 38px;
    border-radius: 10px;
}

.admin-search-wrap {
    padding: 0 10px;
}

.admin-search-wrap input,
.admin-select {
    font-size: 12px;
}

.admin-filter-row {
    min-height: 39px;
    padding: 0 14px 7px;
    gap: 5px;
}

.admin-chip {
    min-height: 28px;
    padding: 0 9px;
    font-size: 9px;
}

.admin-list-scroll {
    padding-top: 9px;
}

/* order rows */
.admin-order-row {
    grid-template-columns: 90px minmax(180px, 1fr) 150px 145px 32px;
}

.admin-order-finance {
    text-align: right;
}

.admin-order-finance strong,
.admin-order-finance span {
    display: block;
}

.admin-order-finance strong {
    color: #6726AB;
    font-size: 11px;
}

.admin-order-finance span {
    margin-top: 3px;
    font-size: 8px;
}

.admin-debt-label,
.debt-text {
    color: #b04444 !important;
}

.admin-paid-label,
.no-debt strong {
    color: #2d7a4e !important;
}

/* clients */
.admin-section-title-row {
    min-height: 49px;
    padding: 9px 14px 5px;
    background: #fff;
}

.admin-section-title-row strong,
.admin-section-title-row span {
    display: block;
}

.admin-section-title-row strong {
    color: #302536;
    font-size: 13px;
}

.admin-section-title-row span {
    margin-top: 2px;
    color: #8f8495;
    font-size: 9px;
}

.admin-clients-list {
    display: grid;
    gap: 7px;
}

.admin-client-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) 85px 70px minmax(140px, .9fr) 32px;
    gap: 11px;
    align-items: center;
    min-height: 66px;
    padding: 9px 11px;
    border: 1px solid #e5dee8;
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
}

.admin-client-main,
.admin-client-discount,
.admin-client-orders,
.admin-client-debts {
    min-width: 0;
}

.admin-client-main strong,
.admin-client-main span,
.admin-client-main small,
.admin-client-discount span,
.admin-client-discount strong,
.admin-client-orders span,
.admin-client-orders strong {
    display: block;
}

.admin-client-main strong {
    color: #302536;
    font-size: 11px;
    font-weight: 850;
}

.admin-client-main span {
    margin-top: 2px;
    color: #6d6273;
    font-size: 9px;
}

.admin-client-main small {
    margin-top: 3px;
    color: #9a8f9f;
    font-size: 8px;
}

.admin-client-discount span,
.admin-client-orders span {
    color: #958a9b;
    font-size: 8px;
}

.admin-client-discount strong,
.admin-client-orders strong {
    margin-top: 3px;
    color: #33283a;
    font-size: 12px;
}

.admin-client-debts {
    text-align: right;
}

.admin-client-debts span {
    display: block;
    font-size: 9px;
    font-weight: 850;
}

.debt-byn,
.debt-rub {
    color: #b04444;
}

/* client detail */
.admin-discount-form {
    display: grid;
    grid-template-columns: minmax(110px, 180px) 1fr;
    gap: 8px;
}

.admin-discount-input-wrap {
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: 0 10px;
    border: 1px solid #ded6e2;
    border-radius: 10px;
    background: #faf8fb;
}

.admin-discount-input-wrap input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
}

.admin-discount-form button {
    min-height: 43px;
    border: 0;
    border-radius: 10px;
    background: #6726AB;
    color: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.admin-client-finance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.admin-client-finance-grid > div {
    padding: 10px;
    border-radius: 10px;
    background: #f8f5fa;
}

.admin-client-finance-grid span,
.admin-client-finance-grid strong {
    display: block;
}

.admin-client-finance-grid span {
    color: #918697;
    font-size: 8px;
}

.admin-client-finance-grid strong {
    margin-top: 4px;
    color: #2e2433;
    font-size: 12px;
}

.admin-client-orders-list {
    display: grid;
    gap: 5px;
}

.admin-client-order-btn {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 4px 12px;
    width: 100%;
    padding: 10px;
    border: 1px solid #eee8f0;
    border-radius: 10px;
    background: #faf9fb;
    text-align: left;
    cursor: pointer;
}

.admin-client-order-btn span,
.admin-client-order-btn strong,
.admin-client-order-btn small {
    display: block;
}

.admin-client-order-btn small {
    grid-column: 1 / -1;
    color: #b04444;
    font-size: 8px;
}

.admin-client-order-btn small.paid {
    color: #2d7a4e;
}

/* debt */
.admin-debt-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 9px 14px 4px;
    background: #fff;
}

.admin-debt-card {
    min-height: 57px;
    padding: 8px 10px;
    border: 1px solid #eadfe5;
    border-radius: 11px;
    background: #fff8f8;
}

.admin-debt-card span,
.admin-debt-card strong {
    display: block;
}

.admin-debt-card span {
    color: #957b83;
    font-size: 8px;
}

.admin-debt-card strong {
    margin-top: 5px;
    color: #a63f3f;
    font-size: 15px;
}

.admin-currency-filter {
    display: flex;
    gap: 4px;
    padding: 3px;
    border-radius: 10px;
    background: #f1edf3;
}

.admin-currency-filter button {
    min-width: 48px;
    min-height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #766b7c;
    font: inherit;
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
}

.admin-currency-filter button.active {
    background: #fff;
    color: #6726AB;
    box-shadow: 0 2px 8px rgba(50,30,60,.06);
}

.admin-debt-list {
    display: grid;
    gap: 7px;
}

.admin-debt-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px;
    padding: 9px;
    border: 1px solid #eadfe5;
    border-radius: 13px;
    background: #fff;
}

.admin-debt-main {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(180px, .8fr) 26px;
    gap: 10px;
    align-items: center;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.admin-debt-main strong,
.admin-debt-main span,
.admin-debt-main small,
.admin-debt-values span,
.admin-debt-values strong {
    display: block;
}

.admin-debt-main > div:first-child > strong {
    color: #2d2232;
    font-size: 12px;
}

.admin-debt-main > div:first-child > span {
    margin-top: 2px;
    color: #625768;
    font-size: 9px;
}

.admin-debt-main small {
    margin-top: 3px;
    color: #9a8f9f;
    font-size: 8px;
}

.admin-debt-values {
    text-align: right;
}

.admin-debt-values span {
    color: #8d8293;
    font-size: 8px;
}

.admin-debt-values strong {
    margin-top: 3px;
    color: #b04444;
    font-size: 11px;
}

.admin-debt-arrow {
    color: #6726AB;
    font-size: 22px;
}

.admin-debt-pay-btn,
.admin-add-payment-btn {
    min-height: 36px;
    padding: 0 11px;
    border: 0;
    border-radius: 9px;
    background: #6726AB;
    color: #fff;
    font: inherit;
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
}

/* order finance */
.admin-detail-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-detail-title-row .admin-detail-title {
    margin-bottom: 0;
}

.admin-finance-grid,
.order-finance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 7px;
}

.admin-finance-grid > div,
.order-finance-grid > div {
    padding: 10px;
    border-radius: 10px;
    background: #f8f5fa;
}

.admin-finance-grid span,
.admin-finance-grid strong,
.order-finance-grid span,
.order-finance-grid strong {
    display: block;
}

.admin-finance-grid span,
.order-finance-grid span {
    color: #918697;
    font-size: 8px;
}

.admin-finance-grid strong,
.order-finance-grid strong {
    margin-top: 4px;
    color: #2d2332;
    font-size: 12px;
}

.admin-finance-grid .has-debt,
.order-finance-grid .has-debt {
    background: #fff1f1;
}

.admin-finance-grid .has-debt strong,
.order-finance-grid .has-debt strong {
    color: #b04444;
}

.admin-payments-history,
.order-payment-history {
    margin-top: 10px;
    display: grid;
    gap: 5px;
}

.admin-payment-row,
.order-payment-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #eee8f0;
    border-radius: 9px;
    background: #faf9fb;
}

.admin-payment-row strong,
.admin-payment-row span,
.admin-payment-row small,
.order-payment-row strong,
.order-payment-row span {
    display: block;
}

.admin-payment-row strong,
.order-payment-row strong {
    color: #2d7a4e;
    font-size: 11px;
}

.admin-payment-row span,
.order-payment-row span {
    margin-top: 2px;
    color: #8f8495;
    font-size: 8px;
}

.admin-payment-row small {
    margin-top: 2px;
    color: #6f6575;
    font-size: 8px;
}

.admin-payment-delete {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #fff0f0;
    color: #a54141;
    cursor: pointer;
}

.admin-big-total {
    color: #6726AB;
    font-size: 24px;
    font-weight: 900;
}

.admin-detail-muted {
    margin-top: 4px;
    color: #918697;
    font-size: 9px;
}

/* payment modal */
.payment-modal {
    position: fixed;
    inset: 0;
    z-index: 2300;
    display: none;
    place-items: center;
    padding: 16px;
}

.payment-modal.open {
    display: grid;
}

.payment-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28,20,34,.28);
    backdrop-filter: blur(4px);
}

.payment-modal-card {
    position: relative;
    width: min(430px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 80px rgba(31,18,39,.22);
}

.payment-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.payment-modal-head h3 {
    margin: 3px 0 0;
    color: #2d2232;
    font-size: 18px;
}

.payment-modal-debt {
    margin-top: 4px;
    color: #b04444;
    font-size: 10px;
    font-weight: 750;
}

.payment-close-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e4dce8;
    border-radius: 50%;
    background: #faf8fb;
    color: #4d4253;
    cursor: pointer;
}

.payment-field {
    display: block;
    margin-bottom: 10px;
}

.payment-field > span {
    display: block;
    margin-bottom: 5px;
    color: #6c6172;
    font-size: 9px;
    font-weight: 800;
}

.payment-field input,
.payment-field select {
    width: 100%;
    min-height: 43px;
    padding: 0 11px;
    border: 1px solid #ded6e2;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    box-sizing: border-box;
}

.payment-submit-btn {
    width: 100%;
    min-height: 46px;
    margin-top: 3px;
    border: 0;
    border-radius: 11px;
    background: #6726AB;
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

/* ============================================================
   MOBILE ADMIN V42 — compact, no "top wall"
   ============================================================ */

@media (max-width: 800px) {
    .admin-header {
        min-height: 56px;
        padding: 7px 9px;
    }

    .admin-brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 16px;
    }

    .admin-kicker {
        font-size: 8px;
    }

    .admin-header h2 {
        font-size: 14px;
        line-height: 1.05;
    }

    .admin-close-btn {
        width: 36px;
        min-height: 36px;
        border-radius: 11px;
        font-size: 15px;
    }

    .admin-main-tabs {
        min-height: 42px;
        padding: 4px 7px;
    }

    .admin-main-tab {
        flex: 1;
        min-height: 34px;
        padding: 0 8px;
        font-size: 10px;
    }

    .admin-compact-stats {
        gap: 5px;
        padding: 5px 7px 2px;
    }

    .admin-mini-stat {
        flex-basis: 72px;
        min-height: 42px;
        padding: 5px 7px;
        border-radius: 9px;
    }

    .admin-mini-stat span {
        font-size: 7px;
    }

    .admin-mini-stat strong {
        margin-top: 2px;
        font-size: 14px;
    }

    .admin-compact-toolbar {
        grid-template-columns: minmax(0, 1fr) 112px;
        gap: 5px;
        padding: 5px 7px;
    }

    .admin-search-wrap,
    .admin-select {
        min-height: 34px;
        border-radius: 9px;
    }

    .admin-search-wrap {
        padding: 0 8px;
        gap: 5px;
    }

    .admin-search-wrap input,
    .admin-select {
        font-size: 11px;
    }

    .admin-search-wrap input::placeholder {
        font-size: 10px;
    }

    .admin-search-wrap button {
        width: 24px;
        height: 24px;
    }

    .admin-filter-row {
        min-height: 33px;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 5px;
        padding: 0 7px 5px;
        scrollbar-width: none;
    }

    .admin-filter-row::-webkit-scrollbar {
        display: none;
    }

    .admin-chip {
        flex: 0 0 auto;
        min-height: 25px;
        padding: 0 8px;
        font-size: 8px;
    }

    .admin-list-scroll {
        padding: 6px 7px 10px;
    }

    .admin-orders-list,
    .admin-clients-list,
    .admin-debt-list {
        gap: 7px;
    }

    .admin-order-row {
        grid-template-columns: minmax(0, 1fr) auto 36px;
        grid-template-areas:
            "number finance arrow"
            "customer customer customer"
            "status status status";
        gap: 7px;
        padding: 9px;
        border-radius: 13px;
    }

    .admin-order-number-block {
        grid-area: number;
    }

    .admin-order-number {
        font-size: 14px;
    }

    .admin-order-date {
        margin-top: 3px;
        font-size: 9px;
    }

    .admin-order-customer {
        grid-area: customer;
    }

    .admin-order-customer strong {
        font-size: 12px;
    }

    .admin-order-customer span {
        margin-top: 2px;
        font-size: 9px;
    }

    .admin-order-finance {
        grid-area: finance;
        align-self: start;
    }

    .admin-order-finance strong {
        font-size: 12px;
    }

    .admin-order-finance span {
        font-size: 8px;
    }

    .admin-order-status-cell {
        grid-area: status;
    }

    .admin-status-select {
        min-height: 34px;
        border-radius: 9px;
        font-size: 10px;
    }

    .admin-order-arrow {
        grid-area: arrow;
        width: 34px;
        height: 34px;
        font-size: 23px;
        align-self: start;
    }

    .admin-pagination {
        min-height: 48px;
        grid-template-columns: 52px 1fr 52px;
        padding: 5px 7px calc(5px + env(safe-area-inset-bottom));
    }

    .admin-pagination button {
        min-height: 34px;
        border-radius: 9px;
        font-size: 14px;
    }

    .admin-pagination div {
        font-size: 10px;
    }

    /* clients */
    .admin-section-title-row {
        min-height: 39px;
        padding: 6px 8px 3px;
    }

    .admin-client-toolbar {
        grid-template-columns: minmax(0,1fr) 112px;
    }

    .admin-client-row {
        grid-template-columns: minmax(0,1fr) auto 34px;
        grid-template-areas:
            "main debt arrow"
            "discount orders arrow";
        gap: 7px;
        padding: 9px;
        border-radius: 13px;
    }

    .admin-client-main {
        grid-area: main;
    }

    .admin-client-main strong {
        font-size: 12px;
    }

    .admin-client-main span {
        font-size: 9px;
    }

    .admin-client-main small {
        font-size: 8px;
    }

    .admin-client-discount {
        grid-area: discount;
    }

    .admin-client-orders {
        grid-area: orders;
        justify-self: end;
        text-align: right;
    }

    .admin-client-debts {
        grid-area: debt;
        align-self: start;
        font-size: 8px;
    }

    .admin-client-row .admin-order-arrow {
        grid-area: arrow;
        align-self: center;
    }

    /* receivables */
    .admin-debt-summary {
        display: flex;
        gap: 5px;
        overflow-x: auto;
        padding: 5px 7px 2px;
        scrollbar-width: none;
    }

    .admin-debt-summary::-webkit-scrollbar {
        display: none;
    }

    .admin-debt-card {
        flex: 0 0 112px;
        min-height: 43px;
        padding: 6px 8px;
        border-radius: 9px;
    }

    .admin-debt-card span {
        font-size: 7px;
    }

    .admin-debt-card strong {
        margin-top: 3px;
        font-size: 12px;
    }

    .admin-debt-toolbar {
        grid-template-columns: minmax(0,1fr) auto;
    }

    .admin-currency-filter button {
        min-width: 38px;
        min-height: 28px;
        font-size: 8px;
    }

    .admin-debt-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 8px;
    }

    .admin-debt-main {
        grid-template-columns: minmax(0,1fr) auto 20px;
        gap: 6px;
    }

    .admin-debt-values span {
        font-size: 7px;
    }

    .admin-debt-values strong {
        font-size: 10px;
    }

    .admin-debt-pay-btn {
        width: 100%;
        min-height: 31px;
    }

    /* details */
    .admin-detail-topbar {
        min-height: 38px;
        padding: 4px 8px;
        background: #fff;
        border-bottom: 1px solid #e8e1eb;
    }

    .admin-back-btn {
        min-height: 30px;
        color: #6726AB;
    }

    .admin-detail-scroll {
        padding: 8px;
    }

    .admin-status-buttons {
        grid-template-columns: 1fr 1fr;
    }

    .admin-status-button:last-child {
        grid-column: 1 / -1;
    }

    .admin-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-customer-info {
        grid-template-columns: 1fr;
    }

    .admin-client-finance-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-discount-form {
        grid-template-columns: 1fr;
    }

    .admin-finance-grid,
    .order-finance-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .admin-add-payment-btn {
        min-height: 32px;
        padding: 0 8px;
    }

    .payment-modal {
        align-items: end;
        padding: 0;
    }

    .payment-modal-card {
        width: 100%;
        max-height: 92vh;
        border-radius: 18px 18px 0 0;
        padding: 14px;
    }
}

@media (max-width: 420px) {
    .admin-compact-toolbar {
        grid-template-columns: minmax(0,1fr) 98px;
    }

    .admin-client-toolbar {
        grid-template-columns: minmax(0,1fr) 98px;
    }

    .admin-search-wrap input::placeholder {
        color: transparent;
    }

    .admin-search-wrap input:focus::placeholder {
        color: #aaa0ae;
    }

    .admin-main-tab {
        font-size: 9px;
    }

    .admin-finance-grid,
    .order-finance-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   V43 — BACK BUTTON / AUTH CHECKOUT / COMPACT ADMIN CONTROLS
   ============================================================ */

/* Desktop: кнопка Назад теперь видимая и в стиле интерфейса */
.admin-detail-topbar {
    min-height: 54px;
    padding: 7px 14px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e8e1eb;
    background: #fff;
}

.admin-back-btn {
    min-height: 40px !important;
    padding: 0 15px !important;
    border: 1px solid #d7c7e2 !important;
    border-radius: 11px !important;
    background: #f4edf9 !important;
    color: #6726AB !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    box-shadow: 0 2px 8px rgba(63, 35, 79, .05);
}

.admin-back-btn:hover {
    border-color: #a77bc4 !important;
    background: #ede1f5 !important;
    transform: translateX(-1px);
}

/* Убираем возможное наложение старых sticky-правил */
.admin-compact-toolbar,
.admin-filter-row,
.admin-compact-stats {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    margin: 0 !important;
}

/* Статус-фильтры теперь стоят перед поиском и компактнее */
.admin-filter-row {
    min-height: 32px;
    padding: 4px 14px 3px;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: none;
}

.admin-filter-row::-webkit-scrollbar {
    display: none;
}

.admin-chip {
    flex: 0 0 auto;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 8px;
    line-height: 1;
}

.admin-compact-toolbar {
    padding-top: 4px;
}

/* ---------------- MOBILE ---------------- */
@media (max-width: 800px) {
    .admin-header {
        min-height: 50px !important;
        padding: 5px 7px !important;
    }

    .admin-header-main {
        gap: 7px !important;
    }

    .admin-brand-mark {
        width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
    }

    .admin-kicker {
        font-size: 7px !important;
        line-height: 1 !important;
    }

    .admin-header h2 {
        margin-top: 2px !important;
        font-size: 12px !important;
        line-height: 1 !important;
    }

    .admin-close-btn {
        width: 32px !important;
        min-height: 32px !important;
        border-radius: 9px !important;
        font-size: 14px !important;
    }

    .admin-main-tabs {
        min-height: 37px !important;
        padding: 3px 5px !important;
    }

    .admin-main-tab {
        min-height: 30px !important;
        padding: 0 6px !important;
        font-size: 8.5px !important;
    }

    .admin-compact-stats {
        gap: 4px !important;
        padding: 4px 5px 2px !important;
    }

    .admin-mini-stat {
        flex: 0 0 62px !important;
        min-height: 35px !important;
        padding: 4px 6px !important;
        border-radius: 8px !important;
    }

    .admin-mini-stat span {
        font-size: 6.5px !important;
    }

    .admin-mini-stat strong {
        margin-top: 2px !important;
        font-size: 12px !important;
    }

    /* фильтры: одна тонкая горизонтальная строка */
    .admin-filter-row {
        min-height: 27px !important;
        gap: 3px !important;
        padding: 2px 5px 3px !important;
    }

    .admin-chip {
        min-height: 21px !important;
        padding: 0 6px !important;
        font-size: 7px !important;
    }

    /* поиск ниже фильтров */
    .admin-compact-toolbar {
        grid-template-columns: minmax(0, 1fr) 94px !important;
        gap: 4px !important;
        padding: 3px 5px 4px !important;
    }

    .admin-search-wrap,
    .admin-select {
        min-height: 30px !important;
        border-radius: 8px !important;
    }

    .admin-search-wrap {
        padding: 0 7px !important;
        gap: 4px !important;
    }

    .admin-search-wrap input,
    .admin-select {
        font-size: 9px !important;
    }

    .admin-search-wrap input::placeholder {
        font-size: 8px !important;
    }

    .admin-search-wrap button {
        width: 21px !important;
        height: 21px !important;
        font-size: 9px !important;
    }

    .admin-detail-topbar {
        min-height: 40px !important;
        padding: 4px 6px !important;
    }

    .admin-back-btn {
        min-height: 31px !important;
        padding: 0 10px !important;
        border-radius: 9px !important;
        font-size: 9px !important;
    }

    .admin-list-scroll {
        padding-top: 5px !important;
    }
}

@media (max-width: 420px) {
    .admin-compact-toolbar {
        grid-template-columns: minmax(0, 1fr) 84px !important;
    }

    .admin-chip {
        padding-left: 5px !important;
        padding-right: 5px !important;
        font-size: 6.8px !important;
    }
}


/* ============================================================
   V44 PRODUCTION — ONE STATUS FILTER SYSTEM
   ============================================================ */

/* Старые вторичные фильтры окончательно скрыты */
.orders-filter-row,
.orders-filter-chips,
#ordersFilterChips,
#ordersResetBtn,
#adminFilterRow,
#adminSortSelect,
#ordersSortSelect {
    display: none !important;
}

/* -------- Personal orders: square cards + search -------- */

.orders-stats {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
    padding: 12px 20px 8px !important;
}

.orders-stat-card {
    min-width: 0 !important;
    min-height: 64px !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
}

.orders-stat-card span {
    font-size: 10px !important;
}

.orders-stat-card strong {
    margin-top: 6px !important;
    font-size: 21px !important;
}

.orders-toolbar-search-only {
    display: block !important;
    padding: 4px 20px 12px !important;
}

.orders-toolbar-search-only .orders-search-wrap {
    width: 100%;
}

/* -------- Admin: restored comfortable status cards -------- */

.admin-compact-stats {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
    padding: 11px 16px 7px !important;
}

.admin-mini-stat {
    min-width: 0 !important;
    min-height: 62px !important;
    padding: 10px 11px !important;
    border-radius: 13px !important;
}

.admin-mini-stat span {
    font-size: 9px !important;
}

.admin-mini-stat strong {
    margin-top: 6px !important;
    font-size: 20px !important;
}

.admin-search-only-toolbar {
    display: block !important;
    padding: 3px 16px 11px !important;
}

.admin-search-only-toolbar .admin-search-wrap {
    width: 100%;
    min-height: 42px !important;
    box-sizing: border-box;
}

.admin-search-only-toolbar .admin-search-wrap input {
    font-size: 12px !important;
}

/* status logic visual note:
   "Готовы" card = ready + shipped + completed.
   Badge on each order still displays exact status. */

/* Swipe-capable headers feel draggable on mobile */
@media (max-width: 800px) {
    .account-sheet-header,
    .orders-center-header,
    .admin-header,
    .payment-modal-head {
        touch-action: pan-x;
    }

    /* Customer orders */
    .orders-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 5px !important;
        padding: 7px 7px 5px !important;
    }

    .orders-stat-card {
        min-height: 54px !important;
        padding: 7px 7px !important;
        border-radius: 11px !important;
    }

    .orders-stat-card span {
        font-size: 8px !important;
        white-space: nowrap;
    }

    .orders-stat-card strong {
        margin-top: 4px !important;
        font-size: 17px !important;
    }

    .orders-toolbar-search-only {
        padding: 3px 7px 7px !important;
    }

    .orders-toolbar-search-only .orders-search-wrap {
        min-height: 38px !important;
        border-radius: 11px !important;
    }

    .orders-toolbar-search-only input {
        font-size: 12px !important;
    }

    /* Admin: comfortable, but only ONE filter row */
    .admin-header {
        min-height: 60px !important;
        padding: 8px 9px !important;
    }

    .admin-brand-mark {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }

    .admin-kicker {
        font-size: 8px !important;
    }

    .admin-header h2 {
        font-size: 15px !important;
        line-height: 1.05 !important;
    }

    .admin-close-btn {
        width: 38px !important;
        min-height: 38px !important;
    }

    .admin-main-tabs {
        min-height: 44px !important;
        padding: 4px 6px !important;
    }

    .admin-main-tab {
        min-height: 35px !important;
        font-size: 10px !important;
    }

    .admin-compact-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 5px !important;
        padding: 7px 7px 5px !important;
    }

    .admin-mini-stat {
        min-height: 56px !important;
        padding: 7px 7px !important;
        border-radius: 11px !important;
    }

    .admin-mini-stat span {
        font-size: 8px !important;
        white-space: nowrap;
    }

    .admin-mini-stat strong {
        margin-top: 4px !important;
        font-size: 18px !important;
    }

    .admin-search-only-toolbar {
        display: block !important;
        padding: 3px 7px 7px !important;
    }

    .admin-search-only-toolbar .admin-search-wrap {
        min-height: 38px !important;
        border-radius: 11px !important;
    }

    .admin-search-only-toolbar .admin-search-wrap input {
        font-size: 12px !important;
    }

    .admin-search-only-toolbar .admin-search-wrap input::placeholder {
        font-size: 11px !important;
        color: #a69dab !important;
    }

    /* keep content immediately below search */
    .admin-list-scroll {
        padding-top: 7px !important;
    }
}

@media (max-width: 699px) {
    body[data-page="home"] .home-new-panel .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media (max-width: 380px) {
    .orders-stat-card span,
    .admin-mini-stat span {
        font-size: 7px !important;
    }

    .orders-stat-card strong,
    .admin-mini-stat strong {
        font-size: 16px !important;
    }
}

/* ============================================================
   V45 PRODUCTION — FINAL UX / TYPOGRAPHY / DISCOUNTS / EDITING
   ============================================================ */

/* ---------- ICON SYSTEM ---------- */
.nav-svg,
.empty-cart-icon svg,
.password-toggle svg,
.auth-confirm-icon svg,
.admin-refresh-orders-btn svg,
.confirm-icon-svg,
.confirm-phone-svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.currency-country {
    display: inline-grid;
    place-items: center;
    min-width: 23px;
    height: 18px;
    padding: 0 4px;
    border-radius: 5px;
    background: rgba(103,38,171,.09);
    color: #6726AB;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .04em;
}

.bottom-nav.bottom-nav-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.bottom-nav .icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.bottom-nav .nav-svg {
    width: 22px;
    height: 22px;
}

.empty-cart-icon svg {
    width: 30px;
    height: 30px;
}

/* ---------- PASSWORD / REGISTRATION CONFIRMATION ---------- */
.password-field {
    position: relative;
}

.password-field input {
    padding-right: 46px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #8c8292;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle.active {
    background: #f3eef6;
    color: #6726AB;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.auth-helper-important {
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: 10px;
    background: #f4edf9;
    color: #5e456f;
    font-weight: 750;
}

.auth-confirmation-view {
    padding: 24px 12px 14px;
    text-align: center;
}

.auth-confirm-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    border-radius: 17px;
    background: #f1e8f8;
    color: #6726AB;
}

.auth-confirm-icon svg {
    width: 29px;
    height: 29px;
}

.auth-confirm-title {
    color: #2a2030;
    font-size: 20px;
    font-weight: 900;
}

.auth-confirm-text {
    max-width: 430px;
    margin: 8px auto 18px;
    color: #6e6474;
    font-size: 13px;
    line-height: 1.5;
}

/* ---------- ACCOUNT ---------- */
.account-user-card {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
}

.account-user-discount {
    min-width: 110px;
    padding: 9px 11px;
    border-radius: 12px;
    background: #f4edf9;
    text-align: right;
}

.account-user-discount span,
.account-user-discount strong {
    display: block;
}

.account-user-discount span {
    color: #7c6f83;
    font-size: 9px;
    font-weight: 750;
}

.account-user-discount strong {
    margin-top: 4px;
    color: #6726AB;
    font-size: 19px;
    line-height: 1;
    font-weight: 900;
}

.account-profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}

.account-profile-form .form-group {
    margin: 0;
}

.account-profile-wide {
    grid-column: 1 / -1;
}

.account-profile-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ded6e2;
    border-radius: 12px;
    background: #faf9fb;
    font: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.field-optional {
    color: #a197a6;
    font-size: 9px;
    font-weight: 500;
}

.account-legal-links,
.site-legal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    color: #918697;
    font-size: 10px;
}

.account-legal-links a,
.site-legal-footer a {
    color: #776b7d;
    text-decoration: none;
}

.site-legal-footer {
    margin: 28px auto 95px;
    padding: 0 14px;
}

/* ---------- PERSONAL DISCOUNT IN CATALOG ---------- */
.price-row.has-personal-discount {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 7px;
}

.base-price {
    color: #9d949f;
    font-size: 12px;
    font-weight: 650;
    text-decoration: line-through;
}

.personal-discount-chip {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f0e5f8;
    color: #6726AB;
    font-size: 9px;
    font-weight: 900;
}

.detail-price-old {
    margin-right: 7px;
    color: #9d949f;
    font-size: 13px;
    text-decoration: line-through;
}

/* ---------- SWIPE HINTS ---------- */
.catalog-swipe-hint,
.detail-swipe-hint-v45 {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #8e8493;
    font-size: 9px;
    font-weight: 700;
}

.catalog-swipe-hint {
    position: absolute;
    left: 9px;
    bottom: 9px;
    z-index: 5;
    padding: 5px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(6px);
}

.detail-swipe-hint-v45 {
    margin-top: 5px;
}

/* ---------- MY ORDERS TYPOGRAPHY ---------- */
.orders-center-header h2 {
    font-size: 25px !important;
}

.orders-center-subtitle {
    font-size: 12px !important;
}

.orders-row-number {
    font-size: 17px !important;
}

.orders-row-date {
    font-size: 11px !important;
}

.orders-row-total {
    font-size: 16px !important;
}

.orders-row-repeat-link,
.orders-row-hint {
    font-size: 10px !important;
}

.order-detail-card-title {
    font-size: 14px !important;
}

.order-detail-item-name,
.order-detail-item-sum,
.order-detail-info-grid strong {
    font-size: 13px !important;
}

.order-detail-item-meta,
.order-detail-info-grid span {
    font-size: 10px !important;
}

.order-detail-actions button {
    font-size: 12px;
}

/* ---------- STATUS TIMELINE ---------- */
.order-progress.order-progress-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

.order-progress-step::before {
    display: block !important;
}

.order-progress-label {
    line-height: 1.25;
}

/* ---------- CUSTOMER ORDER EDIT ---------- */
.order-detail-title-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.order-detail-title-actions .order-detail-card-title {
    margin-bottom: 0;
}

.order-inline-edit-btn,
.admin-inline-edit-btn {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d7c7e2;
    border-radius: 9px;
    background: #f5eff9;
    color: #6726AB;
    font: inherit;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.order-edit-panel,
.admin-order-edit-panel {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #f8f5fa;
}

.order-edit-panel[hidden],
.admin-order-edit-panel[hidden] {
    display: none !important;
}

.order-edit-note,
.admin-order-edit-note {
    margin-bottom: 9px;
    color: #776d7d;
    font-size: 10px;
    line-height: 1.4;
}

.order-edit-row,
.admin-order-edit-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) 78px;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
}

.admin-order-edit-row:has([data-admin-order-edit-price]) {
    grid-template-columns: minmax(0,1fr) 64px 84px;
}

.order-edit-row + .order-edit-row,
.admin-order-edit-row + .admin-order-edit-row {
    border-top: 1px solid #e8e1eb;
}

.order-edit-row span,
.admin-order-edit-row span {
    color: #302536;
    font-size: 11px;
    font-weight: 750;
}

.order-edit-row input,
.admin-order-edit-row input {
    width: 100%;
    min-height: 36px;
    border: 1px solid #dcd3e1;
    border-radius: 9px;
    background: #fff;
    text-align: center;
    font: inherit;
    box-sizing: border-box;
}

.order-edit-actions,
.admin-order-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 9px;
}

.order-edit-actions button,
.admin-order-edit-actions button {
    min-height: 38px;
    padding: 0 11px;
    border-radius: 9px;
    border: 1px solid #dcd3e1;
    background: #fff;
    color: #645a6a;
    font: inherit;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.order-edit-save-btn,
#adminOrderEditSaveBtn {
    border-color: #6726AB !important;
    background: #6726AB !important;
    color: #fff !important;
}

.order-cancel-btn {
    border-color: #e7caca !important;
    color: #a64141 !important;
    background: #fff7f7 !important;
}

/* ---------- ADMIN TYPOGRAPHY / ALIGNMENT ---------- */
.admin-header h2 {
    font-size: 21px !important;
}

.admin-main-tab {
    font-size: 12px !important;
}

.admin-mini-stat span {
    font-size: 10px !important;
}

.admin-mini-stat strong {
    font-size: 21px !important;
}

.admin-search-wrap input,
.admin-select {
    font-size: 13px !important;
}

.admin-order-number {
    font-size: 16px !important;
}

.admin-order-date {
    font-size: 10px !important;
}

.admin-order-customer strong {
    font-size: 13px !important;
}

.admin-order-customer span {
    font-size: 10px !important;
}

.admin-order-finance strong {
    font-size: 13px !important;
}

.admin-order-finance span {
    font-size: 9px !important;
}

.admin-status-select {
    min-height: 40px !important;
    font-size: 11px !important;
}

.admin-order-arrow {
    width: 39px !important;
    height: 39px !important;
    font-size: 27px !important;
}

.admin-back-btn {
    min-height: 44px !important;
    padding: 0 17px !important;
    font-size: 13px !important;
}

.admin-detail-title {
    font-size: 14px !important;
}

.admin-customer-info span,
.admin-order-summary-card span,
.admin-finance-grid span,
.admin-client-finance-grid span {
    font-size: 9px !important;
}

.admin-customer-info strong,
.admin-customer-info a,
.admin-finance-grid strong,
.admin-client-finance-grid strong,
.admin-detail-item strong,
.admin-detail-item b {
    font-size: 12px !important;
}

.admin-refresh-orders-btn {
    min-height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d9cde1;
    border-radius: 10px;
    background: #fff;
    color: #6726AB;
    font: inherit;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.admin-refresh-orders-btn svg {
    width: 17px;
    height: 17px;
}

.admin-orders-search-row {
    grid-template-columns: minmax(0,1fr) auto !important;
}

/* ---------- CLIENT ADMIN EDITING ---------- */
.admin-client-activity {
    margin-top: 4px !important;
    color: #a49aa8 !important;
    font-size: 8px !important;
}

.admin-client-profile-form {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
}

.admin-client-profile-form label {
    display: block;
}

.admin-client-profile-form label.wide,
.admin-client-save-row {
    grid-column: 1 / -1;
}

.admin-client-profile-form label > span {
    display: block;
    margin-bottom: 4px;
    color: #8e8493;
    font-size: 9px;
    font-weight: 750;
}

.admin-client-profile-form input,
.admin-client-profile-form textarea {
    width: 100%;
    min-height: 41px;
    padding: 8px 10px;
    border: 1px solid #ded6e2;
    border-radius: 10px;
    background: #fff;
    color: #2e2433;
    font: inherit;
    font-size: 11px;
    box-sizing: border-box;
}

.admin-client-profile-form textarea {
    min-height: 82px;
    resize: vertical;
}

.admin-client-profile-form input:disabled,
.admin-client-profile-form textarea:disabled,
.admin-discount-form input:disabled {
    border-color: transparent;
    background: #f6f3f7;
    color: #5f5565;
    opacity: 1;
}

.admin-client-save-row {
    display: flex;
    gap: 7px;
    justify-content: flex-end;
}

.admin-client-save-row[hidden] {
    display: none !important;
}

.admin-primary-save-btn,
.admin-plain-btn {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 9px;
    font: inherit;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.admin-primary-save-btn {
    border: 0;
    background: #6726AB;
    color: #fff;
}

.admin-plain-btn {
    border: 1px solid #ded6e2;
    background: #fff;
    color: #655b6b;
}

.admin-discount-locked .admin-discount-input-wrap {
    border-color: transparent;
    background: #f6f3f7;
}

.admin-discount-success {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 9px;
    background: #edf7f1;
    color: #31724a;
    font-size: 10px;
    font-weight: 800;
}

.admin-discount-success[hidden] {
    display: none !important;
}

.admin-danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px auto 28px;
    padding: 13px 15px;
    border: 1px solid #eed3d3;
    border-radius: 13px;
    background: #fff8f8;
}

.admin-danger-zone strong,
.admin-danger-zone span {
    display: block;
}

.admin-danger-zone strong {
    color: #833d3d;
    font-size: 11px;
}

.admin-danger-zone span {
    margin-top: 3px;
    color: #9c7272;
    font-size: 9px;
}

.admin-danger-zone button {
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid #dbaaaa;
    border-radius: 9px;
    background: #fff;
    color: #a34040;
    font: inherit;
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
}

/* ---------- RECEIVABLES HEADER FIX ---------- */
.admin-debt-filterbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 14px 4px;
    background: #fff;
}

.admin-debt-state-filter,
.admin-currency-filter {
    display: flex;
    gap: 4px;
    padding: 3px;
    border-radius: 10px;
    background: #f1edf3;
}

.admin-debt-state-filter button,
.admin-currency-filter button {
    min-height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #756a7b;
    font: inherit;
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
}

.admin-debt-state-filter button.active,
.admin-currency-filter button.active {
    background: #fff;
    color: #6726AB;
    box-shadow: 0 2px 8px rgba(50,30,60,.06);
}

.admin-debt-search-row {
    display: block !important;
    padding-top: 5px !important;
}

.admin-debt-row.is-paid {
    border-color: #d8eadf;
    background: #fbfefc;
}

.paid-value {
    color: #2c7950 !important;
}

/* ---------- CONFIRM EMAIL ---------- */
.confirm-email-status {
    margin-top: 11px;
    padding: 9px 11px;
    border-radius: 10px;
    background: #f4edf9;
    color: #65506f;
    font-size: 10px;
    font-weight: 750;
}

.confirm-email-status.success {
    background: #edf7f1;
    color: #31724a;
}

/* ---------- SEPARATE PAGE BEHAVIOUR ---------- */
body[data-page="orders"] .orders-center,
body[data-page="account"] .account-sheet,
body[data-page="admin"] .admin-panel {
    bottom: 68px;
}

body[data-page="orders"] .orders-center,
body[data-page="account"] .account-sheet,
body[data-page="admin"] .admin-panel {
    z-index: 1200;
}

body[data-page="orders"] .bottom-nav,
body[data-page="account"] .bottom-nav,
body[data-page="admin"] .bottom-nav {
    z-index: 2200;
}

/* ---------- LEGAL PAGES ---------- */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 26px 18px 110px;
    color: #342a39;
}

.legal-page h1 {
    margin: 0 0 8px;
    font-size: 27px;
}

.legal-page .legal-updated {
    color: #958a9b;
    font-size: 11px;
}

.legal-page h2 {
    margin: 24px 0 8px;
    font-size: 17px;
}

.legal-page p,
.legal-page li {
    color: #5f5565;
    font-size: 13px;
    line-height: 1.6;
}

.legal-page a {
    color: #6726AB;
}

/* ============================================================
   MOBILE V45
   ============================================================ */
@media (max-width: 800px) {
    .account-profile-form {
        grid-template-columns: 1fr;
    }

    .account-profile-wide {
        grid-column: auto;
    }

    .account-user-card {
        grid-template-columns: auto minmax(0,1fr) auto;
        gap: 8px;
    }

    .account-user-discount {
        min-width: 82px;
        padding: 7px 8px;
    }

    .account-user-discount span {
        font-size: 7px;
    }

    .account-user-discount strong {
        font-size: 17px;
    }

    /* Orders are intentionally larger/readable */
    .orders-center-header {
        padding: 13px 14px !important;
    }

    .orders-center-header h2 {
        font-size: 22px !important;
    }

    .orders-center-subtitle {
        font-size: 11px !important;
    }

    .orders-row-number {
        font-size: 17px !important;
    }

    .orders-row-date {
        font-size: 11px !important;
    }

    .orders-row-total {
        font-size: 15px !important;
    }

    .orders-row-repeat-link {
        font-size: 10px !important;
    }

    .order-detail-item-name,
    .order-detail-item-sum,
    .order-detail-info-grid strong {
        font-size: 13px !important;
    }

    .order-detail-item-meta,
    .order-detail-info-grid span {
        font-size: 10px !important;
    }

    /* Restore timeline connectors on mobile */
    .order-progress.order-progress-4 {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0,1fr)) !important;
        gap: 0 !important;
        row-gap: 0 !important;
    }

    .order-progress-step::before {
        display: block !important;
        content: "" !important;
        position: absolute !important;
        top: 7px !important;
        left: 0 !important;
        right: 0 !important;
        height: 2px !important;
        background: #e8e1eb !important;
        z-index: 0 !important;
    }

    .order-progress-step.done::before {
        background: #8f5bc0 !important;
    }

    .order-progress-step:first-child::before {
        left: 50% !important;
    }

    .order-progress-step:last-child::before {
        right: 50% !important;
    }

    .order-progress-label {
        font-size: 8px !important;
    }

    /* Admin text + status control */
    .admin-header h2 {
        font-size: 17px !important;
    }

    .admin-main-tab {
        font-size: 10px !important;
    }

    .admin-mini-stat span {
        font-size: 8px !important;
    }

    .admin-mini-stat strong {
        font-size: 18px !important;
    }

    .admin-search-wrap input,
    .admin-select {
        font-size: 12px !important;
    }

    .admin-order-number {
        font-size: 16px !important;
    }

    .admin-order-customer strong {
        font-size: 13px !important;
    }

    .admin-order-customer span {
        font-size: 10px !important;
    }

    .admin-order-finance strong {
        font-size: 13px !important;
    }

    .admin-status-select {
        min-height: 45px !important;
        padding: 0 11px !important;
        border-radius: 12px !important;
        font-size: 12px !important;
    }

    .admin-order-arrow {
        width: 42px !important;
        height: 42px !important;
        font-size: 29px !important;
    }

    .admin-back-btn {
        min-height: 42px !important;
        padding: 0 14px !important;
        font-size: 12px !important;
    }

    .admin-detail-title {
        font-size: 13px !important;
    }

    .admin-client-profile-form {
        grid-template-columns: 1fr;
    }

    .admin-client-profile-form label.wide,
    .admin-client-save-row {
        grid-column: auto;
    }

    .admin-client-row {
        min-height: 76px;
    }

    .admin-client-activity {
        font-size: 8px !important;
    }

    /* Debt controls: two distinct rows, no overlap */
    .admin-debt-filterbar {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        padding: 6px 7px 4px !important;
    }

    .admin-debt-state-filter,
    .admin-currency-filter {
        width: 100%;
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        box-sizing: border-box;
    }

    .admin-debt-state-filter button,
    .admin-currency-filter button {
        min-width: 0 !important;
        padding: 0 6px !important;
        min-height: 33px !important;
        font-size: 9px !important;
    }

    .admin-debt-search-row {
        padding: 4px 7px 7px !important;
    }

    .admin-debt-search-row .admin-search-wrap {
        min-height: 39px !important;
    }

    .admin-debt-summary {
        padding-left: 7px !important;
        padding-right: 7px !important;
    }

    .admin-danger-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-danger-zone button {
        width: 100%;
    }

    .order-edit-row,
    .admin-order-edit-row {
        grid-template-columns: minmax(0,1fr) 72px;
    }

    .catalog-swipe-hint {
        display: inline-flex !important;
    }

    .detail-swipe-hint-v45 {
        display: inline-flex !important;
    }

    .site-legal-footer {
        margin-bottom: 82px;
    }
}

@media (min-width: 801px) {
    .catalog-swipe-hint,
    .detail-swipe-hint-v45 {
        display: none !important;
    }
}

/* V45 technical storage notice */
.cookie-notice {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 82px;
    z-index: 2600;
    max-width: 760px;
    margin: 0 auto;
    padding: 10px 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #ded6e2;
    border-radius: 13px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 12px 35px rgba(38,24,46,.13);
    color: #625768;
    font-size: 10px;
    line-height: 1.4;
}
.cookie-notice[hidden] { display: none !important; }
.cookie-notice a { color: #6726AB; }
.cookie-notice button {
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    background: #6726AB;
    color: #fff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
}

.detail-swipe-help {
    position: absolute;
    left: 50%;
    bottom: 10px;
    z-index: 8;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    color: #716777;
    font-size: 9px;
    font-weight: 800;
    backdrop-filter: blur(6px);
    pointer-events: none;
}

@media (max-width:800px) {
    .detail-swipe-help { display: inline-flex; }
    .cookie-notice {
        left: 8px;
        right: 8px;
        bottom: 76px;
        font-size: 9px;
    }
}

/* Dedicated application pages */
body[data-page="orders"],
body[data-page="account"],
body[data-page="admin"] {
    background: #f7f4f8;
}

body[data-page="orders"] > .header,
body[data-page="orders"] > .breadcrumb,
body[data-page="orders"] > #appContainer,
body[data-page="orders"] > .site-footer,
body[data-page="account"] > .header,
body[data-page="account"] > .breadcrumb,
body[data-page="account"] > #appContainer,
body[data-page="account"] > .site-footer,
body[data-page="admin"] > .header,
body[data-page="admin"] > .breadcrumb,
body[data-page="admin"] > #appContainer,
body[data-page="admin"] > .site-footer {
    display: none !important;
}

body[data-page="account"] .account-backdrop {
    display: none !important;
}

body[data-page="account"] .account-sheet {
    left: 0;
    right: 0;
    width: min(760px, 100%);
    margin: 0 auto;
    box-shadow: 0 0 0 1px rgba(50,30,60,.05);
}

body[data-page="orders"] .orders-center,
body[data-page="account"] .account-sheet,
body[data-page="admin"] .admin-panel {
    top: 0 !important;
    bottom: 68px !important;
}


/* ============================================================
   V45.1 — PHOTO SWIPE INDICATORS
   Only gallery UX. No other layout/design changes.
   ============================================================ */

/* Text prompts are intentionally removed. */
.catalog-swipe-hint,
.detail-swipe-hint-v45,
.detail-swipe-help {
    display: none !important;
}

/* Catalog carousel: centered dots at the bottom of the photo. */
.product-card .image-wrap .slider-dots {
    left: 50% !important;
    right: auto !important;
    bottom: 10px !important;
    transform: translateX(-50%) !important;
    z-index: 8 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;

    width: auto !important;
    min-width: 0 !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 4px 7px !important;

    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(38, 34, 40, .18) !important;
    box-shadow: none !important;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    pointer-events: none !important;
}

.product-card .image-wrap .slider-dots .dot {
    flex: 0 0 auto !important;
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    min-height: 6px !important;
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.62) !important;
    box-shadow: none !important;

    opacity: 1 !important;
    transform: none !important;
    transition: width .2s ease, background-color .2s ease !important;
}

.product-card .image-wrap .slider-dots .dot.active {
    width: 18px !important;
    min-width: 18px !important;
    height: 6px !important;
    background: rgba(255,255,255,.96) !important;
}

/* Product modal: same indicator lives directly on the photo. */
.product-modal .product-detail-image {
    position: relative !important;
}

.product-modal .detail-photo-indicators {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: 12px !important;
    transform: translateX(-50%) !important;
    z-index: 12 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 72px) !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 4px 8px !important;

    overflow: hidden !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(38, 34, 40, .18) !important;
    box-shadow: none !important;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    pointer-events: none !important;
}

.product-modal .detail-photo-indicators .detail-dot {
    flex: 0 0 auto !important;
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    min-height: 6px !important;
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.62) !important;
    box-shadow: none !important;

    opacity: 1 !important;
    transform: none !important;
    transition: width .2s ease, background-color .2s ease !important;
}

.product-modal .detail-photo-indicators .detail-dot.active {
    width: 20px !important;
    min-width: 20px !important;
    height: 6px !important;
    background: rgba(255,255,255,.96) !important;
}

/* One image = no indicator, no needless counter. */
.product-card .image-wrap[data-swipe-images="1"] .slider-dots {
    display: none !important;
}

/* On mobile the dots themselves replace "1 из 4" and the text swipe hint. */
@media (max-width: 800px) {
    .detail-image-meta {
        min-height: 0 !important;
        margin: 0 !important;
    }

    .detail-image-counter {
        display: none !important;
    }

    .product-card .image-wrap .slider-dots {
        bottom: 9px !important;
    }

    .product-modal .detail-photo-indicators {
        bottom: 11px !important;
    }
}

/* Desktop keeps arrows; the subtle dots still show how many photos exist. */
@media (min-width: 801px) {
    .product-modal .detail-image-counter {
        display: inline-flex !important;
    }
}


/* ============================================================
   V45.2 — AUTH DUPLICATE + PASSWORD RECOVERY
   Scoped only to account/auth UI.
   ============================================================ */

.auth-link-btn {
    display: block;
    width: auto;
    margin: 10px auto 0;
    padding: 4px 7px;
    border: 0;
    background: transparent;
    color: #6726AB;
    font: inherit;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}

.auth-link-btn:hover {
    text-decoration: underline;
}

.auth-forgot-btn {
    margin-top: 8px;
}

.auth-existing-icon {
    background: #f5eff9;
}

.auth-existing-icon svg,
.auth-confirm-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-special-actions {
    width: min(100%, 430px);
    margin: 0 auto;
    display: grid;
    gap: 8px;
}

.auth-special-form {
    width: min(100%, 430px);
    margin: 0 auto;
    text-align: left;
}

.auth-special-field {
    margin-bottom: 12px;
}

.auth-special-form .auth-link-btn {
    margin-top: 10px;
}

.account-security-section {
    margin-top: 14px;
}

.account-change-password-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee7f1;
}

.account-change-password-form[hidden] {
    display: none !important;
}

.account-change-password-form .form-group + .form-group {
    margin-top: 10px;
}

.account-change-password-form .account-primary-btn {
    margin-top: 12px;
}

@media (max-width: 800px) {
    .auth-confirmation-view {
        padding-left: 8px;
        padding-right: 8px;
    }

    .auth-confirm-title {
        font-size: 18px;
    }

    .auth-confirm-text {
        font-size: 12px;
    }

    .auth-special-actions {
        gap: 7px;
    }
}


/* ============================================================
   V45.3 — PASSWORD RECOVERY FEEDBACK
   ============================================================ */

.auth-inline-status {
    margin: 2px 0 12px;
    padding: 11px 12px;
    border: 1px solid #ded7e2;
    border-radius: 11px;
    background: #f8f6f9;
    color: #5e5363;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 750;
}

.auth-inline-status[hidden] {
    display: none !important;
}

.auth-inline-status.error {
    border-color: #e6b8b8;
    background: #fff4f4;
    color: #973d3d;
}

.auth-inline-status.success {
    border-color: #b9dcc8;
    background: #f2fbf6;
    color: #2e7650;
}

.account-password-changed-notice {
    margin: 0 0 12px;
    padding: 12px 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #b9dcc8;
    border-radius: 13px;
    background: #f2fbf6;
    color: #2e7650;
}

.account-password-changed-notice[hidden] {
    display: none !important;
}

.account-password-changed-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dcefe4;
    font-size: 16px;
    font-weight: 900;
}

.account-password-changed-notice strong,
.account-password-changed-notice span {
    display: block;
}

.account-password-changed-notice strong {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
}

.account-password-changed-notice span {
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.35;
    color: #557462;
}

@media (max-width: 800px) {
    .auth-inline-status {
        font-size: 11px;
    }

    .account-password-changed-notice {
        margin-left: 2px;
        margin-right: 2px;
    }
}


/* ============================================================
   V45.4 — CUSTOMER ACCOUNT: COLLAPSIBLE DATA + DELIVERY
   ============================================================ */

.account-collapsible-section {
    padding: 0 !important;
    overflow: hidden;
}

.account-section-toggle {
    width: 100%;
    min-height: 68px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.account-section-toggle-copy {
    min-width: 0;
}

.account-section-toggle .account-section-title {
    margin: 0;
}

.account-section-toggle .account-section-subtitle {
    margin-top: 4px;
}

.account-section-chevron {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border: 1px solid #e5dce9;
    border-radius: 10px;
    background: #faf8fb;
    color: #74677b;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.account-section-chevron svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-section-toggle.open .account-section-chevron {
    transform: rotate(180deg);
    background: #f4edf9;
    color: #6726AB;
}

.account-collapsible-body {
    padding: 0 16px 16px;
    border-top: 1px solid #eee7f1;
}

.account-collapsible-body[hidden] {
    display: none !important;
}

.account-collapsible-body .account-profile-form {
    padding-top: 14px;
}

.field-hint {
    margin-top: 5px;
    color: #94899a;
    font-size: 9px;
    line-height: 1.35;
}

.delivery-info {
    padding: 12px 13px;
    border: 1px solid #e6dced;
    border-radius: 12px;
    background: #faf7fc;
}

.delivery-info-title {
    color: #5e4d67;
    font-size: 10px;
    font-weight: 900;
}

.delivery-info-text {
    margin-top: 5px;
    color: #7e7185;
    font-size: 9.5px;
    line-height: 1.5;
}

.account-delivery-form textarea {
    resize: vertical;
    min-height: 84px;
}

@media (max-width: 800px) {
    .account-section-toggle {
        min-height: 62px;
        padding: 12px 13px;
    }

    .account-section-chevron {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .account-collapsible-body {
        padding: 0 12px 13px;
    }

    .field-hint {
        font-size: 9px;
    }

    .delivery-info {
        padding: 11px;
    }

    .delivery-info-text {
        font-size: 9px;
    }
}


/* ============================================================
   V45.5 — ACCOUNT TYPOGRAPHY + LOCKED DATA EDITING
   Scoped to authorized customer cabinet only.
   ============================================================ */

/* Remove obsolete helper blocks if old cached markup exists. */
#authUserView .field-hint {
    display: none !important;
}

/* ---------- Larger, more readable typography ---------- */

#authUserView .account-user-name {
    font-size: 17px !important;
    line-height: 1.2 !important;
    font-weight: 850 !important;
}

#authUserView .account-user-email {
    margin-top: 4px !important;
    font-size: 12.5px !important;
    line-height: 1.25 !important;
}

#authUserView .account-section-title {
    font-size: 16.5px !important;
    line-height: 1.2 !important;
}

#authUserView .account-section-subtitle {
    margin-top: 4px !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
}

#authUserView .form-group label {
    margin-bottom: 7px !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 750 !important;
}

#authUserView .form-group input,
#authUserView .form-group textarea {
    font-size: 13.5px !important;
    line-height: 1.4 !important;
}

#authUserView .field-optional {
    font-size: 10.5px !important;
}

#authUserView .account-primary-btn,
#authUserView .account-secondary-btn,
#authUserView .account-edit-btn,
#authUserView .account-logout-btn,
#authUserView .admin-access-btn,
#authUserView .auth-link-btn {
    font-size: 12.5px !important;
}

#authUserView .delivery-info-title {
    font-size: 12px !important;
}

#authUserView .delivery-info-text {
    margin-top: 6px !important;
    font-size: 10.5px !important;
    line-height: 1.55 !important;
}

#authUserView .account-legal-links {
    font-size: 11px !important;
    line-height: 1.35 !important;
}

/* ---------- More compact Personal discount ---------- */

#authUserView .account-user-card {
    grid-template-columns: 46px minmax(0, 1fr) auto !important;
    gap: 12px !important;
}

#authUserView .account-user-discount {
    min-width: 0 !important;
    width: auto !important;
    max-width: 126px !important;
    padding: 8px 10px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 72px) auto !important;
    align-items: center !important;
    gap: 7px !important;
    border-radius: 12px !important;
    text-align: left !important;
}

#authUserView .account-user-discount span {
    margin: 0 !important;
    font-size: 10px !important;
    line-height: 1.05 !important;
    font-weight: 800 !important;
    white-space: normal !important;
}

#authUserView .account-user-discount strong {
    margin: 0 !important;
    font-size: 19px !important;
    line-height: 1 !important;
    text-align: right !important;
    white-space: nowrap !important;
}

/* ---------- View/Edit mode ---------- */

.account-form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.account-edit-btn {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d8c9e4;
    border-radius: 12px;
    background: #fff;
    color: #6726AB;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.account-edit-btn:hover {
    background: #faf6fd;
}

.account-edit-btn[hidden],
#profileSaveBtn[hidden],
#deliverySaveBtn[hidden] {
    display: none !important;
}

#authUserView .account-profile-form.is-locked input:disabled,
#authUserView .account-profile-form.is-locked textarea:disabled {
    opacity: 1 !important;
    cursor: default !important;
    color: #332a38 !important;
    -webkit-text-fill-color: #332a38 !important;
    border-color: #ebe5ee !important;
    background: #f7f5f8 !important;
    box-shadow: none !important;
}

#authUserView .account-profile-form.is-locked input:disabled::placeholder,
#authUserView .account-profile-form.is-locked textarea:disabled::placeholder {
    color: #cec7d2 !important;
}

#authUserView #profileEmail[readonly] {
    color: #655b6a !important;
    background: #f7f5f8 !important;
    border-color: #ebe5ee !important;
}

/* The placeholder is now the only helper inside each field. */
#authUserView .account-profile-form input::placeholder,
#authUserView .account-profile-form textarea::placeholder {
    color: #c7c0cc !important;
    opacity: 1 !important;
}

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
    #authUserView .account-user-card {
        grid-template-columns: 44px minmax(0, 1fr) auto !important;
        gap: 9px !important;
        padding: 13px !important;
    }

    #authUserView .account-avatar {
        width: 44px !important;
        height: 44px !important;
        font-size: 19px !important;
    }

    #authUserView .account-user-name {
        font-size: 16.5px !important;
    }

    #authUserView .account-user-email {
        font-size: 12px !important;
    }

    #authUserView .account-user-discount {
        max-width: 116px !important;
        padding: 7px 8px !important;
        grid-template-columns: minmax(0, 67px) auto !important;
        gap: 5px !important;
    }

    #authUserView .account-user-discount span {
        font-size: 9.5px !important;
    }

    #authUserView .account-user-discount strong {
        font-size: 18px !important;
    }

    #authUserView .account-section-title {
        font-size: 16px !important;
    }

    #authUserView .account-section-subtitle {
        font-size: 11px !important;
    }

    #authUserView .form-group label {
        font-size: 12.5px !important;
    }

    #authUserView .form-group input,
    #authUserView .form-group textarea {
        font-size: 13px !important;
    }

    #authUserView .delivery-info-title {
        font-size: 11.5px !important;
    }

    #authUserView .delivery-info-text {
        font-size: 10px !important;
    }

    #authUserView .account-legal-links {
        font-size: 10.5px !important;
    }
}

@media (max-width: 699px) {
    body[data-page="home"] .home-new-panel .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media (max-width: 380px) {
    #authUserView .account-user-card {
        grid-template-columns: 42px minmax(0,1fr) 104px !important;
        gap: 7px !important;
    }

    #authUserView .account-user-discount {
        max-width: 104px !important;
        grid-template-columns: minmax(0, 59px) auto !important;
        padding: 7px !important;
    }

    #authUserView .account-user-discount span {
        font-size: 9px !important;
    }

    #authUserView .account-user-discount strong {
        font-size: 17px !important;
    }
}


/* ============================================================
   V45.6 — AUTH + ORDER UX POLISH
   ============================================================ */

/* ---------- Visible login errors ---------- */
.login-inline-status {
    margin: 0 0 11px;
    padding: 10px 11px;
    border: 1px solid #e6bbbb;
    border-radius: 11px;
    background: #fff4f4;
    color: #973d3d;
    font-size: 11.5px;
    line-height: 1.4;
    font-weight: 750;
}

.login-inline-status[hidden] {
    display: none !important;
}

/* ---------- Order confirmation: clean text-only result ---------- */
.confirm-single-action {
    grid-template-columns: minmax(0, 1fr) !important;
}

.confirm-single-action .btn-confirm {
    width: 100% !important;
}

.confirm-email-status.error {
    color: #973d3d !important;
    background: #fff4f4 !important;
    border-color: #e6bbbb !important;
}

/* ---------- Personal discount: label above amount ---------- */
#authUserView .account-user-discount {
    min-width: 112px !important;
    width: 112px !important;
    max-width: 112px !important;
    padding: 8px 10px !important;
    display: block !important;
    border-radius: 12px !important;
    text-align: center !important;
}

#authUserView .account-user-discount span {
    display: block !important;
    margin: 0 !important;
    font-size: 9.5px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    white-space: normal !important;
}

#authUserView .account-user-discount strong {
    display: block !important;
    margin: 5px 0 0 !important;
    font-size: 19px !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* ---------- Order detail actions belong to page flow ---------- */
.order-detail-actions {
    position: static !important;
    inset: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    padding: 0 !important;
    margin-top: 16px !important;
    margin-bottom: 28px !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* All order actions sit at the real bottom of the order detail. */
@media (max-width: 720px) {
    .order-detail-actions {
        position: static !important;
        bottom: auto !important;
        padding: 0 !important;
        margin-top: 14px !important;
        margin-bottom: calc(24px + env(safe-area-inset-bottom)) !important;
        background: transparent !important;
    }

    #authUserView .account-user-discount {
        min-width: 106px !important;
        width: 106px !important;
        max-width: 106px !important;
        padding: 7px 8px !important;
    }

    #authUserView .account-user-discount span {
        font-size: 9px !important;
    }

    #authUserView .account-user-discount strong {
        margin-top: 5px !important;
        font-size: 18px !important;
    }

    .login-inline-status {
        font-size: 11px;
    }
}

@media (max-width: 699px) {
    body[data-page="home"] .home-new-panel .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media (max-width: 380px) {
    #authUserView .account-user-discount {
        min-width: 96px !important;
        width: 96px !important;
        max-width: 96px !important;
    }

    #authUserView .account-user-discount span {
        font-size: 8.5px !important;
    }

    #authUserView .account-user-discount strong {
        font-size: 17px !important;
    }
}


/* ============================================================
   V45.7 — CART PERSISTENCE + ORDERS PAYMENT SUMMARY
   ============================================================ */

/* Confirmation action equals the full width of the information card. */
.modal-window .confirm-single-action {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

.modal-window .confirm-single-action .btn-confirm {
    display: block !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Payment information replaces Repeat in the orders list. */
.orders-row-payment-footer {
    align-items: center !important;
    gap: 10px !important;
}

.orders-row-payment-summary {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    color: #756b7a;
    font-size: 10px;
    line-height: 1.35;
}

.orders-row-payment-summary span {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.orders-row-payment-summary strong {
    color: #403647;
    font-size: 10.5px;
    font-weight: 850;
}

.orders-row-payment-debt.has-debt strong {
    color: #a24a4a;
}

.orders-row-payment-debt.is-paid {
    color: #4e7b60;
}

.orders-row-payment-debt.is-paid strong {
    color: #34714d;
}

@media (max-width: 720px) {
    .orders-row-payment-footer {
        display: block !important;
    }

    .orders-row-payment-summary {
        margin-bottom: 5px;
        gap: 4px 9px;
        font-size: 9.5px;
    }

    .orders-row-payment-summary strong {
        font-size: 10px;
    }

    .orders-row-payment-footer .orders-row-hint {
        text-align: left !important;
    }
}


/* ============================================================
   V45.8 — ORDERS UI / LEGAL LINKS / PAYMENT ALIGNMENT
   ============================================================ */

/* "Изменить" sits exactly to the right of "Состав заказа". */
.order-detail-card-title-row {
    width: 100%;
    margin-bottom: 12px;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.order-detail-card-title-row .order-detail-card-title {
    margin: 0 !important;
}

.order-detail-card-title-row .order-inline-edit-btn {
    flex: 0 0 auto;
    margin-left: auto;
}

/* Payment information in My Orders: larger and vertically balanced. */
.orders-row-payment-footer {
    min-height: 42px !important;
    margin-top: 10px !important;
    padding-top: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-top: 1px solid #eee8f1;
}

.orders-row-payment-summary {
    min-height: 24px;
    display: flex !important;
    align-items: center !important;
    gap: 8px 18px !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
}

.orders-row-payment-summary span {
    min-height: 22px;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.orders-row-payment-summary strong {
    font-size: 12.5px !important;
    line-height: 1.2 !important;
}

.orders-row-payment-footer .orders-row-hint {
    align-self: center !important;
}

/* Legal links: smaller, centered at the bottom, visibly clickable. */
.account-legal-links {
    width: 100% !important;
    margin: 18px auto 4px !important;
    padding: 0 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    text-align: center !important;
    font-size: 9px !important;
    line-height: 1.3 !important;
    color: #9b919f !important;
    box-sizing: border-box;
}

.account-legal-links a {
    color: #85798a !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 2px !important;
}

.site-footer {
    width: 100% !important;
    margin: 18px auto 84px !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    color: #a49ba8 !important;
    text-align: center !important;
    font-size: 8px !important;
    line-height: 1.3 !important;
    box-sizing: border-box;
}

.site-footer a {
    color: #8d8291 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 2px !important;
}

/* Separate full-screen pages already have legal links inside account;
   avoid a second floating footer over the application. */
body[data-page="orders"] > .site-footer,
body[data-page="account"] > .site-footer,
body[data-page="admin"] > .site-footer {
    display: none !important;
}

@media (max-width: 720px) {
    .orders-row-payment-footer {
        min-height: 0 !important;
        margin-top: 9px !important;
        padding-top: 9px !important;
        display: block !important;
    }

    .orders-row-payment-summary {
        min-height: 27px;
        margin-bottom: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 7px 12px !important;
        font-size: 11px !important;
    }

    .orders-row-payment-summary strong {
        font-size: 12px !important;
    }

    .account-legal-links {
        margin-top: 16px !important;
        font-size: 8.5px !important;
    }

    .site-footer {
        margin-bottom: 76px !important;
        font-size: 7.5px !important;
    }
}


/* ============================================================
   V45.9 — DISCOUNT INFO + PAGE BOTTOM PAGINATION
   ============================================================ */

#authUserView .account-user-discount {
    cursor: pointer !important;
    font: inherit;
    border: 1px solid #eadff0 !important;
}

#authUserView .account-user-discount:hover {
    background: #faf6fd !important;
}

#authUserView .account-user-discount strong {
    font-size: 22px !important;
}

.discount-info-popover {
    position: relative;
    z-index: 30;
    width: min(420px, calc(100% - 20px));
    margin: -2px 10px 14px auto;
    padding: 13px 14px;
    border: 1px solid #dfd3e5;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(47, 31, 57, .10);
}

.discount-info-popover[hidden] {
    display: none !important;
}

.discount-info-popover-title {
    color: #34283a;
    font-size: 13px;
    font-weight: 900;
}

.discount-info-popover-text {
    margin-top: 6px;
    color: #746a79;
    font-size: 11px;
    line-height: 1.5;
}

.discount-info-close {
    margin-top: 10px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #d9cce2;
    border-radius: 10px;
    background: #faf7fb;
    color: #6726AB;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

/* Pagination is no longer pinned to the viewport.
   It appears only after the user scrolls past all 10 orders. */
.orders-pagination {
    position: static !important;
    inset: auto !important;
    width: min(1100px, 100%) !important;
    margin: 14px auto 2px !important;
    padding: 14px 0 2px !important;
    border-top: 1px solid #e8e1eb !important;
    background: transparent !important;
    flex: none !important;
    min-height: 56px !important;
}

.orders-list-body {
    overflow-y: auto !important;
}

@media (max-width: 720px) {
    #authUserView .account-user-discount strong {
        font-size: 21px !important;
    }

    .discount-info-popover {
        width: calc(100% - 16px);
        margin: -2px 8px 12px;
        padding: 12px;
    }

    .discount-info-popover-text {
        font-size: 10.5px;
    }

    .orders-pagination {
        margin-top: 12px !important;
        padding: 12px 0 4px !important;
    }
}


/* ============================================================
   V45.11 — FULL WIDTH ORDERS + SAFE LOCAL FLAGS + EMAIL FEEDBACK
   ============================================================ */

/* ---------- Orders: use the full available sheet ---------- */
.orders-center,
.orders-center-shell,
.orders-center-view {
    width: 100vw !important;
    max-width: none !important;
}

.orders-center-list,
.orders-pagination {
    width: 100% !important;
    max-width: none !important;
}

.order-detail-scroll > * {
    width: 100% !important;
    max-width: none !important;
}

.orders-list-body {
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 900px) {
    .orders-list-body {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .order-detail-scroll {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

/* ---------- Clear feedback after "Продублировать PDF" ---------- */
.order-email-send-status {
    grid-column: 1 / -1;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 750;
    text-align: center;
}

.order-email-send-status[hidden] {
    display: none !important;
}

.order-email-send-status.is-sending {
    border: 1px solid #ded4e4;
    background: #faf7fb;
    color: #746879;
}

.order-email-send-status.is-success {
    border: 1px solid #c8dfcf;
    background: #f2faf4;
    color: #34714d;
}

.order-email-send-status.is-error {
    border: 1px solid #e4c2c2;
    background: #fff4f4;
    color: #994848;
}

.order-pdf-btn.is-sent {
    border-color: #8fb99d !important;
    background: #edf8f0 !important;
    color: #34714d !important;
}

.order-pdf-btn.is-error {
    border-color: #d9abab !important;
    background: #fff4f4 !important;
    color: #994848 !important;
}

/* ---------- Currency flags: local SVG only, hard-sized ----------
   These rules intentionally override generic img rules so a flag
   can never stretch to full-screen. */
.currency-toggle button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

img.currency-flag {
    position: static !important;
    display: block !important;

    width: 18px !important;
    height: 12px !important;
    min-width: 18px !important;
    min-height: 12px !important;
    max-width: 18px !important;
    max-height: 12px !important;

    flex: 0 0 18px !important;
    object-fit: cover !important;
    object-position: center !important;

    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 2px !important;
    box-shadow: 0 0 0 1px rgba(53, 43, 58, .08) !important;
    transform: none !important;
}

@media (max-width: 720px) {
    img.currency-flag {
        width: 17px !important;
        height: 11px !important;
        min-width: 17px !important;
        min-height: 11px !important;
        max-width: 17px !important;
        max-height: 11px !important;
        flex-basis: 17px !important;
    }

    .currency-toggle button {
        gap: 5px !important;
    }

    .order-email-send-status {
        min-height: 40px;
        font-size: 10.5px;
    }
}


/* ============================================================
   V45.12 — CANCELLED ORDERS + LARGE FINANCE SUMMARY
   ============================================================ */

/* Customer orders: five status cards including Cancelled. */
.orders-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.orders-stat-cancelled strong {
    color: #9a4f58 !important;
}

.orders-stat-cancelled.active {
    border-color: #d9b4b9 !important;
    background: #fff7f7 !important;
}

/* Open order: make Sum / Paid / Balance clearly readable. */
.order-finance-card {
    padding: 20px !important;
}

.order-finance-card .order-detail-card-title {
    margin-bottom: 16px !important;
    font-size: 16px !important;
}

.order-finance-grid {
    gap: 12px !important;
}

.order-finance-grid > div {
    min-height: 96px !important;
    padding: 16px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    border-radius: 14px !important;
}

.order-finance-grid > div span {
    font-size: 12.5px !important;
    line-height: 1.2 !important;
    font-weight: 750 !important;
}

.order-finance-grid > div strong {
    margin-top: 8px !important;
    font-size: 21px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
}

.order-finance-grid > div.has-debt strong {
    font-size: 22px !important;
}

@media (max-width: 720px) {
    .orders-stats {
        grid-template-columns: repeat(5, minmax(70px, 1fr)) !important;
        overflow-x: auto !important;
        scrollbar-width: thin;
    }

    .orders-stat-card {
        min-width: 70px !important;
    }

    .order-finance-card {
        padding: 15px !important;
    }

    .order-finance-grid {
        gap: 8px !important;
    }

    .order-finance-grid > div {
        min-height: 82px !important;
        padding: 13px 12px !important;
    }

    .order-finance-grid > div span {
        font-size: 11.5px !important;
    }

    .order-finance-grid > div strong {
        margin-top: 7px !important;
        font-size: 18px !important;
    }

    .order-finance-grid > div.has-debt strong {
        font-size: 19px !important;
    }
}


/* ============================================================
   V45.13 — DISCOUNT / PHONE FLAGS / DELIVERY
   ============================================================ */

.product-card .price-row.has-personal-discount .base-price {
    color: #aaa1ad !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    text-decoration: line-through !important;
}
.product-card .price-row.has-personal-discount .price {
    font-size: 23px !important;
    font-weight: 900 !important;
    color: #6726AB !important;
}
.product-card .price-row.has-personal-discount .currency-label {
    color: #6726AB !important;
    font-weight: 750 !important;
}
.product-card .personal-discount-chip {
    font-size: 8.5px !important;
    white-space: nowrap;
}
.detail-price-old {
    display: inline-block;
    margin-right: 8px;
    color: #aaa1ad !important;
    font-size: 13px !important;
    font-weight: 650;
    text-decoration: line-through;
}
.detail-price-old[hidden] { display: none !important; }

.cart-item.has-discount .item-unit {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 7px;
}
.cart-unit-old,
.cart-subtotal-old,
.cart-total-old {
    color: #a49aa7;
    font-size: 10px;
    line-height: 1.2;
    text-decoration: line-through;
}
.cart-unit-current {
    color: #6726AB;
    font-size: 12px;
    font-weight: 850;
}
.cart-item.has-discount .item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}
.cart-item.has-discount .item-price strong {
    color: #6726AB;
    font-size: 15px;
    font-weight: 900;
}
#cartTotalPrice {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px 8px;
}
#cartTotalPrice strong {
    color: #6726AB;
    font-size: 20px;
    font-weight: 900;
}

.phone-code-with-flag,
.auth-phone-code-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.phone-code-with-flag .phone-country-flag,
.auth-phone-code-wrap .phone-country-flag {
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2 !important;
    width: 18px !important;
    height: 12px !important;
    min-width: 18px !important;
    min-height: 12px !important;
    max-width: 18px !important;
    max-height: 12px !important;
    object-fit: cover !important;
    pointer-events: none !important;
}
.phone-code-with-flag select,
.auth-phone-code-wrap select {
    padding-left: 34px !important;
}
.auth-phone-row {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 8px;
}
.auth-phone-code-wrap select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #ded6e2;
    border-radius: 11px;
    background: #fff;
    color: #342b38;
    font: inherit;
    font-size: 13px;
    appearance: none;
}

.delivery-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.delivery-address-grid .form-group {
    margin: 0;
}

@media (max-width: 720px) {
    .product-card .price-row.has-personal-discount .price {
        font-size: 21px !important;
    }
    .auth-phone-row {
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 7px;
    }
    .delivery-address-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}


/* ============================================================
   V45.14 — DEALER WALLET MODEL
   ============================================================ */

/* ---------- Customer header ---------- */
#authUserView .account-user-card-dealer {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    margin-bottom: 10px !important;
}

.dealer-summary-grid {
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.dealer-summary-card {
    min-width: 0;
    min-height: 86px;
    padding: 11px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border: 1px solid #e7dfea;
    border-radius: 13px;
    background: #fff;
    color: #342b38;
    text-align: left;
    font: inherit;
    box-sizing: border-box;
}

button.dealer-summary-card {
    cursor: pointer;
}

button.dealer-summary-card:hover {
    border-color: #ccb7da;
    background: #fcf9fd;
}

.dealer-summary-label {
    color: #827687;
    font-size: 10px;
    line-height: 1.15;
    font-weight: 800;
}

.dealer-summary-card strong {
    margin-top: 7px;
    color: #302536;
    font-size: 19px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

.dealer-summary-card small {
    margin-top: 6px;
    color: #9b909f;
    font-size: 9px;
    line-height: 1.15;
    font-weight: 650;
}

.dealer-summary-discount strong {
    color: #6726AB;
    font-size: 23px;
}

.dealer-summary-deposit {
    background: #f7fbf8;
    border-color: #dbe9df;
}

.dealer-summary-deposit strong {
    color: #34714d;
}

.dealer-summary-debt {
    background: #fffafa;
    border-color: #eadede;
}

.dealer-summary-debt strong.has-debt,
.dealer-summary-debt small.has-debt {
    color: #a24a4a;
}

.dealer-summary-card .is-zero {
    opacity: .6;
}

/* ---------- Order finance: now 4 cells ---------- */
.order-finance-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.order-finance-grid .deposit-applied strong {
    color: #34714d !important;
}

/* ---------- Admin dealer wallet ---------- */
.admin-detail-caption {
    margin-top: 4px;
    color: #918697;
    font-size: 10px;
    line-height: 1.35;
    font-weight: 600;
}

.admin-dealer-grid {
    align-items: stretch;
}

.admin-dealer-balance-card {
    display: flex;
    flex-direction: column;
}

.admin-dealer-balance-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.admin-dealer-balance-item {
    min-height: 70px;
    padding: 11px 12px;
    border: 1px solid #e8e1eb;
    border-radius: 12px;
    background: #faf9fb;
}

.admin-dealer-balance-item span {
    color: #8e8393;
    font-size: 9.5px;
    font-weight: 750;
}

.admin-dealer-balance-item strong {
    display: block;
    margin-top: 7px;
    color: #332a38;
    font-size: 16px;
    font-weight: 900;
}

.admin-dealer-balance-item.deposit {
    background: #f5faf6;
    border-color: #dbe9df;
}

.admin-dealer-balance-item.deposit strong,
.deposit-text,
.admin-deposit-label {
    color: #34714d !important;
}

.admin-dealer-balance-item.debt strong {
    color: #a24a4a;
}

.admin-deposit-form {
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid #eee8f0;
    display: grid;
    gap: 9px;
}

.admin-deposit-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 105px;
    gap: 8px;
}

.admin-deposit-form label {
    display: grid;
    gap: 5px;
}

.admin-deposit-form label > span {
    color: #746979;
    font-size: 9.5px;
    font-weight: 750;
}

.admin-deposit-form input,
.admin-deposit-form select {
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid #ded5e2;
    border-radius: 10px;
    background: #fff;
    color: #342b38;
    font: inherit;
    font-size: 11px;
}

.admin-deposit-submit {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: #34714d;
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.admin-deposit-submit:disabled {
    opacity: .55;
    cursor: wait;
}

.admin-deposit-note {
    margin-top: 9px;
    color: #8a7f8f;
    font-size: 9px;
    line-height: 1.45;
}

.admin-client-finance-grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* ---------- Fix phone country selector alignment ----------
   Flag left, country code exactly centered, arrow right. */
.phone-code-with-flag,
.auth-phone-code-wrap {
    position: relative !important;
}

.phone-code-with-flag select,
.auth-phone-code-wrap select {
    padding-left: 30px !important;
    padding-right: 30px !important;
    text-align: center !important;
    text-align-last: center !important;
    -moz-text-align-last: center !important;
}

.phone-code-with-flag .phone-country-flag,
.auth-phone-code-wrap .phone-country-flag {
    left: 9px !important;
}

.phone-code-with-flag .phone-code-arrow,
.auth-phone-code-wrap .phone-code-arrow {
    position: absolute !important;
    right: 9px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    margin: 0 !important;
}

@media (max-width: 720px) {
    .dealer-summary-grid {
        gap: 6px;
    }

    .dealer-summary-card {
        min-height: 78px;
        padding: 9px 8px;
    }

    .dealer-summary-label {
        font-size: 9px;
    }

    .dealer-summary-card strong {
        font-size: 15px;
    }

    .dealer-summary-discount strong {
        font-size: 20px;
    }

    .dealer-summary-card small {
        font-size: 8px;
    }

    .order-finance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .admin-dealer-balance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-client-finance-grid-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .admin-deposit-form-row {
        grid-template-columns: minmax(0, 1fr) 92px;
    }
}

@media (max-width: 390px) {
    .dealer-summary-grid {
        grid-template-columns: 1fr;
    }

    .dealer-summary-card {
        min-height: 66px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 10px;
    }

    .dealer-summary-card strong {
        grid-column: 2;
        grid-row: 1 / span 2;
        margin: 0;
        font-size: 17px;
    }

    .dealer-summary-card small {
        margin-top: 3px;
    }

    .dealer-summary-discount strong {
        font-size: 21px;
    }
}


/* ============================================================
   V45.15 — UI POLISH
   ============================================================ */

/* ---------- "Посмотреть условия" ---------- */
.dealer-summary-discount small {
    color: #6726AB !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: .9;
}

/* ---------- Deposit currency same exact height as amount ---------- */
.admin-deposit-form-row input,
.admin-deposit-form-row select {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.admin-deposit-form-row select {
    appearance: auto;
}

/* ---------- Phone selector: identical layout in cart and registration ---------- */
.cart-sheet .order-form .phone-code-with-flag,
.auth-phone-row .auth-phone-code-wrap {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    position: relative !important;
    display: block !important;
}

.cart-sheet .order-form .phone-code-with-flag select,
.auth-phone-row .auth-phone-code-wrap select {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 31px !important;
    margin: 0 !important;
    box-sizing: border-box !important;

    text-align: center !important;
    text-align-last: center !important;
    -moz-text-align-last: center !important;

    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;

    border: 1px solid #ded6e2 !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #342b38 !important;
    font: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.cart-sheet .order-form .phone-code-with-flag .phone-country-flag,
.auth-phone-row .auth-phone-code-wrap .phone-country-flag {
    position: absolute !important;
    left: 9px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 3 !important;
}

.cart-sheet .order-form .phone-code-with-flag .phone-code-arrow,
.auth-phone-row .auth-phone-code-wrap .phone-code-arrow {
    position: absolute !important;
    right: 9px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-55%) !important;
    z-index: 3 !important;
    margin: 0 !important;
    color: #756a82 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    pointer-events: none !important;
}

/* Cart code column a little wider so +375 has real visual center. */
.cart-sheet .order-form .phone-row {
    grid-template-columns: 112px minmax(0, 1fr) !important;
}

.auth-phone-row {
    grid-template-columns: 112px minmax(0, 1fr) !important;
}

/* ---------- Catalog pricing ---------- */
.product-price-block {
    margin-top: 4px;
}

.product-price-caption {
    margin-bottom: 3px;
    color: #9a909e;
    font-size: 9px;
    line-height: 1.1;
    font-weight: 700;
}

.product-price-values {
    min-height: 27px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 6px;
}

.product-price-values .price {
    color: #2d2531 !important;
    font-size: 19px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

.product-price-values .currency-label {
    color: #716675 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.product-price-block.has-personal-discount .base-price {
    color: #aaa1ad !important;
    font-size: 10px !important;
    font-weight: 650 !important;
    text-decoration: line-through !important;
    text-decoration-thickness: 1px !important;
}

.product-price-block.has-personal-discount .price {
    color: #6726AB !important;
    font-size: 21px !important;
}

.product-price-block.has-personal-discount .currency-label {
    color: #6726AB !important;
}

.product-price-block .personal-discount-chip {
    min-height: 19px !important;
    padding: 2px 6px !important;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f2eafa !important;
    color: #6726AB !important;
    font-size: 8.5px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
}

/* ---------- Product detail pricing ---------- */
.product-modal .modal-content .detail-price {
    margin-bottom: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.detail-price-caption {
    margin-bottom: 5px;
    color: #928797;
    font-size: 10px;
    line-height: 1.15;
    font-weight: 750;
}

.detail-price-values {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 8px;
}

.detail-price-old {
    margin: 0 !important;
    color: #aaa1ad !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    text-decoration: line-through !important;
}

.detail-price-current {
    color: #2d2531;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
}

.detail-price.has-personal-discount .detail-price-current {
    color: #6726AB;
}

.detail-discount-chip {
    min-height: 22px;
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f2eafa;
    color: #6726AB;
    font-size: 10px;
    font-weight: 850;
}

.detail-line-total {
    margin-top: 9px;
    padding-top: 9px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #eee8f0;
}

.detail-line-total span {
    color: #756a7a;
    font-size: 11px;
    font-weight: 700;
}

.detail-line-total strong {
    color: #342b38;
    font-size: 16px;
    font-weight: 900;
}

/* ---------- Stable order success modal ---------- */
.modal-window .order-details {
    max-height: none !important;
}

.confirm-order-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.confirm-order-summary > div {
    min-width: 0;
    padding: 9px 6px;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.confirm-order-summary span {
    display: block;
    color: #918794;
    font-size: 9px;
    font-weight: 750;
}

.confirm-order-summary strong {
    display: block;
    margin-top: 4px;
    color: #342b38;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 900;
}

.confirm-items-preview {
    margin: 10px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.confirm-items-preview li {
    min-height: 30px;
    padding: 6px 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #eee !important;
    font-size: 10px;
}

.confirm-items-preview li span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.confirm-items-preview li strong {
    flex: 0 0 auto;
}

.confirm-more-items {
    margin-top: 7px;
    color: #746a79;
    font-size: 10px;
    font-weight: 750;
    text-align: center;
}

.confirm-customer-email {
    margin-top: 10px;
    color: #756b7a;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
}

.confirm-email-status {
    margin-top: 10px !important;
}

/* ---------- Guest orders notice ---------- */
.orders-auth-notice {
    margin-bottom: 12px;
    padding: 12px 13px;
    border: 1px solid #e1d6e8;
    border-radius: 12px;
    background: #faf7fc;
}

.orders-auth-notice strong {
    display: block;
    color: #34283a;
    font-size: 14px;
    font-weight: 900;
}

.orders-auth-notice span {
    display: block;
    margin-top: 4px;
    color: #746979;
    font-size: 11px;
    line-height: 1.4;
}

@media (max-width: 560px) {
    .cart-sheet .order-form .phone-row,
    .auth-phone-row {
        grid-template-columns: 108px minmax(0, 1fr) !important;
        gap: 7px !important;
    }

    .cart-sheet .order-form .phone-code-with-flag select,
    .auth-phone-row .auth-phone-code-wrap select {
        padding-left: 30px !important;
        padding-right: 30px !important;
        font-size: 12.5px !important;
    }

    .confirm-order-summary strong {
        font-size: 12px;
    }
}


/* ============================================================
   V45.16 — STABLE UI / SIMPLE PRICE / CONSENT
   ============================================================ */

/* ---------- No cropping: catalog artwork always fits a 900×1200 (3:4) frame ---------- */
.product-card .image-wrap {
    aspect-ratio: 3 / 4 !important;
    background: #fff !important;
}

.product-card .image-wrap .slider-container,
.product-card .image-wrap .slider-container img,
.product-card .image-wrap .slider-container img.carousel-active {
    aspect-ratio: 3 / 4 !important;
}

.product-card .image-wrap .slider-container img,
.product-card .image-wrap .slider-container img.carousel-active {
    object-fit: contain !important;
    object-position: center center !important;
    background: #fff !important;
}

/* ---------- Catalog discount: no −N% badge ---------- */
.product-price-block .personal-discount-chip {
    display: none !important;
}

.product-price-block.has-personal-discount .product-price-values {
    gap: 6px 8px !important;
}

.product-price-block.has-personal-discount .base-price {
    color: #a79daa !important;
    font-size: 10.5px !important;
    text-decoration: line-through !important;
}

.product-price-block.has-personal-discount .price {
    color: #6726AB !important;
    font-size: 20px !important;
    font-weight: 900 !important;
}

/* ---------- Product detail: one clean row only ---------- */
.product-modal .modal-content .detail-price {
    width: 100%;
    margin: 0 0 14px !important;
    padding: 12px 0;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid #eee8f0;
    border-bottom: 1px solid #eee8f0;
}

.detail-price-simple-label {
    flex: 0 0 auto;
    color: #665b6b;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
}

.detail-price-simple-values {
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px 9px;
    text-align: right;
}

.detail-price-simple-old {
    color: #aaa1ad;
    font-size: 13px;
    line-height: 1;
    font-weight: 650;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.detail-price-simple-values strong {
    color: #302536;
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

.detail-price.has-personal-discount .detail-price-simple-values strong {
    color: #6726AB;
}

/* Hide all obsolete V45.15 detail price elements if cached DOM remains. */
.detail-price-caption,
.detail-price-values,
.detail-discount-chip,
.detail-line-total {
    display: none !important;
}

/* ---------- Phone country selector: browser select no longer controls layout ---------- */
.phone-code-with-flag,
.auth-phone-code-wrap {
    position: relative !important;
    height: 46px !important;
    min-height: 46px !important;
    display: block !important;
    overflow: hidden !important;
    border: 1px solid #ded6e2 !important;
    border-radius: 11px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.phone-code-visible {
    position: absolute !important;
    inset: 0 31px !important;
    z-index: 2 !important;
    display: grid !important;
    place-items: center !important;
    color: #342b38 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    text-align: center !important;
    pointer-events: none !important;
}

.phone-code-with-flag .phone-country-flag,
.auth-phone-code-wrap .phone-country-flag {
    position: absolute !important;
    left: 9px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 3 !important;
}

.phone-code-with-flag .phone-code-arrow,
.auth-phone-code-wrap .phone-code-arrow {
    position: absolute !important;
    right: 9px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-52%) !important;
    z-index: 3 !important;
    color: #756a82 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    pointer-events: none !important;
}

.phone-code-native-select {
    position: absolute !important;
    inset: 0 !important;
    z-index: 5 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
}

.cart-sheet .order-form .phone-row,
.auth-phone-row {
    grid-template-columns: 112px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
}

/* ---------- Order discount is visible in order history ---------- */
.order-detail-hero-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.order-discount-badge {
    min-height: 28px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #dbc9e7;
    border-radius: 999px;
    background: #f6effa;
    color: #6726AB;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

.order-item-old-price {
    color: #a59ba8;
    text-decoration: line-through;
    margin-right: 5px;
}

.order-item-new-price {
    color: #6726AB;
    font-weight: 850;
}

.order-detail-total-values {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px 10px;
}

.order-detail-total-values small {
    color: #a59ba8;
    font-size: 11px;
    font-weight: 650;
    text-decoration: line-through;
}

.order-detail-total.has-order-discount strong {
    color: #6726AB !important;
}

/* ---------- Explicit registration consent ---------- */
.privacy-consent-check {
    margin: 4px 0 13px;
    padding: 11px 12px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    border: 1px solid #e4dce8;
    border-radius: 11px;
    background: #faf8fb;
    cursor: pointer;
}

.privacy-consent-check input {
    width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    margin: 1px 0 0 !important;
    accent-color: #6726AB;
}

.privacy-consent-check span {
    color: #756a7a;
    font-size: 10px;
    line-height: 1.45;
}

.privacy-consent-check a,
.auth-privacy-login-note a {
    color: #6726AB;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-privacy-login-note {
    margin-top: 8px;
    color: #968b9a;
    font-size: 9px;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 560px) {
    .cart-sheet .order-form .phone-row,
    .auth-phone-row {
        grid-template-columns: 108px minmax(0, 1fr) !important;
        gap: 7px !important;
    }

    .detail-price-simple-label {
        font-size: 11px;
    }

    .detail-price-simple-old {
        font-size: 12px;
    }

    .detail-price-simple-values strong {
        font-size: 18px;
    }

    .order-detail-hero-badges {
        justify-content: flex-start;
    }
}


/* ============================================================
   V45.17 — ADMIN / PRICING / EMAIL POLISH
   ============================================================ */

/* ---------- Phone selector: exactly ONE visible arrow ---------- */
.phone-code-native-select,
.cart-sheet .order-form .phone-code-native-select,
.auth-phone-row .phone-code-native-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    outline: 0 !important;
    color: transparent !important;
    opacity: 0 !important;
}

/* ---------- Product detail ---------- */
.product-modal .modal-content .detail-price {
    justify-content: space-between !important;
    text-align: left !important;
}

.detail-price-simple-label {
    margin-right: auto !important;
    text-align: left !important;
    color: #4d4352 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.detail-price-simple-values {
    margin-left: auto !important;
    text-align: right !important;
}

.detail-price-simple-old {
    font-size: 13px !important;
}

.detail-price-simple-values strong {
    font-size: 20px !important;
}

/* ---------- Catalog uses the same left/right idea, only smaller ---------- */
.product-price-block {
    margin-top: 7px !important;
    padding-top: 7px !important;
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 10px !important;
    border-top: 1px solid #f0ebf2;
}

.product-price-caption {
    flex: 0 0 auto;
    margin: 0 !important;
    color: #6f6474 !important;
    font-size: 9.5px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

.product-price-values {
    min-width: 0 !important;
    min-height: 0 !important;
    margin-left: auto !important;
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 4px 6px !important;
    text-align: right !important;
}

.product-price-block.has-personal-discount .base-price {
    font-size: 9.5px !important;
}

.product-price-values .price,
.product-price-block.has-personal-discount .price {
    font-size: 16px !important;
    line-height: 1 !important;
    white-space: nowrap;
}

/* ---------- Admin delivery ---------- */
.admin-client-form-subtitle {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #eee8f0;
    color: #5d5262;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
}

/* ---------- Admin final finance: one row per value ---------- */
.admin-finance-rows {
    margin-top: 10px;
    display: grid;
    gap: 6px;
}

.admin-finance-row {
    min-height: 44px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #e9e2ec;
    border-radius: 10px;
    background: #faf9fb;
}

.admin-finance-row span {
    color: #746979;
    font-size: 10.5px;
    font-weight: 750;
}

.admin-finance-row strong {
    color: #342b38;
    font-size: 13px;
    line-height: 1.1;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.admin-finance-row.deposit {
    background: #f5faf6;
    border-color: #dbe9df;
}

.admin-finance-row.deposit strong {
    color: #34714d;
}

.admin-finance-row.debt {
    background: #fff7f7;
    border-color: #ead7d7;
}

.admin-finance-row.debt strong {
    color: #a24a4a;
}

@media (max-width: 560px) {
    .detail-price-simple-label {
        font-size: 13px !important;
    }

    .detail-price-simple-values strong {
        font-size: 18px !important;
    }

    .product-price-block {
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: end !important;
        gap: 6px 8px !important;
    }

    .product-price-caption {
        min-width: 0 !important;
        font-size: 8.5px !important;
        line-height: 1.15 !important;
        letter-spacing: -0.01em !important;
        white-space: normal !important;
    }

    .product-price-values {
        flex-wrap: nowrap !important;
        gap: 3px 4px !important;
    }

    .product-price-values .price,
    .product-price-block.has-personal-discount .price {
        font-size: 14px !important;
        letter-spacing: -0.02em !important;
    }

    .product-price-block.has-personal-discount .base-price {
        font-size: 8.5px !important;
    }
}


@media (max-width: 400px) {
    .product-price-caption {
        font-size: 8px !important;
    }

    .product-price-values .price,
    .product-price-block.has-personal-discount .price {
        font-size: 13.5px !important;
    }

    .product-price-block.has-personal-discount .base-price {
        font-size: 8px !important;
    }
}


/* ============================================================
   V45.18 — QA STABLE
   ============================================================ */

.admin-compact-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.admin-mini-stat-cancelled strong {
    color: #9a4f58 !important;
}

.admin-finance-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.admin-finance-grid-4 .has-deposit strong {
    color: #34714d !important;
}

.admin-finance-old-total {
    display: block;
    margin-top: 5px;
    color: #a59ba8;
    font-size: 9.5px;
    line-height: 1;
    font-weight: 650;
    text-decoration: line-through;
}

.admin-order-hero-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-order-discount-badge {
    min-height: 28px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #dbc9e7;
    border-radius: 999px;
    background: #f6effa;
    color: #6726AB;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
}

.admin-detail-item s {
    margin-right: 5px;
    color: #a59ba8;
}

.product-price-block {
    min-height: 31px;
}

.product-price-values {
    font-variant-numeric: tabular-nums;
}

.category-card img,
.product-card .image-wrap img,
#detailSwipeTrack img {
    background: #fff;
}

#userPhone,
#registerPhone {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
    .admin-compact-stats {
        grid-template-columns: repeat(5, minmax(72px, 1fr)) !important;
        overflow-x: auto !important;
        scrollbar-width: thin;
    }

    .admin-finance-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .admin-order-hero-badges {
        justify-content: flex-start;
    }
}


/* ============================================================
   V45.18.2 — NAV PAGES / SINGLE PHONE ARROW / BRAND ZONE
   ============================================================ */

/* ---------- Phone code selector: exactly ONE arrow ----------
   All old span-based arrows are removed from HTML.
   The only arrow is this pseudo-element on the wrapper. */
.phone-code-arrow {
    display: none !important;
}

.phone-code-with-flag,
.auth-phone-code-wrap {
    position: relative !important;
    overflow: hidden !important;
}

.phone-code-with-flag::after,
.auth-phone-code-wrap::after {
    content: "" !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    z-index: 4 !important;

    width: 7px !important;
    height: 7px !important;

    border: 0 !important;
    border-right: 2px solid #685d75 !important;
    border-bottom: 2px solid #685d75 !important;

    transform: translateY(-68%) rotate(45deg) !important;
    transform-origin: center !important;

    pointer-events: none !important;
    box-sizing: border-box !important;
}

.phone-code-native-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;
}

/* ---------- Header / company logo area ----------
   The entire left half of the header is the Home target. */
.header .brand-home-zone {
    align-self: stretch !important;
    flex: 0 1 50% !important;
    width: 50% !important;
    max-width: 50vw !important;
    min-height: 42px !important;

    margin: -6px 0 -6px -6px !important;
    padding: 6px 6px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    border: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
    text-align: left !important;
}

.header .brand-home-zone .brand-text-fallback {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Ready for the real horizontal logo.
   When supplied, it can be inserted as .company-header-logo. */
.header .company-header-logo {
    display: block !important;
    width: auto !important;
    height: 30px !important;
    max-width: min(360px, 42vw) !important;
    max-height: 30px !important;
    object-fit: contain !important;
    object-position: left center !important;
}

/* Registration consent starts checked, but user may uncheck it. */
.privacy-consent-check input[type="checkbox"] {
    cursor: pointer;
}

@media (max-width: 560px) {
    .phone-code-with-flag::after,
    .auth-phone-code-wrap::after {
        right: 11px !important;
        width: 6px !important;
        height: 6px !important;
        border-right-width: 1.8px !important;
        border-bottom-width: 1.8px !important;
    }

    .header .brand-home-zone {
        flex-basis: 50% !important;
        width: 50% !important;
        max-width: 50vw !important;
    }

    .header .company-header-logo {
        height: 26px !important;
        max-height: 26px !important;
        max-width: 42vw !important;
    }
}


/* ============================================================
   V45.18.3 — COMPANY LOGO
   ============================================================ */

.header .brand-home-zone {
    overflow: hidden !important;
}

.header .company-header-logo {
    display: block !important;
    width: auto !important;
    height: 36px !important;
    max-width: min(360px, 42vw) !important;
    max-height: 36px !important;
    object-fit: contain !important;
    object-position: left center !important;
    pointer-events: none !important;
    user-select: none !important;
}

@media (max-width: 720px) {
    .header .company-header-logo {
        height: 31px !important;
        max-height: 31px !important;
        max-width: 43vw !important;
    }
}

@media (max-width: 420px) {
    .header .company-header-logo {
        height: 28px !important;
        max-height: 28px !important;
        max-width: 44vw !important;
    }
}


/* ============================================================
   V45.19.1 — MOBILE ORDER CONFIRMATION READABILITY
   Larger, phone-friendly typography for the post-order modal only.
   ============================================================ */
@media (max-width: 560px) {
    .modal-overlay .modal-window {
        width: calc(100% - 32px) !important;
        max-width: 430px !important;
        padding: 28px 20px 24px !important;
        border-radius: 24px !important;
    }

    .modal-overlay .modal-window h3 {
        margin-bottom: 18px !important;
        font-size: 27px !important;
        line-height: 1.16 !important;
        font-weight: 900 !important;
    }

    .modal-overlay .modal-window .order-details {
        padding: 18px 16px !important;
        border-radius: 18px !important;
        margin-bottom: 18px !important;
        font-size: 15px !important;
    }

    .confirm-order-summary {
        gap: 9px !important;
    }

    .confirm-order-summary > div {
        padding: 12px 7px !important;
        border-radius: 13px !important;
    }

    .confirm-order-summary span {
        font-size: 12px !important;
        line-height: 1.2 !important;
        font-weight: 800 !important;
    }

    .confirm-order-summary strong {
        margin-top: 6px !important;
        font-size: 17px !important;
        line-height: 1.15 !important;
        font-weight: 900 !important;
    }

    .confirm-items-preview {
        margin-top: 14px !important;
    }

    .confirm-items-preview li {
        min-height: 42px !important;
        padding: 9px 0 !important;
        gap: 12px !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    .confirm-items-preview li span {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .confirm-items-preview li strong {
        font-size: 14px !important;
        font-weight: 850 !important;
    }

    .confirm-more-items {
        margin-top: 11px !important;
        font-size: 13.5px !important;
        line-height: 1.35 !important;
        font-weight: 800 !important;
    }

    .confirm-customer-email {
        margin-top: 13px !important;
        font-size: 13.5px !important;
        line-height: 1.45 !important;
    }

    .confirm-customer-email strong {
        overflow-wrap: anywhere !important;
    }

    .confirm-email-status {
        margin-top: 13px !important;
        padding: 12px 13px !important;
        border-radius: 12px !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
        font-weight: 800 !important;
    }

    .modal-overlay .modal-window .contact-phone {
        margin: 14px 0 18px !important;
        font-size: 14.5px !important;
        line-height: 1.4 !important;
    }

    .modal-overlay .modal-window .btn-confirm {
        min-height: 54px !important;
        font-size: 18px !important;
        font-weight: 800 !important;
    }
}

@media (max-width: 699px) {
    body[data-page="home"] .home-new-panel .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media (max-width: 380px) {
    .modal-overlay .modal-window h3 {
        font-size: 24px !important;
    }

    .confirm-order-summary span {
        font-size: 11px !important;
    }

    .confirm-order-summary strong {
        font-size: 15.5px !important;
    }

    .confirm-items-preview li,
    .confirm-items-preview li strong {
        font-size: 13.5px !important;
    }
}


/* ============================================================
   V45.19.2 — ORDER UX / CART PREVIEW / DESKTOP ALIGNMENT
   ============================================================ */

/* Desktop header content aligns with the catalog/card content edges. */
@media (min-width: 768px) {
    .header {
        padding-left: max(32px, calc((100vw - 1440px) / 2 + 32px)) !important;
        padding-right: max(32px, calc((100vw - 1440px) / 2 + 32px)) !important;
    }
}

/* Clickable product thumbnail in cart, left of the article/name. */
.cart-sheet #cartItemsList .cart-item {
    grid-template-columns: 58px minmax(0, 1fr) auto minmax(108px, auto) !important;
}

.cart-sheet #cartItemsList .cart-item-preview {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    padding: 0 !important;
    border: 1px solid #ebe5f0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    overflow: hidden !important;
    cursor: pointer !important;
    box-shadow: 0 3px 10px rgba(35, 23, 46, 0.05) !important;
}

.cart-sheet #cartItemsList .cart-item-preview img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.cart-sheet #cartItemsList .cart-item-preview:hover {
    border-color: rgba(109, 43, 182, 0.28) !important;
    transform: translateY(-1px);
}

/* Desktop confirmation modal: no tiny typography. */
@media (min-width: 561px) {
    .modal-overlay .modal-window {
        width: min(92vw, 540px) !important;
        max-width: 540px !important;
        padding: 34px 30px 30px !important;
        border-radius: 26px !important;
    }

    .modal-overlay .modal-window h3 {
        margin-bottom: 20px !important;
        font-size: 30px !important;
        line-height: 1.15 !important;
        font-weight: 900 !important;
    }

    .modal-overlay .modal-window .order-details {
        padding: 20px 18px !important;
        border-radius: 18px !important;
        margin-bottom: 18px !important;
    }

    .confirm-order-summary {
        gap: 10px !important;
    }

    .confirm-order-summary > div {
        padding: 13px 9px !important;
        border-radius: 13px !important;
    }

    .confirm-order-summary span {
        font-size: 13px !important;
        line-height: 1.2 !important;
        font-weight: 800 !important;
    }

    .confirm-order-summary strong {
        margin-top: 6px !important;
        font-size: 19px !important;
        line-height: 1.15 !important;
    }

    .confirm-items-preview {
        margin-top: 15px !important;
    }

    .confirm-items-preview li {
        min-height: 44px !important;
        padding: 10px 0 !important;
        gap: 14px !important;
        font-size: 15px !important;
        line-height: 1.35 !important;
    }

    .confirm-items-preview li span {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .confirm-items-preview li strong {
        font-size: 15px !important;
        font-weight: 850 !important;
    }

    .confirm-more-items {
        margin-top: 12px !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    .confirm-email-status {
        margin-top: 14px !important;
        padding: 13px 14px !important;
        border-radius: 13px !important;
        font-size: 15px !important;
        line-height: 1.45 !important;
        font-weight: 800 !important;
    }

    .modal-overlay .modal-window .contact-phone {
        margin: 16px 0 20px !important;
        font-size: 16px !important;
        line-height: 1.45 !important;
    }

    .modal-overlay .modal-window .btn-confirm {
        min-height: 54px !important;
        padding: 14px 30px !important;
        font-size: 18px !important;
        font-weight: 800 !important;
    }
}

@media (max-width: 560px) {
    .cart-sheet #cartItemsList .cart-item {
        grid-template-columns: 46px minmax(0, 1fr) auto minmax(76px, auto) !important;
        column-gap: 7px !important;
    }

    .cart-sheet #cartItemsList .cart-item-preview {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        border-radius: 10px !important;
    }
}

@media (max-width: 420px) {
    .cart-sheet #cartItemsList .cart-item {
        grid-template-columns: 42px minmax(0, 1fr) !important;
        gap: 8px 9px !important;
    }

    .cart-sheet #cartItemsList .cart-item-preview {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        grid-row: 1 !important;
        grid-column: 1 !important;
    }

    .cart-sheet #cartItemsList .item-main {
        grid-row: 1 !important;
        grid-column: 2 !important;
    }

    .cart-sheet #cartItemsList .item-qty {
        grid-row: 2 !important;
        grid-column: 1 / 3 !important;
        justify-self: start !important;
    }

    .cart-sheet #cartItemsList .item-price {
        grid-row: 2 !important;
        grid-column: 2 !important;
        justify-self: end !important;
        align-self: center !important;
    }
}

/* ============================================================
   V45.19.3 — HOME / CONTENT ALIGNMENT / CART RETURN CONTEXT
   ============================================================ */

/* Breadcrumb text follows the same desktop content edges as the catalog cards. */
@media (min-width: 768px) {
    .breadcrumb {
        padding-left: max(32px, calc((100vw - 1440px) / 2 + 32px)) !important;
        padding-right: max(32px, calc((100vw - 1440px) / 2 + 32px)) !important;
    }

    /* Keep bottom navigation controls inside the same 1440px content frame. */
    .bottom-nav.bottom-nav-4 {
        padding-left: max(32px, calc((100vw - 1440px) / 2 + 32px)) !important;
        padding-right: max(32px, calc((100vw - 1440px) / 2 + 32px)) !important;
    }
}

.bottom-nav.bottom-nav-4 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.bottom-nav.bottom-nav-4 .nav-item {
    width: auto !important;
    min-width: 0 !important;
    flex: none !important;
}

/* ---------- Standalone Home page ---------- */
body[data-page="home"] {
    background: #f7f5f9;
    padding-bottom: 84px;
}

.home-shell {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px;
}

.home-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .72fr);
    gap: 28px;
    align-items: stretch;
    padding: clamp(28px, 5vw, 64px);
    border: 1px solid rgba(103, 38, 171, .08);
    border-radius: 30px;
    background:
        radial-gradient(circle at 92% 8%, rgba(103, 38, 171, .13), transparent 30%),
        linear-gradient(135deg, #fff 0%, #f3edf8 100%);
    box-shadow: 0 18px 48px rgba(44, 26, 59, .08);
}

.home-hero-copy {
    max-width: 790px;
    align-self: center;
}

.home-kicker,
.home-section-label {
    display: inline-flex;
    align-items: center;
    color: #6726AB;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 780px;
    margin: 14px 0 16px;
    color: #1c1521;
    font-size: clamp(38px, 5.2vw, 72px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 900;
}

.home-hero-copy > p {
    max-width: 700px;
    margin: 0;
    color: #645a69;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.65;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.home-primary-btn,
.home-secondary-btn,
.home-arrow-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 14px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 800;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.home-primary-btn {
    background: #6726AB;
    color: #fff;
    box-shadow: 0 10px 22px rgba(103, 38, 171, .2);
}

.home-secondary-btn {
    border: 1px solid rgba(103, 38, 171, .15);
    background: rgba(255,255,255,.72);
    color: #4d315d;
}

.home-primary-btn:hover,
.home-secondary-btn:hover,
.home-arrow-link:hover {
    transform: translateY(-1px);
}

.home-hero-panel {
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 10px;
}

.home-hero-panel > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 18px;
    border: 1px solid rgba(103, 38, 171, .09);
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(8px);
}

.home-hero-panel strong {
    color: #6726AB;
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
}

.home-hero-panel span {
    color: #73697a;
    font-size: 12px;
    line-height: 1.35;
    text-align: right;
}

.home-catalog-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
    padding: 26px 28px;
    border: 1px solid #ebe4ef;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(46, 29, 56, .045);
}

.home-catalog-entry h2,
.home-section-head h2 {
    margin: 6px 0 7px;
    color: #221827;
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.home-catalog-entry p,
.home-section-head p {
    max-width: 780px;
    margin: 0;
    color: #776d7c;
    font-size: 13px;
    line-height: 1.55;
}

.home-arrow-link {
    flex: 0 0 auto;
    gap: 10px;
    background: #f2ecf7;
    color: #6726AB;
}

.home-arrow-link span {
    font-size: 20px;
}

.home-section {
    margin-top: 42px;
}

.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.home-text-link {
    flex: 0 0 auto;
    color: #6726AB;
    font-size: 13px;
    font-weight: 800;
}

.home-new-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #ebe5ef;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(39, 25, 47, .045);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(103, 38, 171, .2);
    box-shadow: 0 14px 32px rgba(50, 31, 62, .08);
}

.home-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f1eff3;
}

.home-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.home-product-card:hover .home-product-image img {
    transform: scale(1.025);
}

.home-new-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(103, 38, 171, .92);
    color: #fff;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.home-product-info {
    display: grid;
    gap: 4px;
    padding: 14px 14px 16px;
}

.home-product-info > span {
    overflow: hidden;
    color: #8e8294;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-product-info strong {
    overflow: hidden;
    color: #2b2130;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-product-info small {
    color: #6726AB;
    font-size: 10px;
    font-weight: 750;
}

.home-loading {
    grid-column: 1 / -1;
    padding: 40px 12px;
    border: 1px dashed #ddd2e3;
    border-radius: 18px;
    color: #897c90;
    text-align: center;
    font-size: 13px;
}

.home-loading-error {
    color: #9b4e5d;
}

.home-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-story-card {
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 24px;
    border: 1px solid #e9e2ed;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(40, 25, 49, .045);
    color: inherit;
    text-decoration: none;
}

.home-story-tag {
    align-self: flex-start;
    padding: 6px 9px;
    border-radius: 999px;
    background: #f2ecf7;
    color: #6726AB;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.home-story-card h3 {
    margin: 16px 0 10px;
    color: #281e2e;
    font-size: 19px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.home-story-card > p,
.home-story-card details p {
    color: #756a7b;
    font-size: 12px;
    line-height: 1.65;
}

.home-story-card details {
    margin-top: auto;
    padding-top: 18px;
}

.home-story-card summary {
    cursor: pointer;
    color: #6726AB;
    font-size: 11px;
    font-weight: 800;
    list-style: none;
}

.home-story-card summary::-webkit-details-marker { display: none; }
.home-story-card details[open] summary { margin-bottom: 10px; }

.home-news-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 42px 0 10px;
    padding: 22px 24px;
    border-radius: 20px;
    background: #2a2030;
    color: #fff;
}

.home-news-mark {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: #fff;
    color: #6726AB;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.home-news-strip strong,
.home-news-strip span {
    display: block;
}

.home-news-strip strong {
    font-size: 14px;
}

.home-news-strip span {
    margin-top: 4px;
    color: #d8cedd;
    font-size: 11px;
    line-height: 1.5;
}

.home-footer {
    max-width: 1440px !important;
}

@media (min-width: 768px) {
    .home-shell {
        padding: 16px 32px;
    }
}

@media (max-width: 900px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero-panel {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-hero-panel > div {
        display: grid;
        align-content: center;
        justify-items: start;
    }

    .home-hero-panel span { text-align: left; }
    .home-new-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-story-grid { grid-template-columns: 1fr; }
    .home-story-card { min-height: 0; }
}

@media (max-width: 620px) {
    .home-shell { padding: 12px; }
    .home-breadcrumb { padding-bottom: 2px !important; }

    .home-hero {
        gap: 20px;
        padding: 24px 18px;
        border-radius: 22px;
    }

    .home-hero h1 {
        font-size: clamp(34px, 11vw, 48px);
    }

    .home-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-primary-btn,
    .home-secondary-btn { width: 100%; }

    .home-hero-panel {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .home-hero-panel > div {
        display: flex;
        justify-content: space-between;
    }

    .home-hero-panel span { text-align: right; }

    .home-catalog-entry {
        display: grid;
        padding: 20px;
    }

    .home-arrow-link { width: 100%; }

    .home-section { margin-top: 32px; }
    .home-section-head { align-items: center; }
    .home-new-grid { gap: 10px; }
    .home-product-card { border-radius: 16px; }
    .home-product-info { padding: 11px 11px 13px; }
    .home-product-info strong { font-size: 12px; }
    .home-product-info > span { font-size: 9px; }
    .home-story-card { padding: 20px; }

    .home-news-strip {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 32px;
        padding: 20px;
    }
}

/* ============================================================
   V45.20 — ADMIN CATALOG
   ============================================================ */
.admin-catalog-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-catalog-add-btn {
    min-height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: #2d2035;
    color: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.admin-catalog-add-btn:hover,
.admin-catalog-save-btn:hover {
    filter: brightness(1.06);
}

.admin-catalog-toolbar .admin-search-wrap {
    flex: 1 1 auto;
}

.admin-catalog-readonly-note {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f3eef6;
    color: #5c516a;
    font-size: 11px;
    line-height: 1.4;
}

.admin-catalog-list {
    display: grid;
    gap: 7px;
}

.admin-catalog-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 7px;
    align-items: stretch;
}

.admin-catalog-row-main {
    width: 100%;
    min-height: 76px;
    display: grid;
    grid-template-columns: 58px minmax(160px, 1.1fr) minmax(190px, 1fr) 100px 130px;
    gap: 12px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #e5dee8;
    border-radius: 13px;
    background: #fff;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: default;
    transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.admin-catalog-row-main:hover {
    border-color: #cab7d6;
    box-shadow: 0 6px 18px rgba(43,25,52,.05);
    transform: translateY(-1px);
}

.admin-catalog-thumb {
    width: 52px;
    height: 58px;
    display: block;
    overflow: hidden;
    border-radius: 9px;
    background: #f4f1f5;
    border: 1px solid #ece6ef;
}

.admin-catalog-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.admin-catalog-maintext,
.admin-catalog-location,
.admin-catalog-prices {
    min-width: 0;
}

.admin-catalog-maintext strong,
.admin-catalog-location strong,
.admin-catalog-prices strong,
.admin-catalog-maintext small,
.admin-catalog-location small,
.admin-catalog-prices small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-catalog-maintext strong {
    color: #2f2534;
    font-size: 12px;
    font-weight: 900;
}

.admin-catalog-maintext small {
    margin-top: 4px;
    color: #8f8495;
    font-size: 9px;
    font-weight: 800;
}

.admin-catalog-location strong {
    color: #5a4d61;
    font-size: 10px;
    font-weight: 850;
}

.admin-catalog-location small {
    margin-top: 4px;
    color: #978b9c;
    font-size: 9px;
}

.admin-catalog-stock {
    justify-self: start;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-catalog-stock.in-stock {
    background: #e9f5ee;
    color: #2d7a4e;
}

.admin-catalog-stock.out-stock {
    background: #f8eaea;
    color: #a64646;
}

.admin-catalog-prices {
    text-align: right;
}

.admin-catalog-prices strong {
    color: #33283a;
    font-size: 10px;
}

.admin-catalog-prices small {
    margin-top: 4px;
    color: #8d8292;
    font-size: 9px;
}

.admin-catalog-open-link {
    display: grid;
    place-items: center;
    border: 1px solid #e5dee8;
    border-radius: 11px;
    background: #fff;
    color: #6e5877;
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
}

.admin-catalog-open-link:hover {
    border-color: #cab7d6;
    background: #faf7fb;
}

.admin-catalog-editor-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-catalog-editor-topbar > strong {
    color: #3c3042;
    font-size: 11px;
}

.admin-catalog-form {
    width: min(980px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 16px;
    padding-bottom: 28px;
}

.admin-catalog-preview-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid #e5dee8;
    border-radius: 15px;
    background: #fff;
}

.admin-catalog-preview-image {
    width: 72px;
    height: 82px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 11px;
    background: #f4f1f5;
}

.admin-catalog-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-catalog-preview-card span,
.admin-catalog-preview-card strong,
.admin-catalog-preview-card small {
    display: block;
}

.admin-catalog-preview-card span {
    color: #958a9b;
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.admin-catalog-preview-card strong {
    margin-top: 4px;
    color: #2f2534;
    font-size: 16px;
    font-weight: 900;
}

.admin-catalog-preview-card small {
    margin-top: 5px;
    color: #8c8191;
    font-size: 10px;
}

.admin-catalog-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-catalog-form-block {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5dee8;
    border-radius: 15px;
    background: #fff;
}

.admin-catalog-form-block-title {
    color: #3b3041;
    font-size: 11px;
    font-weight: 900;
}

.admin-catalog-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-catalog-field > span {
    color: #5f5365;
    font-size: 9px;
    font-weight: 900;
}

.admin-catalog-field > small {
    color: #9a8fa0;
    font-size: 8px;
    line-height: 1.35;
}

.admin-catalog-field input,
.admin-catalog-field select,
.admin-catalog-field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #ded5e2;
    border-radius: 10px;
    background: #fff;
    color: #33283a;
    font: inherit;
    font-size: 11px;
    outline: none;
    transition: border-color .14s ease, box-shadow .14s ease;
}

.admin-catalog-field input,
.admin-catalog-field select {
    min-height: 40px;
    padding: 0 11px;
}

.admin-catalog-field textarea {
    padding: 10px 11px;
    line-height: 1.5;
    resize: vertical;
}

.admin-catalog-field input:focus,
.admin-catalog-field select:focus,
.admin-catalog-field textarea:focus {
    border-color: #aa91b6;
    box-shadow: 0 0 0 3px rgba(118,83,133,.08);
}

.admin-catalog-field input.is-readonly {
    background: #f4f1f5;
    color: #766c7b;
    cursor: not-allowed;
}

.admin-catalog-field-wide,
.admin-catalog-field-full {
    grid-column: 1 / -1;
}

.admin-catalog-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
    padding: 12px;
    border: 1px solid #e5dee8;
    border-radius: 14px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
}

.admin-catalog-sync-warning {
    flex: 1 1 100%;
    order: -1;
    margin: 0 0 4px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff6e0;
    color: #7a5c00;
    font-size: 11px;
    line-height: 1.4;
}

.admin-catalog-cancel-btn,
.admin-catalog-save-btn {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    font: inherit;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.admin-catalog-cancel-btn {
    border: 1px solid #ded5e2;
    background: #fff;
    color: #66596c;
}

.admin-catalog-save-btn {
    border: 0;
    background: #2d2035;
    color: #fff;
}

.admin-catalog-save-btn:disabled {
    opacity: .55;
    cursor: progress;
}

@media (max-width: 900px) {
    .admin-catalog-row-main {
        grid-template-columns: 52px minmax(140px, 1fr) minmax(130px, .9fr) 92px 110px 20px;
        gap: 8px;
    }
}

@media (max-width: 700px) {
    .admin-catalog-title-row {
        align-items: flex-end;
        padding-right: 8px;
    }

    .admin-catalog-add-btn {
        min-height: 32px;
        padding: 0 10px;
        font-size: 9px;
    }

    .admin-catalog-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .admin-catalog-row {
        grid-template-columns: minmax(0, 1fr) 34px;
    }

    .admin-catalog-row-main {
        min-height: 74px;
        grid-template-columns: 50px minmax(0, 1fr) auto;
        gap: 9px;
    }

    .admin-catalog-thumb {
        width: 46px;
        height: 54px;
    }

    .admin-catalog-location,
    .admin-catalog-stock,
    .admin-catalog-row-main > .admin-row-arrow {
        display: none;
    }

    .admin-catalog-prices {
        min-width: 82px;
    }

    .admin-catalog-form {
        gap: 12px;
    }

    .admin-catalog-form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .admin-catalog-field-wide,
    .admin-catalog-field-full {
        grid-column: auto;
    }

    .admin-catalog-form-block {
        padding: 11px;
        border-radius: 12px;
    }

    .admin-catalog-form-actions {
        padding: 9px;
    }

    .admin-catalog-cancel-btn,
    .admin-catalog-save-btn {
        flex: 1;
        padding: 0 10px;
    }
}

/* ============================================================
   V45.21 — HOME V2 / GOOGLE SHEET DRIVEN CONTENT
   ============================================================ */
body[data-page="home"] {
    background: #f7f5f9;
    padding-bottom: 86px;
}

body[data-page="home"] .home-header {
    box-sizing: border-box;
}

@media (min-width: 768px) {
    body[data-page="home"] .home-header {
        padding-left: max(32px, calc((100vw - 1440px) / 2 + 32px)) !important;
        padding-right: max(32px, calc((100vw - 1440px) / 2 + 32px)) !important;
    }
}

.home-shell-v2 {
    padding-top: 12px;
}

.home-hero-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    gap: 28px;
    min-height: 520px;
    padding: clamp(28px, 4vw, 54px);
    overflow: hidden;
    border: 1px solid rgba(103, 38, 171, .09);
    border-radius: 30px;
    background: linear-gradient(135deg, #fff 0%, #f1eaf7 100%);
    box-shadow: 0 18px 48px rgba(44, 26, 59, .08);
}

.home-hero-v2-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 720px;
}

.home-hero-v2 h1 {
    margin: 14px 0 16px;
    max-width: 680px;
    color: #1d1621;
    font-size: clamp(42px, 5vw, 72px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 920;
}

.home-hero-v2-copy > p {
    max-width: 660px;
    margin: 0;
    color: #655a6b;
    font-size: 16px;
    line-height: 1.65;
}

.home-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.home-hero-stats > div {
    display: grid;
    min-width: 112px;
    padding: 13px 16px;
    border: 1px solid rgba(103,38,171,.10);
    border-radius: 15px;
    background: rgba(255,255,255,.70);
}

.home-hero-stats strong {
    color: #6726AB;
    font-size: 23px;
    line-height: 1;
    font-weight: 900;
}

.home-hero-stats span {
    margin-top: 5px;
    color: #7d7183;
    font-size: 10px;
    font-weight: 750;
}

.home-hero-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.2fr .8fr;
    gap: 10px;
    min-height: 420px;
}

.home-mosaic-card {
    position: relative;
    overflow: hidden;
    min-height: 0;
    border-radius: 20px;
    background: #e9e3ed;
    color: #fff;
    box-shadow: 0 10px 24px rgba(39, 25, 47, .08);
}

.home-mosaic-1 {
    grid-row: 1 / 3;
}

.home-mosaic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.home-mosaic-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(21,15,25,.68) 100%);
    pointer-events: none;
}

.home-mosaic-card span {
    position: absolute;
    z-index: 1;
    left: 14px;
    right: 14px;
    bottom: 13px;
    font-size: 12px;
    font-weight: 850;
    text-shadow: 0 2px 8px rgba(0,0,0,.28);
}

.home-mosaic-card:hover img {
    transform: scale(1.035);
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.home-category-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e9e2ed;
    border-radius: 21px;
    background: #fff;
    color: inherit;
    box-shadow: 0 8px 24px rgba(41, 26, 49, .045);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-category-card:hover {
    transform: translateY(-3px);
    border-color: rgba(103,38,171,.18);
    box-shadow: 0 14px 30px rgba(43, 27, 52, .075);
}

.home-category-card-image {
    aspect-ratio: 1.55 / 1;
    overflow: hidden;
    background: #f0edf3;
}

.home-category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-category-card-copy {
    display: grid;
    gap: 5px;
    padding: 14px 15px 16px;
}

.home-category-card-copy strong {
    overflow: hidden;
    color: #2b2030;
    font-size: 14px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-category-card-copy span {
    color: #8a7f90;
    font-size: 10px;
}

.home-section-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.home-section-card-v2 {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
    padding: 8px;
    border: 1px solid #e9e2ed;
    border-radius: 17px;
    background: #fff;
    color: inherit;
    transition: border-color .16s ease, transform .16s ease;
}

.home-section-card-v2:hover {
    transform: translateY(-2px);
    border-color: rgba(103,38,171,.18);
}

.home-section-card-v2 > img {
    width: 92px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
    background: #f0edf3;
}

.home-section-card-v2 > div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.home-section-card-v2 span,
.home-section-card-v2 small {
    overflow: hidden;
    color: #918597;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-section-card-v2 strong {
    overflow: hidden;
    color: #2c2131;
    font-size: 12px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-product-bottom {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

.home-product-bottom b {
    color: #2e2134;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 250px;
    gap: 12px;
}

.home-gallery-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #eee9f1;
    cursor: zoom-in;
    text-align: left;
}

.home-gallery-card:nth-child(6n + 1),
.home-gallery-card:nth-child(6n + 4) {
    grid-column: span 2;
}

.home-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.home-gallery-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(21,15,25,.66));
}

.home-gallery-card:hover img { transform: scale(1.025); }

.home-gallery-card > span {
    position: absolute;
    z-index: 1;
    left: 14px;
    right: 14px;
    bottom: 13px;
    display: grid;
    gap: 3px;
    color: #fff;
}

.home-gallery-card strong {
    font-size: 13px;
    font-weight: 850;
}

.home-gallery-card small {
    overflow: hidden;
    color: rgba(255,255,255,.80);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-story-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.home-story-meta time {
    color: #9b909f;
    font-size: 9px;
}

.home-lightbox[hidden] { display: none !important; }
.home-lightbox {
    position: fixed;
    z-index: 5000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 34px 18px 26px;
    background: rgba(21, 15, 24, .90);
    backdrop-filter: blur(8px);
}

.home-lightbox > img {
    width: min(980px, 92vw);
    max-height: 76vh;
    border-radius: 18px;
    object-fit: contain;
    background: #1d1820;
}

.home-lightbox-copy {
    width: min(980px, 92vw);
    display: flex;
    align-items: baseline;
    gap: 10px 16px;
    flex-wrap: wrap;
    margin-top: 12px;
    color: #fff;
}

.home-lightbox-copy strong { font-size: 14px; }
.home-lightbox-copy span { color: #cfc5d4; font-size: 11px; }
.home-lightbox-copy a { margin-left: auto; color: #d6b9f5; font-size: 11px; font-weight: 850; }

.home-lightbox-close {
    position: fixed;
    z-index: 2;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

body.home-lightbox-open { overflow: hidden; }

/* Home bottom navigation: native links + a real inner content frame. */
body[data-page="home"] .home-bottom-nav {
    display: block !important;
    padding: 0 !important;
    height: calc(68px + env(safe-area-inset-bottom, 0px));
}

body[data-page="home"] .home-bottom-nav-inner {
    width: 100%;
    max-width: 1376px;
    height: 68px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page="home"] .home-bottom-nav .nav-item {
    width: auto !important;
    height: 68px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 6px 0;
    color: #999;
    text-decoration: none;
    border-left: 1px solid #eee8f0;
}

body[data-page="home"] .home-bottom-nav .nav-item:first-child { border-left: 0; }
body[data-page="home"] .home-bottom-nav .nav-item:hover { color: #6726AB; background: #fbf9fc; }

@media (max-width: 1120px) {
    .home-hero-v2 { grid-template-columns: 1fr; min-height: 0; }
    .home-hero-mosaic { min-height: 380px; }
    .home-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-section-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .home-hero-v2 { padding: 24px 18px; border-radius: 22px; }
    .home-hero-v2 h1 { font-size: clamp(35px, 11vw, 50px); }
    .home-hero-v2-copy > p { font-size: 14px; }
    .home-hero-mosaic { min-height: 310px; }
    .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .home-section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .home-section-card-v2 { grid-template-columns: 68px minmax(0,1fr); gap: 9px; }
    .home-section-card-v2 > img { width: 68px; height: 62px; }
    .home-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 190px; }
    .home-gallery-card:nth-child(n) { grid-column: span 1; }
    .home-lightbox-copy { display: grid; }
    .home-lightbox-copy a { margin-left: 0; }
}

@media (max-width: 480px) {
    .home-hero-mosaic { grid-template-columns: 1fr 1fr; min-height: 260px; }
    .home-mosaic-card span { font-size: 10px; }
    .home-category-card-image { aspect-ratio: 1.25 / 1; }
    .home-category-card-copy { padding: 11px; }
    .home-category-card-copy strong { font-size: 12px; }
    .home-category-card-copy span { font-size: 9px; }
    .home-section-grid { grid-template-columns: 1fr; }
    .home-gallery-grid { grid-auto-rows: 175px; }
}

/* ============================================================
   V45.22 DEV — APPLE-DESIGN PASS
   Presentation, motion and accessibility only.
   ============================================================ */
:root {
    --dcr-accent: #6726AB;
    --dcr-text: #211824;
    --dcr-muted: #6f6474;
    --dcr-surface: rgba(255, 255, 255, .82);
    --dcr-radius-sm: .875rem;
    --dcr-radius-md: 1.125rem;
    --dcr-radius-lg: 1.5rem;
    --dcr-focus: 0 0 0 3px rgba(103, 38, 171, .24);
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-size: 1rem;
    line-height: 1.45;
}

/* Keep native touch feedback instead of globally suppressing it. */
a[href],
button,
[role="button"] {
    -webkit-tap-highlight-color: rgba(103, 38, 171, .14);
}

button,
a[href],
[role="button"] {
    touch-action: manipulation;
}

:where(a[href], button, input, select, textarea, [role="button"], [tabindex]):focus-visible {
    outline: 2px solid var(--dcr-accent) !important;
    outline-offset: 3px;
    box-shadow: var(--dcr-focus);
}

/* Pointer-down feedback: immediate, restrained, reversible. */
:where(button:not(:disabled), a[href], [role="button"]:not([aria-disabled="true"])) {
    transform-origin: center;
}

:where(button:not(:disabled), a[href], [role="button"]:not([aria-disabled="true"])).is-pressed,
:where(button:not(:disabled), a[href], [role="button"]:not([aria-disabled="true"])):active {
    scale: .975;
    filter: brightness(.985);
    transition: scale 90ms ease-out, filter 90ms ease-out !important;
}

.product-card.is-pressed,
.product-card:active,
.category-card.is-pressed,
.category-card:active,
.home-category-card.is-pressed,
.home-category-card:active,
.home-mosaic-card.is-pressed,
.home-mosaic-card:active,
.home-gallery-card.is-pressed,
.home-gallery-card:active {
    scale: .988 !important;
}

/* Floating material chrome instead of hard opaque bars. */
.header {
    border-bottom: 0 !important;
    background: rgba(255, 255, 255, .80) !important;
    -webkit-backdrop-filter: blur(20px) saturate(165%);
    backdrop-filter: blur(20px) saturate(165%);
    box-shadow: 0 1px 0 rgba(60, 42, 70, .07), 0 8px 28px rgba(45, 30, 55, .035) !important;
}

.breadcrumb {
    min-height: 2.5rem;
    padding-top: .625rem !important;
    padding-bottom: .4rem !important;
    color: #716775 !important;
    font-size: .8125rem !important;
    line-height: 1.35;
    background: rgba(248, 249, 250, .84) !important;
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    backdrop-filter: blur(14px) saturate(145%);
    transition: opacity 120ms ease !important;
}

body[data-page="home"] .breadcrumb { display: none !important; }

/* Dynamic-type-friendly small text. */
.loading-placeholder,
.home-loading,
.home-category-card-copy span,
.home-section-card-v2 span,
.home-section-card-v2 small,
.home-gallery-card small,
.home-story-meta time,
.home-hero-stats span,
.bottom-nav .nav-item .label,
.product-card .badge,
.product-price-caption,
.currency-label {
    font-size: .75rem !important;
    line-height: 1.35 !important;
    letter-spacing: .01em;
}

.home-category-card-copy strong,
.home-section-card-v2 strong,
.home-gallery-card strong {
    font-size: .875rem !important;
    line-height: 1.25 !important;
}

.product-card .info .description {
    font-size: .8125rem !important;
    line-height: 1.45 !important;
    color: var(--dcr-muted) !important;
}

.product-card .info .name {
    font-size: .9375rem !important;
    line-height: 1.3 !important;
    letter-spacing: -.008em;
}

/* Touch targets without inflating decorative dots. */
:where(.home-primary-btn, .home-secondary-btn, .home-text-link, .add-btn, .btn-confirm,
       .account-primary-btn, .account-secondary-btn, .admin-btn, .orders-btn,
       .close-btn, .home-lightbox-close, .currency-toggle button) {
    min-height: 2.75rem;
}

/* Cards: one consistent depth/radius language. */
.product-card,
.category-card,
.home-category-card,
.home-section-card-v2,
.home-story-card,
.home-gallery-card {
    border-radius: var(--dcr-radius-md) !important;
    box-shadow: 0 7px 22px rgba(38, 24, 46, .055) !important;
}

@media (hover:hover) and (pointer:fine) {
    .product-card:hover,
    .category-card:hover,
    .home-category-card:hover,
    .home-section-card-v2:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(38, 24, 46, .085) !important;
    }
}

/* Home: shorter common path, more catalog in the first viewport. */
.home-shell-v2 {
    padding-top: .75rem;
}

.home-hero-v2 {
    min-height: 27rem !important;
    gap: 1.4rem !important;
    padding: clamp(1.75rem, 3.2vw, 2.75rem) !important;
    border-radius: var(--dcr-radius-lg) !important;
    box-shadow: 0 14px 40px rgba(44, 26, 59, .065) !important;
}

.home-hero-v2 h1 {
    margin: .75rem 0 .85rem !important;
    max-width: 42rem;
    font-size: clamp(2.55rem, 4.25vw, 4rem) !important;
    line-height: 1.01 !important;
    letter-spacing: -.045em !important;
    font-weight: 850 !important;
}

.home-hero-v2-copy > p {
    font-size: 1rem !important;
    line-height: 1.55 !important;
}

.home-hero-actions {
    gap: .625rem !important;
    margin-top: 1.25rem !important;
}

.home-primary-btn,
.home-secondary-btn {
    padding: .72rem 1rem !important;
    border-radius: .875rem !important;
    font-size: .875rem !important;
    font-weight: 750 !important;
}

.home-hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem !important;
    margin-top: 1rem !important;
    max-width: 25rem;
}

.home-hero-stats > div {
    min-width: 0 !important;
    padding: .75rem .8rem !important;
    border-radius: .875rem !important;
}

.home-hero-stats strong {
    font-size: 1.25rem !important;
    font-weight: 820 !important;
}

.home-hero-mosaic {
    min-height: 22rem !important;
}

.home-mosaic-card,
.home-gallery-card {
    border-radius: var(--dcr-radius-md) !important;
}

.home-mosaic-card img,
.home-gallery-card img {
    transition: transform 180ms ease-out, opacity 180ms ease-out !important;
}

/* Lightbox materializes from a softer state instead of appearing abruptly. */
.home-lightbox {
    opacity: 0;
    background: rgba(21, 15, 24, .82) !important;
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
    transition: opacity 180ms ease-out;
}
.home-lightbox > img,
.home-lightbox .home-lightbox-copy {
    opacity: 0;
    transform: scale(.975) translateY(.35rem);
    filter: blur(5px);
    transition: transform 240ms cubic-bezier(.2,.8,.2,1), opacity 180ms ease-out, filter 180ms ease-out;
}
.home-lightbox.is-open { opacity: 1; }
.home-lightbox.is-open > img,
.home-lightbox.is-open .home-lightbox-copy {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
}

/* Sheets/dialogs: stronger material hierarchy and compositor hints. */
.cart-sheet,
.account-sheet,
.orders-center,
.admin-panel,
.payment-modal-card,
.product-modal .modal-content,
.modal-window {
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
    will-change: transform;
}

.cart-sheet,
.product-modal .modal-content {
    touch-action: pan-y;
}

.cart-drag-zone,
.account-sheet-header,
.orders-center-header,
.admin-header,
.payment-modal-head {
    touch-action: none;
}

/* Desktop gets a compact floating navigation surface instead of a full-width phone tab bar. */
@media (min-width: 900px) {
    body { padding-bottom: 6.5rem !important; }

    .bottom-nav,
    body[data-page="home"] .home-bottom-nav {
        left: 50% !important;
        right: auto !important;
        bottom: 1rem !important;
        width: min(38rem, calc(100vw - 4rem)) !important;
        height: 3.875rem !important;
        padding: 0 !important;
        border: 1px solid rgba(78, 59, 88, .11) !important;
        border-radius: 1.35rem !important;
        overflow: hidden;
        background: rgba(255,255,255,.76) !important;
        -webkit-backdrop-filter: blur(22px) saturate(165%);
        backdrop-filter: blur(22px) saturate(165%);
        box-shadow: 0 14px 42px rgba(37, 23, 45, .16) !important;
        transform: translateX(-50%);
    }

    body[data-page="home"] .home-bottom-nav-inner {
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
    }

    .bottom-nav .nav-item,
    body[data-page="home"] .home-bottom-nav .nav-item {
        min-height: 3.875rem;
        padding: .45rem .7rem !important;
        border-left: 0 !important;
        border-right: 1px solid rgba(78,59,88,.07) !important;
        font-size: .75rem !important;
    }

    .bottom-nav .nav-item:last-child,
    body[data-page="home"] .home-bottom-nav .nav-item:last-child { border-right: 0 !important; }

    .bottom-nav .nav-item:hover,
    body[data-page="home"] .home-bottom-nav .nav-item:hover {
        background: rgba(103,38,171,.055) !important;
    }
}

@media (max-width: 760px) {
    body[data-page="home"] { padding-bottom: 5rem !important; }
    .home-shell-v2 { padding-top: .5rem !important; }
    .home-hero-v2 {
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
        padding: 1.25rem 1rem !important;
        gap: 1rem !important;
        border-radius: 1.25rem !important;
    }
    .home-hero-v2 h1 {
        margin: .5rem 0 .65rem !important;
        font-size: clamp(2.05rem, 9.4vw, 2.7rem) !important;
        line-height: 1.02 !important;
    }
    .home-hero-v2-copy > p {
        font-size: .875rem !important;
        line-height: 1.48 !important;
    }
    .home-hero-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0,1fr));
        margin-top: .9rem !important;
    }
    .home-primary-btn,
    .home-secondary-btn {
        width: auto !important;
        min-width: 0;
        padding-inline: .7rem !important;
        text-align: center;
    }
    .home-hero-stats {
        width: 100%;
        max-width: none;
        margin-top: .75rem !important;
    }
    .home-hero-stats > div {
        align-content: center;
        padding: .65rem .55rem !important;
    }
    .home-hero-stats span { margin-top: .25rem !important; }
    .home-hero-mosaic {
        min-height: 10.5rem !important;
        grid-template-rows: 1fr 1fr !important;
        gap: .45rem !important;
    }
    .home-mosaic-card span { font-size: .75rem !important; }
    .home-section { margin-top: 2rem !important; }
    .home-section-head h2 { font-size: 1.45rem !important; line-height: 1.12 !important; }
    .home-section-head p { font-size: .8125rem !important; line-height: 1.45 !important; }
}

@media (max-width: 390px) {
    .home-hero-actions { grid-template-columns: 1fr; }
    .home-primary-btn, .home-secondary-btn { width: 100% !important; }
}

/* Accessibility preferences are independent signals. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
    :where(button, a[href], [role="button"]).is-pressed,
    :where(button, a[href], [role="button"]):active {
        scale: 1 !important;
        filter: brightness(.96);
    }
    .home-lightbox > img,
    .home-lightbox .home-lightbox-copy {
        transform: none !important;
        filter: none !important;
        transition: opacity 120ms ease !important;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .header,
    .breadcrumb,
    .bottom-nav,
    .cart-sheet,
    .account-sheet,
    .orders-center,
    .admin-panel,
    .payment-modal-card,
    .product-modal .modal-content,
    .modal-window {
        background: #fff !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
    .home-lightbox {
        background: rgba(21,15,24,.96) !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
}

@media (prefers-contrast: more) {
    :root { --dcr-muted: #4f4653; }
    .header,
    .breadcrumb,
    .bottom-nav,
    .cart-sheet,
    .account-sheet,
    .orders-center,
    .admin-panel,
    .payment-modal-card,
    .product-modal .modal-content,
    .modal-window,
    .product-card,
    .category-card,
    .home-category-card,
    .home-section-card-v2 {
        border: 1px solid #54485a !important;
        background-color: #fff !important;
    }
    .home-category-card-copy span,
    .home-section-card-v2 span,
    .home-section-card-v2 small,
    .home-story-meta time { color: #514655 !important; }
}

/* V45.22 readability pass for dense account/order/admin metadata. */
body { font-optical-sizing: auto; }
.account-kicker,
.account-user-email,
.account-approved-badge,
.account-section-subtitle,
.term-card span,
.account-order-date,
.account-order-status,
.account-empty,
.account-loading,
.auth-helper,
.orders-center-kicker,
.order-detail-kicker,
.orders-center-subtitle,
.orders-row-date,
.orders-row-repeat-link,
.payment-field > span,
.payment-modal-debt,
.admin-kicker,
.admin-subtitle,
.admin-row-meta,
.admin-client-meta,
.admin-debt-meta {
    font-size: .75rem !important;
    line-height: 1.4 !important;
    letter-spacing: .005em;
}

.account-sheet .form-group label,
.payment-field > span {
    color: #5d5262 !important;
}

/* Large headings use optical tracking; body copy remains neutral. */
:where(h1, .home-hero-v2 h1) { letter-spacing: -.035em; }
:where(h2, h3, .account-intro-title, .orders-center-header h2, .admin-header h2) { letter-spacing: -.018em; }
:where(p, input, textarea, select, .description) { letter-spacing: 0; }

/* WCAG-friendly neutral text while preserving the existing palette. */
.loading-placeholder,
.home-loading,
.home-category-card-copy span,
.home-section-card-v2 span,
.home-section-card-v2 small,
.home-story-meta time,
.home-hero-stats span,
.account-user-email,
.account-section-subtitle,
.account-order-date,
.orders-center-subtitle,
.orders-row-date {
    color: #6f6474 !important;
}
.bottom-nav .nav-item { color: #655a6a !important; }
.bottom-nav .nav-item.active { color: var(--dcr-accent) !important; }


/* ============================================================
   V45.22.2 DEV — NAV / CLOSE CONTROLS / SCROLL RETURN
   Feedback pass only. No business logic changes.
   ============================================================ */

/* Breadcrumbs: restore the useful old behavior — down hides, up reveals. */
.breadcrumb {
    transform: translate3d(0, 0, 0);
    transition: transform 150ms cubic-bezier(.2,.8,.2,1), opacity 120ms ease-out !important;
    will-change: transform, opacity;
}
.breadcrumb.hidden {
    transform: translate3d(0, -110%, 0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* One close-button language everywhere: a clean circular surface and one glyph. */
:where(
    .cart-close-btn,
    .account-close-btn,
    .orders-center-close,
    .admin-close-btn,
    .admin-detail-close-btn,
    .payment-close-btn,
    .product-modal .modal-content .close-btn,
    .home-lightbox-close
) {
    box-sizing: border-box !important;
    width: 2.5rem !important;
    min-width: 2.5rem !important;
    height: 2.5rem !important;
    min-height: 2.5rem !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 2.5rem !important;
    border: 1px solid rgba(78, 59, 88, .10) !important;
    border-radius: 999px !important;
    background: rgba(247, 244, 249, .96) !important;
    color: #4f4355 !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif !important;
    font-size: 1.45rem !important;
    font-weight: 350 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-indent: 0 !important;
    box-shadow: none !important;
    transform: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
:where(
    .cart-close-btn,
    .account-close-btn,
    .orders-center-close,
    .admin-close-btn,
    .admin-detail-close-btn,
    .payment-close-btn,
    .product-modal .modal-content .close-btn
):hover {
    background: #eee8f3 !important;
    color: #2f2534 !important;
}
:where(
    .cart-close-btn,
    .account-close-btn,
    .orders-center-close,
    .admin-close-btn,
    .admin-detail-close-btn,
    .payment-close-btn,
    .product-modal .modal-content .close-btn,
    .home-lightbox-close
)::before,
:where(
    .cart-close-btn,
    .account-close-btn,
    .orders-center-close,
    .admin-close-btn,
    .admin-detail-close-btn,
    .payment-close-btn,
    .product-modal .modal-content .close-btn,
    .home-lightbox-close
)::after {
    content: none !important;
}
.home-lightbox-close {
    background: rgba(255,255,255,.16) !important;
    border-color: rgba(255,255,255,.16) !important;
    color: #fff !important;
}
.home-lightbox-close:hover { background: rgba(255,255,255,.24) !important; color: #fff !important; }

/* Back to top: appears only after a meaningful scroll and sits above the tab bar. */
.dcr-scroll-top {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 180;
    width: 2.875rem;
    height: 2.875rem;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(78,59,88,.11);
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    color: #5d466b;
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 10px 28px rgba(38,24,46,.14);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0,.55rem,0) scale(.94);
    transition: opacity 140ms ease-out, transform 180ms cubic-bezier(.2,.8,.2,1), visibility 0s linear 180ms;
    cursor: pointer;
}
.dcr-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0,0,0) scale(1);
    transition-delay: 0s;
}
.dcr-scroll-top svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Bottom navigation aligns with catalog content on every viewport. */
:root { --dcr-nav-gutter: 1rem; }
@media (max-width: 480px) { :root { --dcr-nav-gutter: .625rem; } }
@media (min-width: 768px) and (max-width: 899px) { :root { --dcr-nav-gutter: 2rem; } }

.bottom-nav,
body[data-page="home"] .home-bottom-nav {
    left: var(--dcr-nav-gutter) !important;
    right: var(--dcr-nav-gutter) !important;
    bottom: calc(.625rem + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    height: 4rem !important;
    padding: 0 !important;
    border: 1px solid rgba(78,59,88,.11) !important;
    border-radius: 1.15rem !important;
    overflow: hidden !important;
    background: rgba(255,255,255,.88) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 10px 30px rgba(37,23,45,.13) !important;
    transform: none !important;
}
.bottom-nav.bottom-nav-4 {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
}
body[data-page="home"] .home-bottom-nav { display: block !important; }
body[data-page="home"] .home-bottom-nav-inner {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
}
.bottom-nav .nav-item,
body[data-page="home"] .home-bottom-nav .nav-item {
    width: auto !important;
    min-width: 0 !important;
    height: 4rem !important;
    min-height: 4rem !important;
    padding: .42rem .25rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .18rem !important;
    border: 0 !important;
    border-right: 1px solid rgba(78,59,88,.065) !important;
    border-radius: 0 !important;
    text-align: center;
}
.bottom-nav .nav-item:last-child,
body[data-page="home"] .home-bottom-nav .nav-item:last-child { border-right: 0 !important; }
.bottom-nav .icon-wrap,
body[data-page="home"] .home-bottom-nav .icon-wrap {
    width: 1.5rem !important;
    min-width: 1.5rem !important;
    height: 1.5rem !important;
    min-height: 1.5rem !important;
    display: inline-grid !important;
    place-items: center !important;
}
.bottom-nav .nav-svg,
body[data-page="home"] .home-bottom-nav .nav-svg {
    display: block !important;
    width: 1.3rem !important;
    height: 1.3rem !important;
}
.bottom-nav .nav-item .label,
body[data-page="home"] .home-bottom-nav .nav-item .label {
    margin: 0 !important;
    font-size: .6875rem !important;
    line-height: 1 !important;
    font-weight: 680 !important;
    white-space: nowrap;
}
.bottom-nav .cart-badge .count,
body[data-page="home"] .home-bottom-nav .cart-badge .count {
    top: -.4rem !important;
    right: -.65rem !important;
}

/* Desktop content edge = catalog cards edge (1480 container - 28px gutters each side). */
@media (min-width: 900px) {
    :root { --dcr-nav-gutter: max(28px, calc((100vw - 1480px) / 2 + 28px)); }
    .bottom-nav,
    body[data-page="home"] .home-bottom-nav {
        left: var(--dcr-nav-gutter) !important;
        right: var(--dcr-nav-gutter) !important;
        bottom: 1rem !important;
        width: auto !important;
        height: 4rem !important;
        transform: none !important;
    }
    .dcr-scroll-top {
        right: var(--dcr-nav-gutter);
        bottom: 6rem;
    }
}

@media (max-width: 899px) {
    body { padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)) !important; }
    body[data-page="home"] { padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)) !important; }
    .site-legal-footer { margin-bottom: 5.25rem !important; }
}

@media (prefers-reduced-motion: reduce) {
    .breadcrumb,
    .dcr-scroll-top { transition-duration: .001ms !important; }
}

/* Keep sheets/panels above the new floating navigation instead of underneath it. */
@media (max-width: 899px) {
    .cart-sheet,
    body[data-page="orders"] .orders-center,
    body[data-page="account"] .account-sheet,
    body[data-page="admin"] .admin-panel {
        bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)) !important;
    }
}
@media (min-width: 900px) {
    .cart-sheet,
    body[data-page="orders"] .orders-center,
    body[data-page="account"] .account-sheet,
    body[data-page="admin"] .admin-panel {
        bottom: 5.75rem !important;
    }
}

/* ============================================================
   V45.22.2 DEV — FEEDBACK PASS 2
   Visual/layout only. No pricing, cart, auth or backend logic changes.
   ============================================================ */

/* 1. Close controls: draw the X geometrically so it is optically centered. */
:where(
    .cart-close-btn,
    .account-close-btn,
    .orders-center-close,
    .admin-close-btn,
    .admin-detail-close-btn,
    .payment-close-btn,
    .product-modal .modal-content .close-btn,
    .home-lightbox-close
) {
    --dcr-close-stroke: #4f4355;
    position: relative !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    overflow: hidden !important;
}
:where(
    .cart-close-btn,
    .account-close-btn,
    .orders-center-close,
    .admin-close-btn,
    .admin-detail-close-btn,
    .payment-close-btn,
    .product-modal .modal-content .close-btn,
    .home-lightbox-close
)::before,
:where(
    .cart-close-btn,
    .account-close-btn,
    .orders-center-close,
    .admin-close-btn,
    .admin-detail-close-btn,
    .payment-close-btn,
    .product-modal .modal-content .close-btn,
    .home-lightbox-close
)::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 14px !important;
    height: 1.6px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--dcr-close-stroke) !important;
    transform-origin: 50% 50% !important;
    pointer-events: none !important;
}
:where(
    .cart-close-btn,
    .account-close-btn,
    .orders-center-close,
    .admin-close-btn,
    .admin-detail-close-btn,
    .payment-close-btn,
    .product-modal .modal-content .close-btn,
    .home-lightbox-close
)::before { transform: translate(-50%, -50%) rotate(45deg) !important; }
:where(
    .cart-close-btn,
    .account-close-btn,
    .orders-center-close,
    .admin-close-btn,
    .admin-detail-close-btn,
    .payment-close-btn,
    .product-modal .modal-content .close-btn,
    .home-lightbox-close
)::after { transform: translate(-50%, -50%) rotate(-45deg) !important; }
.home-lightbox-close { --dcr-close-stroke: #fff; }

/* 2. Mobile currency control: keep the desktop-style sliding pill,
      with a 1px centre overlap to hide sub-pixel seams. */
@media (max-width: 720px) {
    .header .currency-toggle {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0 !important;
        padding: 3px !important;
        overflow: hidden !important;
    }
    .header .currency-toggle::before {
        display: block !important;
        top: 3px !important;
        bottom: 3px !important;
        left: 3px !important;
        width: calc(50% - 2px) !important;
        border-radius: 18px !important;
        background: #fff !important;
        box-shadow: 0 3px 11px rgba(45,30,55,.11) !important;
        transform: translateX(0) !important;
        transition: transform .34s cubic-bezier(.22,.8,.2,1), box-shadow .25s ease !important;
        will-change: transform;
    }
    .header .currency-toggle.rub-active::before {
        transform: translateX(calc(100% - 1px)) !important;
    }
    .header .currency-toggle button {
        border-radius: 18px !important;
        background: transparent !important;
        box-shadow: none !important;
        transition: color .28s ease, transform .28s ease !important;
    }
    .header .currency-toggle button.active {
        background: transparent !important;
        box-shadow: none !important;
        transform: scale(1.025) !important;
    }
}

/* 3. Discount terms popover is centered inside the customer account on desktop. */
@media (min-width: 721px) {
    .discount-info-popover {
        width: min(420px, calc(100% - 28px)) !important;
        margin: -2px auto 14px !important;
    }
}

/* 4. Home hero: three visual categories only; removing the fourth row makes it shorter. */
.home-hero-v2 {
    min-height: 0 !important;
}
.home-hero-mosaic {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    min-height: 19rem !important;
    align-self: center;
}
.home-mosaic-1 { grid-row: 1 / 3 !important; }
@media (max-width: 1120px) {
    .home-hero-mosaic { min-height: 17.5rem !important; }
}
@media (max-width: 760px) {
    .home-hero-mosaic { min-height: 10rem !important; }
}

/* 5. Breadcrumb always reappears completely below the real sticky header. */
.breadcrumb {
    top: var(--dcr-header-height, 60px) !important;
    transform: translate3d(0, 0, 0) !important;
}
.breadcrumb.hidden {
    transform: translate3d(0, calc(-100% - 2px), 0) !important;
}

/* 6. Mobile cart: white docking area behind the floating bottom navigation. */
@media (max-width: 899px) {
    body:has(#cartSheet.open)::after {
        content: "";
        position: fixed;
        z-index: 140;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(6rem + env(safe-area-inset-bottom, 0px));
        background: #fff;
        pointer-events: none;
    }
}

/* 7. Desktop bottom nav: the four hit areas fill the panel edge-to-edge equally. */
@media (min-width: 900px) {
    .bottom-nav.bottom-nav-4,
    body[data-page="home"] .home-bottom-nav-inner {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        align-items: stretch !important;
    }
    .bottom-nav .nav-item,
    body[data-page="home"] .home-bottom-nav .nav-item {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        height: 100% !important;
        align-self: stretch !important;
        justify-self: stretch !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        flex: none !important;
    }
}

/* 8. Admin UI — one coherent, readable layout system. */
.admin-panel-shell {
    width: 100% !important;
    max-width: 1440px;
    margin: 0 auto;
    background: #f7f5f9;
}
.admin-header {
    min-height: 70px !important;
    padding: 12px 20px !important;
}
.admin-header h2 {
    font-size: 1.2rem !important;
    line-height: 1.15 !important;
}
.admin-kicker {
    font-size: .6875rem !important;
    line-height: 1.2 !important;
}
.admin-main-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
    gap: 6px !important;
    min-height: 56px !important;
    padding: 8px 20px !important;
}
.admin-main-tab {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 0 12px !important;
    font-size: .8125rem !important;
    line-height: 1.15 !important;
}
.admin-content {
    min-height: 0 !important;
    overflow: hidden !important;
}
.admin-content > .admin-view {
    min-height: 0 !important;
    overflow: hidden !important;
}
.admin-list-scroll,
.admin-detail-scroll {
    min-height: 0 !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
}
.admin-list-scroll {
    padding: 12px 20px 18px !important;
}
.admin-detail-scroll {
    padding: 18px 20px 30px !important;
}
.admin-compact-stats {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0,1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
    padding: 12px 20px 7px !important;
}
.admin-mini-stat {
    min-width: 0 !important;
    min-height: 64px !important;
    padding: 10px 12px !important;
    border-radius: 13px !important;
}
.admin-mini-stat span {
    font-size: .75rem !important;
    line-height: 1.2 !important;
}
.admin-mini-stat strong {
    margin-top: 6px !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
}
.admin-section-title-row {
    min-height: 58px !important;
    padding: 12px 20px 7px !important;
}
.admin-section-title-row strong {
    font-size: 1rem !important;
    line-height: 1.2 !important;
}
.admin-section-title-row span {
    margin-top: 4px !important;
    font-size: .75rem !important;
    line-height: 1.3 !important;
}
.admin-compact-toolbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    padding: 7px 20px 12px !important;
}
.admin-search-only-toolbar {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    padding: 7px 20px 12px !important;
}
.admin-search-wrap,
.admin-select,
.admin-refresh-orders-btn {
    min-height: 44px !important;
    border-radius: 11px !important;
}
.admin-search-wrap {
    padding: 0 12px !important;
    gap: 8px !important;
}
.admin-search-wrap input,
.admin-select {
    min-width: 0 !important;
    font-size: .875rem !important;
    line-height: 1.2 !important;
}
.admin-search-wrap input::placeholder {
    color: #9a909e !important;
    font-size: .8125rem !important;
    opacity: 1 !important;
}
.admin-refresh-orders-btn {
    min-width: 128px;
    padding-inline: 14px !important;
    font-size: .8125rem !important;
}
.admin-debt-filterbar {
    gap: 8px !important;
    padding: 10px 20px 5px !important;
}
.admin-debt-state-filter button,
.admin-currency-filter button {
    min-height: 36px !important;
    padding-inline: 12px !important;
    font-size: .75rem !important;
}
.admin-debt-summary {
    gap: 8px !important;
    padding: 12px 20px 6px !important;
}
.admin-debt-card {
    min-height: 68px !important;
    padding: 11px 12px !important;
}
.admin-debt-card span { font-size: .75rem !important; }
.admin-debt-card strong { font-size: 1.05rem !important; }

/* Lists: readable metadata and stable grids. */
.admin-order-row,
.admin-client-row,
.admin-debt-row,
.admin-catalog-row-main {
    border-radius: 14px !important;
}
.admin-order-number { font-size: .95rem !important; }
.admin-order-date,
.admin-order-customer span,
.admin-order-finance span,
.admin-client-main span,
.admin-client-main small,
.admin-client-discount span,
.admin-client-orders span,
.admin-debt-main span,
.admin-debt-main small,
.admin-debt-values span,
.admin-catalog-maintext small,
.admin-catalog-location small,
.admin-catalog-prices small,
.admin-client-activity {
    font-size: .75rem !important;
    line-height: 1.35 !important;
}
.admin-order-customer strong,
.admin-order-finance strong,
.admin-client-main strong,
.admin-client-discount strong,
.admin-client-orders strong,
.admin-debt-main strong,
.admin-debt-values strong,
.admin-catalog-maintext strong,
.admin-catalog-location strong,
.admin-catalog-prices strong {
    font-size: .875rem !important;
    line-height: 1.25 !important;
}
.admin-status-select {
    min-height: 42px !important;
    padding-inline: 10px !important;
    font-size: .8125rem !important;
}

/* Admin details and forms. */
.admin-detail-topbar {
    min-height: 58px !important;
    padding: 8px 20px !important;
}
.admin-back-btn {
    min-height: 40px !important;
    padding: 0 14px !important;
    font-size: .8125rem !important;
}
.admin-detail-card,
.admin-section,
.admin-catalog-preview-card,
.admin-catalog-form-block {
    border-radius: 14px !important;
}
.admin-detail-title,
.admin-catalog-form-block-title {
    font-size: .95rem !important;
    line-height: 1.25 !important;
}
.admin-detail-caption,
.admin-detail-muted,
.admin-client-form-subtitle,
.admin-deposit-note {
    font-size: .75rem !important;
    line-height: 1.45 !important;
}
.admin-customer-info,
.admin-client-profile-form,
.admin-catalog-form-grid,
.admin-dealer-grid,
.admin-finance-grid,
.order-finance-grid {
    gap: 12px !important;
}
.admin-client-profile-form input,
.admin-client-profile-form select,
.admin-client-profile-form textarea,
.admin-catalog-field input,
.admin-catalog-field select,
.admin-catalog-field textarea,
.admin-deposit-form-row input,
.admin-deposit-form-row select,
.admin-discount-input-wrap,
.payment-field input,
.payment-field select {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    border-radius: 11px !important;
    font-size: .875rem !important;
    line-height: 1.3 !important;
}
.admin-catalog-field > span,
.admin-client-profile-form label,
.admin-deposit-label,
.payment-field > span {
    font-size: .75rem !important;
    line-height: 1.3 !important;
}
.admin-catalog-field > small {
    font-size: .7rem !important;
    line-height: 1.35 !important;
}
.admin-catalog-form {
    width: min(1080px, 100%) !important;
    gap: 16px !important;
}
.admin-catalog-form-block {
    padding: 16px !important;
}
.admin-catalog-form-actions {
    gap: 10px !important;
    padding: 12px !important;
}
.admin-catalog-cancel-btn,
.admin-catalog-save-btn,
.admin-primary-save-btn,
.admin-deposit-submit,
.admin-discount-form button,
.admin-add-payment-btn {
    min-height: 44px !important;
    font-size: .8125rem !important;
}

@media (max-width: 760px) {
    .admin-panel-shell { max-width: none; }
    .admin-header {
        min-height: 60px !important;
        padding: 8px 10px !important;
    }
    .admin-brand-mark {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
    }
    .admin-header h2 { font-size: 1.05rem !important; }
    .admin-kicker { font-size: .625rem !important; }
    .admin-main-tabs {
        grid-template-columns: repeat(4, minmax(0,1fr)) !important;
        min-height: 50px !important;
        gap: 4px !important;
        padding: 6px !important;
    }
    .admin-main-tab {
        min-height: 38px !important;
        padding: 0 4px !important;
        font-size: .6875rem !important;
    }

    .admin-compact-stats {
        display: flex !important;
        gap: 6px !important;
        overflow-x: auto !important;
        padding: 8px 8px 5px !important;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .admin-compact-stats::-webkit-scrollbar { display: none; }
    .admin-mini-stat {
        flex: 0 0 96px !important;
        min-height: 58px !important;
        padding: 9px 10px !important;
        scroll-snap-align: start;
    }
    .admin-mini-stat span { font-size: .6875rem !important; }
    .admin-mini-stat strong { font-size: 1.15rem !important; }

    .admin-section-title-row,
    .admin-catalog-title-row {
        min-height: 0 !important;
        padding: 10px 9px 7px !important;
    }
    .admin-catalog-title-row {
        align-items: stretch !important;
        flex-direction: column !important;
    }
    .admin-catalog-add-btn {
        width: 100% !important;
        min-height: 42px !important;
        font-size: .8125rem !important;
    }

    .admin-compact-toolbar,
    .admin-search-only-toolbar,
    .admin-client-toolbar,
    .admin-catalog-toolbar,
    .admin-debt-toolbar,
    .admin-debt-search-row {
        display: grid !important;
        grid-template-columns: minmax(0,1fr) !important;
        gap: 7px !important;
        padding: 6px 8px 9px !important;
    }
    .admin-search-wrap,
    .admin-select,
    .admin-refresh-orders-btn {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 44px !important;
    }
    .admin-refresh-orders-btn { justify-content: center !important; }
    .admin-search-wrap input,
    .admin-select { font-size: 1rem !important; }
    .admin-search-wrap input::placeholder { font-size: .875rem !important; }

    .admin-debt-filterbar {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 7px !important;
        padding: 8px !important;
    }
    .admin-debt-state-filter,
    .admin-currency-filter {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: 1fr !important;
        width: 100% !important;
    }
    .admin-debt-state-filter button,
    .admin-currency-filter button {
        min-width: 0 !important;
        min-height: 38px !important;
        padding: 0 5px !important;
        font-size: .6875rem !important;
    }
    .admin-debt-summary {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        overflow: visible !important;
        padding: 8px !important;
    }
    .admin-debt-card {
        min-height: 58px !important;
        width: 100% !important;
        padding: 10px 11px !important;
    }

    .admin-list-scroll { padding: 8px 8px 16px !important; }
    .admin-detail-scroll { padding: 10px 8px 24px !important; }
    .admin-order-row,
    .admin-client-row,
    .admin-debt-row,
    .admin-catalog-row-main {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .admin-order-row {
        grid-template-columns: minmax(0,1fr) auto 40px !important;
        gap: 8px !important;
        padding: 11px !important;
    }
    .admin-client-row {
        grid-template-columns: minmax(0,1fr) auto 38px !important;
        gap: 8px !important;
        padding: 11px !important;
    }
    .admin-debt-row {
        grid-template-columns: 1fr !important;
        padding: 10px !important;
    }
    .admin-debt-main {
        grid-template-columns: minmax(0,1fr) auto 24px !important;
        min-width: 0 !important;
    }
    .admin-catalog-row {
        grid-template-columns: minmax(0,1fr) 38px !important;
        min-width: 0 !important;
    }
    .admin-catalog-row-main {
        grid-template-columns: 54px minmax(0,1fr) !important;
        gap: 10px !important;
        min-height: 80px !important;
        padding: 10px !important;
    }
    .admin-catalog-location,
    .admin-catalog-stock,
    .admin-catalog-prices,
    .admin-catalog-row-main > .admin-row-arrow {
        display: none !important;
    }

    .admin-detail-topbar {
        min-height: 52px !important;
        padding: 6px 8px !important;
        gap: 8px !important;
    }
    .admin-back-btn {
        min-height: 40px !important;
        padding: 0 12px !important;
        font-size: .8125rem !important;
    }
    .admin-catalog-editor-topbar > strong {
        min-width: 0;
        overflow: hidden;
        font-size: .8125rem !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .admin-catalog-preview-card {
        align-items: flex-start !important;
        padding: 11px !important;
    }
    .admin-catalog-preview-image {
        width: 64px !important;
        height: 72px !important;
    }
    .admin-catalog-preview-card strong { font-size: 1rem !important; }
    .admin-catalog-preview-card small { font-size: .75rem !important; }

    .admin-customer-info,
    .admin-client-profile-form,
    .admin-catalog-form-grid,
    .admin-dealer-grid,
    .admin-client-finance-grid,
    .admin-client-finance-grid-6,
    .admin-finance-grid,
    .admin-finance-grid-4,
    .order-finance-grid,
    .admin-discount-form,
    .admin-deposit-form-row,
    .order-edit-row,
    .admin-order-edit-row {
        grid-template-columns: minmax(0,1fr) !important;
    }
    .admin-client-profile-form label,
    .admin-client-profile-form label.wide,
    .admin-client-save-row,
    .admin-catalog-field,
    .admin-catalog-field-wide,
    .admin-catalog-field-full {
        grid-column: 1 / -1 !important;
        min-width: 0 !important;
    }
    .admin-client-profile-form input,
    .admin-client-profile-form select,
    .admin-client-profile-form textarea,
    .admin-catalog-field input,
    .admin-catalog-field select,
    .admin-catalog-field textarea,
    .admin-deposit-form-row input,
    .admin-deposit-form-row select,
    .admin-discount-input-wrap,
    .payment-field input,
    .payment-field select {
        min-height: 48px !important;
        font-size: 1rem !important;
    }
    .admin-catalog-field textarea,
    .admin-client-profile-form textarea {
        min-height: 112px !important;
        padding: 12px !important;
    }
    .admin-catalog-field > span,
    .admin-client-profile-form label,
    .admin-deposit-label,
    .payment-field > span {
        font-size: .8125rem !important;
    }
    .admin-catalog-form-block { padding: 12px !important; }
    .admin-catalog-form-actions {
        position: sticky !important;
        bottom: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        padding: 9px !important;
    }
    .admin-catalog-cancel-btn,
    .admin-catalog-save-btn {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 46px !important;
        padding: 0 8px !important;
        font-size: .8125rem !important;
    }
    .admin-danger-zone {
        align-items: stretch !important;
        flex-direction: column !important;
    }
    .admin-danger-zone button { width: 100% !important; }
}

@media (max-width: 390px) {
    .admin-main-tab { font-size: .625rem !important; }
    .admin-main-tabs { gap: 3px !important; padding-inline: 4px !important; }
}

/* ============================================================
   V45.22.4 DEV — ADMIN COMPACT FLOW + CART IMAGE PREVIEW
   ============================================================ */

/* Admin: put search immediately below the main tabs. */
.admin-top-search-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 10px 20px 6px !important;
    margin: 0 !important;
}
.admin-top-search-row .admin-search-wrap {
    width: 100% !important;
}

/* Orders: quick filters live below search and are deliberately compact. */
#adminOrdersView .admin-compact-stats {
    padding: 4px 20px 8px !important;
    gap: 6px !important;
}
#adminOrdersView .admin-mini-stat {
    min-height: 52px !important;
    padding: 7px 10px !important;
}
#adminOrdersView .admin-mini-stat strong {
    margin-top: 3px !important;
    font-size: 1.08rem !important;
}

/* Client sorting is embedded into the search field as a filter button. */
.admin-search-with-filter {
    position: relative !important;
    overflow: visible !important;
}
.admin-inline-filter {
    position: relative !important;
    flex: 0 0 auto !important;
    margin-left: 2px !important;
}
.admin-inline-filter > summary {
    display: grid !important;
    place-items: center !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #f2eef5 !important;
    color: #62566a !important;
    cursor: pointer !important;
    list-style: none !important;
}
.admin-inline-filter > summary::-webkit-details-marker { display: none !important; }
.admin-inline-filter > summary svg {
    width: 17px !important;
    height: 17px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
}
.admin-inline-filter[open] > summary {
    background: #e9def1 !important;
    color: #6d2bb6 !important;
}
.admin-inline-filter-popover {
    position: absolute !important;
    z-index: 80 !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    width: min(250px, 78vw) !important;
    padding: 10px !important;
    border: 1px solid #e6dfea !important;
    border-radius: 13px !important;
    background: rgba(255,255,255,.98) !important;
    box-shadow: 0 16px 38px rgba(43,31,49,.16) !important;
}
.admin-inline-filter-popover > span {
    display: block !important;
    margin: 0 0 6px 2px !important;
    color: #817587 !important;
    font-size: .7rem !important;
    font-weight: 750 !important;
}
.admin-inline-filter-popover .admin-select {
    width: 100% !important;
    min-height: 40px !important;
}

/* Receivables: search first, then a compact dashboard strip and filters. */
#adminReceivablesView .admin-debt-summary {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 6px !important;
    padding: 3px 20px 5px !important;
}
#adminReceivablesView .admin-debt-card {
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 7px 10px !important;
    border-radius: 11px !important;
}
#adminReceivablesView .admin-debt-card span {
    font-size: .66rem !important;
    line-height: 1.1 !important;
}
#adminReceivablesView .admin-debt-card strong {
    margin-top: 3px !important;
    font-size: .9rem !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
}
#adminReceivablesView .admin-debt-filterbar {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) !important;
    gap: 6px !important;
    padding: 2px 20px 8px !important;
}
#adminReceivablesView .admin-debt-state-filter,
#adminReceivablesView .admin-currency-filter {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 1fr !important;
    min-width: 0 !important;
}
#adminReceivablesView .admin-debt-state-filter button,
#adminReceivablesView .admin-currency-filter button {
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 0 7px !important;
    font-size: .7rem !important;
}

/* Catalog: no title/count/refresh chrome; search + add is the first content row. */
.admin-catalog-search-row {
    grid-template-columns: minmax(0,1fr) auto !important;
}
.admin-catalog-add-compact {
    min-height: 44px !important;
    padding: 0 15px !important;
    border-radius: 11px !important;
    white-space: nowrap !important;
}
.admin-add-short { display: none; }

/* Cart thumbnail keeps the current height but shows the native 3:4 photo shape. */
.cart-sheet #cartItemsList .cart-item {
    grid-template-columns: 44px minmax(0, 1fr) auto minmax(108px, auto) !important;
}
.cart-sheet #cartItemsList .cart-item-preview {
    width: 44px !important;
    height: 58px !important;
    min-width: 44px !important;
    aspect-ratio: 3 / 4 !important;
    border-radius: 9px !important;
}
.cart-sheet #cartItemsList .cart-item-preview img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #fff !important;
}

/* Tapping a cart thumbnail opens only the image, not the product card. */
.cart-image-viewer[hidden] { display: none !important; }
.cart-image-viewer {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2600 !important;
    display: grid !important;
    place-items: center !important;
    padding: max(20px, env(safe-area-inset-top, 0px)) 18px max(20px, env(safe-area-inset-bottom, 0px)) !important;
    background: rgba(20,16,23,.54) !important;
    backdrop-filter: blur(14px) saturate(115%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(115%) !important;
    opacity: 0 !important;
    transition: opacity .18s ease !important;
}
.cart-image-viewer.is-open { opacity: 1 !important; }
.cart-image-viewer-frame {
    display: grid !important;
    place-items: center !important;
    width: min(86vw, 520px) !important;
    max-height: 84vh !important;
    padding: 12px !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 26px 70px rgba(0,0,0,.24) !important;
    transform: scale(.975) translateY(6px) !important;
    transition: transform .22s cubic-bezier(.2,.8,.2,1) !important;
}
.cart-image-viewer.is-open .cart-image-viewer-frame {
    transform: scale(1) translateY(0) !important;
}
.cart-image-viewer-img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: calc(84vh - 24px) !important;
    object-fit: contain !important;
    border-radius: 12px !important;
}
.cart-image-viewer-close {
    --dcr-close-stroke: #4f4355;
    position: fixed !important;
    top: max(14px, env(safe-area-inset-top, 0px)) !important;
    right: 14px !important;
    z-index: 2 !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.7) !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.94) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.14) !important;
    color: transparent !important;
    font-size: 0 !important;
}
.cart-image-viewer-close::before,
.cart-image-viewer-close::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 14px !important;
    height: 1.6px !important;
    border-radius: 999px !important;
    background: var(--dcr-close-stroke) !important;
    transform-origin: 50% 50% !important;
}
.cart-image-viewer-close::before { transform: translate(-50%,-50%) rotate(45deg) !important; }
.cart-image-viewer-close::after { transform: translate(-50%,-50%) rotate(-45deg) !important; }
body.cart-image-viewer-open { overflow: hidden !important; }

@media (max-width: 760px) {
    .admin-top-search-row {
        padding: 7px 8px 4px !important;
    }
    #adminOrdersView .admin-compact-stats {
        padding: 3px 8px 7px !important;
    }
    #adminOrdersView .admin-mini-stat {
        flex-basis: 82px !important;
        min-height: 46px !important;
        padding: 6px 8px !important;
    }
    #adminOrdersView .admin-mini-stat span { font-size: .625rem !important; }
    #adminOrdersView .admin-mini-stat strong { font-size: .98rem !important; }

    .admin-inline-filter > summary {
        width: 36px !important;
        height: 36px !important;
    }

    #adminReceivablesView .admin-debt-summary {
        grid-template-columns: repeat(3, minmax(0,1fr)) !important;
        gap: 4px !important;
        padding: 2px 8px 4px !important;
    }
    #adminReceivablesView .admin-debt-card {
        min-height: 44px !important;
        padding: 6px 7px !important;
    }
    #adminReceivablesView .admin-debt-card span { font-size: .58rem !important; }
    #adminReceivablesView .admin-debt-card strong { font-size: .76rem !important; }
    #adminReceivablesView .admin-debt-filterbar {
        grid-template-columns: minmax(0,2fr) minmax(0,3fr) !important;
        gap: 4px !important;
        padding: 2px 8px 6px !important;
    }
    #adminReceivablesView .admin-debt-state-filter button,
    #adminReceivablesView .admin-currency-filter button {
        min-height: 32px !important;
        padding: 0 3px !important;
        font-size: .59rem !important;
    }

    .admin-catalog-search-row {
        grid-template-columns: minmax(0,1fr) 44px !important;
        gap: 6px !important;
    }
    .admin-catalog-add-compact {
        width: 44px !important;
        min-width: 44px !important;
        padding: 0 !important;
        font-size: 1.45rem !important;
    }
    .admin-add-full { display: none !important; }
    .admin-add-short { display: inline !important; }

    .cart-sheet #cartItemsList .cart-item {
        grid-template-columns: 42px minmax(0, 1fr) auto !important;
    }
    .cart-sheet #cartItemsList .cart-item-preview {
        width: 42px !important;
        height: 56px !important;
        min-width: 42px !important;
    }
    .cart-image-viewer {
        padding-inline: 12px !important;
    }
    .cart-image-viewer-frame {
        width: min(92vw, 430px) !important;
        padding: 8px !important;
        border-radius: 17px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-image-viewer,
    .cart-image-viewer-frame { transition-duration: .001ms !important; }
}

/* Preserve the cart thumbnail's previous visual height on small phones, only change its aspect ratio to 3:4. */
@media (max-width: 560px) {
    .cart-sheet #cartItemsList .cart-item {
        grid-template-columns: 35px minmax(0, 1fr) auto minmax(76px, auto) !important;
        column-gap: 7px !important;
    }
    .cart-sheet #cartItemsList .cart-item-preview {
        width: 35px !important;
        height: 46px !important;
        min-width: 35px !important;
    }
}
@media (max-width: 420px) {
    .cart-sheet #cartItemsList .cart-item {
        grid-template-columns: 32px minmax(0, 1fr) !important;
        gap: 8px 9px !important;
    }
    .cart-sheet #cartItemsList .cart-item-preview {
        width: 32px !important;
        height: 42px !important;
        min-width: 32px !important;
        grid-row: 1 !important;
        grid-column: 1 !important;
    }
}

/* ============================================================
   V45.22.5 DEV — MOBILE DOCK / BREADCRUMBS / GALLERY POLISH
   Presentation/content only. Business logic unchanged.
   ============================================================ */

/* Breadcrumbs keep the old direction behavior, but glide instead of snapping. */
.breadcrumb {
    transition:
        transform 280ms cubic-bezier(.22,.72,.18,1),
        opacity 220ms cubic-bezier(.22,.72,.18,1) !important;
}
.breadcrumb.hidden {
    transform: translate3d(0, calc(-100% - 2px), 0) !important;
    opacity: 0 !important;
}

/* Close controls use one visual language. Focus is indicated by fill, never a second ring. */
:where(
    .cart-close-btn,
    .account-close-btn,
    .orders-center-close,
    .admin-close-btn,
    .admin-detail-close-btn,
    .payment-close-btn,
    .product-modal .modal-content .close-btn,
    .home-lightbox-close,
    .cart-image-viewer-close
):focus,
:where(
    .cart-close-btn,
    .account-close-btn,
    .orders-center-close,
    .admin-close-btn,
    .admin-detail-close-btn,
    .payment-close-btn,
    .product-modal .modal-content .close-btn,
    .home-lightbox-close,
    .cart-image-viewer-close
):focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
:where(
    .cart-close-btn,
    .account-close-btn,
    .orders-center-close,
    .admin-close-btn,
    .admin-detail-close-btn,
    .payment-close-btn,
    .product-modal .modal-content .close-btn,
    .cart-image-viewer-close
):focus-visible {
    background: #eae3ef !important;
    border-color: rgba(78,59,88,.14) !important;
}
.home-lightbox-close:focus-visible {
    background: rgba(255,255,255,.22) !important;
    border-color: rgba(255,255,255,.30) !important;
}

@media (max-width: 899px) {
    /* Lower the mobile dock a touch and remove the dark floating shadow/gradient. */
    .bottom-nav,
    body[data-page="home"] .home-bottom-nav {
        bottom: calc(.22rem + env(safe-area-inset-bottom, 0px)) !important;
        background: #fff !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        border-color: rgba(78,59,88,.10) !important;
    }

    /* A closed short cart must clear both its own height and the dock offset. */
    .cart-sheet:not(.open) {
        transform: translate3d(0, calc(100% + 5.25rem + env(safe-area-inset-bottom, 0px)), 0) !important;
        pointer-events: none !important;
    }

    /* Only while cart is open: a clean white docking zone around/behind the menu. */
    body:has(#cartSheet.open)::after {
        height: calc(4.75rem + env(safe-area-inset-bottom, 0px)) !important;
        background: #fff !important;
        box-shadow: none !important;
    }
}

/* Gallery lightbox behaves like an editorial product story, not a raw image overlay. */
.home-lightbox {
    display: grid !important;
    place-items: center !important;
    padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem max(1rem, env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto;
    background: rgba(18,14,20,.72) !important;
    -webkit-backdrop-filter: blur(18px) saturate(120%) !important;
    backdrop-filter: blur(18px) saturate(120%) !important;
}
.home-lightbox-dialog {
    position: relative;
    width: min(980px, 94vw);
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    border-radius: 1.4rem;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0,0,0,.28);
    opacity: 0;
    transform: translate3d(0,.7rem,0) scale(.985);
    transition: opacity 190ms ease-out, transform 260ms cubic-bezier(.2,.8,.2,1);
}
.home-lightbox.is-open .home-lightbox-dialog {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
}
.home-lightbox-media {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: min(62vh, 650px);
    padding: 1rem;
    background: #f3f0f4;
}
.home-lightbox-media > img {
    display: block;
    width: 100%;
    height: min(62vh, 650px);
    object-fit: contain;
    border-radius: .95rem;
    background: #fff;
}
.home-lightbox-copy {
    width: 100% !important;
    margin: 0 !important;
    padding: 1.35rem 1.5rem 1.5rem;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: start !important;
    gap: .42rem 1.25rem !important;
    color: #2f2733 !important;
}
.home-lightbox-kicker {
    grid-column: 1;
    color: #7b6c82 !important;
    font-size: .7rem !important;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.home-lightbox-copy strong {
    grid-column: 1;
    display: block;
    font-size: clamp(1.25rem,2.2vw,1.7rem) !important;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: #2f2733 !important;
}
.home-lightbox-copy > span:not(.home-lightbox-kicker) {
    grid-column: 1;
    display: block;
    max-width: 44rem;
    color: #706575 !important;
    font-size: .92rem !important;
    line-height: 1.55;
}
.home-lightbox-copy a {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
    margin: 0 !important;
    min-height: 2.8rem;
    padding: 0 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border-radius: .85rem;
    background: #6726AB;
    color: #fff !important;
    font-size: .82rem !important;
    line-height: 1;
    font-weight: 800 !important;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(103,38,171,.18);
}
.home-lightbox-copy a:hover { background: #5a2098; }
.home-lightbox-close {
    position: absolute !important;
    top: .9rem !important;
    right: .9rem !important;
    left: auto !important;
    z-index: 4 !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    background: rgba(255,255,255,.94) !important;
    border: 1px solid rgba(78,59,88,.10) !important;
    --dcr-close-stroke: #4f4355 !important;
    box-shadow: 0 8px 22px rgba(32,22,38,.12) !important;
}
.home-lightbox-close:hover {
    background: #fff !important;
    --dcr-close-stroke: #2f2733 !important;
}

@media (max-width: 680px) {
    .home-lightbox { padding: .6rem !important; }
    .home-lightbox-dialog {
        width: 100%;
        max-height: calc(100dvh - 1.2rem);
        border-radius: 1.1rem;
    }
    .home-lightbox-media {
        min-height: 0;
        padding: .55rem;
    }
    .home-lightbox-media > img {
        height: min(61vh, 560px);
        border-radius: .8rem;
    }
    .home-lightbox-copy {
        grid-template-columns: 1fr;
        padding: 1.05rem 1rem 1.1rem;
        gap: .42rem !important;
    }
    .home-lightbox-copy strong,
    .home-lightbox-copy > span:not(.home-lightbox-kicker),
    .home-lightbox-kicker,
    .home-lightbox-copy a {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
    .home-lightbox-copy a {
        width: 100%;
        margin-top: .55rem !important;
    }
    .home-lightbox-close {
        top: .65rem !important;
        right: .65rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .breadcrumb,
    .home-lightbox-dialog { transition-duration: .001ms !important; }
}

/* ============================================================
   V45.22.6 DEV — ADMIN SEARCH/FILTER + CART RETURN + NAV CONSISTENCY
   UI behavior/layout only. Existing business rules unchanged.
   ============================================================ */

/* Admin: every primary search row has the same geometry as Clients. */
.admin-top-search-row,
.admin-orders-search-row,
.admin-client-toolbar,
.admin-debt-search-row,
.admin-catalog-search-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    padding: 10px 20px 6px !important;
    margin: 0 !important;
}
.admin-top-search-row .admin-search-wrap,
.admin-orders-search-row .admin-search-wrap,
.admin-client-toolbar .admin-search-wrap,
.admin-debt-search-row .admin-search-wrap,
.admin-catalog-search-row .admin-search-wrap {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 12px !important;
    border-radius: 11px !important;
}
.admin-top-search-row .admin-search-wrap input {
    min-height: 0 !important;
    height: auto !important;
    font-size: .875rem !important;
}

/* Orders: status filter now lives inside the search field, matching Clients. */
.admin-order-filter-menu {
    position: relative !important;
    flex: 0 0 auto !important;
    margin-left: 2px !important;
}
.admin-order-filter-popover {
    width: min(270px, 82vw) !important;
}
.admin-order-filter-options {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4px !important;
}
.admin-order-filter-option {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: #5f5365 !important;
    text-align: left !important;
    font: inherit !important;
    cursor: pointer !important;
}
.admin-order-filter-option span {
    font-size: .78rem !important;
    font-weight: 760 !important;
}
.admin-order-filter-option strong {
    min-width: 28px !important;
    color: #716676 !important;
    font-size: .78rem !important;
    font-weight: 850 !important;
    text-align: right !important;
}
.admin-order-filter-option:hover {
    background: #f6f2f8 !important;
}
.admin-order-filter-option.active {
    background: #eee5f4 !important;
    color: #6726AB !important;
}
.admin-order-filter-option.active strong { color: #6726AB !important; }

/* Catalog: + is a centered standalone control below the same full-width search. */
.admin-catalog-add-row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 1px 20px 7px !important;
    background: #fff !important;
}
.admin-catalog-add-row .admin-catalog-add-compact {
    box-sizing: border-box !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 50% !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    font-weight: 500 !important;
}

/* Admin lists/pagination scroll as one document; pagination is no longer docked. */
.admin-content {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
}
#adminOrdersView,
#adminClientsView,
#adminReceivablesView,
#adminCatalogView {
    height: auto !important;
    min-height: 100% !important;
    overflow: visible !important;
}
#adminOrdersView .admin-list-scroll,
#adminClientsView .admin-list-scroll,
#adminReceivablesView .admin-list-scroll,
#adminCatalogView .admin-list-scroll {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}
.admin-pagination {
    position: static !important;
    inset: auto !important;
    flex: 0 0 auto !important;
    margin-top: 0 !important;
}

/* Admin has its own close control, so the customer dock is intentionally absent. */
body[data-page="admin"] > .bottom-nav {
    display: none !important;
}
body[data-page="admin"] .admin-panel {
    bottom: 0 !important;
}
body[data-page="admin"] .dcr-scroll-top {
    display: none !important;
}
body[data-page="admin"] {
    padding-bottom: 0 !important;
}

/* Customer dock: keep the exact same button geometry on every normal page. */
body:not([data-page="admin"]) > .bottom-nav.bottom-nav-4,
body[data-page="home"] .home-bottom-nav-inner {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
}
body:not([data-page="admin"]) > .bottom-nav .nav-item,
body[data-page="home"] .home-bottom-nav .nav-item {
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: .42rem .25rem !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-right: 1px solid rgba(78,59,88,.065) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #655a6a !important;
    text-decoration: none !important;
    font: inherit !important;
    flex: none !important;
    align-self: stretch !important;
    justify-self: stretch !important;
}
body:not([data-page="admin"]) > .bottom-nav .nav-item:last-child,
body[data-page="home"] .home-bottom-nav .nav-item:last-child {
    border-right: 0 !important;
}
body:not([data-page="admin"]) > .bottom-nav .nav-item.active {
    color: #6726AB !important;
}
body:not([data-page="admin"]) > .bottom-nav .nav-item.is-pressed,
body:not([data-page="admin"]) > .bottom-nav .nav-item:active,
body[data-page="home"] .home-bottom-nav .nav-item.is-pressed,
body[data-page="home"] .home-bottom-nav .nav-item:active {
    scale: .985 !important;
}

@media (max-width: 760px) {
    .admin-top-search-row,
    .admin-orders-search-row,
    .admin-client-toolbar,
    .admin-debt-search-row,
    .admin-catalog-search-row {
        padding: 7px 8px 4px !important;
    }
    .admin-order-filter-popover {
        right: -1px !important;
        width: min(250px, calc(100vw - 34px)) !important;
    }
    .admin-catalog-add-row {
        padding: 2px 8px 6px !important;
    }
    .admin-pagination {
        padding: 8px 8px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* ============================================================
   V45.22.7 DEV — HOME HERO + BOTTOM NAV ALIGNMENT
   Layout-only hotfix.
   ============================================================ */

/* Hero CTAs: identical outer geometry. The secondary 1px border no longer
   makes "Смотреть фотогалерею" optically/totally taller than the primary. */
body[data-page="home"] .home-hero-actions {
    align-items: stretch !important;
}
body[data-page="home"] .home-primary-btn,
body[data-page="home"] .home-secondary-btn {
    box-sizing: border-box !important;
    min-height: 48px !important;
    height: 48px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.15 !important;
    white-space: nowrap;
}
body[data-page="home"] .home-primary-btn {
    border: 1px solid transparent !important;
}
body[data-page="home"] .home-secondary-btn {
    border: 1px solid rgba(103, 38, 171, .15) !important;
}

/* Home dock has a wrapper unlike the other pages. Keep ONLY the wrapper as
   the four-column grid; the outer nav must never become a four-column grid. */
body[data-page="home"] > .home-bottom-nav.bottom-nav-4 {
    display: block !important;
}
body[data-page="home"] > .home-bottom-nav.bottom-nav-4 > .home-bottom-nav-inner {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
}
body[data-page="home"] > .home-bottom-nav .home-bottom-nav-inner > .nav-item {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: .42rem .25rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .18rem !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    border: 0 !important;
    border-right: 1px solid rgba(78,59,88,.065) !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-align: center !important;
}
body[data-page="home"] > .home-bottom-nav .home-bottom-nav-inner > .nav-item:last-child {
    border-right: 0 !important;
}

/* Apply one hit-area geometry to all customer-page docks as well. */
body:not([data-page="home"]):not([data-page="admin"]) > .bottom-nav.bottom-nav-4 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
}
body:not([data-page="home"]):not([data-page="admin"]) > .bottom-nav.bottom-nav-4 > .nav-item {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: .42rem .25rem !important;
    justify-self: stretch !important;
    align-self: stretch !important;
}

@media (max-width: 760px) {
    body[data-page="home"] .home-primary-btn,
    body[data-page="home"] .home-secondary-btn {
        height: 46px !important;
        min-height: 46px !important;
    }
    body[data-page="home"] > .home-bottom-nav .home-bottom-nav-inner > .nav-item,
    body:not([data-page="home"]):not([data-page="admin"]) > .bottom-nav.bottom-nav-4 > .nav-item {
        padding-left: .15rem !important;
        padding-right: .15rem !important;
    }
}


/* ============================================================
   V45.22.8 DEV — DOCK / CART / HOME CTA / ADMIN ORDER POLISH
   Layout and presentation only.
   ============================================================ */

/* Bottom navigation sits on the actual viewport edge everywhere. */
body:not([data-page="admin"]) > .bottom-nav,
body[data-page="home"] > .home-bottom-nav {
    bottom: 0 !important;
}

@media (min-width: 900px) {
    body:not([data-page="admin"]) > .bottom-nav,
    body[data-page="home"] > .home-bottom-nav {
        bottom: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    /* The cart docks almost flush to the top edge of the 4rem nav. */
    .cart-sheet {
        bottom: calc(4rem - 1px) !important;
    }

    /* Closed cart must clear the dock completely; no drag-handle tip may remain visible. */
    .cart-sheet:not(.open) {
        transform: translate3d(0, calc(100% + 4.35rem), 0) !important;
        pointer-events: none !important;
    }
}

@media (max-width: 899px) {
    body:not([data-page="admin"]) > .bottom-nav,
    body[data-page="home"] > .home-bottom-nav {
        bottom: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    /* Keep only the smallest visual seam between cart and navigation. */
    .cart-sheet {
        bottom: calc(4rem - 1px) !important;
    }
    .cart-sheet:not(.open) {
        transform: translate3d(0, calc(100% + 4.35rem + env(safe-area-inset-bottom, 0px)), 0) !important;
    }
    body:has(#cartSheet.open)::after {
        height: 4rem !important;
    }
}

/* Home desktop: CTAs occupy the same overall width as the three stat cards.
   This aligns the right edge of "Смотреть галерею" with the third (novelties) card. */
@media (min-width: 761px) {
    body[data-page="home"] .home-hero-actions {
        width: 100% !important;
        max-width: 25rem !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: .5rem !important;
    }
    body[data-page="home"] .home-primary-btn,
    body[data-page="home"] .home-secondary-btn {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Catalog admin: + lives immediately to the right of search on all viewports. */
.admin-catalog-search-row {
    grid-template-columns: minmax(0, 1fr) 44px !important;
    align-items: center !important;
    column-gap: 8px !important;
}
.admin-catalog-search-row .admin-search-wrap {
    min-width: 0 !important;
}
.admin-catalog-search-row .admin-catalog-add-compact {
    box-sizing: border-box !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 50% !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
}

/* Order status select: use a controlled arrow positioned slightly in from the edge. */
.admin-status-select {
    -webkit-appearance: none !important;
    appearance: none !important;
    padding-left: 11px !important;
    padding-right: 32px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M2 2l4 4 4-4' fill='none' stroke='%236726AB' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px 8px !important;
}

/* Orders are opened by clicking the row; the redundant round arrow is gone. */
.admin-order-row {
    grid-template-columns: 100px minmax(200px, 1.2fr) minmax(150px, .75fr) minmax(130px, 150px) !important;
}
.admin-order-arrow[data-admin-open] {
    display: none !important;
}
.admin-order-finance strong {
    font-size: 1rem !important;
    line-height: 1.15 !important;
}
.admin-order-finance span {
    margin-top: .2rem !important;
    font-size: .8125rem !important;
    line-height: 1.25 !important;
    font-weight: 760 !important;
}

@media (max-width: 760px) {
    .admin-catalog-search-row {
        grid-template-columns: minmax(0, 1fr) 44px !important;
        gap: 7px !important;
    }
    .admin-order-row {
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "number finance"
            "customer customer"
            "status status" !important;
        gap: 8px !important;
    }
    .admin-order-finance strong {
        font-size: .9375rem !important;
    }
    .admin-order-finance span {
        font-size: .75rem !important;
    }
    .admin-status-select {
        background-position: right 11px center !important;
    }
}

/* ============================================================
   V45.22.9 DEV — CLIENTS / BREADCRUMBS / DOCK FINAL ALIGNMENT
   Presentation only. Business logic unchanged.
   ============================================================ */

/* Client rows open as one large hit target; finance labels share one typography. */
.admin-client-row {
    grid-template-columns: minmax(180px, 1.4fr) 85px 70px minmax(150px, .95fr) !important;
}
.admin-client-row .admin-order-arrow {
    display: none !important;
}
.admin-client-row .admin-client-debts span,
.admin-client-row .admin-client-debts .admin-deposit-label,
.admin-client-row .admin-client-debts .admin-paid-label,
.admin-client-row .admin-client-debts .debt-byn,
.admin-client-row .admin-client-debts .debt-rub {
    display: block !important;
    margin: 0 !important;
    font-size: .8125rem !important;
    line-height: 1.35 !important;
    font-weight: 760 !important;
    letter-spacing: 0 !important;
}
.admin-client-row .admin-client-debts span + span {
    margin-top: .18rem !important;
}

/* Catalog/admin close: exact circular geometry and a truly centered X. */
.admin-close-btn {
    box-sizing: border-box !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 50% !important;
    flex: 0 0 40px !important;
}
.admin-close-btn::before,
.admin-close-btn::after {
    left: 50% !important;
    top: 50% !important;
    width: 14px !important;
    height: 1.6px !important;
    margin: 0 !important;
    transform-origin: center !important;
}
.admin-close-btn::before { transform: translate(-50%, -50%) rotate(45deg) !important; }
.admin-close-btn::after  { transform: translate(-50%, -50%) rotate(-45deg) !important; }

/* Breadcrumbs float directly over content: no white material, blur, border or shadow. */
.breadcrumb {
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* Bring back the elegant floating dock: tiny viewport gap + rounded corners. */
body:not([data-page="admin"]) > .bottom-nav,
body[data-page="home"] > .home-bottom-nav {
    bottom: 4px !important;
    border-radius: 1.15rem !important;
    overflow: hidden !important;
}

/* Desktop: every button is exactly 25% and its hit area reaches the dock edges. */
@media (min-width: 900px) {
    body:not([data-page="home"]):not([data-page="admin"]) > .bottom-nav.bottom-nav-4,
    body[data-page="home"] > .home-bottom-nav.bottom-nav-4 > .home-bottom-nav-inner {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        align-items: stretch !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        gap: 0 !important;
    }
    body:not([data-page="home"]):not([data-page="admin"]) > .bottom-nav.bottom-nav-4 > .nav-item,
    body[data-page="home"] > .home-bottom-nav .home-bottom-nav-inner > .nav-item {
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 100% !important;
        min-height: 100% !important;
        margin: 0 !important;
        padding: 0 .25rem !important;
        justify-self: stretch !important;
        align-self: stretch !important;
        border-radius: 0 !important;
    }
}

@media (max-width: 760px) {
    .admin-client-row {
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "main debt"
            "discount orders" !important;
        gap: 8px 10px !important;
    }
    .admin-client-main { grid-area: main !important; }
    .admin-client-debts {
        grid-area: debt !important;
        align-self: start !important;
        justify-self: end !important;
        text-align: right !important;
    }
    .admin-client-discount { grid-area: discount !important; }
    .admin-client-orders {
        grid-area: orders !important;
        justify-self: end !important;
        text-align: right !important;
    }
    .admin-client-row .admin-client-debts span,
    .admin-client-row .admin-client-debts .admin-deposit-label,
    .admin-client-row .admin-client-debts .admin-paid-label,
    .admin-client-row .admin-client-debts .debt-byn,
    .admin-client-row .admin-client-debts .debt-rub {
        font-size: .75rem !important;
    }

    body:not([data-page="admin"]) > .bottom-nav,
    body[data-page="home"] > .home-bottom-nav {
        bottom: 4px !important;
        border-radius: 1rem !important;
    }
}


/* ============================================================
   V45.22.10 DEV — PRODUCT SWIPE / COMPACT BREADCRUMB MATERIAL
   Visual motion + breadcrumb surface only. Business logic unchanged.
   ============================================================ */

/* Restore a light translucent breadcrumb material, but keep the chrome
   noticeably shorter. Text size is intentionally inherited unchanged. */
.breadcrumb {
    min-height: 1.9rem !important;
    padding-top: .22rem !important;
    padding-bottom: .22rem !important;
    background: rgba(255, 255, 255, .62) !important;
    -webkit-backdrop-filter: blur(10px) saturate(135%) !important;
    backdrop-filter: blur(10px) saturate(135%) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(74, 55, 82, .055) !important;
    box-shadow: none !important;
}

@media (max-width: 760px) {
    .breadcrumb {
        min-height: 1.82rem !important;
        padding-top: .18rem !important;
        padding-bottom: .18rem !important;
    }
}


/* ============================================================
   V45.22.11 DEV — DOCK STABILITY / ADMIN SEARCH / FILTER / BREADCRUMBS
   UI-only hotfix. Business logic unchanged.
   ============================================================ */

/* Always give the browser chrome / bottom safe area an opaque white base. */
html,
body {
    background-color: #fff !important;
}
html::after {
    content: "";
    position: fixed;
    z-index: 185;
    left: 0;
    right: 0;
    bottom: 0;
    height: max(8px, env(safe-area-inset-bottom, 0px));
    background: #fff;
    pointer-events: none;
}

/* Customer dock: hard dimensional bounds prevent the desktop bar from
   briefly inheriting one of the old 68px/full-width mobile definitions. */
body:not([data-page="admin"]) > .bottom-nav,
body[data-page="home"] > .home-bottom-nav {
    box-sizing: border-box !important;
    min-height: 0 !important;
    max-height: 62px !important;
    height: 62px !important;
    padding: 0 !important;
    transition: background-color .18s ease, box-shadow .18s ease !important;
}
body:not([data-page="admin"]) > .bottom-nav .nav-item,
body[data-page="home"] > .home-bottom-nav .nav-item {
    box-sizing: border-box !important;
    min-height: 62px !important;
    max-height: 62px !important;
    height: 62px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Treat narrow desktop windows as desktop, not as a suddenly huge phone bar. */
@media (min-width: 761px) {
    body:not([data-page="admin"]) > .bottom-nav,
    body[data-page="home"] > .home-bottom-nav {
        left: 50% !important;
        right: auto !important;
        width: min(38rem, calc(100vw - 2rem)) !important;
        max-width: 38rem !important;
        bottom: 4px !important;
        transform: translateX(-50%) !important;
        border-radius: 1.15rem !important;
        overflow: hidden !important;
    }
    body[data-page="home"] > .home-bottom-nav > .home-bottom-nav-inner,
    body:not([data-page="home"]):not([data-page="admin"]) > .bottom-nav.bottom-nav-4 {
        width: 100% !important;
        height: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 0 !important;
        align-items: stretch !important;
    }
    body:not([data-page="admin"]) > .bottom-nav .nav-item,
    body[data-page="home"] > .home-bottom-nav .nav-item {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        justify-self: stretch !important;
        align-self: stretch !important;
    }
}

@media (max-width: 760px) {
    /* iOS Safari must see solid white behind the dock/address-bar safe area. */
    body:not([data-page="admin"]) > .bottom-nav,
    body[data-page="home"] > .home-bottom-nav {
        bottom: 4px !important;
        background: #fff !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        box-shadow: 0 6px 18px rgba(32, 23, 37, .08) !important;
    }
}

/* Admin search: no iOS auto-zoom and no purple rectangular focus flash. */
.admin-search-wrap input,
.admin-search-wrap input[type="search"] {
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
    scale: 1 !important;
}
.admin-search-wrap:focus-within {
    border-color: #d8d0dc !important;
    box-shadow: 0 0 0 1px rgba(103, 38, 171, .055) !important;
    transform: none !important;
}
.admin-search-wrap input:focus,
.admin-search-wrap input:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}
@media (max-width: 760px) {
    .admin-search-wrap input,
    .admin-search-wrap input[type="search"] {
        font-size: 16px !important;
        line-height: 1.25 !important;
    }
    .admin-search-wrap input::placeholder {
        font-size: .875rem !important;
    }
}

/* Orders filter: isolate popover buttons from the generic round clear-button rule. */
#adminOrderFilterMenu {
    position: relative !important;
    display: block !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
    margin: 0 0 0 2px !important;
}
#adminOrderFilterMenu > summary {
    box-sizing: border-box !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 9px !important;
    outline: none !important;
    box-shadow: none !important;
}
#adminOrderFilterMenu > summary:focus,
#adminOrderFilterMenu > summary:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
#adminOrderFilterMenu .admin-order-filter-popover {
    box-sizing: border-box !important;
    top: 42px !important;
    right: 0 !important;
    width: min(260px, calc(100vw - 32px)) !important;
    padding: 8px !important;
    border-radius: 12px !important;
}
#adminOrderFilterMenu .admin-order-filter-options {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 3px !important;
}
.admin-search-wrap #adminOrderFilterMenu .admin-order-filter-option {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 38px !important;
    padding: 8px 10px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    border-radius: 9px !important;
    text-align: left !important;
}
.admin-search-wrap #adminOrderFilterMenu .admin-order-filter-option span,
.admin-search-wrap #adminOrderFilterMenu .admin-order-filter-option strong {
    line-height: 1.2 !important;
}
@media (max-width: 760px) {
    #adminOrderFilterMenu {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        flex-basis: 36px !important;
    }
    #adminOrderFilterMenu > summary {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
    }
}

/* Breadcrumb material: restore the former white half-tone, compact height,
   and a soft single motion in both directions. */
.breadcrumb {
    min-height: 1.9rem !important;
    padding-top: .2rem !important;
    padding-bottom: .2rem !important;
    background: rgba(255, 255, 255, .76) !important;
    -webkit-backdrop-filter: blur(10px) saturate(125%) !important;
    backdrop-filter: blur(10px) saturate(125%) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(74, 55, 82, .05) !important;
    box-shadow: 0 5px 14px rgba(41, 29, 47, .035) !important;
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
    will-change: transform, opacity !important;
    transition:
        transform 360ms cubic-bezier(.22,.74,.16,1),
        opacity 300ms cubic-bezier(.22,.74,.16,1) !important;
}
.breadcrumb.hidden {
    transform: translate3d(0, calc(-100% - 4px), 0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
@media (max-width: 760px) {
    .breadcrumb {
        min-height: 1.84rem !important;
        padding-top: .16rem !important;
        padding-bottom: .16rem !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .breadcrumb { transition-duration: .001ms !important; }
}

/* ============================================================
   V45.22.12 DEV — UNIFIED CATALOG-WIDTH CUSTOMER DOCK
   Presentation only. Business logic unchanged.
   ============================================================ */

/* The browser/safe-area background is simply white. Do not draw a separate
   fixed strip under the dock — it reads as an extra line in the catalog. */
html {
    background-color: #fff !important;
}
html::after {
    content: "" !important;
    display: block !important;
    position: fixed !important;
    z-index: 199 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 4px !important;
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

/* One customer dock geometry on every normal page.
   Desktop/tablet follows the actual inner edge of the 1440px catalog
   container (32px content padding => 1376px max inner width).
   Mobile follows the catalog's 16px side padding. */
body:not([data-page="admin"]) > .bottom-nav,
body[data-page="home"] > .home-bottom-nav {
    box-sizing: border-box !important;
    left: 50% !important;
    right: auto !important;
    bottom: 4px !important;
    width: calc(100vw - 32px) !important;
    max-width: 1376px !important;
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateX(-50%) !important;
    border: 1px solid rgba(78,59,88,.11) !important;
    border-radius: 1.05rem !important;
    overflow: hidden !important;
    background: #fff !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 8px 22px rgba(37,23,45,.10) !important;
}

@media (min-width: 768px) {
    body:not([data-page="admin"]) > .bottom-nav,
    body[data-page="home"] > .home-bottom-nav {
        width: calc(100vw - 64px) !important;
        max-width: 1376px !important;
    }
}

/* Home owns an inner wrapper; all other customer pages place the four
   buttons directly inside the dock. Both resolve to the same 4×25% grid. */
body:not([data-page="home"]):not([data-page="admin"]) > .bottom-nav.bottom-nav-4,
body[data-page="home"] > .home-bottom-nav.bottom-nav-4 > .home-bottom-nav-inner {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: 1fr !important;
    gap: 0 !important;
    align-items: stretch !important;
}

body[data-page="home"] > .home-bottom-nav.bottom-nav-4 {
    display: block !important;
}

body:not([data-page="admin"]) > .bottom-nav .nav-item,
body[data-page="home"] > .home-bottom-nav .home-bottom-nav-inner > .nav-item {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 .25rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .18rem !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    border: 0 !important;
    border-right: 1px solid rgba(78,59,88,.065) !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-align: center !important;
}
body:not([data-page="admin"]) > .bottom-nav .nav-item:last-child,
body[data-page="home"] > .home-bottom-nav .home-bottom-nav-inner > .nav-item:last-child {
    border-right: 0 !important;
}

/* Keep the tiny aesthetic gap under the rounded dock, but make that area a
   seamless white continuation of the page instead of a visible strip. */
@media (max-width: 767px) {
    html::after {
        height: max(4px, env(safe-area-inset-bottom, 0px)) !important;
    }
    body:not([data-page="admin"]) > .bottom-nav,
    body[data-page="home"] > .home-bottom-nav {
        bottom: max(4px, env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* ============================================================
   V45.22.15 DEV — CLIENT DETAIL INFORMATION ARCHITECTURE
   ============================================================ */
.admin-client-detail-layout {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}
.admin-client-detail-layout > * {
    min-width: 0;
    box-sizing: border-box;
    margin: 0 !important;
}
.admin-client-data-card,
.admin-client-all-orders-block,
.admin-client-delete-block {
    grid-column: 1 / -1;
}
.admin-client-balance-block { grid-column: span 7; }
.admin-client-discount-block { grid-column: span 5; }
.admin-client-activity-block { grid-column: span 5; }
.admin-client-finance-block { grid-column: span 7; }

/* Collapsible client data block. */
.admin-client-data-card {
    padding: 0 !important;
    overflow: clip;
}
.admin-client-data-summary {
    list-style: none;
    cursor: pointer;
    min-height: 62px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    user-select: none;
}
.admin-client-data-summary::-webkit-details-marker { display: none; }
.admin-client-data-summary::marker { content: ""; }
.admin-client-data-summary .admin-detail-caption { margin-top: 3px; }
.admin-client-data-chevron {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-right: 2px solid #756a79;
    border-bottom: 2px solid #756a79;
    transform: rotate(45deg) translateY(-2px);
    transform-origin: 50% 50%;
    transition: transform 180ms ease;
}
.admin-client-data-card[open] .admin-client-data-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}
.admin-client-data-body {
    padding: 0 16px 16px;
    border-top: 1px solid rgba(68, 49, 75, .07);
}
.admin-client-data-actions {
    min-height: 48px;
    padding-top: 10px;
}

/* The six functional blocks share one visual rhythm. */
.admin-client-detail-layout .admin-detail-card,
.admin-client-detail-layout .admin-danger-zone,
.admin-client-all-orders-block {
    border-radius: 15px !important;
}
.admin-client-balance-block,
.admin-client-discount-block,
.admin-client-activity-block,
.admin-client-finance-block {
    padding: 16px !important;
}
.admin-client-detail-layout .admin-detail-title {
    font-size: .975rem !important;
    line-height: 1.2 !important;
    font-weight: 760 !important;
}
.admin-client-detail-layout .admin-detail-caption,
.admin-client-detail-layout .admin-detail-muted,
.admin-client-detail-layout .admin-deposit-note {
    font-size: .76rem !important;
    line-height: 1.4 !important;
}
.admin-client-detail-layout .admin-dealer-balance-item strong,
.admin-client-detail-layout .admin-finance-row strong,
.admin-client-detail-layout .admin-customer-info strong {
    font-size: .93rem !important;
    line-height: 1.2 !important;
}
.admin-client-detail-layout .admin-dealer-balance-item span,
.admin-client-detail-layout .admin-finance-row span,
.admin-client-detail-layout .admin-customer-info span {
    font-size: .75rem !important;
    line-height: 1.25 !important;
}

/* Dedicated, obvious path to all orders of the exact client. */
.admin-client-all-orders-block {
    width: 100%;
    min-height: 66px;
    padding: 13px 16px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #211925;
    text-align: left;
    cursor: pointer;
    border: 1px solid rgba(99, 52, 130, .12) !important;
    background: linear-gradient(180deg, #fff 0%, #fcf9ff 100%) !important;
    box-shadow: 0 7px 22px rgba(42, 25, 50, .055) !important;
}
.admin-client-all-orders-block:hover {
    border-color: rgba(111, 43, 181, .26) !important;
    background: #fbf7ff !important;
}
.admin-client-all-orders-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}
.admin-client-all-orders-copy small {
    color: #7b7180;
    font-size: .76rem;
    line-height: 1.25;
}
.admin-client-all-orders-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(111, 43, 181, .08);
    color: #6f2bb5;
    font-size: 1.05rem;
    font-weight: 700;
}
.admin-client-delete-block {
    min-height: 64px;
    padding: 13px 16px !important;
}

@media (max-width: 760px) {
    .admin-client-detail-layout {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
    }
    .admin-client-detail-layout > *,
    .admin-client-data-card,
    .admin-client-balance-block,
    .admin-client-discount-block,
    .admin-client-activity-block,
    .admin-client-finance-block,
    .admin-client-all-orders-block,
    .admin-client-delete-block {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    .admin-client-data-summary {
        min-height: 58px;
        padding: 12px 13px;
    }
    .admin-client-data-body { padding: 0 12px 12px; }
    .admin-client-balance-block,
    .admin-client-discount-block,
    .admin-client-activity-block,
    .admin-client-finance-block {
        padding: 13px !important;
    }
    .admin-client-detail-layout .admin-detail-title {
        font-size: .94rem !important;
    }
    .admin-client-all-orders-block {
        min-height: 62px;
        padding: 12px 13px !important;
    }
    .admin-client-delete-block {
        padding: 12px 13px !important;
    }
}

/* ============================================================
   V45.23.0 DEV — REGRESSION CLEANUP / AUTH / CURRENCY / CLIENTS
   ============================================================ */

/* Currency state is known in <head>, before first paint. Override the
   hard-coded BYN markup while JS is still loading, then JS takes over. */
html[data-dcr-currency="RUB"] .header .currency-toggle::before {
    transform: translateX(calc(100% - 1px)) !important;
}
html[data-dcr-currency="RUB"] .header .currency-toggle button[data-currency="BYN"] {
    color: #8e8493 !important;
    font-weight: 650 !important;
}
html[data-dcr-currency="RUB"] .header .currency-toggle button[data-currency="RUB"] {
    color: #241d28 !important;
    font-weight: 800 !important;
}
html[data-dcr-currency="BYN"] .header .currency-toggle button[data-currency="BYN"] {
    color: #241d28 !important;
    font-weight: 800 !important;
}

/* Registration must visibly react and report what is happening. */
.auth-form-status {
    box-sizing: border-box;
    width: 100%;
    margin: 1px 0 9px;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: .79rem;
    line-height: 1.35;
    font-weight: 650;
    background: #f5f1f7;
    color: #655b69;
}
.auth-form-status.error { background: #fff1f1; color: #9a3434; }
.auth-form-status.info { background: #f5effb; color: #66417d; }
.auth-form-status.success { background: #edf8f1; color: #34704d; }
.auth-form-status[hidden] { display: none !important; }
.auth-form.active .account-primary-btn,
.auth-tabs .auth-tab {
    pointer-events: auto !important;
    touch-action: manipulation;
}
.auth-form.active .account-primary-btn:active,
.auth-tabs .auth-tab:active {
    transform: scale(.985);
}

/* A collapsed client card must still identify the legal entity clearly. */
.admin-client-data-summary-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.admin-client-legal-name {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #443949;
    font-size: .88rem;
    line-height: 1.2;
    font-weight: 720;
}
@media (max-width: 760px) {
    .admin-client-legal-name { font-size: .86rem; }
}


/* ============================================================
   V45.23.1 — MOBILE SAFARI / INPUT FOCUS / COOKIE WIDTH
   ============================================================ */

/* 1. Technical-storage notice follows exactly the same mobile width
   as the customer bottom dock: 16px from each side. */
@media (max-width: 760px) {
    .cookie-notice {
        box-sizing: border-box !important;
        left: 50% !important;
        right: auto !important;
        width: calc(100vw - 32px) !important;
        max-width: none !important;
        transform: translateX(-50%) !important;
        bottom: 76px !important;
    }
}

/* 2. Calm form focus everywhere. Keep keyboard focus on non-form controls,
   but text-entry fields must not get purple rings or Safari auto-zoom. */
:where(input, textarea, select):focus,
:where(input, textarea, select):focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    scale: 1 !important;
}

/* Neutral border instead of the historical purple focus borders. */
.cart-sheet .order-form input:focus,
.cart-sheet .order-form select:focus,
.account-sheet .form-group input:focus,
.admin-catalog-field input:focus,
.admin-catalog-field select:focus,
.admin-catalog-field textarea:focus,
.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus,
.admin-deposit-form input:focus,
.admin-deposit-form select:focus,
.admin-deposit-form textarea:focus,
.admin-payment-form input:focus,
.admin-payment-form select:focus,
.admin-payment-form textarea:focus {
    border-color: #d8d0dc !important;
    box-shadow: none !important;
    background-color: #fff !important;
}

@media (max-width: 760px) {
    /* iOS Safari zooms focused form controls when computed font-size <16px. */
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* 3. Use the same proven white lower mask that is already used while the
   cart is open. The dock stays above it; page cards can no longer paint
   underneath Safari's floating address bar. */
@media (max-width: 899px) {
    body:is([data-page="home"], [data-page="catalog"], [data-page="account"], [data-page="orders"])::after {
        content: "" !important;
        position: fixed !important;
        z-index: 140 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: calc(4.75rem + env(safe-area-inset-bottom, 0px)) !important;
        background: #fff !important;
        border: 0 !important;
        box-shadow: none !important;
        pointer-events: none !important;
    }

    /* Avoid two different masks fighting when the cart is open. */
    body:is([data-page="home"], [data-page="catalog"], [data-page="account"], [data-page="orders"]):has(#cartSheet.open)::after {
        height: calc(4.75rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    body:not([data-page="admin"]) > .bottom-nav,
    body[data-page="home"] > .home-bottom-nav {
        z-index: 210 !important;
    }
}


/* ============================================================
   V45.23.2 — iOS SAFARI SYSTEM CHROME TINT
   Browser-supported color extension; no visible site mask under the dock.
   ============================================================ */

/* Remove every historical site-painted bottom strip/mask. They were visually
   covering page content, not tinting Safari's own obscured browser inset. */
html::after {
    content: none !important;
    display: none !important;
}
@media (max-width: 899px) {
    body:is([data-page="home"], [data-page="catalog"], [data-page="account"], [data-page="orders"])::after {
        content: none !important;
        display: none !important;
    }

    /* Preserve the existing cart docking mask: the cart was already correct. */
    body:is([data-page="home"], [data-page="catalog"], [data-page="account"], [data-page="orders"]):has(#cartSheet.open)::after {
        content: "" !important;
        display: block !important;
        position: fixed !important;
        z-index: 140 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: calc(4.75rem + env(safe-area-inset-bottom, 0px)) !important;
        background: #fff !important;
        border: 0 !important;
        box-shadow: none !important;
        pointer-events: none !important;
    }
}

/* The document/under-page color Safari falls back to is always opaque white. */
html,
body {
    background-color: #fff !important;
}

/* ============================================================
   V45.23.4 — SAFARI SYSTEM WHITE WITHOUT A SITE STRIP
   No dedicated tint/sampler element. The fixed customer dock itself is the
   qualifying opaque edge element. Catalog's closed cart is removed from
   Safari's bottom-edge paint candidates so it cannot override the dock.
   ============================================================ */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 899px) {
        body[data-page="catalog"] .cart-sheet:not(.open) {
            visibility: hidden !important;
            pointer-events: none !important;
            transition:
                transform 0.35s cubic-bezier(0.32, 0.72, 0, 1),
                visibility 0s linear 0.35s !important;
        }

        body[data-page="catalog"] .cart-sheet.open {
            visibility: visible !important;
            transition:
                transform 0.35s cubic-bezier(0.32, 0.72, 0, 1),
                visibility 0s linear 0s !important;
        }
    }
}

/* ============================================================
   V45.23.5 — ADMIN CLIENT DETAIL: LOGICAL TWO-ROW FINANCE LAYOUT
   ============================================================ */
@media (min-width: 761px) {
    .admin-client-activity-block { grid-column: span 6 !important; }
    .admin-client-discount-block { grid-column: span 6 !important; }
    .admin-client-finance-block { grid-column: 1 / -1 !important; }
}

.admin-client-finance-combined-block {
    padding: 16px !important;
}

.admin-client-finance-heading {
    margin-bottom: 12px;
}

.admin-client-finance-combined-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
    gap: 14px;
    align-items: stretch;
}

.admin-client-finance-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-client-finance-currency-panel,
.admin-client-deposit-panel {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e9e2ec;
    border-radius: 12px;
    background: #faf9fb;
}

.admin-client-finance-currency-title,
.admin-client-deposit-panel-title {
    color: #4d4252;
    font-size: .76rem;
    line-height: 1.2;
    font-weight: 820;
    letter-spacing: .01em;
}

.admin-client-finance-metrics {
    margin-top: 9px;
    display: grid;
    gap: 6px;
}

.admin-client-finance-metric {
    min-height: 44px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #ebe5ed;
    border-radius: 10px;
    background: #fff;
}

.admin-client-finance-metric span {
    color: #746979;
    font-size: .74rem;
    line-height: 1.2;
    font-weight: 720;
}

.admin-client-finance-metric strong {
    color: #342b38;
    font-size: .9rem;
    line-height: 1.1;
    font-weight: 850;
    text-align: right;
    white-space: nowrap;
}

.admin-client-finance-metric.deposit {
    background: #f5faf6;
    border-color: #dbe9df;
}
.admin-client-finance-metric.deposit strong { color: #34714d; }
.admin-client-finance-metric.debt {
    background: #fff7f7;
    border-color: #ead7d7;
}
.admin-client-finance-metric.debt strong { color: #a24a4a; }

.admin-client-deposit-panel {
    background: #fff;
}

.admin-client-deposit-panel .admin-deposit-form {
    margin-top: 10px;
    padding-top: 0;
    border-top: 0;
}

.admin-client-deposit-panel .admin-deposit-note {
    margin-top: 8px;
}

@media (max-width: 900px) and (min-width: 761px) {
    .admin-client-finance-combined-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .admin-client-finance-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .admin-client-finance-combined-block { padding: 13px !important; }
    .admin-client-finance-combined-grid,
    .admin-client-finance-overview {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
    }
    .admin-client-finance-currency-panel,
    .admin-client-deposit-panel {
        padding: 11px;
    }
}

/* ============================================================
   V45.24.0 — ADMIN OVERVIEW / CLIENT HISTORY / DEBT AGING
   ============================================================ */
.admin-overview-shell {
    display: grid;
    gap: 16px;
}
.admin-overview-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 2px 0;
}
.admin-overview-heading h3 {
    margin: 3px 0 3px;
    font-size: clamp(22px, 2.2vw, 30px);
    letter-spacing: -.035em;
    color: #2c2330;
}
.admin-overview-heading p {
    margin: 0;
    color: #807485;
    font-size: 13px;
}
.admin-plain-btn,
.admin-overview-card-head button {
    appearance: none;
    border: 1px solid rgba(78,59,88,.10);
    background: #fff;
    color: #574b5d;
    border-radius: 11px;
    min-height: 38px;
    padding: 0 13px;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}
.admin-overview-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.admin-overview-metric {
    min-width: 0;
    min-height: 108px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    border: 1px solid rgba(78,59,88,.08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(43,31,50,.035);
}
.admin-overview-metric span {
    color: #807485;
    font-size: 12px;
    font-weight: 650;
}
.admin-overview-metric strong {
    overflow: hidden;
    text-overflow: ellipsis;
    color: #302534;
    font-size: clamp(20px, 2vw, 27px);
    letter-spacing: -.035em;
    line-height: 1.05;
}
.admin-overview-metric small {
    color: #9a8fa0;
    font-size: 11px;
    line-height: 1.3;
}
.admin-overview-metric.is-alert strong { color: #b74242; }
.admin-overview-metric.is-positive strong { color: #356b55; }
.admin-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.admin-overview-card {
    min-width: 0;
    border: 1px solid rgba(78,59,88,.08);
    border-radius: 17px;
    background: #fff;
    overflow: hidden;
}
.admin-overview-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 15px;
    border-bottom: 1px solid rgba(78,59,88,.07);
}
.admin-overview-card-head > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}
.admin-overview-card-head span {
    color: #35293a;
    font-size: 14px;
    font-weight: 750;
}
.admin-overview-card-head small { color: #95899a; font-size: 11px; }
.admin-overview-list { min-height: 130px; }
.admin-overview-row {
    width: 100%;
    min-height: 62px;
    padding: 11px 15px;
    border: 0;
    border-bottom: 1px solid rgba(78,59,88,.055);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
}
.admin-overview-row:last-child { border-bottom: 0; }
.admin-overview-row > span { min-width: 0; display: grid; gap: 2px; }
.admin-overview-row strong { color: #35293a; font-size: 13px; }
.admin-overview-row small { color: #948897; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-overview-row > b { flex: 0 0 auto; color: #514458; font-size: 13px; }
.admin-overview-debt-value { color: #b74242 !important; }

.admin-client-history-block { grid-column: 1 / -1 !important; padding: 0 !important; overflow: hidden; }
.admin-client-history-block > summary {
    list-style: none;
    padding: 15px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.admin-client-history-block > summary::-webkit-details-marker { display: none; }
.admin-client-history-block > summary::after { content: '⌄'; color: #8f8294; transition: transform .18s ease; }
.admin-client-history-block[open] > summary::after { transform: rotate(180deg); }
.admin-client-history-list { border-top: 1px solid rgba(78,59,88,.07); }
.admin-client-history-row {
    width: 100%;
    min-height: 60px;
    padding: 10px 16px;
    display: grid;
    grid-template-columns: 10px minmax(0,1fr) auto;
    align-items: center;
    gap: 11px;
    border: 0;
    border-bottom: 1px solid rgba(78,59,88,.055);
    background: #fff;
    text-align: left;
    cursor: default;
}
.admin-client-history-row[data-history-order] { cursor: pointer; }
.admin-client-history-row:last-child { border-bottom: 0; }
.admin-client-history-dot { width: 8px; height: 8px; border-radius: 50%; background: #a194a5; }
.admin-client-history-row.deposit .admin-client-history-dot { background: #598b72; }
.admin-client-history-row.apply .admin-client-history-dot { background: #b87e59; }
.admin-client-history-row.payment .admin-client-history-dot { background: #657eae; }
.admin-client-history-copy { min-width: 0; display: grid; gap: 3px; }
.admin-client-history-copy strong { color: #352a39; font-size: 13px; }
.admin-client-history-copy small { color: #958a9a; font-size: 11px; line-height: 1.35; }
.admin-client-history-row > b { font-size: 13px; white-space: nowrap; }
.admin-client-history-row > b.positive { color: #3e745b; }
.admin-client-history-row > b.negative { color: #a55d42; }
.admin-client-action-row {
    grid-column: 1 / -1 !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}
.admin-client-action-row > .admin-detail-card { margin: 0 !important; width: 100%; }
.admin-client-create-order-block,
.admin-client-all-orders-block {
    min-height: 104px;
    cursor: pointer;
    text-align: left;
}
.admin-client-create-order-block { background: linear-gradient(180deg,#faf7fc,#fff) !important; }

.admin-debt-aging {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 1px 0 8px;
    scrollbar-width: none;
}
.admin-debt-aging::-webkit-scrollbar { display: none; }
.admin-debt-aging button {
    appearance: none;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(78,59,88,.10);
    border-radius: 999px;
    background: #fff;
    color: #746878;
    font: inherit;
    font-size: 11.5px;
    font-weight: 650;
    cursor: pointer;
}
.admin-debt-aging button.active { background: #382b3d; border-color: #382b3d; color: #fff; }
.admin-debt-age {
    display: inline-flex;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    color: #786d7d;
    background: #f1eef3;
}
.admin-debt-age.age-31-60 { color: #94622f; background: #fbf0df; }
.admin-debt-age.age-60\+ { color: #a13e3e; background: #fbe5e5; }

.admin-client-order-modal {
    position: fixed;
    inset: 0;
    z-index: 1450;
    display: none;
    place-items: center;
    padding: 20px;
}
.admin-client-order-modal.open { display: grid; }
.admin-client-order-backdrop { position: absolute; inset: 0; background: rgba(30,22,34,.28); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.admin-client-order-card {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100vw - 40px));
    max-height: min(820px, calc(100dvh - 40px));
    display: grid;
    grid-template-rows: auto auto minmax(0,1fr);
    overflow: hidden;
    border: 1px solid rgba(78,59,88,.10);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(31,21,36,.22);
}
.admin-client-order-head {
    padding: 16px 18px 13px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(78,59,88,.07);
}
.admin-client-order-head h3 { margin: 2px 0 2px; color: #302534; font-size: 22px; letter-spacing: -.03em; }
.admin-client-order-tools {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 10px;
    padding: 11px 18px;
    background: #fbfafc;
    border-bottom: 1px solid rgba(78,59,88,.07);
}
.admin-client-order-currency { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; min-width: 142px; border-radius: 12px; background: #eeeaf1; }
.admin-client-order-currency button { border:0; border-radius:9px; background:transparent; min-height:36px; padding:0 12px; font:inherit; font-size:12px; font-weight:700; color:#817584; cursor:pointer; }
.admin-client-order-currency button.active { background:#fff; color:#392e3e; box-shadow:0 2px 7px rgba(44,29,51,.08); }
.admin-client-order-body { min-height:0; display:grid; grid-template-columns:minmax(0,1.5fr) minmax(300px,.75fr); }
.admin-client-order-products { min-height:0; overflow:auto; padding:10px 12px 18px 18px; }
.admin-client-order-product {
    display:grid;
    grid-template-columns:50px minmax(0,1fr) auto;
    align-items:center;
    gap:10px;
    min-height:66px;
    padding:8px;
    border-bottom:1px solid rgba(78,59,88,.055);
}
.admin-client-order-product img { width:46px; height:54px; object-fit:contain; border-radius:9px; background:#f8f6f9; }
.admin-client-order-product > span { min-width:0; display:grid; gap:3px; }
.admin-client-order-product > span strong { color:#382d3d; font-size:13px; }
.admin-client-order-product > span small { color:#978b9b; font-size:11px; }
.admin-client-order-product > em { color:#a393a7; font-size:11px; font-style:normal; }
.admin-client-order-qty { display:grid; grid-template-columns:34px 34px 34px; align-items:center; text-align:center; }
.admin-client-order-qty button { width:34px; height:34px; border:1px solid #e4dfe7; background:#fff; border-radius:9px; font-size:17px; cursor:pointer; }
.admin-client-order-qty b { font-size:12px; }
.admin-client-order-summary { min-height:0; overflow:auto; padding:16px; border-left:1px solid rgba(78,59,88,.07); background:#fcfbfd; }
.admin-client-order-selected { display:grid; gap:0; margin:10px 0 14px; }
.admin-client-order-selected-row { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid rgba(78,59,88,.06); }
.admin-client-order-selected-row span { min-width:0; display:grid; gap:2px; }
.admin-client-order-selected-row strong { color:#3b2f40; font-size:12px; }
.admin-client-order-selected-row small { color:#968a99; font-size:10.5px; }
.admin-client-order-selected-row > b { white-space:nowrap; font-size:12px; }
.admin-client-order-comment { display:grid; gap:6px; margin-top:10px; }
.admin-client-order-comment span { color:#766a7a; font-size:11px; font-weight:700; }
.admin-client-order-comment textarea { width:100%; resize:vertical; min-height:72px; padding:10px 11px; border:1px solid #dfd9e2; border-radius:11px; background:#fff; font:inherit; font-size:14px; }
.admin-client-order-total { margin:14px 0 12px; padding-top:12px; display:flex; justify-content:space-between; gap:10px; border-top:1px solid rgba(78,59,88,.08); }
.admin-client-order-total span { color:#7d7181; font-size:12px; }
.admin-client-order-total strong { color:#302534; font-size:20px; letter-spacing:-.03em; }
body.admin-client-order-open { overflow:hidden !important; }

@media (max-width: 1000px) {
    .admin-overview-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .admin-overview-heading { align-items:center; }
    .admin-overview-heading p { display:none; }
    .admin-overview-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .admin-overview-metric { min-height:94px; padding:12px; }
    .admin-overview-grid { grid-template-columns:1fr; }
    .admin-client-action-row { grid-template-columns:1fr; }
    .admin-client-history-row { grid-template-columns:8px minmax(0,1fr); }
    .admin-client-history-row > b { grid-column:2; }
    .admin-client-order-modal { padding:0; align-items:stretch; }
    .admin-client-order-card { width:100%; max-height:100dvh; height:100dvh; border:0; border-radius:0; }
    .admin-client-order-tools { grid-template-columns:1fr auto; padding:9px 12px; }
    .admin-client-order-body { grid-template-columns:1fr; grid-template-rows:minmax(0,1fr) auto; }
    .admin-client-order-products { padding:8px 10px 12px; }
    .admin-client-order-summary { max-height:42dvh; border-left:0; border-top:1px solid rgba(78,59,88,.08); padding:12px; }
    .admin-client-order-product { grid-template-columns:44px minmax(0,1fr) auto; }
    .admin-client-order-product img { width:40px; height:48px; }
}

/* ============================================================
   V45.24.0 — CART AS A FULL-SCREEN TAB + DESKTOP PRODUCT DETAIL
   ============================================================ */
body[data-page="catalog"] .cart-sheet {
    top: var(--dcr-cart-top, 58px) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 18px max(16px, calc((100vw - 1376px) / 2 + 32px)) 86px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow: auto !important;
    z-index: 180 !important;
    transition: opacity 160ms ease, visibility 0s linear 160ms !important;
    overscroll-behavior: contain;
}
body[data-page="catalog"] .cart-sheet.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: opacity 160ms ease, visibility 0s linear 0s !important;
}
body[data-page="catalog"].cart-tab-open { overflow: hidden !important; }
body[data-page="catalog"] .cart-drag-zone,
body[data-page="catalog"] .cart-close-btn { display: none !important; }
body[data-page="catalog"] .cart-sheet-header {
    min-height: 44px !important;
    padding: 0 0 12px !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(78,59,88,.075) !important;
    display: flex !important;
    align-items: center !important;
}
body[data-page="catalog"] .cart-sheet-header h3 {
    margin: 0 !important;
    color: #302534 !important;
    font-size: 24px !important;
    letter-spacing: -.035em !important;
}
body[data-page="catalog"]:has(#cartSheet.open)::after { display: none !important; content: none !important; }

@media (min-width: 900px) {
    body[data-page="catalog"] .cart-sheet {
        display: grid !important;
        grid-template-columns: minmax(0, 1.45fr) minmax(330px, .62fr) !important;
        grid-template-rows: auto minmax(0,1fr) auto !important;
        column-gap: 26px !important;
        align-items: start !important;
    }
    body[data-page="catalog"] .cart-sheet-header { grid-column: 1 / -1; grid-row: 1; }
    body[data-page="catalog"] #cartItemsList {
        grid-column: 1;
        grid-row: 2;
        min-height: 0 !important;
        max-height: calc(100dvh - var(--dcr-cart-top,58px) - 190px) !important;
        overflow: auto !important;
        padding-right: 8px !important;
    }
    body[data-page="catalog"] .cart-total {
        grid-column: 1;
        grid-row: 3;
        margin: 0 !important;
        padding: 15px 4px 0 !important;
    }
    body[data-page="catalog"] .cart-sheet > .order-form {
        grid-column: 2;
        grid-row: 2 / 4;
        align-self: start;
        margin: 16px 0 0 !important;
        padding: 18px !important;
        border: 1px solid rgba(78,59,88,.09) !important;
        border-radius: 18px !important;
        background: #faf9fb !important;
        box-shadow: 0 8px 28px rgba(42,28,49,.045) !important;
    }
}

@media (max-width: 899px) {
    body[data-page="catalog"] .cart-sheet {
        padding: 12px 16px calc(90px + env(safe-area-inset-bottom,0px)) !important;
    }
    body[data-page="catalog"] .cart-sheet-header {
        position: sticky !important;
        top: -12px !important;
        z-index: 3 !important;
        padding-top: 12px !important;
        background: rgba(255,255,255,.96) !important;
        -webkit-backdrop-filter: blur(12px) saturate(130%) !important;
        backdrop-filter: blur(12px) saturate(130%) !important;
    }
    body[data-page="catalog"] .cart-sheet-header h3 { font-size: 21px !important; }
    body[data-page="catalog"] #cartItemsList { overflow: visible !important; max-height: none !important; }
    body[data-page="catalog"] .cart-sheet > .order-form { padding-bottom: 4px !important; }
}

/* Do not recreate cart images while changing quantity; make the existing node stable. */
.cart-sheet #cartItemsList .cart-item-preview img {
    object-fit: contain !important;
    background: #fff !important;
}

/* Desktop product detail: media on the left, product information/actions on the right. */
@media (min-width: 900px) {
    .product-modal .product-detail-desktop-layout {
        width: min(1180px, calc(100vw - 64px)) !important;
        max-width: 1180px !important;
        max-height: min(780px, calc(100dvh - 64px)) !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr) !important;
        align-items: stretch !important;
        gap: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border-radius: 24px !important;
    }
    .product-detail-desktop-layout > .close-btn {
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
        z-index: 20 !important;
    }
    .product-detail-media-column {
        min-width: 0;
        min-height: 0;
        padding: 24px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 12px !important;
        background: #faf9fb !important;
        border-right: 1px solid rgba(78,59,88,.07) !important;
    }
    .product-modal .product-detail-media-column .product-detail-image {
        width: 100% !important;
        height: min(600px, calc(100dvh - 180px)) !important;
        max-height: 600px !important;
        min-height: 430px !important;
        margin: 0 !important;
        border-radius: 18px !important;
        background: #fff !important;
    }
    .product-modal .product-detail-media-column .detail-image-meta {
        margin: 0 !important;
        min-height: 24px !important;
    }
    .product-detail-info-column {
        min-width: 0;
        min-height: 0;
        padding: 64px 28px 26px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: auto !important;
        background: #fff !important;
    }
    .product-detail-info-column .detail-name {
        margin: 0 0 12px !important;
        font-size: clamp(25px, 2.4vw, 34px) !important;
        line-height: 1.08 !important;
        letter-spacing: -.04em !important;
    }
    .product-detail-info-column .detail-description {
        margin-bottom: 24px !important;
        color: #766d79 !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    .product-detail-info-column .detail-footer-bar {
        margin-top: auto !important;
        padding-top: 20px !important;
        border-top: 1px solid rgba(78,59,88,.08) !important;
        display: grid !important;
        gap: 14px !important;
    }
    .product-detail-info-column .detail-price {
        font-size: 29px !important;
        line-height: 1.05 !important;
    }
    .product-detail-info-column .detail-cart-controls,
    .product-detail-info-column .detail-cart-controls .add-btn {
        width: 100% !important;
    }
    .product-detail-info-column .detail-cart-controls .add-btn {
        min-height: 52px !important;
        font-size: 15px !important;
        border-radius: 14px !important;
    }
}
@media (max-width: 899px) {
    .product-detail-media-column,
    .product-detail-info-column { display: contents !important; }
}


/* ============================================================
   V45.25.0 — SEPARATE CART / ADMIN MOBILE / DEBT / TAP POLISH
   ============================================================ */

/* No browser purple tap flash or transient menu fill. */
html { -webkit-tap-highlight-color: transparent; }
button, a, [role="button"], summary, select { -webkit-tap-highlight-color: transparent !important; }
body:not([data-page="admin"]) > .bottom-nav .nav-item:active,
body:not([data-page="admin"]) > .bottom-nav .nav-item.is-pressed,
body[data-page="home"] .home-bottom-nav .nav-item:active,
body[data-page="home"] .home-bottom-nav .nav-item.is-pressed {
    background: transparent !important;
    box-shadow: none !important;
    scale: 1 !important;
    transform: none !important;
}

/* Dedicated pages must render already in place — no bottom-sheet entrance flash. */
body[data-page="account"] .account-sheet,
body[data-page="orders"] .orders-center {
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Account / registration: page material continues behind the floating dock,
   no special white field around the menu. */
body[data-page="account"] { background: #f7f4f8 !important; }
body[data-page="account"] .account-sheet {
    bottom: 0 !important;
    background: #f7f4f8 !important;
    box-shadow: none !important;
}
body[data-page="account"] .account-scroll {
    background: transparent !important;
    padding-bottom: calc(96px + env(safe-area-inset-bottom,0px)) !important;
}
body[data-page="account"]:has(#cartSheet.open)::after { display:none !important; content:none !important; }

/* Cart is an actual page. Natural document scrolling avoids nested-scroll
   glitches on Windows with large carts. */
body[data-page="cart"] {
    background: #f7f4f8 !important;
    padding-bottom: 84px !important;
}
body[data-page="cart"] > .breadcrumb,
body[data-page="cart"] > #appContainer,
body[data-page="cart"] > .site-footer { display:none !important; }
body[data-page="cart"] .cart-sheet {
    position: relative !important;
    inset: auto !important;
    width: min(1376px, calc(100vw - 64px)) !important;
    max-width: 1376px !important;
    height: auto !important;
    max-height: none !important;
    margin: 18px auto 0 !important;
    padding: 20px 0 28px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow: visible !important;
    transition: none !important;
    z-index: 1 !important;
}
body[data-page="cart"] .cart-drag-zone,
body[data-page="cart"] .cart-close-btn { display:none !important; }
body[data-page="cart"] .cart-sheet-header {
    position: static !important;
    min-height: 52px !important;
    padding: 0 2px 14px !important;
    margin: 0 0 12px !important;
    border-bottom: 1px solid rgba(78,59,88,.08) !important;
    background: transparent !important;
}
body[data-page="cart"] .cart-sheet-header h3 { margin:0 !important; font-size:26px !important; color:#302534 !important; }
body[data-page="cart"] #cartItemsList { overflow:visible !important; max-height:none !important; min-height:0 !important; }
body[data-page="cart"] .cart-item {
    content-visibility: auto;
    contain-intrinsic-size: 76px;
}
@media (min-width:900px) {
    body[data-page="cart"] .cart-sheet {
        display:grid !important;
        grid-template-columns:minmax(0,1.45fr) minmax(340px,.62fr) !important;
        grid-template-rows:auto auto auto !important;
        column-gap:28px !important;
        align-items:start !important;
    }
    body[data-page="cart"] .cart-sheet-header { grid-column:1/-1; grid-row:1; }
    body[data-page="cart"] #cartItemsList { grid-column:1; grid-row:2; padding:0 4px 0 0 !important; }
    body[data-page="cart"] .cart-total { grid-column:1; grid-row:3; margin:0 !important; padding:16px 4px 0 !important; }
    body[data-page="cart"] .cart-sheet > .order-form {
        grid-column:2; grid-row:2/4; position:sticky; top:18px; margin:0 !important; padding:18px !important;
        border:1px solid rgba(78,59,88,.09) !important; border-radius:18px !important; background:#fff !important;
        box-shadow:0 8px 28px rgba(42,28,49,.045) !important;
    }
}
@media (max-width:899px) {
    body[data-page="cart"] { padding-inline:16px !important; }
    body[data-page="cart"] .cart-sheet { width:100% !important; margin-top:10px !important; padding:10px 0 24px !important; }
    body[data-page="cart"] .cart-sheet-header { position:sticky !important; top:0 !important; z-index:5 !important; padding-top:10px !important; background:rgba(247,244,248,.95) !important; backdrop-filter:blur(12px) saturate(130%) !important; }
}

/* Admin: compact five-tab icon row. */
.admin-main-tabs.admin-main-tabs-icons {
    grid-template-columns: repeat(5,minmax(0,1fr)) !important;
    gap:4px !important;
    padding:6px 12px !important;
    min-height:58px !important;
}
.admin-main-tabs-icons .admin-main-tab {
    min-height:46px !important; padding:4px 3px !important; display:flex !important; flex-direction:column !important;
    align-items:center !important; justify-content:center !important; gap:3px !important; border-radius:11px !important;
    font-size:10px !important; line-height:1 !important;
}
.admin-main-tabs-icons .admin-main-tab svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.admin-main-tabs-icons .admin-main-tab[data-admin-section="overview"] svg path,
.admin-main-tabs-icons .admin-main-tab[data-admin-section="catalog"] svg path { fill:currentColor; stroke:none; }

/* Every search stays reachable while the list scrolls. */
.admin-top-search-row {
    position: sticky !important;
    top: 0 !important;
    z-index: 35 !important;
    background: rgba(247,245,249,.94) !important;
    -webkit-backdrop-filter: blur(12px) saturate(130%) !important;
    backdrop-filter: blur(12px) saturate(130%) !important;
}
.admin-search-wrap input::placeholder { font-size:.875rem !important; line-height:1.2 !important; }

/* Receivables: only one filter button inside search. */
#adminReceivablesView .admin-debt-summary,
#adminReceivablesView .admin-debt-filterbar,
#adminReceivablesView .admin-debt-aging { display:none !important; }
.admin-debt-filter-menu { position:relative !important; flex:0 0 36px !important; width:36px !important; height:36px !important; }
.admin-debt-filter-menu > summary { width:36px !important; height:36px !important; display:grid !important; place-items:center !important; border-radius:9px !important; cursor:pointer; }
.admin-debt-filter-menu > summary svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.admin-debt-filter-popover { right:0 !important; width:min(270px,calc(100vw - 28px)) !important; display:grid !important; gap:8px !important; }
.admin-debt-filter-popover > span { color:#8a7d8e; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.admin-debt-filter-popover .admin-debt-state-filter,
.admin-debt-filter-popover .admin-currency-filter { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px !important; width:100% !important; }
.admin-debt-filter-popover .admin-debt-state-filter { grid-template-columns:repeat(2,minmax(0,1fr)); }
.admin-debt-filter-popover button { min-height:36px !important; border:0 !important; border-radius:9px !important; background:#f5f1f7 !important; color:#655a6a !important; font-size:11px !important; font-weight:780 !important; }
.admin-debt-filter-popover button.active { background:#2d2035 !important; color:#fff !important; }

/* Aging remains on each receivable card. More overdue = warmer/redder card. */
.admin-debt-row.debt-age-0-7 { background:linear-gradient(90deg,#fff 0%,#fff 72%,#fbfafb 100%) !important; }
.admin-debt-row.debt-age-8-30 { background:linear-gradient(90deg,#fff 0%,#fffaf2 100%) !important; border-color:#eee1cc !important; }
.admin-debt-row.debt-age-31-60 { background:linear-gradient(90deg,#fff 0%,#fff1ee 100%) !important; border-color:#ebc8c2 !important; }
.admin-debt-row.debt-age-60\+ { background:linear-gradient(90deg,#fff 0%,#fde5e5 100%) !important; border-color:#e4aaaa !important; }
.admin-debt-row.debt-age-31-60 .admin-debt-age,
.admin-debt-row.debt-age-60\+ .admin-debt-age { color:#a43b3b !important; background:#f9dddd !important; }

/* Swipe-to-delete on order list. */
.admin-order-swipe-shell { position:relative; overflow:hidden; border-radius:14px; }
.admin-order-swipe-delete { position:absolute; inset:0 0 0 auto; width:88px; border:0; background:#c94848; color:#fff; font:inherit; font-size:12px; font-weight:850; cursor:pointer; }
.admin-order-swipe-shell .admin-order-row { position:relative; z-index:2; background:#fff; will-change:transform; }
.admin-order-delete-detail { margin-left:auto !important; border-color:#e9c5c5 !important; color:#a43d3d !important; background:#fff6f6 !important; }

/* Overview: mobile-first, scrollable, chart + 7 metrics. */
.admin-overview-view { min-height:max-content !important; height:auto !important; overflow:visible !important; }
.admin-overview-chart-card { min-width:0; }
.admin-overview-chart-currency { display:flex; gap:3px; padding:3px; border-radius:10px; background:#f3eff5; }
.admin-overview-chart-currency button { min-width:48px; height:30px; padding:0 9px; border:0; border-radius:8px; background:transparent; color:#75697a; font:inherit; font-size:10px; font-weight:800; cursor:pointer; }
.admin-overview-chart-currency button.active { background:#fff; color:#33283a; box-shadow:0 2px 8px rgba(45,31,53,.08); }
.admin-overview-chart { width:100%; min-height:250px; overflow:hidden; }
.admin-overview-chart svg { display:block; width:100%; height:250px; overflow:visible; }
.admin-overview-chart svg text { fill:#9b909e; font-size:9px; }
.admin-overview-chart .overview-area { fill:url(#dcrOverviewArea); color:#7b4cab; }
.admin-overview-chart .overview-line { fill:none; stroke-width:3; vector-effect:non-scaling-stroke; stroke-linecap:round; stroke-linejoin:round; }
.admin-overview-chart .overview-line.turnover { stroke:#6d43a0; }
.admin-overview-chart .overview-line.gross { stroke:#4a8b67; }
.admin-overview-chart-legend { display:flex; gap:16px; align-items:center; color:#867a8a; font-size:10px; }
.admin-overview-chart-legend span { display:inline-flex; align-items:center; gap:6px; }
.admin-overview-chart-legend i { width:18px; height:3px; border-radius:99px; background:#6d43a0; }
.admin-overview-chart-legend i.gross { background:#4a8b67; }
.admin-overview-metrics { grid-template-columns:repeat(7,minmax(0,1fr)) !important; }

/* Desktop product photo keeps the source 3:4 portrait frame and never crops. */
@media (min-width:900px) {
    .product-modal .product-detail-media-column .product-detail-image {
        width:min(100%,465px) !important;
        height:auto !important;
        min-height:0 !important;
        max-height:none !important;
        aspect-ratio:3 / 4 !important;
        margin:auto !important;
    }
    .product-modal .product-detail-media-column #detailSwipeTrack,
    .product-modal .product-detail-media-column #detailSwipeTrack img { height:100% !important; }
    .product-modal .product-detail-media-column #detailSwipeTrack img { width:100% !important; object-fit:contain !important; object-position:center !important; }
}

@media (max-width:760px) {
    body[data-page="admin"] .admin-content { overflow-y:auto !important; overflow-x:hidden !important; -webkit-overflow-scrolling:touch; }
    body[data-page="admin"] .admin-panel-shell { min-height:100%; height:auto !important; }
    .admin-main-tabs.admin-main-tabs-icons { padding:5px 5px !important; gap:2px !important; min-height:56px !important; }
    .admin-main-tabs-icons .admin-main-tab { min-height:44px !important; font-size:9px !important; }
    .admin-main-tabs-icons .admin-main-tab svg { width:17px; height:17px; }
    .admin-overview-shell { padding:8px 8px 24px !important; gap:10px !important; }
    .admin-overview-heading { padding:2px 3px 0 !important; }
    .admin-overview-heading h3 { font-size:22px !important; }
    .admin-overview-metrics { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:7px !important; }
    .admin-overview-metric { min-height:86px !important; padding:10px !important; border-radius:13px !important; }
    .admin-overview-metric span { font-size:10px !important; }
    .admin-overview-metric strong { font-size:16px !important; }
    .admin-overview-metric small { font-size:9px !important; }
    .admin-overview-chart-card { padding:12px !important; border-radius:14px !important; }
    .admin-overview-chart { min-height:220px; overflow-x:auto; overscroll-behavior-x:contain; }
    .admin-overview-chart svg { min-width:620px; height:220px; }
    .admin-overview-grid { grid-template-columns:1fr !important; gap:8px !important; }
    .admin-overview-card-head { gap:8px !important; }
    .admin-overview-card-head button { min-height:34px !important; padding:0 10px !important; font-size:10px !important; }
    .admin-top-search-row { padding-top:6px !important; padding-bottom:5px !important; }
}

/* V45.25.0 final dock interaction polish: the navigation never flashes,
   scales or receives a transient focus/tap material on touch. */
body:not([data-page="admin"]) > .bottom-nav .nav-item,
body[data-page="home"] .home-bottom-nav .nav-item {
    -webkit-tap-highlight-color: transparent !important;
}
body:not([data-page="admin"]) > .bottom-nav .nav-item:active,
body:not([data-page="admin"]) > .bottom-nav .nav-item.is-pressed,
body:not([data-page="admin"]) > .bottom-nav .nav-item:focus,
body:not([data-page="admin"]) > .bottom-nav .nav-item:focus-visible,
body[data-page="home"] .home-bottom-nav .nav-item:active,
body[data-page="home"] .home-bottom-nav .nav-item.is-pressed,
body[data-page="home"] .home-bottom-nav .nav-item:focus,
body[data-page="home"] .home-bottom-nav .nav-item:focus-visible {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    filter: none !important;
    scale: 1 !important;
    transform: none !important;
    transition: color 140ms ease !important;
}

/* V45.25.0 QA — overview chart is fully responsive on mobile; the admin page
   scrolls vertically as one surface instead of nesting a horizontal chart scroller. */
@media (max-width: 760px) {
    .admin-overview-chart { min-height: 0 !important; overflow: hidden !important; }
    .admin-overview-chart svg { min-width: 0 !important; width: 100% !important; height: auto !important; aspect-ratio: 320 / 210; }
}

.admin-order-swipe-delete {
    display: grid !important;
    place-items: center !important;
    padding: 0 10px !important;
}

/* V45.25.0 QA — Catalog keeps the + control beside the sticky search, not on
   a second line when the shared sticky-search rule is active. */
.admin-catalog-search-row.admin-top-search-row {
    grid-template-columns: minmax(0, 1fr) 44px !important;
    align-items: center !important;
    column-gap: 8px !important;
}
.admin-catalog-search-row .admin-catalog-add-compact {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
}
\n\n/* V45.25.1 HOTFIX — admin uses the fixed panel itself as the single scroll owner.
   This avoids the body-overflow + nested-flex-scroll deadlock seen in V45.25.0. */
body[data-page="admin"] .admin-panel.open {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}
body[data-page="admin"] .admin-panel-shell {
    height: auto !important;
    min-height: 100% !important;
    overflow: visible !important;
}
body[data-page="admin"] .admin-content {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}
body[data-page="admin"] .admin-content > .admin-view:not([hidden]) {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}


/* ============================================================
   V45.25.2 STABILIZATION — four critical regressions only
   ============================================================ */

/* 1) ACCOUNT — dedicated page is not a legacy overlay sheet.
   Removing fixed/composited sheet eliminates the stacking context that could
   paint above the floating customer dock on account/registration screens. */
body[data-page="account"] {
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
body[data-page="account"] .account-sheet {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 1 !important;
    width: min(760px, 100%) !important;
    min-height: calc(100dvh - 84px) !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 auto !important;
    overflow: visible !important;
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    background: #f7f4f8 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    will-change: auto !important;
}
body[data-page="account"] .account-scroll {
    box-sizing: border-box !important;
    flex: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
}
body[data-page="account"] > nav.bottom-nav.bottom-nav-4 {
    pointer-events: auto !important;
}

/* 2) ADMIN — exactly one vertical scroll owner: .admin-panel.
   Lists/details expand naturally; no body/content/view/list scroll nesting. */
body[data-page="admin"].admin-panel-open {
    overflow: hidden !important;
}
body[data-page="admin"] .admin-panel.open {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch;
}
body[data-page="admin"] .admin-panel-shell {
    display: block !important;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    overflow: visible !important;
}
body[data-page="admin"] .admin-content,
body[data-page="admin"] .admin-content > .admin-view:not([hidden]),
body[data-page="admin"] .admin-list-scroll,
body[data-page="admin"] .admin-detail-scroll {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    touch-action: pan-y !important;
}
body[data-page="admin"] .admin-content {
    flex: none !important;
}
body[data-page="admin"] .admin-list-scroll,
body[data-page="admin"] .admin-detail-scroll {
    flex: none !important;
}
/* Search remains sticky inside the single panel scroller. */
body[data-page="admin"] .admin-top-search-row {
    top: 0 !important;
}

/* 3) CART PAGE — one outer grid/gutter on mobile and desktop. */
body[data-page="cart"] {
    box-sizing: border-box !important;
    padding: 0 0 calc(92px + env(safe-area-inset-bottom, 0px)) !important;
    background: #f7f4f8 !important;
}
body[data-page="cart"] .cart-sheet {
    box-sizing: border-box !important;
    position: relative !important;
    inset: auto !important;
    width: min(1376px, calc(100vw - 64px)) !important;
    max-width: 1376px !important;
    height: auto !important;
    max-height: none !important;
    margin: 16px auto 0 !important;
    padding: 0 0 28px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, .62fr) !important;
    grid-template-areas:
        "head head"
        "items checkout" !important;
    gap: 14px 28px !important;
    align-items: start !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
body[data-page="cart"] .cart-sheet-header {
    grid-area: head !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 8px 0 12px !important;
    position: static !important;
    border-bottom: 1px solid rgba(78,59,88,.08) !important;
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
body[data-page="cart"] #cartItemsList {
    grid-area: items !important;
    min-width: 0 !important;
    display: grid !important;
    gap: 8px !important;
    padding: 0 !important;
    overflow: visible !important;
}
body[data-page="cart"] .cart-checkout-column {
    grid-area: checkout !important;
    min-width: 0 !important;
    display: grid !important;
    gap: 10px !important;
    position: sticky !important;
    top: 16px !important;
}
body[data-page="cart"] .cart-total,
body[data-page="cart"] .order-form,
body[data-page="cart"] .empty-cart {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid rgba(78,59,88,.09) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 6px 20px rgba(42,28,49,.035) !important;
}
body[data-page="cart"] .cart-total { padding: 15px 16px !important; }
body[data-page="cart"] .order-form { position: static !important; padding: 16px !important; }
body[data-page="cart"] .order-form h4 { margin: 0 0 14px !important; }
body[data-page="cart"] .order-form .form-group,
body[data-page="cart"] .order-form input,
body[data-page="cart"] .order-form select,
body[data-page="cart"] .order-form .phone-row,
body[data-page="cart"] .order-form .submit-btn {
    box-sizing: border-box !important;
    max-width: none !important;
}
body[data-page="cart"] .order-form input,
body[data-page="cart"] .order-form select,
body[data-page="cart"] .order-form .submit-btn { width: 100% !important; }
body[data-page="cart"] .empty-cart { padding: 28px 18px !important; }
body[data-page="cart"] #cartItemsList .cart-item {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
    display: grid !important;
    grid-template-columns: 56px minmax(0,1fr) auto minmax(112px,auto) 74px !important;
    grid-template-areas: "image main qty price remove" !important;
    align-items: center !important;
    gap: 10px 14px !important;
    border: 1px solid rgba(78,59,88,.08) !important;
    border-radius: 16px !important;
    background: #fff !important;
}
body[data-page="cart"] #cartItemsList .cart-item-preview {
    grid-area: image !important;
    width: 56px !important;
    min-width: 56px !important;
    height: 74px !important;
    aspect-ratio: 3 / 4 !important;
    margin: 0 !important;
    border-radius: 10px !important;
}
body[data-page="cart"] #cartItemsList .cart-item-preview img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}
body[data-page="cart"] #cartItemsList .item-main { grid-area: main !important; min-width: 0 !important; }
body[data-page="cart"] #cartItemsList .item-qty { grid-area: qty !important; }
body[data-page="cart"] #cartItemsList .item-price { grid-area: price !important; min-width: 0 !important; }
body[data-page="cart"] #cartItemsList .cart-item-remove {
    grid-area: remove !important;
    justify-self: end !important;
    min-width: 0 !important;
    height: 38px !important;
    padding: 0 10px !important;
    border: 1px solid #ecd3d3 !important;
    border-radius: 10px !important;
    background: #fff7f7 !important;
    color: #a33f3f !important;
    font: inherit !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
}

@media (max-width: 899px) {
    body[data-page="cart"] .cart-sheet {
        width: calc(100% - 32px) !important;
        margin-top: 8px !important;
        padding: 0 0 20px !important;
        grid-template-columns: minmax(0,1fr) !important;
        grid-template-areas: "head" "items" "checkout" !important;
        gap: 10px !important;
    }
    body[data-page="cart"] .cart-sheet-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 20 !important;
        padding: 10px 0 9px !important;
        background: rgba(247,244,248,.95) !important;
        -webkit-backdrop-filter: blur(12px) saturate(130%) !important;
        backdrop-filter: blur(12px) saturate(130%) !important;
    }
    body[data-page="cart"] .cart-sheet-header h3 { font-size: 22px !important; }
    body[data-page="cart"] .cart-checkout-column {
        position: static !important;
        top: auto !important;
        gap: 8px !important;
    }
    body[data-page="cart"] #cartItemsList .cart-item {
        grid-template-columns: 48px minmax(0,1fr) auto !important;
        grid-template-areas:
            "image main remove"
            "image qty price" !important;
        gap: 7px 10px !important;
        padding: 11px !important;
        border-radius: 14px !important;
    }
    body[data-page="cart"] #cartItemsList .cart-item-preview {
        width: 48px !important;
        min-width: 48px !important;
        height: 64px !important;
    }
    body[data-page="cart"] #cartItemsList .item-name { font-size: 14px !important; line-height: 1.25 !important; }
    body[data-page="cart"] #cartItemsList .item-unit { font-size: 11px !important; white-space: normal !important; }
    body[data-page="cart"] #cartItemsList .item-qty {
        justify-self: start !important;
        grid-template-columns: 30px 40px 30px !important;
        gap: 3px !important;
        min-height: 34px !important;
        padding: 2px !important;
    }
    body[data-page="cart"] #cartItemsList .item-qty button {
        width: 30px !important; min-width: 30px !important; height: 30px !important; min-height: 30px !important;
    }
    body[data-page="cart"] #cartItemsList .item-qty input {
        width: 40px !important; min-width: 40px !important; height: 30px !important; line-height: 30px !important; font-size: 16px !important;
    }
    body[data-page="cart"] #cartItemsList .item-price {
        justify-self: end !important; text-align: right !important; font-size: 15px !important; white-space: nowrap !important;
    }
    body[data-page="cart"] #cartItemsList .cart-item-remove {
        align-self: start !important; height: 32px !important; padding: 0 8px !important; font-size: 10px !important;
    }
    body[data-page="cart"] .cart-total,
    body[data-page="cart"] .order-form { border-radius: 14px !important; }
    body[data-page="cart"] .cart-total { padding: 13px 14px !important; }
    body[data-page="cart"] .order-form { padding: 14px !important; }
}

/* 4) ORDER DETAIL — one adaptive equal-height action grid. */
.admin-order-actions-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px !important;
}
.admin-order-actions-grid .admin-order-action-button {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 11px !important;
    border-radius: 10px !important;
    font: inherit !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    cursor: pointer !important;
}
.admin-order-actions-grid .admin-inline-edit-btn,
.admin-order-actions-grid .admin-add-payment-btn {
    border: 1px solid #ded6e2 !important;
    background: #fff !important;
    color: #5c5061 !important;
}
.admin-order-actions-grid .admin-order-delete-detail {
    margin-left: 0 !important;
    border: 1px solid #e9c5c5 !important;
    background: #fff6f6 !important;
    color: #a43d3d !important;
}
@media (max-width: 760px) {
    .admin-order-actions-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 6px !important; }
    .admin-order-actions-grid .admin-order-action-button { min-height: 44px !important; padding-inline: 7px !important; font-size: 11px !important; }
}

/* V45.25.3 home composition was consolidated into the canonical
   V45.29.15 HOME UNIFIED CUSTOMER GRID block at the end of this file. */

/* ============================================================
   V45.25.4 — DESKTOP HEADER NAV + UNIFIED PAGE WIDTH
   Desktop only: customer navigation moves into the header as text links.
   Mobile keeps the existing floating dock unchanged.
   ============================================================ */

/* Hidden by default so the mobile header remains exactly as before. */
.desktop-main-nav {
    display: none;
}

@media (min-width: 900px) {
    /* Header becomes a true three-part row: logo | text navigation | currency. */
    body:not([data-page="admin"]) > .header {
        display: flex !important;
        min-height: 60px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        gap: clamp(20px, 3vw, 44px) !important;
    }

    body:not([data-page="admin"]) > .header .brand-home-zone {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 280px !important;
        min-width: 150px !important;
        margin-right: 0 !important;
    }

    body:not([data-page="admin"]) > .header .company-header-logo {
        max-width: 230px !important;
    }

    .desktop-main-nav {
        min-width: 0;
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: clamp(14px, 2.1vw, 34px);
        height: 40px;
        white-space: nowrap;
    }

    .desktop-main-nav a {
        position: relative;
        min-height: 40px;
        padding: 0 2px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #6d6370;
        font-size: 14px;
        line-height: 1;
        font-weight: 720;
        letter-spacing: -.01em;
        text-decoration: none;
        transition: color 150ms ease;
        -webkit-tap-highlight-color: transparent;
    }

    .desktop-main-nav a::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 2px;
        width: 0;
        height: 2px;
        border-radius: 99px;
        background: #6726AB;
        transform: translateX(-50%);
        transition: width 160ms ease;
    }

    .desktop-main-nav a:hover {
        color: #372c3b;
    }

    body[data-page="catalog"] .desktop-main-nav a[data-nav-page="catalog"],
    body[data-page="cart"] .desktop-main-nav a[data-nav-page="cart"],
    body[data-page="orders"] .desktop-main-nav a[data-nav-page="orders"],
    body[data-page="account"] .desktop-main-nav a[data-nav-page="account"] {
        color: #6726AB;
        font-weight: 820;
    }

    body[data-page="catalog"] .desktop-main-nav a[data-nav-page="catalog"]::after,
    body[data-page="cart"] .desktop-main-nav a[data-nav-page="cart"]::after,
    body[data-page="orders"] .desktop-main-nav a[data-nav-page="orders"]::after,
    body[data-page="account"] .desktop-main-nav a[data-nav-page="account"]::after {
        width: 100%;
    }

    body:not([data-page="admin"]) > .header .right-group {
        flex: 0 0 auto !important;
        margin-left: 0 !important;
    }

    /* The floating customer dock is now a phone/tablet navigation only. */
    body:not([data-page="admin"]) > .bottom-nav,
    body[data-page="home"] > .home-bottom-nav.bottom-nav-4 {
        display: none !important;
    }

    body:not([data-page="admin"]) {
        padding-bottom: 0 !important;
    }
    body[data-page="cart"] {
        padding-bottom: 38px !important;
    }

    /* Orders: keep the proven internal scrolling, but place the application
       below the real site header and align its outer edges with catalog. */
    body[data-page="orders"] .orders-center {
        top: 74px !important;
        right: auto !important;
        bottom: 0 !important;
        left: 50% !important;
        width: min(1376px, calc(100vw - 64px)) !important;
        max-width: 1376px !important;
        height: auto !important;
        margin: 0 !important;
        transform: translateX(-50%) !important;
        border-left: 1px solid rgba(78,59,88,.06) !important;
        border-right: 1px solid rgba(78,59,88,.06) !important;
        background: #f7f4f8 !important;
        box-shadow: none !important;
        z-index: 20 !important;
    }
    body[data-page="orders"] .orders-center-shell,
    body[data-page="orders"] .orders-center-view {
        width: 100% !important;
        max-width: none !important;
    }

    /* Account: same outer width as catalog/cart. Authorized customer content
       can use the full width; login/registration stays comfortably readable. */
    body[data-page="account"] .account-sheet {
        width: min(1376px, calc(100vw - 64px)) !important;
        max-width: 1376px !important;
        min-height: calc(100dvh - 60px) !important;
        margin: 0 auto !important;
        border-left: 1px solid rgba(78,59,88,.06) !important;
        border-right: 1px solid rgba(78,59,88,.06) !important;
    }
    body[data-page="account"] .account-scroll {
        padding: 22px 24px 42px !important;
    }
    body[data-page="account"] #authGuestView {
        width: min(680px, 100%);
        margin: 0 auto;
    }
    body[data-page="account"] #authUserView {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    /* Dedicated pages no longer need the legacy close affordance on desktop:
       the persistent header navigation is the page navigation. */
    body[data-page="orders"] .orders-center-close,
    body[data-page="account"] .account-close-btn {
        display: none !important;
    }
}

@media (min-width: 900px) and (max-width: 1080px) {
    body:not([data-page="admin"]) > .header {
        gap: 16px !important;
    }
    body:not([data-page="admin"]) > .header .brand-home-zone {
        min-width: 132px !important;
        max-width: 190px !important;
    }
    body:not([data-page="admin"]) > .header .company-header-logo {
        max-width: 180px !important;
    }
    .desktop-main-nav {
        gap: 13px;
    }
    .desktop-main-nav a {
        font-size: 13px;
    }
    body:not([data-page="admin"]) > .header .currency-toggle {
        min-width: 170px !important;
    }
}


/* ============================================================
   V45.25.6 — DESKTOP CUSTOMER WORKSPACE POLISH
   Shared width + roomier header navigation + compact Orders/Account.
   Mobile dock and mobile page composition stay unchanged.
   ============================================================ */

@media (min-width: 900px) {
    body:not([data-page="admin"]) {
        --dcr-customer-page-width: min(1376px, calc(100vw - 64px));
    }

    /* Desktop navigation: slightly larger and deliberately more open. */
    .desktop-main-nav {
        gap: clamp(24px, 2.9vw, 48px) !important;
    }
    .desktop-main-nav a {
        font-size: 15.5px !important;
        font-weight: 740 !important;
        letter-spacing: -.012em !important;
        padding-inline: 3px !important;
    }

    /* One exact outer width for the three customer work pages. */
    body[data-page="cart"] .cart-sheet,
    body[data-page="orders"] .orders-center,
    body[data-page="account"] .account-sheet {
        width: var(--dcr-customer-page-width) !important;
        max-width: 1376px !important;
    }

    /* Cart: sticky checkout must stay below the sticky global header. */
    body[data-page="cart"] .cart-checkout-column {
        top: 86px !important;
        z-index: 3 !important;
    }

    /* ---------- Orders workspace ---------- */
    body[data-page="orders"] .orders-center {
        top: 74px !important;
        background: #f5f2f6 !important;
    }
    body[data-page="orders"] .orders-center-view {
        background: transparent !important;
    }
    body[data-page="orders"] .orders-center-header {
        min-height: 0 !important;
        padding: 18px 22px 10px !important;
        border-bottom: 0 !important;
        background: transparent !important;
    }
    body[data-page="orders"] .orders-center-kicker {
        display: none !important;
    }
    body[data-page="orders"] .orders-center-header h2 {
        margin: 0 !important;
        font-size: 27px !important;
        line-height: 1.05 !important;
        letter-spacing: -.035em !important;
    }
    body[data-page="orders"] .orders-center-subtitle {
        margin-top: 5px !important;
        font-size: 11px !important;
    }

    .orders-account-finance {
        margin: 0 22px 10px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
    }
    .orders-account-finance-card {
        min-width: 0;
        min-height: 58px;
        padding: 10px 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        border: 1px solid rgba(78,59,88,.075);
        border-radius: 13px;
        background: rgba(255,255,255,.86);
    }
    .orders-account-finance-card span {
        color: #8a7e8d;
        font-size: 9.5px;
        line-height: 1;
        font-weight: 790;
        text-transform: uppercase;
        letter-spacing: .035em;
    }
    .orders-account-finance-card strong {
        min-width: 0;
        color: #34293a;
        font-size: 15px;
        line-height: 1.05;
        font-weight: 880;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .orders-account-finance-card.is-deposit strong { color: #4d765f; }
    .orders-account-finance-card.is-debt.has-debt {
        border-color: #ead0d0;
        background: #fff9f9;
    }
    .orders-account-finance-card.is-debt.has-debt strong { color: #a34747; }

    body[data-page="orders"] .orders-pro-top {
        padding: 0 22px 10px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(270px, 360px) !important;
        align-items: center !important;
        gap: 10px !important;
    }
    body[data-page="orders"] .orders-stats {
        grid-template-columns: repeat(5, minmax(78px, 1fr)) !important;
        gap: 6px !important;
    }
    body[data-page="orders"] .orders-stat-card {
        min-height: 48px !important;
        padding: 7px 9px !important;
        border-radius: 11px !important;
    }
    body[data-page="orders"] .orders-stat-card span { font-size: 9.5px !important; }
    body[data-page="orders"] .orders-stat-card strong { font-size: 15px !important; }
    body[data-page="orders"] .orders-toolbar { margin: 0 !important; padding: 0 !important; }
    body[data-page="orders"] .orders-search-wrap {
        min-height: 48px !important;
        border-radius: 12px !important;
        background: #fff !important;
    }

    body[data-page="orders"] .orders-list-body {
        padding: 0 22px 20px !important;
    }
    body[data-page="orders"] .orders-center-list {
        display: grid !important;
        gap: 7px !important;
    }
    body[data-page="orders"] .orders-row-card {
        min-height: 70px !important;
        margin: 0 !important;
        padding: 10px 12px 10px 14px !important;
        display: grid !important;
        grid-template-columns: minmax(210px, 1.55fr) minmax(125px,.75fr) minmax(125px,.75fr) minmax(125px,.75fr) 36px !important;
        align-items: center !important;
        gap: 10px !important;
        border: 1px solid rgba(78,59,88,.075) !important;
        border-radius: 14px !important;
        background: #fff !important;
        box-shadow: none !important;
    }
    body[data-page="orders"] .orders-row-card:hover {
        border-color: rgba(103,38,171,.22) !important;
        box-shadow: 0 5px 18px rgba(44,30,51,.045) !important;
        transform: none !important;
    }
    body[data-page="orders"] .orders-row-identity { min-width: 0; }
    body[data-page="orders"] .orders-row-number-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    body[data-page="orders"] .orders-row-number { font-size: 15px !important; }
    body[data-page="orders"] .orders-row-date { margin-top: 4px !important; font-size: 10px !important; }
    body[data-page="orders"] .orders-row-metric { min-width: 0; }
    body[data-page="orders"] .orders-row-metric span {
        display: block;
        margin-bottom: 4px;
        color: #9b919e;
        font-size: 9px;
        font-weight: 760;
        text-transform: uppercase;
        letter-spacing: .03em;
    }
    body[data-page="orders"] .orders-row-metric strong {
        display: block;
        min-width: 0;
        color: #352b3a;
        font-size: 13px;
        line-height: 1.1;
        font-weight: 850;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body[data-page="orders"] .orders-row-debt.has-debt strong { color: #a34848; }
    body[data-page="orders"] .orders-row-debt.is-paid strong { color: #4d765f; }
    body[data-page="orders"] .orders-row-chevron-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 10px !important;
    }
    body[data-page="orders"] .orders-pagination {
        margin-top: 10px !important;
        padding: 8px 0 0 !important;
    }

    /* ---------- Account workspace ---------- */
    body[data-page="account"] .account-sheet-header {
        min-height: 0 !important;
        padding: 18px 24px 8px !important;
        border-bottom: 0 !important;
        background: transparent !important;
    }
    body[data-page="account"] .account-kicker { display: none !important; }
    body[data-page="account"] .account-sheet-header h3 {
        font-size: 27px !important;
        line-height: 1.05 !important;
        letter-spacing: -.035em !important;
    }
    body[data-page="account"] .account-scroll {
        padding: 6px 24px 38px !important;
    }
    body[data-page="account"] #authUserView {
        display: block !important;
    }
    body[data-page="account"] #authUserView[hidden] { display: none !important; }

    body[data-page="account"] .account-overview-panel {
        display: grid;
        grid-template-columns: minmax(260px,.72fr) minmax(560px,1.28fr);
        gap: 10px;
        margin-bottom: 10px;
    }
    body[data-page="account"] .account-user-card-dealer {
        min-height: 88px !important;
        margin: 0 !important;
        padding: 14px 16px !important;
        align-content: center !important;
        border-radius: 15px !important;
    }
    body[data-page="account"] .dealer-summary-grid {
        margin: 0 !important;
        grid-template-columns: repeat(3, minmax(0,1fr)) !important;
        gap: 7px !important;
    }
    body[data-page="account"] .dealer-summary-card {
        min-height: 88px !important;
        padding: 11px 12px !important;
        border-radius: 15px !important;
    }
    body[data-page="account"] .dealer-summary-card strong { font-size: 18px !important; }
    body[data-page="account"] .dealer-summary-card small { font-size: 10px !important; }

    body[data-page="account"] .discount-info-popover {
        margin: 0 0 10px !important;
    }

    body[data-page="account"] .account-desktop-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr);
        gap: 10px;
        align-items: start;
    }
    body[data-page="account"] .account-main-sections,
    body[data-page="account"] .account-side-sections {
        min-width: 0;
        display: grid;
        gap: 10px;
        align-content: start;
    }
    body[data-page="account"] .account-section {
        margin: 0 !important;
        border: 1px solid rgba(78,59,88,.075) !important;
        border-radius: 15px !important;
        background: #fff !important;
        box-shadow: none !important;
    }
    body[data-page="account"] .account-section-toggle {
        min-height: 64px !important;
        padding: 11px 14px !important;
    }
    body[data-page="account"] .account-section-title { font-size: 14px !important; }
    body[data-page="account"] .account-section-subtitle {
        max-width: 560px;
        margin-top: 3px !important;
        font-size: 10.5px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body[data-page="account"] .account-collapsible-body {
        border-top: 1px solid rgba(78,59,88,.065);
    }
    body[data-page="account"] .account-collapsible-body .account-profile-form {
        padding: 14px !important;
    }
    body[data-page="account"] #profileForm.account-profile-form {
        grid-template-columns: repeat(3, minmax(0,1fr)) !important;
        gap: 10px !important;
    }
    body[data-page="account"] #profileForm .account-profile-wide { grid-column: 1 / -1 !important; }
    body[data-page="account"] .account-profile-form .form-group { margin: 0 !important; }
    body[data-page="account"] .account-profile-form label { font-size: 10px !important; }
    body[data-page="account"] .account-profile-form input,
    body[data-page="account"] .account-profile-form textarea {
        min-height: 42px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
    }
    body[data-page="account"] .account-profile-form textarea { min-height: 86px !important; }
    body[data-page="account"] .account-form-actions {
        display: flex !important;
        justify-content: flex-end !important;
        gap: 8px !important;
    }
    body[data-page="account"] .account-form-actions button {
        width: auto !important;
        min-width: 150px !important;
        min-height: 40px !important;
    }
    body[data-page="account"] .delivery-address-grid {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
        gap: 10px !important;
    }
    body[data-page="account"] .delivery-info {
        padding: 11px 12px !important;
        border-radius: 11px !important;
    }

    body[data-page="account"] .account-security-section,
    body[data-page="account"] .account-admin-access {
        padding: 14px !important;
    }
    body[data-page="account"] .account-security-section .account-section-head {
        margin-bottom: 10px !important;
    }
    body[data-page="account"] .account-security-section > .account-secondary-btn,
    body[data-page="account"] .admin-access-btn {
        width: 100% !important;
        min-height: 40px !important;
    }
    body[data-page="account"] .account-change-password-form {
        margin-top: 10px !important;
        gap: 8px !important;
    }
    body[data-page="account"] .account-logout-btn {
        width: 100% !important;
        margin: 0 !important;
        min-height: 42px !important;
    }
    body[data-page="account"] .account-legal-links {
        margin: -2px 0 0 !important;
        padding: 4px 2px 0 !important;
        justify-content: center !important;
        font-size: 9.5px !important;
    }
}

@media (min-width: 900px) and (max-width: 1080px) {
    .desktop-main-nav { gap: 18px !important; }
    .desktop-main-nav a { font-size: 14.5px !important; }
    body[data-page="account"] .account-overview-panel {
        grid-template-columns: minmax(230px,.7fr) minmax(0,1.3fr);
    }
    body[data-page="account"] .account-desktop-layout {
        grid-template-columns: minmax(0,1.35fr) minmax(270px,.65fr);
    }
    body[data-page="account"] #profileForm.account-profile-form {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    }
    body[data-page="orders"] .orders-row-card {
        grid-template-columns: minmax(180px,1.3fr) repeat(3,minmax(105px,.75fr)) 34px !important;
        gap: 8px !important;
    }
}

@media (max-width: 899px) {
    /* Finance summary is useful on mobile too, but stays compact and scroll-free. */
    .orders-account-finance {
        margin: 0 12px 10px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 6px;
    }
    .orders-account-finance-card {
        min-height: 52px;
        padding: 9px 10px;
        border: 1px solid rgba(78,59,88,.075);
        border-radius: 12px;
        background: #fff;
    }
    .orders-account-finance-card span {
        display: block;
        color: #938897;
        font-size: 8.5px;
        font-weight: 780;
        text-transform: uppercase;
    }
    .orders-account-finance-card strong {
        display: block;
        margin-top: 4px;
        color: #372c3b;
        font-size: 13px;
        font-weight: 860;
    }
    .orders-account-finance-card.is-deposit strong { color: #4d765f; }
    .orders-account-finance-card.is-debt.has-debt strong { color: #a34747; }

    /* New order-row markup maps back to the familiar compact mobile card. */
    .orders-row-card {
        display: grid !important;
        grid-template-columns: minmax(0,1fr) auto !important;
        grid-template-areas:
            "identity chevron"
            "total chevron"
            "paid chevron"
            "debt chevron" !important;
        gap: 6px 10px !important;
    }
    .orders-row-identity { grid-area: identity; min-width: 0; }
    .orders-row-total { grid-area: total; }
    .orders-row-paid { grid-area: paid; }
    .orders-row-debt { grid-area: debt; }
    .orders-row-chevron-btn { grid-area: chevron; align-self: center; }
    .orders-row-metric {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
        min-width: 0;
    }
    .orders-row-metric span { color:#998e9c; font-size:9.5px; font-weight:730; }
    .orders-row-metric strong { color:#382e3c; font-size:11px; font-weight:840; text-align:right; }
    .orders-row-debt.has-debt strong { color:#a34848; }
    .orders-row-debt.is-paid strong { color:#4d765f; }

    /* Structural wrappers collapse to the original natural mobile stack. */
    body[data-page="account"] .account-overview-panel,
    body[data-page="account"] .account-desktop-layout,
    body[data-page="account"] .account-main-sections,
    body[data-page="account"] .account-side-sections {
        display: block !important;
    }
}


/* V45.25.6 desktop order-detail density + mobile row padding QA. */
@media (min-width: 900px) {
    body[data-page="orders"] .order-detail-scroll {
        padding: 0 22px 24px !important;
    }
    body[data-page="orders"] .order-detail-hero {
        min-height: 72px !important;
        margin-bottom: 8px !important;
        padding: 12px 14px !important;
        border-radius: 14px !important;
    }
    body[data-page="orders"] .order-detail-kicker { font-size: 8.5px !important; }
    body[data-page="orders"] .order-detail-hero h2 {
        margin-top: 2px !important;
        font-size: 24px !important;
    }
    body[data-page="orders"] .order-detail-date { margin-top: 4px !important; font-size: 9.5px !important; }
    body[data-page="orders"] .order-detail-card {
        margin-bottom: 8px !important;
        padding: 14px !important;
        border-radius: 14px !important;
        box-shadow: none !important;
    }
    body[data-page="orders"] .order-detail-card-title,
    body[data-page="orders"] .order-finance-card .order-detail-card-title {
        margin-bottom: 10px !important;
        font-size: 13px !important;
    }
    body[data-page="orders"] .order-finance-card { padding: 14px !important; }
    body[data-page="orders"] .order-finance-grid { gap: 7px !important; }
    body[data-page="orders"] .order-finance-grid > div {
        min-height: 68px !important;
        padding: 10px 12px !important;
        border-radius: 11px !important;
    }
    body[data-page="orders"] .order-finance-grid > div span { font-size: 9.5px !important; }
    body[data-page="orders"] .order-finance-grid > div strong,
    body[data-page="orders"] .order-finance-grid > div.has-debt strong {
        margin-top: 5px !important;
        font-size: 16px !important;
    }
    body[data-page="orders"] .order-detail-item { min-height: 0 !important; padding-block: 9px !important; }
    body[data-page="orders"] .order-detail-actions {
        margin-top: 8px !important;
        gap: 7px !important;
    }
    body[data-page="orders"] .order-detail-actions button { min-height: 42px !important; }
}

@media (max-width: 899px) {
    .orders-row-card {
        padding: 12px !important;
    }
}

/* ============================================================
   V45.25.6 — CUSTOMER UX CONSISTENCY + ADMIN ORDER CREATION
   Layout/interaction pass requested after V45.25.5.
   ============================================================ */

/* Catalog root starts immediately with the category content. Breadcrumbs remain
   on section.html and deeper catalog contexts. */
body[data-page="catalog"][data-catalog-level="group"] > .breadcrumb {
    display: none !important;
}
body[data-page="catalog"][data-catalog-level="group"] > .container {
    padding-top: 12px !important;
}
body[data-page="catalog"][data-catalog-level="group"] > .site-footer {
    margin-top: 14px !important;
    color: #8f8593 !important;
    font-size: 10.5px !important;
}
body[data-page="catalog"][data-catalog-level="group"] > .site-footer a {
    color: #786d7c !important;
    font-size: inherit !important;
}

/* One soft press language. V45.25.6 no longer adds .is-pressed from JS;
   :active alone provides a shallow brightness change without geometry jumps. */
:where(button, a[href], summary, [role="button"]) {
    -webkit-tap-highlight-color: transparent !important;
}
:where(button:not(:disabled), a[href], summary, [role="button"]:not([aria-disabled="true"])):active {
    scale: 1 !important;
    filter: brightness(.985) !important;
    opacity: .92 !important;
    transition: filter 70ms ease, opacity 70ms ease !important;
}
:where(
    .account-primary-btn,
    .account-secondary-btn,
    .account-edit-btn,
    .account-logout-btn,
    .auth-tab,
    .password-toggle,
    .dealer-summary-card,
    .account-section-toggle,
    .admin-main-tab,
    .admin-back-btn,
    .admin-inline-edit-btn,
    .admin-primary-save-btn,
    .admin-plain-btn,
    .admin-client-command-primary,
    .admin-client-command-secondary,
    .orders-filter-menu > summary,
    .orders-filter-popover button
):active {
    transform: none !important;
    scale: 1 !important;
    filter: brightness(.985) !important;
    opacity: .92 !important;
}

/* Registration phone helper. */
.auth-phone-hint {
    margin: 5px 2px 0;
    color: #918695;
    font-size: 10px;
    line-height: 1.25;
}

/* Discount conditions are a real centered modal, not a side popover. */
.discount-info-popover[hidden] { display: none !important; }
.discount-info-popover {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2600 !important;
    margin: 0 !important;
    padding: 18px !important;
    display: grid !important;
    place-items: center !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.discount-info-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(29, 20, 34, .34);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}
.discount-info-modal-card {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(480px, calc(100vw - 32px));
    padding: 22px;
    border: 1px solid rgba(78,59,88,.10);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(31,20,37,.20);
}
.discount-info-modal-card .discount-info-popover-title {
    margin: 0 0 10px !important;
    font-size: 20px !important;
    line-height: 1.15 !important;
}
.discount-info-modal-card .discount-info-popover-text {
    color: #716676 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}
.discount-info-modal-card .discount-info-close {
    width: 100% !important;
    min-height: 44px !important;
    margin-top: 18px !important;
    border-radius: 12px !important;
}
body.discount-info-open { overflow: hidden !important; }

@media (min-width: 900px) {
    /* Header navigation: more air between items, larger hit fields than the text itself. */
    .desktop-main-nav {
        gap: clamp(28px, 3.4vw, 58px) !important;
    }
    .desktop-main-nav a {
        min-height: 46px !important;
        padding-inline: 12px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }
    .desktop-main-nav a:hover {
        background: rgba(103,38,171,.035) !important;
    }
    .desktop-main-nav a::after {
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        transform: scaleX(0) !important;
        transform-origin: center !important;
    }
    body[data-page="catalog"] .desktop-main-nav a[data-nav-page="catalog"]::after,
    body[data-page="cart"] .desktop-main-nav a[data-nav-page="cart"]::after,
    body[data-page="orders"] .desktop-main-nav a[data-nav-page="orders"]::after,
    body[data-page="account"] .desktop-main-nav a[data-nav-page="account"]::after {
        width: auto !important;
        transform: scaleX(1) !important;
    }

    /* Orders and Account use the exact same outer workspace edges as Cart. */
    body[data-page="orders"],
    body[data-page="account"] {
        background: #f7f4f8 !important;
    }
    body[data-page="orders"] .orders-center,
    body[data-page="account"] .account-sheet {
        width: var(--dcr-customer-page-width) !important;
        max-width: 1376px !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* ---------- Orders ---------- */
    body[data-page="orders"] .orders-center {
        top: 74px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    body[data-page="orders"] .orders-center-shell {
        padding: 16px 0 28px !important;
        background: transparent !important;
    }
    body[data-page="orders"] .orders-center-header {
        margin: 0 0 12px !important;
        padding: 8px 0 12px !important;
        border-bottom: 1px solid rgba(78,59,88,.08) !important;
        background: transparent !important;
    }
    body[data-page="orders"] .orders-account-finance {
        margin: 0 0 10px !important;
    }
    body[data-page="orders"] .orders-account-finance-card,
    body[data-page="orders"] .orders-row-card,
    body[data-page="orders"] .order-detail-card,
    body[data-page="orders"] .order-detail-hero {
        border: 1px solid rgba(78,59,88,.09) !important;
        background: #fff !important;
        box-shadow: 0 6px 20px rgba(42,28,49,.035) !important;
    }
    body[data-page="orders"] .orders-pro-top {
        width: 100% !important;
        padding: 0 0 10px !important;
        display: block !important;
    }
    body[data-page="orders"] .orders-toolbar {
        width: 100% !important;
    }
    body[data-page="orders"] .orders-search-wrap {
        width: 100% !important;
        min-height: 50px !important;
        padding-right: 5px !important;
        border: 1px solid rgba(78,59,88,.09) !important;
        border-radius: 14px !important;
        background: #fff !important;
        box-shadow: 0 5px 16px rgba(42,28,49,.03) !important;
    }
    body[data-page="orders"] .orders-list-body,
    body[data-page="orders"] .order-detail-scroll {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* ---------- Account ---------- */
    body[data-page="account"] .account-sheet {
        top: 74px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    body[data-page="account"] .account-sheet-header {
        margin: 16px 0 0 !important;
        padding: 8px 0 12px !important;
        border-bottom: 1px solid rgba(78,59,88,.08) !important;
        background: transparent !important;
    }
    body[data-page="account"] .account-scroll {
        padding: 14px 0 38px !important;
    }
    body[data-page="account"] .account-overview-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    body[data-page="account"] .account-user-card-dealer,
    body[data-page="account"] .dealer-summary-card,
    body[data-page="account"] .account-section {
        border: 1px solid rgba(78,59,88,.09) !important;
        background: #fff !important;
        box-shadow: 0 6px 20px rgba(42,28,49,.035) !important;
    }
    body[data-page="account"] .account-desktop-layout {
        grid-template-columns: minmax(0, 1.48fr) minmax(330px, .52fr) !important;
        gap: 10px !important;
        align-items: stretch !important;
    }
    body[data-page="account"] .account-main-sections,
    body[data-page="account"] .account-side-sections {
        height: 100% !important;
    }
    body[data-page="account"] .account-main-sections {
        display: grid !important;
        grid-template-rows: repeat(2, minmax(150px, 1fr)) !important;
        align-content: stretch !important;
    }
    body[data-page="account"] .account-main-sections > .account-section {
        min-height: 150px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    body[data-page="account"] .account-main-sections > .account-section > .account-section-toggle {
        flex: 1 1 auto !important;
        min-height: 96px !important;
    }
    body[data-page="account"] .account-main-sections > .account-section:has(.account-collapsible-body:not([hidden])) > .account-section-toggle {
        flex: 0 0 auto !important;
        min-height: 64px !important;
    }
    body[data-page="account"] .account-side-sections {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    body[data-page="account"] .account-quick-actions {
        padding: 14px !important;
    }
    body[data-page="account"] .account-quick-actions .account-section-head {
        margin-bottom: 10px !important;
    }
    .account-quick-actions-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }
    .account-quick-actions-grid a {
        min-height: 40px;
        padding: 0 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(103,38,171,.13);
        border-radius: 10px;
        background: #faf7fc;
        color: #5e397d;
        font-size: 11px;
        font-weight: 800;
        text-decoration: none;
    }
    body[data-page="account"] .account-logout-btn {
        margin-top: auto !important;
    }
}

/* Orders search-integrated filter. */
.orders-filter-menu {
    position: relative;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-left: 4px;
}
.orders-filter-menu > summary {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    list-style: none;
    border-radius: 10px;
    background: #f5f1f7;
    color: #665b6b;
    cursor: pointer;
}
.orders-filter-menu > summary::-webkit-details-marker { display: none; }
.orders-filter-menu > summary::marker { content: ''; }
.orders-filter-menu > summary svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}
.orders-filter-menu[open] > summary {
    background: #302538;
    color: #fff;
}
.orders-filter-popover {
    position: absolute;
    z-index: 90;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    padding: 9px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    border: 1px solid rgba(78,59,88,.10);
    border-radius: 14px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 16px 44px rgba(38,24,45,.15);
}
.orders-filter-title {
    padding: 3px 5px 5px;
    color: #908594;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.orders-filter-popover button {
    min-height: 38px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-radius: 10px;
    background: #f7f4f8;
    color: #5f5564;
    font: inherit;
    font-size: 11px;
    font-weight: 760;
    cursor: pointer;
}
.orders-filter-popover button strong {
    min-width: 24px;
    text-align: right;
    font-size: 11px;
    font-weight: 880;
}
.orders-filter-popover button.active {
    background: #302538;
    color: #fff;
}

/* Order detail: compact status badge + actions directly below the status progress. */
.order-detail-status {
    min-width: 0 !important;
    padding: 6px 9px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    line-height: 1 !important;
}
.order-status-card .order-progress {
    margin-bottom: 12px !important;
}
.order-detail-actions-top {
    margin: 10px 0 0 !important;
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
}
.order-detail-actions-top button {
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
}
.order-status-card .order-email-send-status {
    margin-top: 8px !important;
}

/* ---------- Admin: client detail navigation + settlement history ---------- */
.admin-client-command-bar {
    grid-column: 1 / -1;
    padding: 12px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(78,59,88,.08);
    border-radius: 14px;
    background: #fff;
}
.admin-client-command-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.admin-client-command-copy strong {
    overflow: hidden;
    color: #352a39;
    font-size: 15px;
    font-weight: 860;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-client-command-copy span {
    overflow: hidden;
    color: #948998;
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-client-command-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 7px;
}
.admin-client-command-actions button {
    min-height: 40px;
    padding: 0 13px;
    border-radius: 10px;
    font: inherit;
    font-size: 11px;
    font-weight: 820;
    cursor: pointer;
}
.admin-client-command-secondary {
    border: 1px solid rgba(78,59,88,.10);
    background: #f7f4f8;
    color: #625668;
}
.admin-client-command-primary {
    border: 1px solid #6726AB;
    background: #6726AB;
    color: #fff;
}
.admin-client-history-summary > small,
.admin-client-history-summary .admin-client-data-chevron {
    display: none !important;
}
.admin-client-history-summary {
    min-height: 48px !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center !important;
}
.admin-client-history-summary::after {
    margin-left: auto;
}
.admin-client-history-toolbar {
    padding: 9px 12px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(78,59,88,.06);
    background: #fcfbfd;
}
.admin-client-history-toolbar button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(103,38,171,.15);
    border-radius: 9px;
    background: #f8f3fb;
    color: #603889;
    font: inherit;
    font-size: 10.5px;
    font-weight: 820;
    cursor: pointer;
}
.admin-client-history-row,
.admin-client-history-row[data-history-order] {
    cursor: default !important;
}

/* ---------- Admin: create order for a client ---------- */
.admin-client-order-card {
    width: min(1180px, calc(100vw - 48px)) !important;
    max-width: 1180px !important;
    max-height: calc(100dvh - 48px) !important;
    display: grid !important;
    grid-template-rows: auto auto minmax(0,1fr) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
}
.admin-client-order-head {
    padding: 15px 18px 12px !important;
}
.admin-client-order-tools {
    padding: 10px 16px !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    gap: 8px !important;
    border-top: 1px solid rgba(78,59,88,.05);
    border-bottom: 1px solid rgba(78,59,88,.07);
    background: #fbfafc !important;
}
.admin-client-order-tools .admin-search-wrap {
    min-height: 44px !important;
    background: #fff !important;
}
.admin-client-order-currency {
    min-width: 154px !important;
    align-self: center;
}
.admin-client-order-body {
    min-height: 0 !important;
    grid-template-columns: minmax(0,1.55fr) minmax(330px,.62fr) !important;
    background: #f8f6f9;
}
.admin-client-order-products {
    padding: 12px 12px 18px 16px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    align-content: start;
    gap: 7px !important;
}
.admin-client-order-product {
    min-height: 72px !important;
    margin: 0 !important;
    padding: 8px 9px !important;
    grid-template-columns: 48px minmax(0,1fr) auto !important;
    gap: 8px !important;
    border: 1px solid rgba(78,59,88,.08) !important;
    border-radius: 12px !important;
    background: #fff !important;
}
.admin-client-order-product img {
    width: 44px !important;
    height: 56px !important;
    aspect-ratio: 3 / 4;
}
.admin-client-order-product > span strong {
    font-size: 11.5px !important;
    line-height: 1.22 !important;
}
.admin-client-order-product > span small {
    font-size: 9.5px !important;
}
.admin-client-order-qty {
    grid-template-columns: 30px 30px 30px !important;
    padding: 2px !important;
}
.admin-client-order-qty button {
    width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
}
.admin-client-order-summary {
    padding: 14px !important;
    border-left: 1px solid rgba(78,59,88,.08) !important;
    background: #fff !important;
}
.admin-client-order-summary-head {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.admin-client-order-summary-head > span {
    color: #8e8292;
    font-size: 9.5px;
    font-weight: 760;
}
.admin-client-order-selected {
    max-height: 260px;
    overflow: auto;
    overscroll-behavior: contain;
}
.admin-client-order-selected-row {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto 26px !important;
    align-items: center !important;
    gap: 8px !important;
}
.admin-client-order-selected-row > button {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 8px;
    background: #f8eeee;
    color: #a34b4b;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}
.admin-client-order-comment textarea {
    min-height: 70px !important;
    resize: vertical !important;
}
.admin-client-order-total {
    margin-bottom: 10px !important;
}
.admin-client-order-summary > .admin-primary-save-btn {
    width: 100% !important;
    min-height: 44px !important;
}

@media (max-width: 899px) {
    body[data-page="catalog"][data-catalog-level="group"] > .container {
        padding-top: 6px !important;
    }
    body[data-page="catalog"][data-catalog-level="group"] > .site-footer {
        margin: 10px auto calc(70px + env(safe-area-inset-bottom,0px)) !important;
        font-size: 9.5px !important;
    }

    /* Orders: search is one full-width row with the filter inside it. */
    body[data-page="orders"] .orders-pro-top {
        padding: 0 12px 8px !important;
        display: block !important;
    }
    body[data-page="orders"] .orders-toolbar,
    body[data-page="orders"] .orders-search-wrap {
        width: 100% !important;
    }
    body[data-page="orders"] .orders-search-wrap {
        min-height: 46px !important;
        padding-right: 4px !important;
    }
    .orders-filter-menu {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }
    .orders-filter-menu > summary {
        width: 38px;
        height: 38px;
    }
    .orders-filter-popover {
        position: fixed !important;
        top: auto !important;
        right: 12px !important;
        bottom: calc(84px + env(safe-area-inset-bottom,0px)) !important;
        left: 12px !important;
        width: auto !important;
        max-width: none !important;
        border-radius: 16px !important;
    }

    /* Three order actions remain in a single compact row on phones. */
    .order-detail-actions-top {
        grid-auto-flow: column !important;
        grid-auto-columns: minmax(0,1fr) !important;
        gap: 5px !important;
    }
    .order-detail-actions-top button {
        min-height: 38px !important;
        padding: 0 6px !important;
        border-radius: 9px !important;
        font-size: 9.5px !important;
        line-height: 1.05 !important;
        white-space: normal !important;
    }
    .order-detail-status {
        padding: 5px 8px !important;
        font-size: 9px !important;
    }

    /* Payment block: two compact columns instead of four oversized cards. */
    body[data-page="orders"] .order-finance-card {
        padding: 11px !important;
    }
    body[data-page="orders"] .order-finance-card .order-detail-card-title {
        margin-bottom: 7px !important;
    }
    body[data-page="orders"] .order-finance-grid {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
        gap: 5px !important;
    }
    body[data-page="orders"] .order-finance-grid > div {
        min-height: 50px !important;
        padding: 7px 8px !important;
        border-radius: 9px !important;
    }
    body[data-page="orders"] .order-finance-grid > div span {
        font-size: 8px !important;
    }
    body[data-page="orders"] .order-finance-grid > div strong,
    body[data-page="orders"] .order-finance-grid > div.has-debt strong {
        margin-top: 3px !important;
        font-size: 12px !important;
    }
    body[data-page="orders"] .order-payment-history {
        margin-top: 7px !important;
    }
    body[data-page="orders"] .order-payment-row {
        padding: 7px 8px !important;
    }

    /* Account quick actions collapse naturally into the existing mobile stack. */
    .account-quick-actions {
        margin-top: 10px !important;
        padding: 13px !important;
    }
    .account-quick-actions-grid {
        grid-template-columns: 1fr 1fr;
    }

    .discount-info-modal-card {
        padding: 18px !important;
        border-radius: 17px !important;
    }

    /* Admin client detail: creation is immediately visible at the top. */
    .admin-client-command-bar {
        padding: 10px !important;
        display: grid !important;
        grid-template-columns: minmax(0,1fr) !important;
    }
    .admin-client-command-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }
    .admin-client-command-actions button {
        min-height: 42px !important;
        padding-inline: 8px !important;
        font-size: 10px !important;
    }
    .admin-client-history-toolbar {
        justify-content: stretch !important;
    }
    .admin-client-history-toolbar button {
        width: 100% !important;
        min-height: 40px !important;
    }

    /* Admin create-order flow: full-screen product picker with an always-visible
       compact checkout area at the bottom. */
    .admin-client-order-card {
        width: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        grid-template-rows: auto auto minmax(0,1fr) !important;
    }
    .admin-client-order-head {
        padding: 11px 12px 9px !important;
    }
    .admin-client-order-head h3 {
        font-size: 19px !important;
    }
    .admin-client-order-tools {
        padding: 7px 10px !important;
        grid-template-columns: minmax(0,1fr) 116px !important;
        gap: 6px !important;
    }
    .admin-client-order-tools .admin-search-wrap {
        min-height: 40px !important;
    }
    .admin-client-order-currency {
        min-width: 0 !important;
    }
    .admin-client-order-currency button {
        min-height: 34px !important;
        padding: 0 7px !important;
        font-size: 10px !important;
    }
    .admin-client-order-body {
        grid-template-columns: 1fr !important;
        grid-template-rows: minmax(0,1fr) auto !important;
        overflow: hidden !important;
    }
    .admin-client-order-products {
        min-height: 0 !important;
        overflow: auto !important;
        grid-template-columns: 1fr !important;
        padding: 8px 9px 10px !important;
        gap: 6px !important;
    }
    .admin-client-order-product {
        min-height: 62px !important;
        grid-template-columns: 42px minmax(0,1fr) auto !important;
        padding: 6px 7px !important;
    }
    .admin-client-order-product img {
        width: 38px !important;
        height: 50px !important;
    }
    .admin-client-order-summary {
        max-height: 31dvh !important;
        padding: 9px 10px calc(10px + env(safe-area-inset-bottom,0px)) !important;
        overflow: auto !important;
        border-top: 1px solid rgba(78,59,88,.09) !important;
        border-left: 0 !important;
        box-shadow: 0 -10px 28px rgba(39,25,46,.08);
    }
    .admin-client-order-selected {
        max-height: 74px !important;
        margin: 6px 0 7px !important;
    }
    .admin-client-order-selected-row {
        padding: 6px 0 !important;
    }
    .admin-client-order-comment textarea {
        min-height: 46px !important;
        max-height: 68px !important;
    }
    .admin-client-order-total {
        margin: 7px 0 !important;
        padding-top: 7px !important;
    }
    .admin-client-order-total strong {
        font-size: 17px !important;
    }
    .admin-client-order-summary > .admin-primary-save-btn {
        min-height: 42px !important;
    }
}

@media (min-width: 900px) and (max-width: 1120px) {
    .desktop-main-nav {
        gap: 18px !important;
    }
    .desktop-main-nav a {
        padding-inline: 8px !important;
        font-size: 14.5px !important;
    }
    .admin-client-order-products {
        grid-template-columns: 1fr !important;
    }
}

/* V45.25.6 QA correction: account.html is a real document page since V45.25.2.
   Keep it in normal flow on desktop as well; applying top/left/transform to the
   relative page layer shifted the whole workspace and also changed the containing
   block of the fixed discount modal. */
@media (min-width: 900px) {
    body[data-page="account"] .account-sheet {
        position: relative !important;
        inset: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: var(--dcr-customer-page-width) !important;
        max-width: 1376px !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 16px auto 0 !important;
        transform: none !important;
        overflow: visible !important;
    }
    body[data-page="account"] .account-sheet-header {
        margin-top: 0 !important;
    }
}

/* V45.25.6 QA fix: the discount dialog must own the full viewport;
   legacy popover widths must never constrain the fixed overlay. */
.discount-info-popover:not([hidden]) {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100dvh !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    transform: none !important;
}

/* V45.25.6 mobile QA: keep the final create-order action fully visible. */
@media (max-width: 899px) {
    .admin-client-order-summary {
        max-height: 36dvh !important;
        padding-top: 8px !important;
    }
    .admin-client-order-selected {
        max-height: 66px !important;
        margin: 4px 0 5px !important;
    }
    .admin-client-order-comment textarea {
        min-height: 42px !important;
        max-height: 54px !important;
    }
    .admin-client-order-total {
        margin: 5px 0 !important;
        padding-top: 5px !important;
    }
}

/* V45.25.6 final interaction / spacing polish. */
body[data-page="catalog"][data-catalog-level="group"] > .site-footer {
    font-size: 11.5px !important;
}

/* Neutralize legacy scale-down rules so taps feel the same across customer pages and admin. */
body[data-page="account"] .account-sheet button:active,
body[data-page="orders"] .orders-center button:active,
body[data-page="cart"] .cart-sheet button:active,
body[data-page="admin"] .admin-panel button:active,
.view-header button.meta-chip:active,
.cart-close-btn:active {
    transform: none !important;
    scale: 1 !important;
    filter: brightness(.985) !important;
    opacity: .92 !important;
}
.product-card:active,
.category-card:active,
.home-category-card:active,
.home-mosaic-card:active,
.home-gallery-card:active {
    scale: 1 !important;
    filter: brightness(.985) !important;
    opacity: .94 !important;
}
body:not([data-page="admin"]) > .bottom-nav .nav-item:active,
body[data-page="home"] .home-bottom-nav .nav-item:active {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
    scale: 1 !important;
    filter: brightness(.985) !important;
    opacity: .92 !important;
    transition: filter 70ms ease, opacity 70ms ease, color 140ms ease !important;
}

@media (min-width: 900px) {
    .desktop-main-nav {
        gap: clamp(34px, 4vw, 68px) !important;
    }
    .desktop-main-nav a {
        min-height: 48px !important;
        padding-inline: 16px !important;
    }
    .desktop-main-nav a::after {
        left: 16px !important;
        right: 16px !important;
    }
}

@media (max-width: 899px) {
    body[data-page="catalog"][data-catalog-level="group"] > .site-footer {
        margin-bottom: calc(58px + env(safe-area-inset-bottom,0px)) !important;
        font-size: 10.5px !important;
    }
}

@media (min-width: 900px) and (max-width: 1120px) {
    .desktop-main-nav {
        gap: 20px !important;
    }
    .desktop-main-nav a {
        padding-inline: 10px !important;
        font-size: 14.5px !important;
    }
}


/* ============================================================
   V45.25.7 — ACCOUNT / ADMIN CLIENT / ADMIN ORDER ROW FIXES
   Targeted correction pass after V45.25.6.
   ============================================================ */

/* Removed from the document in V45.25.7; keep legacy rules inert if an old
   cached fragment is ever injected. */
.account-quick-actions { display:none !important; }

/* Settlement ledger has only real business events: top-up, payment, order. */
.admin-client-history-row.order .admin-client-history-dot { background:#7d638f; }
.admin-client-history-row.order > b { color:#7d4e64; }

/* Delivery data is one visually independent, aligned subsection inside
   client information. */
.admin-client-delivery-block {
    grid-column: 1 / -1 !important;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(78,59,88,.07);
    border-radius: 12px;
    background: #faf9fb;
}
.admin-client-delivery-block .admin-client-form-subtitle {
    margin: 0 0 10px !important;
    color: #5e5263 !important;
    font-size: 12px !important;
    font-weight: 820 !important;
}
.admin-client-delivery-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px 12px;
}
.admin-client-delivery-grid label { min-width:0; }

@media (min-width: 900px) {
    /* Account returns to the compact two-column workspace: natural-height
       My data / Delivery cards on the left, admin/security controls on the right. */
    body[data-page="account"] .account-overview-panel {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        align-items: stretch !important;
    }
    body[data-page="account"] .account-user-card-dealer,
    body[data-page="account"] .dealer-summary-grid {
        min-width:0 !important;
    }
    body[data-page="account"] .account-desktop-layout {
        grid-template-columns: minmax(0,1.55fr) minmax(310px,.65fr) !important;
        gap: 10px !important;
        align-items:start !important;
    }
    body[data-page="account"] .account-main-sections,
    body[data-page="account"] .account-side-sections {
        height:auto !important;
        min-height:0 !important;
        align-content:start !important;
    }
    body[data-page="account"] .account-main-sections {
        display:grid !important;
        grid-template-rows:none !important;
        grid-auto-rows:auto !important;
        gap:10px !important;
    }
    body[data-page="account"] .account-main-sections > .account-section {
        min-height:0 !important;
        height:auto !important;
        display:block !important;
    }
    body[data-page="account"] .account-main-sections > .account-section > .account-section-toggle,
    body[data-page="account"] .account-main-sections > .account-section:has(.account-collapsible-body:not([hidden])) > .account-section-toggle {
        min-height:68px !important;
        height:auto !important;
        flex:none !important;
    }
    body[data-page="account"] .account-side-sections {
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:10px !important;
    }
    /* Admin entry is first and deliberately visible high in the desktop column. */
    body[data-page="account"] .account-admin-access:not([hidden]) {
        display:grid !important;
        grid-template-columns:minmax(0,1fr) auto !important;
        align-items:center !important;
        gap:12px !important;
        padding:14px 15px !important;
    }
    body[data-page="account"] .account-admin-access .admin-access-btn {
        width:auto !important;
        min-width:142px !important;
        min-height:42px !important;
        padding-inline:14px !important;
        white-space:nowrap !important;
    }
    body[data-page="account"] .account-security-section {
        padding:15px !important;
    }
    body[data-page="account"] .account-logout-btn {
        min-height:44px !important;
    }
}

@media (max-width: 760px) {
    /* Admin order list: first line is № + date, legal entity is a larger second line. */
    .admin-order-row {
        grid-template-columns:minmax(0,1fr) auto !important;
        grid-template-areas:
            "identity identity"
            "customer customer"
            "finance status" !important;
        gap:7px 9px !important;
        padding:11px !important;
    }
    .admin-order-number-block {
        grid-area:identity !important;
        display:flex !important;
        align-items:baseline !important;
        justify-content:space-between !important;
        gap:12px !important;
        min-width:0 !important;
    }
    .admin-order-number { font-size:14px !important; }
    .admin-order-date {
        margin:0 !important;
        font-size:11px !important;
        white-space:nowrap !important;
    }
    .admin-order-customer {
        grid-area:customer !important;
        min-width:0 !important;
        padding-top:1px !important;
    }
    .admin-order-customer strong {
        display:block !important;
        overflow:hidden !important;
        font-size:14px !important;
        line-height:1.2 !important;
        text-overflow:ellipsis !important;
        white-space:nowrap !important;
    }
    .admin-order-customer span {
        margin-top:2px !important;
        font-size:10px !important;
    }
    .admin-order-finance {
        grid-area:finance !important;
        align-self:center !important;
    }
    .admin-order-status-cell {
        grid-area:status !important;
        align-self:center !important;
        justify-self:end !important;
    }
    .admin-status-select {
        min-height:36px !important;
        max-width:138px !important;
        font-size:11px !important;
    }
    .admin-client-delivery-block {
        padding:10px !important;
    }
    .admin-client-delivery-grid {
        grid-template-columns:1fr !important;
        gap:8px !important;
    }
}


/* V45.25.7 QA: keep the administrator entry visually explicit on the white
   account workspace. Earlier generic account-section rules made its white
   text/button disappear on a white card. */
@media (min-width: 900px) {
    body[data-page="account"] .account-admin-access:not([hidden]) {
        border-color: transparent !important;
        background: linear-gradient(135deg,#302039 0%,#4d2c61 100%) !important;
        box-shadow: 0 8px 24px rgba(45,29,53,.10) !important;
        color:#fff !important;
    }
    body[data-page="account"] .account-admin-access .account-section-title { color:#fff !important; }
    body[data-page="account"] .account-admin-access .account-section-subtitle { color:rgba(255,255,255,.66) !important; }
    body[data-page="account"] .account-admin-access .admin-access-icon {
        background:rgba(255,255,255,.13) !important;
        color:#fff !important;
    }
    body[data-page="account"] .account-admin-access .admin-access-btn {
        border-color:rgba(255,255,255,.22) !important;
        background:rgba(255,255,255,.10) !important;
        color:#fff !important;
    }
    body[data-page="account"] .account-admin-access .admin-access-btn:hover {
        background:rgba(255,255,255,.16) !important;
    }
}


/* ============================================================
   V45.25.8 — COMPACT ACCOUNT EDIT / STOCK / MOBILE ADMIN ORDERS
   ============================================================ */

/* Account edit actions: compact secondary controls instead of a full-width
   empty white bar. Save remains the primary full action while editing. */
.account-form-actions {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    flex-wrap:wrap !important;
    gap:8px !important;
}
.account-edit-btn {
    width:auto !important;
    min-width:0 !important;
    min-height:38px !important;
    padding:0 12px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;
    border:1px solid rgba(103,38,171,.16) !important;
    border-radius:10px !important;
    background:#f8f5fa !important;
    color:#5d3a70 !important;
    box-shadow:none !important;
    font-size:12px !important;
    font-weight:760 !important;
    letter-spacing:0 !important;
}
.account-edit-btn:hover {
    background:#f2ecf6 !important;
    border-color:rgba(103,38,171,.24) !important;
}
.account-edit-icon {
    display:inline-grid;
    place-items:center;
    width:17px;
    height:17px;
    border-radius:5px;
    background:rgba(103,38,171,.08);
    font-size:11px;
    line-height:1;
}
#profileSaveBtn:not([hidden]),
#deliverySaveBtn:not([hidden]) {
    width:auto !important;
    min-width:170px !important;
    min-height:40px !important;
    padding-inline:16px !important;
}

/* Catalog stock chip: a little quieter and smaller without changing meaning. */
.product-card .badge {
    top:7px !important;
    left:7px !important;
    padding:3px 8px !important;
    border-radius:999px !important;
    font-size:9px !important;
    line-height:1.15 !important;
    letter-spacing:.02em !important;
    font-weight:760 !important;
}

/* Admin-created order no longer exposes a comment field. */
.admin-client-order-comment { display:none !important; }

@media (max-width:760px) {
    /* Compact admin order row:
       № + date on the left / amount on the right,
       legal entity below / status at the right. */
    .admin-order-row {
        grid-template-columns:minmax(0,1fr) auto !important;
        grid-template-areas:
            "identity finance"
            "customer status" !important;
        gap:5px 9px !important;
        padding:9px 10px !important;
        align-items:center !important;
        min-height:0 !important;
    }
    .admin-order-number-block {
        grid-area:identity !important;
        display:flex !important;
        align-items:baseline !important;
        justify-content:flex-start !important;
        gap:5px !important;
        min-width:0 !important;
    }
    .admin-order-number {
        font-size:13px !important;
        line-height:1.1 !important;
        font-weight:820 !important;
        white-space:nowrap !important;
    }
    .admin-order-date {
        margin:0 !important;
        font-size:10px !important;
        line-height:1.1 !important;
        color:#9a909d !important;
        white-space:nowrap !important;
    }
    .admin-order-date::before { content:"— "; }
    .admin-order-customer {
        grid-area:customer !important;
        min-width:0 !important;
        padding:0 !important;
    }
    .admin-order-customer strong {
        display:block !important;
        overflow:hidden !important;
        max-width:100% !important;
        font-size:13.5px !important;
        line-height:1.15 !important;
        font-weight:790 !important;
        text-overflow:ellipsis !important;
        white-space:nowrap !important;
    }
    .admin-order-customer span { display:none !important; }
    .admin-order-finance {
        grid-area:finance !important;
        min-width:86px !important;
        display:grid !important;
        justify-items:end !important;
        gap:1px !important;
        align-self:center !important;
    }
    .admin-order-finance strong {
        font-size:12.5px !important;
        line-height:1.1 !important;
        font-weight:820 !important;
        white-space:nowrap !important;
    }
    .admin-order-finance span {
        font-size:9px !important;
        line-height:1.1 !important;
        white-space:nowrap !important;
    }
    .admin-order-status-cell {
        grid-area:status !important;
        align-self:center !important;
        justify-self:end !important;
    }
    .admin-status-select {
        width:auto !important;
        min-width:0 !important;
        max-width:116px !important;
        min-height:30px !important;
        height:30px !important;
        padding:0 24px 0 8px !important;
        border-radius:8px !important;
        font-size:9.5px !important;
        line-height:1 !important;
    }
}

/* ============================================================
   V45.25.9 — MOBILE ORDERS / DOCK TRANSPARENCY / INPUT ZOOM / HOME SWIPE
   ============================================================ */

@media (max-width: 899px) {
    /* Dedicated Orders must reach the real viewport bottom. The historical
       68px bottom cutout was exposing the white body around the floating dock. */
    body[data-page="orders"] {
        background: #f7f4f8 !important;
    }
    body[data-page="orders"] .orders-center {
        bottom: 0 !important;
        background: #f7f4f8 !important;
    }

    /* cart.html is already a real page: never paint the old cart-sheet mask
       behind its floating dock. The dock stays white; the page remains visible
       around it, while Safari's own system area can still resolve to white. */
    body[data-page="cart"]::after,
    body[data-page="cart"]:has(#cartSheet.open)::after {
        content: none !important;
        display: none !important;
    }

    /* Orders top rhythm: finance cards are vertically centered and every
       section gets a predictable gap instead of looking pulled upward. */
    body[data-page="orders"] .orders-center-header {
        padding: 14px 14px 15px !important;
    }
    body[data-page="orders"] .orders-account-finance {
        margin: 0 12px 12px !important;
        gap: 8px !important;
    }
    body[data-page="orders"] .orders-account-finance-card {
        min-height: 52px !important;
        padding: 9px 11px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 5px !important;
    }
    body[data-page="orders"] .orders-account-finance-card span,
    body[data-page="orders"] .orders-account-finance-card strong {
        margin: 0 !important;
        line-height: 1.08 !important;
    }
    body[data-page="orders"] .orders-pro-top {
        position: relative !important;
        z-index: 60 !important;
        padding: 0 12px 12px !important;
        background: transparent !important;
        border-bottom: 0 !important;
        overflow: visible !important;
    }
    body[data-page="orders"] .orders-toolbar,
    body[data-page="orders"] .orders-search-wrap {
        overflow: visible !important;
    }
    body[data-page="orders"] .orders-search-wrap {
        position: relative !important;
    }
    body[data-page="orders"] .orders-list-body {
        padding-top: 2px !important;
        padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* The filter belongs to the search field. It opens directly below the
       field instead of jumping to a fixed sheet near the bottom of the screen. */
    body[data-page="orders"] .orders-filter-menu {
        position: static !important;
    }
    body[data-page="orders"] .orders-filter-popover {
        position: absolute !important;
        z-index: 2400 !important;
        top: calc(100% + 7px) !important;
        right: 0 !important;
        bottom: auto !important;
        left: auto !important;
        width: min(238px, calc(100% - 4px)) !important;
        max-width: calc(100vw - 28px) !important;
        padding: 8px !important;
        gap: 4px !important;
        border-radius: 14px !important;
        box-shadow: 0 14px 36px rgba(38,24,45,.14) !important;
    }
    body[data-page="orders"] .orders-filter-popover button {
        min-height: 36px !important;
        padding-inline: 10px !important;
    }

    /* iOS Safari: explicit late override for the editable profile/delivery
       controls. 16px computed font size prevents focus auto-zoom. */
    body[data-page="account"] #profileForm input:not([type="checkbox"]):not([type="radio"]),
    body[data-page="account"] #profileForm textarea,
    body[data-page="account"] #deliveryForm input:not([type="checkbox"]):not([type="radio"]),
    body[data-page="account"] #deliveryForm textarea,
    body[data-page="account"] #deliveryForm select {
        font-size: 16px !important;
        line-height: 1.35 !important;
        -webkit-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }
}

/* ============================================================
   V45.25.10 — DESKTOP AUTH SCALE POLISH
   Slightly larger login/registration workspace on desktop only.
   Mobile sizing is intentionally unchanged.
   ============================================================ */
@media (min-width: 900px) {
    body[data-page="account"] #authGuestView {
        width: min(760px, 100%) !important;
    }

    body[data-page="account"] #authGuestView .orders-auth-notice {
        padding: 13px 15px !important;
        border-radius: 13px !important;
        margin-bottom: 16px !important;
    }
    body[data-page="account"] #authGuestView .orders-auth-notice strong {
        font-size: 14px !important;
    }
    body[data-page="account"] #authGuestView .orders-auth-notice span {
        margin-top: 3px !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    body[data-page="account"] #authGuestView .auth-tabs {
        gap: 5px !important;
        padding: 5px !important;
        margin-bottom: 20px !important;
        border-radius: 15px !important;
    }
    body[data-page="account"] #authGuestView .auth-tab {
        min-height: 46px !important;
        border-radius: 11px !important;
        font-size: 15px !important;
        font-weight: 760 !important;
    }

    body[data-page="account"] #authGuestView .account-intro {
        margin-bottom: 20px !important;
    }
    body[data-page="account"] #authGuestView .account-intro-title {
        font-size: 22px !important;
        line-height: 1.18 !important;
    }
    body[data-page="account"] #authGuestView .account-intro-text {
        margin-top: 7px !important;
        font-size: 14px !important;
        line-height: 1.48 !important;
    }

    body[data-page="account"] #authGuestView .form-group {
        margin-bottom: 14px !important;
    }
    body[data-page="account"] #authGuestView .form-group label {
        margin-bottom: 7px !important;
        font-size: 13px !important;
    }
    body[data-page="account"] #authGuestView .form-group input:not([type="checkbox"]):not([type="radio"]),
    body[data-page="account"] #authGuestView .form-group select,
    body[data-page="account"] #authGuestView .form-group textarea {
        min-height: 50px !important;
        padding-inline: 15px !important;
        border-radius: 12px !important;
        font-size: 15px !important;
    }
    body[data-page="account"] #authGuestView .password-toggle {
        width: 46px !important;
        height: 46px !important;
    }

    body[data-page="account"] #authGuestView .account-primary-btn,
    body[data-page="account"] #authGuestView .account-secondary-btn {
        min-height: 50px !important;
        border-radius: 12px !important;
        font-size: 15px !important;
    }
    body[data-page="account"] #authGuestView .auth-link-btn {
        margin-top: 9px !important;
        padding: 5px 8px !important;
        font-size: 12.5px !important;
    }
    body[data-page="account"] #authGuestView .auth-helper {
        margin-top: 12px !important;
        font-size: 12px !important;
        line-height: 1.45 !important;
    }
    body[data-page="account"] #authGuestView .auth-privacy-login-note {
        margin-top: 9px !important;
        font-size: 10.5px !important;
        line-height: 1.45 !important;
    }

    body[data-page="account"] #authGuestView .privacy-consent-check {
        margin: 6px 0 15px !important;
        padding: 12px 13px !important;
    }
    body[data-page="account"] #authGuestView .privacy-consent-check span {
        font-size: 11px !important;
        line-height: 1.5 !important;
    }
    body[data-page="account"] #authGuestView .auth-phone-hint {
        font-size: 11px !important;
    }
}


/* ============================================================
   V45.26.0 — merged final customer dock rules (formerly dock-fix.css)
   Kept at EOF to preserve the exact cascade order.
   ============================================================ */
/* ============================================================
   DCR.BY V45.23.0 — CLEAN CUSTOMER DOCK
   One geometry only. No Safari viewport hacks.
   ============================================================ */

/* Admin never uses the customer dock. */
body[data-page="admin"] > nav.bottom-nav {
    display: none !important;
}

/* Customer dock: compact, fixed, exactly four equal hit areas. */
body:not([data-page="admin"]):not([data-page="home"]) > nav.bottom-nav.bottom-nav-4,
body[data-page="home"] > nav.home-bottom-nav.bottom-nav-4 {
    box-sizing: border-box !important;
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 4px !important;
    width: calc(100vw - 32px) !important;
    max-width: 1376px !important;
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateX(-50%) !important;
    border: 1px solid rgba(78,59,88,.11) !important;
    border-radius: 17px !important;
    overflow: hidden !important;
    background: #fff !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 8px 22px rgba(37,23,45,.10) !important;
    z-index: 200 !important;
}

@media (min-width: 768px) {
    body:not([data-page="admin"]):not([data-page="home"]) > nav.bottom-nav.bottom-nav-4,
    body[data-page="home"] > nav.home-bottom-nav.bottom-nav-4 {
        width: calc(100vw - 64px) !important;
        max-width: 1376px !important;
    }
}

/* Home has an inner wrapper; normal pages have four direct children. */
body:not([data-page="admin"]):not([data-page="home"]) > nav.bottom-nav.bottom-nav-4,
body[data-page="home"] > nav.home-bottom-nav.bottom-nav-4 > .home-bottom-nav-inner {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: 1fr !important;
    gap: 0 !important;
    align-items: stretch !important;
}

/* Full-screen overlays (orders/account/admin, z-index 1600) were painting over
   the dock because the block above resets z-index to 200 for every page.
   Restore the dock above those overlays with matching specificity (#id). */
body[data-page="orders"] #bottomNav,
body[data-page="account"] #bottomNav,
body[data-page="admin"] #bottomNav {
    z-index: 2200 !important;
}

body[data-page="home"] > nav.home-bottom-nav.bottom-nav-4 {
    display: block !important;
}

body[data-page="home"] > nav.home-bottom-nav.bottom-nav-4 > .home-bottom-nav-inner {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body:not([data-page="admin"]):not([data-page="home"]) > nav.bottom-nav.bottom-nav-4 > .nav-item,
body[data-page="home"] > nav.home-bottom-nav.bottom-nav-4 > .home-bottom-nav-inner > .nav-item {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 62px !important;
    max-height: 62px !important;
    margin: 0 !important;
    padding: 0 .25rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .18rem !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    border: 0 !important;
    border-right: 1px solid rgba(78,59,88,.065) !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-align: center !important;
}

body:not([data-page="admin"]):not([data-page="home"]) > nav.bottom-nav.bottom-nav-4 > .nav-item:last-child,
body[data-page="home"] > nav.home-bottom-nav.bottom-nav-4 > .home-bottom-nav-inner > .nav-item:last-child {
    border-right: 0 !important;
}

/* Legacy Safari experiment nodes are disabled if an old cached HTML is mixed in. */
.ios-safari-toolbar-tint {
    display: none !important;
}

/* V45.23.4 — iOS Safari: the dock itself supplies the system bottom tint.
   Safari's bottom color-extension heuristic recognizes a wide opaque fixed
   element within ~3px of the lower viewport edge. No separate white strip. */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 899px) {
        body:not([data-page="admin"]):not([data-page="home"]) > nav.bottom-nav.bottom-nav-4,
        body[data-page="home"] > nav.home-bottom-nav.bottom-nav-4 {
            bottom: 3px !important;
        }
    }
}


/* V45.25.0 — same dock width as catalog inner canvas on every customer page. */
body:not([data-page="admin"]):not([data-page="home"]) > nav.bottom-nav.bottom-nav-4,
body[data-page="home"] > nav.home-bottom-nav.bottom-nav-4 {
    width:calc(100vw - 32px) !important;
    max-width:1376px !important;
}
@media (min-width:768px) {
    body:not([data-page="admin"]):not([data-page="home"]) > nav.bottom-nav.bottom-nav-4,
    body[data-page="home"] > nav.home-bottom-nav.bottom-nav-4 { width:calc(100vw - 64px) !important; }
}


/* V45.25.1 HOTFIX — keep customer navigation above dedicated page surfaces. */
body:not([data-page="admin"]) > nav.bottom-nav.bottom-nav-4,
body[data-page="home"] > nav.home-bottom-nav.bottom-nav-4 {
    z-index: 2600 !important;
}


/* V45.25.4 — desktop navigation lives in the header.
   Kept at EOF so this desktop override remains the final dock rule. */
@media (min-width: 900px) {
    body:not([data-page="admin"]):not([data-page="home"]) > nav.bottom-nav.bottom-nav-4,
    body[data-page="home"] > nav.home-bottom-nav.bottom-nav-4 {
        display: none !important;
    }
}

/* ============================================================
   V45.27.2 — NARROW MOBILE PRICE ROW + RELIABLE TWO-FINGER ZOOM
   ============================================================ */
@media (max-width: 560px) {
    .product-card .product-price-block,
    #homeNewProducts .product-card .product-price-block {
        display: flex !important;
        align-items: baseline !important;
        justify-content: space-between !important;
        gap: 5px !important;
        margin-top: 7px !important;
        padding-top: 7px !important;
    }

    .product-card .product-price-caption,
    #homeNewProducts .product-card .product-price-caption {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        color: #6f6474 !important;
        font-size: 9px !important;
        line-height: 1 !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
    }

    /* On narrow cards the full phrase is redundant. Keep the useful quantity. */
    .product-price-caption-prefix {
        display: none !important;
    }

    .product-card .product-price-values,
    #homeNewProducts .product-card .product-price-values {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin-left: auto !important;
        display: flex !important;
        align-items: baseline !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 3px !important;
        text-align: right !important;
    }

    .product-card .product-price-values .price,
    .product-card .product-price-block.has-personal-discount .price,
    #homeNewProducts .product-card .product-price-values .price,
    #homeNewProducts .product-card .product-price-block.has-personal-discount .price {
        min-width: 0 !important;
        font-size: 14px !important;
        line-height: 1 !important;
        letter-spacing: -0.035em !important;
        white-space: nowrap !important;
    }

    .product-card .product-price-block.has-personal-discount .product-price-values,
    #homeNewProducts .product-card .product-price-block.has-personal-discount .product-price-values {
        display: grid !important;
        grid-template-columns: auto !important;
        justify-items: end !important;
        row-gap: 1px !important;
    }

    .product-card .product-price-block.has-personal-discount .base-price,
    #homeNewProducts .product-card .product-price-block.has-personal-discount .base-price {
        font-size: 8px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 699px) {
    body[data-page="home"] .home-new-panel .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media (max-width: 380px) {
    .product-card .product-price-caption,
    #homeNewProducts .product-card .product-price-caption {
        font-size: 8.5px !important;
    }

    .product-card .product-price-values .price,
    .product-card .product-price-block.has-personal-discount .price,
    #homeNewProducts .product-card .product-price-values .price,
    #homeNewProducts .product-card .product-price-block.has-personal-discount .price {
        font-size: 13px !important;
        letter-spacing: -0.045em !important;
    }
}

/* Pinch overlay does not override carousel touch-action; native one-finger scroll-snap stays intact. */

.dcr-pinch-overlay {
    position: fixed;
    inset: 0;
    z-index: 50000;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
    contain: layout style;
}

.dcr-pinch-image {
    z-index: 1;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
    box-shadow: 0 14px 42px rgba(31, 20, 36, .18);
}


/* ============================================================
   V45.28.0 — INTERACTION STABILIZATION
   One authoritative gallery/touch layer. Older V45.27.6/7/8 overrides removed.
   ============================================================ */

.dcr-carousel-strip {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
}
@media (max-width: 767px) {
    .product-card .image-wrap,
    #homeNewProducts .product-card .image-wrap,
    .product-modal .product-detail-image {
        overflow: hidden !important;
        touch-action: pan-y !important;
    }

    .product-card .image-wrap .slider-container,
    #homeNewProducts .product-card .image-wrap .slider-container,
    .product-modal .detail-swipe-track {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        transform: none !important;
        transition: none !important;
        scroll-snap-type: none !important;
        scroll-behavior: auto !important;
        overscroll-behavior: none !important;
        touch-action: pan-y !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }

    .slider-container > .dcr-carousel-strip,
    .detail-swipe-track > .dcr-carousel-strip {
        display: flex !important;
        flex-flow: row nowrap !important;
        width: 100% !important;
        height: 100% !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        transform-origin: 0 50% !important;
        will-change: transform;
    }

    .dcr-carousel-strip > img,
    .dcr-carousel-strip > img.carousel-active {
        position: relative !important;
        inset: auto !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        object-fit: contain !important;
        object-position: center center !important;
        pointer-events: auto !important;
        -webkit-user-drag: none !important;
    }

    /* A swipe should never look like a card press. */
    .product-card:active,
    #homeNewProducts .product-card:active,
    .product-card .image-wrap:active,
    #homeNewProducts .product-card .image-wrap:active {
        scale: 1 !important;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }
}

@media (min-width: 768px) {
    /* Center the geometric chevron in the actual border-box of the circular hit area. */
    .product-card .carousel-arrow,
    .product-modal .carousel-arrow,
    #homeNewProducts .carousel-arrow {
        top: 50% !important;
        transform: translateY(-50%) !important;
        display: grid !important;
        place-items: center !important;
        padding: 0 !important;
        font-size: 0 !important;
        line-height: 0 !important;
        text-indent: -9999px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .product-card .carousel-arrow:hover,
    .product-modal .carousel-arrow:hover,
    #homeNewProducts .carousel-arrow:hover {
        transform: translateY(-50%) scale(1.05) !important;
    }

    .product-card .carousel-arrow:active,
    .product-modal .carousel-arrow:active,
    #homeNewProducts .carousel-arrow:active {
        transform: translateY(-50%) scale(.97) !important;
    }

    .product-card .carousel-arrow::before,
    .product-modal .carousel-arrow::before,
    #homeNewProducts .carousel-arrow::before {
        content: "" !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        width: 12px !important;
        height: 12px !important;
        margin: 0 !important;
        border: 0 !important;
        background: currentColor !important;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.75 4.75 16 12l-7.25 7.25-1.5-1.5L13 12 7.25 6.25z' fill='black'/%3E%3C/svg%3E") center / 100% 100% no-repeat !important;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.75 4.75 16 12l-7.25 7.25-1.5-1.5L13 12 7.25 6.25z' fill='black'/%3E%3C/svg%3E") center / 100% 100% no-repeat !important;
        transform: translate(-50%, -50%) !important;
        transform-origin: 50% 50% !important;
    }

    .product-card .carousel-arrow.prev::before,
    .product-modal .carousel-arrow.prev::before,
    #homeNewProducts .carousel-arrow.prev::before {
        transform: translate(-50%, -50%) rotate(180deg) !important;
    }
}

/* ============================================================
   V45.28.1 — SINGLE IMAGE CARD FIX
   A product with exactly one image is static, not a carousel.
   ============================================================ */
.product-card .image-wrap > .single-product-image,
#homeNewProducts .product-card .image-wrap > .single-product-image {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #fff !important;
    transform: none !important;
    opacity: 1 !important;
}

.product-card .image-wrap > .single-product-image > img,
#homeNewProducts .product-card .image-wrap > .single-product-image > img,
.product-card .image-wrap > .single-product-image > img.carousel-active,
#homeNewProducts .product-card .image-wrap > .single-product-image > img.carousel-active {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #fff !important;
    pointer-events: auto !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none !important;
}

/* Статус "под заказ" (третий вариант наличия, между "в наличии" и "нет в наличии") */
.product-card .badge.badge-preorder {
    background: #d98c00;
}

/* Товар без указанной цены — "Цену уточняйте" вместо суммы */
.product-price-block.product-price-unknown {
    opacity: .85;
}

.product-price-values .price.price-unknown {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #9a8a63 !important;
    letter-spacing: .01em;
}

.detail-price-simple-values strong.price-unknown {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #9a8a63 !important;
    letter-spacing: .01em;
}

/* Кнопка "Под заказ" — тот же формат, что "В корзину", но другим цветом,
   чтобы визуально отличалась (товара сейчас физически нет, но заказать можно). */
.product-card .cart-controls .add-btn.add-btn-preorder,
.detail-cart-controls .add-btn.add-btn-preorder {
    background: #b5760a !important;
}
.product-card .cart-controls .add-btn.add-btn-preorder:hover,
.product-card .cart-controls .add-btn.add-btn-preorder:active {
    background: #99630a !important;
}

/* Корзина: позиция "под заказ" без согласованной цены */
.item-preorder-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #fdeecb;
    color: #8a5a00;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .01em;
    vertical-align: middle;
}

.cart-price-unknown {
    color: #9a8a63 !important;
    font-weight: 700 !important;
}

/* Панель вкладок админки: сколько бы вкладок ни было, растягиваем на всю ширину без пустот */
#adminMainTabs {
    display: flex !important;
    grid-template-columns: none !important;
}
#adminMainTabs .admin-main-tab {
    flex: 1 1 0 !important;
    width: auto !important;
}

/* ============================================================
   V45.29.15 — HOME UNIFIED CUSTOMER GRID
   One authoritative composition layer for the current home page.
   Target: unified DCR customer-page geometry + refined home composition.
   ============================================================ */

body[data-page="home"] {
    background: #f7f5f9 !important;
}

body[data-page="home"] .home-shell-v3 {
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 32px 32px !important;
    display: block !important;
    background: transparent;
}

body[data-page="home"] .home-shell-v3 > .home-section {
    margin: 0 !important;
}

/* ---------- Hero: one visual unit ---------- */
body[data-page="home"] .home-hero-wrap {
    position: relative;
    margin: 0;
}

body[data-page="home"] .home-hero-carousel {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 425px;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 18px;
    background: #ece5f0;
}

body[data-page="home"] .home-hero-carousel[hidden] {
    display: none !important;
}

body[data-page="home"] .home-hero-carousel-track {
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

body[data-page="home"] .home-hero-carousel-track::-webkit-scrollbar {
    display: none;
}

body[data-page="home"] .home-hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    aspect-ratio: auto !important;
    display: block;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

body[data-page="home"] .home-hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body[data-page="home"] .home-hero-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.35);
    color: transparent;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    box-shadow: none;
    transform: translateY(-50%);
}

body[data-page="home"] .home-hero-carousel-arrow.prev { left: 12px; }
body[data-page="home"] .home-hero-carousel-arrow.next { right: 12px; }

body[data-page="home"] .home-hero-carousel-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

body[data-page="home"] .home-hero-carousel-arrow.prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

body[data-page="home"] .home-hero-carousel-arrow.next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

/* Standalone hero state: used when the banners endpoint returns no real banner. */
body[data-page="home"] .home-landing-hero {
    position: relative;
    z-index: 2;
    min-height: 0 !important;
    margin: 0;
    padding: 34px 46px;
    display: block !important;
    overflow: visible;
    border: 0;
    border-radius: 20px;
    background: #f7f4f8;
    box-shadow: none;
}

body[data-page="home"] .home-landing-copy {
    position: relative;
    z-index: 3;
    max-width: 640px;
}

body[data-page="home"] .home-landing-copy h1 {
    max-width: 620px;
    margin: 0 0 8px;
    color: #241b2c;
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: -.025em;
    font-weight: 850;
}

body[data-page="home"] .home-landing-copy > p {
    max-width: 620px;
    margin: 0;
    color: #625767;
    font-size: 13.5px;
    line-height: 1.5;
}

body[data-page="home"] .home-hero-actions-v4 {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

body[data-page="home"] .home-hero-btn {
    min-height: 0 !important;
    padding: 9px 14px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none;
}

body[data-page="home"] .home-hero-btn-primary {
    border: 1px solid #6726AB;
    background: #6726AB;
    color: #fff;
    box-shadow: 0 10px 22px rgba(103,38,171,.25);
}

body[data-page="home"] .home-hero-btn-secondary {
    border: 1px solid #e5dee8;
    background: #fff;
    color: #4d4256;
    box-shadow: none;
}


/* Real banner on desktop: copy becomes an overlay over the same rounded hero tile. */
@media (min-width: 900px) {
    body[data-page="home"] .home-header {
        padding-left: max(32px, calc((100vw - 1440px) / 2 + 32px)) !important;
        padding-right: max(32px, calc((100vw - 1440px) / 2 + 32px)) !important;
    }

    body[data-page="home"].has-hero-carousel .home-hero-wrap {
        height: 425px;
        min-height: 425px;
        overflow: hidden;
        border-radius: 18px;
    }

    /* The slide already has its own shade behind the copy. Do not place a second
       overlay above the whole carousel, because it also dims text and arrows. */
    body[data-page="home"].has-hero-carousel .home-hero-wrap::after {
        display: none !important;
        content: none !important;
    }

    body[data-page="home"].has-hero-carousel .home-landing-hero {
        position: absolute;
        z-index: 2;
        inset: 0;
        padding: 0 48px;
        display: flex !important;
        align-items: center;
        border: 0;
        border-radius: inherit;
        background: transparent;
        pointer-events: none;
    }

    body[data-page="home"].has-hero-carousel .home-landing-copy {
        width: min(440px, 48%);
        max-width: 440px;
        pointer-events: auto;
    }

    body[data-page="home"].has-hero-carousel .home-landing-copy h1 {
        max-width: 410px;
        margin-bottom: 8px;
        color: #fff;
        font-size: 28px;
        line-height: 1.15;
        letter-spacing: -.015em;
    }

    body[data-page="home"].has-hero-carousel .home-landing-copy > p {
        max-width: 410px;
        color: rgba(255,255,255,.88);
        font-size: 13px;
        line-height: 1.45;
    }

    body[data-page="home"].has-hero-carousel .home-hero-btn-secondary {
        border-color: rgba(255,255,255,.40);
        background: rgba(255,255,255,.14);
        color: #fff;
    }

}

/* ---------- Categories: fixed image tiles, same pattern at every width ---------- */
body[data-page="home"] .home-hero-mosaic-v3 {
    width: 100%;
    min-width: 0;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 18px 0 0 !important;
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

body[data-page="home"] .home-hero-mosaic-v3::-webkit-scrollbar {
    display: none;
}

body[data-page="home"] .home-hero-mosaic-v3 .home-mosaic-card,
body[data-page="home"] .home-hero-mosaic-v3 .home-mosaic-1 {
    flex: 0 0 auto !important;
    width: 110px !important;
    min-width: 110px !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    overflow: visible;
    grid-column: auto !important;
    grid-row: auto !important;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    color: #4d4256;
    box-shadow: none !important;
    text-decoration: none;
}

body[data-page="home"] .home-hero-mosaic-v3 .home-mosaic-card::after {
    display: none !important;
}

body[data-page="home"] .home-hero-mosaic-v3 .home-mosaic-card img {
    width: 110px;
    height: 110px;
    flex: 0 0 110px;
    border-radius: 16px;
    object-fit: cover;
    background: #f1ecf4;
    transform: none !important;
}

body[data-page="home"] .home-hero-mosaic-v3 .home-mosaic-card span {
    position: static !important;
    width: 100%;
    min-height: 0;
    margin: 0;
    color: #4d4256;
    font-size: 11px !important;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    text-shadow: none;
}

/* ---------- Shared section rhythm ---------- */
body[data-page="home"] .home-section,
body[data-page="home"] .home-panel,
body[data-page="home"] .home-materials-stage {
    margin: 0 !important;
    padding: 28px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body[data-page="home"] .home-hero-mosaic-v3 + .home-section {
    padding-top: 28px;
}

body[data-page="home"] .home-gallery-stage {
    margin: 28px 0 0 !important;
    padding: 24px !important;
    border: 0;
    border-radius: 18px;
    box-shadow: none;
}

body[data-page="home"] .home-section-head-v3 {
    width: 100%;
    margin: 0 0 16px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: space-between;
    gap: 12px !important;
}

body[data-page="home"] .home-section-head-v3 > div:first-child {
    min-width: 0;
}

body[data-page="home"] .home-section-head-v3 h2 {
    margin: 0 !important;
    color: #241b2c;
    font-size: 20px !important;
    line-height: 1.2;
    letter-spacing: -.015em;
    font-weight: 850;
    overflow-wrap: normal;
}

body[data-page="home"] .home-section-head-v3 .home-text-link {
    min-height: 0 !important;
    padding: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    flex: 0 0 auto;
    color: #6726AB;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

/* ---------- Novelties: same product-card proportions as the catalog ---------- */
body[data-page="home"] .home-new-panel .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

body[data-page="home"] .home-new-panel .product-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #ece5f0 !important;
    border-radius: 14px !important;
    background: #fff;
    box-shadow: none !important;
}

body[data-page="home"] .home-new-panel .product-card .image-wrap {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 4 !important;
    overflow: hidden;
    background: #f4f4f6;
}

body[data-page="home"] .home-new-panel .product-card .single-product-image,
body[data-page="home"] .home-new-panel .product-card .slider-container,
body[data-page="home"] .home-new-panel .product-card .dcr-carousel-strip {
    width: 100%;
    height: 100%;
}

body[data-page="home"] .home-new-panel .product-card .single-product-image img,
body[data-page="home"] .home-new-panel .product-card .slider-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body[data-page="home"] .home-new-panel .product-card .image-wrap > .badge {
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    bottom: auto !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    background: #eafaf0 !important;
    color: #1a7f37 !important;
    font-size: 9.5px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
}

body[data-page="home"] .home-new-panel .product-card .image-wrap > .badge.badge-preorder {
    background: #fdeecb !important;
    color: #8a5a00 !important;
}

body[data-page="home"] .home-new-panel .product-card .image-wrap > .badge.out {
    background: #f3eef3 !important;
    color: #7d7183 !important;
}

body[data-page="home"] .home-new-panel .product-card .info {
    flex: 1 1 auto;
    padding: 10px 12px 0 !important;
}

body[data-page="home"] .home-new-panel .product-card .info .name {
    margin: 0 0 6px;
    color: #241b2c;
    font-size: 13px !important;
    line-height: 1.3 !important;
    font-weight: 800;
}

body[data-page="home"] .home-new-panel .product-card .info .description {
    display: none !important;
}

body[data-page="home"] .home-new-panel .product-price-block {
    margin: 0 0 10px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 6px !important;
    border: 0 !important;
}

body[data-page="home"] .home-new-panel .product-price-caption {
    min-width: 0;
    color: #8a7f95 !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    white-space: nowrap;
}

body[data-page="home"] .home-new-panel .product-price-values {
    margin-left: auto;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px;
    white-space: nowrap;
}

body[data-page="home"] .home-new-panel .product-price-values .price {
    color: #241b2c !important;
    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
}

body[data-page="home"] .home-new-panel .product-price-block.has-personal-discount .base-price {
    font-size: 9.5px !important;
}

body[data-page="home"] .home-new-panel .product-card .cart-controls {
    margin-top: auto;
    padding: 0 12px 12px;
}

body[data-page="home"] .home-new-panel .product-card .add-btn {
    width: 100%;
    min-height: 0 !important;
    padding: 10px 8px !important;
    border-radius: 10px !important;
    font-size: 12.5px !important;
    line-height: 1.2;
    font-weight: 800;
}

body[data-page="home"] .home-new-panel .product-card .add-btn-preorder {
    background: #b5760a !important;
}

@media (min-width: 700px) {
    body[data-page="home"] .home-new-panel .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }
}

@media (min-width: 1000px) {
    body[data-page="home"] .home-new-panel .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 24px !important;
    }
}

/* ---------- Photo gallery ---------- */
body[data-page="home"] .home-gallery-stage {
    background: #2b1a3d;
}

body[data-page="home"] .home-gallery-stage .home-section-head-v3 h2 {
    color: #fff !important;
}

body[data-page="home"] .home-gallery-stage .home-text-link {
    color: #cabfe6 !important;
}

body[data-page="home"] .home-gallery-grid-v3 {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 14px !important;
}

body[data-page="home"] .home-gallery-grid-v3 .home-gallery-card,
body[data-page="home"] .home-gallery-grid-v3 .home-gallery-card:nth-child(n) {
    grid-column: auto !important;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    display: block;
    border: 0;
    border-radius: 16px !important;
    background: #3a2453;
    box-shadow: none !important;
    text-align: left;
}

body[data-page="home"] .home-gallery-grid-v3 .home-gallery-card::after {
    display: none !important;
}

body[data-page="home"] .home-gallery-grid-v3 .home-gallery-card img {
    position: static;
    width: 100%;
    height: auto !important;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    background: #f0edf3;
    transform: none !important;
}

body[data-page="home"] .home-gallery-grid-v3 .home-gallery-card > span {
    position: static !important;
    padding: 12px;
    display: block;
    color: #fff;
}

body[data-page="home"] .home-gallery-grid-v3 .home-gallery-card strong {
    display: block;
    margin: 0 0 4px;
    color: #fff;
    font-size: 13px !important;
    line-height: 1.3;
    font-weight: 800;
}

body[data-page="home"] .home-gallery-grid-v3 .home-gallery-card small {
    display: block;
    overflow: visible;
    color: #c6b3dd !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    text-overflow: clip;
    white-space: normal;
}

body[data-page="home"] .home-gallery-stage .home-loading {
    border-color: rgba(255,255,255,.15);
    color: rgba(255,255,255,.72);
}

/* ---------- News ---------- */
body[data-page="home"] .home-story-grid-v3 {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 14px !important;
}

body[data-page="home"] .home-story-grid-v3 .home-story-card {
    min-height: 0 !important;
    padding: 14px !important;
    border: 1px solid #ece5f0 !important;
    border-radius: 14px !important;
    background: #fff;
    box-shadow: none !important;
}

body[data-page="home"] .home-story-grid-v3 .home-story-meta {
    margin-bottom: 8px;
}

body[data-page="home"] .home-story-grid-v3 .home-story-tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f4eef7;
    color: #6726AB;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
}

body[data-page="home"] .home-story-grid-v3 .home-story-meta time {
    color: #9b909f;
    font-size: 10px;
}

body[data-page="home"] .home-story-grid-v3 .home-story-card h3 {
    margin: 0 0 6px;
    color: #241b2c;
    font-size: 13.5px !important;
    line-height: 1.3;
    font-weight: 800;
}

body[data-page="home"] .home-story-grid-v3 .home-story-card > p {
    margin: 0;
    color: #8a7f95;
    font-size: 12px;
    line-height: 1.45;
}

/* ---------- Footer ---------- */
body[data-page="home"] .home-footer {
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 12px;
    border-top: 1px solid #ece5f0;
    background: transparent;
    color: #a49ba8;
    font-size: 11px;
    text-align: center;
}

body[data-page="home"] .home-footer-legal {
    flex: 1 1 100%;
    max-width: none;
    margin: 0 0 8px;
    color: #a49ba8;
    font-size: 11px;
    line-height: 1.45;
}

body[data-page="home"] .home-footer a,
body[data-page="home"] .home-footer > span {
    color: #8d8291;
    font-size: 12px;
}

body[data-page="home"] .home-footer a {
    text-decoration: underline;
}

/* ---------- Mobile: banner full-bleed, copy below; same category strip, smaller tiles ---------- */
@media (max-width: 899px) {
    body[data-page="home"] .home-shell-v3 {
        max-width: none;
        padding: 12px 16px 24px !important;
    }

    body[data-page="home"] .home-hero-wrap {
        margin: 0;
    }

    body[data-page="home"] .home-hero-carousel {
        height: 275px;
        border-radius: 16px 16px 0 0;
    }

    body[data-page="home"] .home-hero-carousel-arrow {
        display: none !important;
    }

    body[data-page="home"] .home-landing-hero,
    body[data-page="home"].has-hero-carousel .home-landing-hero {
        position: static;
        min-height: 0 !important;
        padding: 20px 18px 22px;
        display: block !important;
        border: 1px solid #ece5f0;
        border-top: 0;
        border-radius: 0 0 16px 16px;
        background: #fff;
        box-shadow: none;
        pointer-events: auto;
    }

    body[data-page="home"]:not(.has-hero-carousel) .home-landing-hero {
        border-top: 1px solid #ece5f0;
        border-radius: 16px;
    }

    body[data-page="home"] .home-landing-copy,
    body[data-page="home"].has-hero-carousel .home-landing-copy {
        width: auto;
        max-width: none;
    }

    body[data-page="home"] .home-landing-copy h1,
    body[data-page="home"].has-hero-carousel .home-landing-copy h1 {
        max-width: none;
        margin: 0 0 8px;
        color: #241b2c;
        font-size: 19px;
        line-height: 1.25;
        letter-spacing: -.015em;
        font-weight: 750;
    }

    body[data-page="home"] .home-landing-copy > p,
    body[data-page="home"].has-hero-carousel .home-landing-copy > p {
        max-width: none;
        color: #625767;
        font-size: 13px;
        line-height: 1.48;
        opacity: .75;
    }

    body[data-page="home"] .home-hero-actions-v4 {
        margin-top: 14px;
        display: grid !important;
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);
        gap: 10px;
    }

    body[data-page="home"] .home-hero-btn {
        width: 100%;
        padding: 12px 8px;
        font-size: 13px;
    }

    body[data-page="home"] .home-hero-btn-primary {
        order: 1;
        padding: 13px 8px;
        font-size: 14px;
    }

    body[data-page="home"] .home-hero-actions-v4 a[href="/news"] {
        order: 2;
    }

    body[data-page="home"] .home-hero-actions-v4 a[href="/gallery"] {
        order: 3;
        grid-column: 1 / -1;
    }


    body[data-page="home"] .home-hero-mosaic-v3 {
        padding: 18px 0 0 !important;
    }

    body[data-page="home"] .home-hero-mosaic-v3 .home-mosaic-card,
    body[data-page="home"] .home-hero-mosaic-v3 .home-mosaic-1 {
        width: 78px !important;
        min-width: 78px !important;
        gap: 7px;
    }

    body[data-page="home"] .home-hero-mosaic-v3 .home-mosaic-card img {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
    }

    body[data-page="home"] .home-section,
    body[data-page="home"] .home-panel,
    body[data-page="home"] .home-materials-stage {
        padding-left: 0;
        padding-right: 0;
    }

    body[data-page="home"] .home-gallery-stage {
        margin-top: 26px !important;
        padding: 18px !important;
        border-radius: 16px;
    }

    body[data-page="home"] .home-section-head-v3 {
        flex-direction: row !important;
        align-items: baseline !important;
        gap: 10px !important;
    }

    body[data-page="home"] .home-section-head-v3 h2 {
        font-size: 20px !important;
        white-space: nowrap;
    }

    body[data-page="home"] .home-section-head-v3 .home-text-link {
        font-size: 12.5px;
        white-space: nowrap;
    }

    body[data-page="home"] .home-gallery-grid-v3,
    body[data-page="home"] .home-story-grid-v3 {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 699px) {
    body[data-page="home"] .home-new-panel .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media (max-width: 380px) {
    body[data-page="home"] .home-section-head-v3 h2 {
        font-size: 18px !important;
    }

    body[data-page="home"] .home-section-head-v3 .home-text-link {
        font-size: 11.5px;
    }
}

/* ============================================================
   V45.29.16 — UNIFIED PUBLIC PAGE GRID
   Canonical geometry for home, catalog breadcrumbs, gallery and news.
   ============================================================ */

:root {
    --dcr-page-max: 1440px;
    --dcr-page-gutter: 32px;
    --dcr-page-gutter-mobile: 16px;
    --dcr-page-inner-max: 1376px;
}

/* Catalog/deeper breadcrumbs use the same left/right content edge as the
   1440px customer shell (32px gutters => 1376px inner content width). */
.breadcrumb {
    box-sizing: border-box;
    padding-left: max(var(--dcr-page-gutter), calc((100vw - var(--dcr-page-max)) / 2 + var(--dcr-page-gutter))) !important;
    padding-right: max(var(--dcr-page-gutter), calc((100vw - var(--dcr-page-max)) / 2 + var(--dcr-page-gutter))) !important;
}

body[data-page="gallery"],
body[data-page="news-list"],
body[data-page="news-article"] {
    background: #f7f5f9 !important;
}

.public-page-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--dcr-page-max);
    min-height: 52vh;
    margin: 0 auto;
    padding: 16px var(--dcr-page-gutter) 48px;
}

.public-static-breadcrumb {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
}

.public-static-breadcrumb a {
    color: #6726AB;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.public-static-breadcrumb > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-page-head {
    margin: 0 0 24px;
}

.public-page-head h1 {
    margin: 0;
    color: #241b2c;
    font-size: clamp(24px, 2.15vw, 30px);
    line-height: 1.12;
    letter-spacing: -.025em;
    font-weight: 850;
}

.public-page-head p {
    max-width: 720px;
    margin: 7px 0 0;
    color: #6b6076;
    font-size: 14px;
    line-height: 1.5;
}

.public-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.public-gallery-grid > .home-loading,
.public-news-grid > .home-loading {
    grid-column: 1 / -1;
}

.public-gallery-card {
    min-width: 0;
    overflow: hidden;
    padding: 0;
    display: block;
    border: 1px solid #e9e3ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(45,30,55,.035);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.public-gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    background: #f0edf3;
}

.public-gallery-card > span {
    padding: 12px 13px 13px;
    display: block;
}

.public-gallery-card strong {
    display: block;
    color: #241b2c;
    font-size: 13.5px;
    line-height: 1.3;
    font-weight: 800;
}

.public-gallery-card small {
    margin-top: 4px;
    display: block;
    color: #8a7f95;
    font-size: 12px;
    line-height: 1.4;
}

.public-gallery-card:active {
    transform: none !important;
    scale: 1 !important;
    filter: brightness(.985) !important;
    opacity: .94 !important;
}

.public-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.public-news-card {
    min-width: 0;
    min-height: 178px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9e3ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(45,30,55,.03);
    color: inherit;
    text-decoration: none;
}

.public-news-meta {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.public-news-meta span,
.public-article-meta span {
    padding: 4px 9px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f4eef7;
    color: #6726AB;
    font-size: 10.5px;
    line-height: 1.2;
    font-weight: 800;
}

.public-news-meta time,
.public-article-meta time {
    color: #9b909f;
    font-size: 11px;
    line-height: 1.2;
}

.public-news-card h2 {
    margin: 0 0 8px;
    color: #241b2c;
    font-size: 16px;
    line-height: 1.28;
    letter-spacing: -.012em;
    font-weight: 820;
}

.public-news-card p {
    margin: 0;
    color: #756a7b;
    font-size: 13px;
    line-height: 1.5;
}

.public-news-more {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6726AB;
    font-size: 12.5px;
    line-height: 1.2;
    font-weight: 750;
}

.public-article {
    width: 100%;
    max-width: 860px;
    margin: 0;
    padding: 26px 28px 30px;
    border: 1px solid #e9e3ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(45,30,55,.035);
}

.public-article-meta {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.public-article h1 {
    margin: 0 0 20px;
    color: #241b2c;
    font-size: clamp(25px, 2.25vw, 32px);
    line-height: 1.15;
    letter-spacing: -.025em;
    font-weight: 850;
}

.public-article-text {
    color: #3f3446;
    font-size: 15px;
    line-height: 1.72;
    white-space: pre-line;
}

.public-article-back,
.public-inline-link {
    color: #6726AB;
    font-weight: 700;
    text-decoration: none;
}

.public-article-back {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
}

body[data-page="gallery"] > .home-footer,
body[data-page="news-list"] > .home-footer,
body[data-page="news-article"] > .home-footer {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--dcr-page-max);
    margin: 0 auto;
    padding: 20px var(--dcr-page-gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 12px;
    border-top: 1px solid #ece5f0;
    background: transparent;
    color: #a49ba8;
    font-size: 11px;
    text-align: center;
}

body[data-page="gallery"] > .home-footer .home-footer-legal,
body[data-page="news-list"] > .home-footer .home-footer-legal,
body[data-page="news-article"] > .home-footer .home-footer-legal {
    flex: 1 1 100%;
    max-width: 1120px;
    margin: 0 0 7px;
    color: #a49ba8;
    font-size: 11px;
    line-height: 1.45;
}

body[data-page="gallery"] > .home-footer a,
body[data-page="news-list"] > .home-footer a,
body[data-page="news-article"] > .home-footer a {
    color: #877d8b;
    font-size: inherit;
    text-decoration: none;
}

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

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

@media (max-width: 899px) {
    .breadcrumb {
        padding-left: var(--dcr-page-gutter-mobile) !important;
        padding-right: var(--dcr-page-gutter-mobile) !important;
    }

    .public-page-shell {
        padding: 12px var(--dcr-page-gutter-mobile) 34px;
    }

    .public-page-head {
        margin-bottom: 18px;
    }

    .public-page-head h1 {
        font-size: 24px;
    }

    .public-page-head p {
        margin-top: 6px;
        font-size: 13.5px;
    }

    .public-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .public-news-grid {
        gap: 12px;
    }

    .public-gallery-card,
    .public-news-card {
        border-radius: 14px;
    }

    .public-article {
        max-width: none;
        padding: 20px;
        border-radius: 16px;
    }

    .public-article h1 {
        margin-bottom: 16px;
        font-size: 25px;
    }

    .public-article-text {
        font-size: 14.5px;
        line-height: 1.68;
    }

    body[data-page="gallery"] > .home-footer,
    body[data-page="news-list"] > .home-footer,
    body[data-page="news-article"] > .home-footer {
        padding-left: var(--dcr-page-gutter-mobile);
        padding-right: var(--dcr-page-gutter-mobile);
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 620px) {
    .public-news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .public-gallery-grid {
        grid-template-columns: 1fr;
    }

    .public-gallery-card > span {
        padding: 11px 12px 12px;
    }

    .public-article {
        padding: 18px 16px 22px;
    }
}

/* ============================================================
   V45.30.1 — HOME B2B DISCOVERY
   Search, quick order, repeat/recent rails, curated hero controls,
   second-level category browsing and swipeable gallery lightbox.
   ============================================================ */

body[data-page="home"] .home-discovery {
    position: relative;
    z-index: 30;
    margin: 0 0 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

body[data-page="home"] .home-search-shell {
    position: relative;
    min-width: 0;
}

body[data-page="home"] .home-search-shell > input {
    width: 100%;
    height: 54px;
    padding: 0 48px 0 48px;
    border: 1px solid #e4dce8;
    border-radius: 16px;
    outline: none;
    background: #fff;
    color: #241b2c;
    font: inherit;
    font-size: 15px;
    font-weight: 650;
    box-shadow: 0 6px 22px rgba(55,31,73,.05);
    transition: border-color .16s ease, box-shadow .16s ease;
}

body[data-page="home"] .home-search-shell > input::placeholder {
    color: #9b909f;
    font-weight: 550;
}

body[data-page="home"] .home-search-shell > input:focus {
    border-color: rgba(103,38,171,.52);
    box-shadow: 0 0 0 3px rgba(103,38,171,.08), 0 8px 24px rgba(55,31,73,.07);
}

body[data-page="home"] .home-search-icon {
    position: absolute;
    z-index: 2;
    left: 17px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    fill: none;
    stroke: #6f6474;
    stroke-width: 1.8;
    stroke-linecap: round;
    pointer-events: none;
}

body[data-page="home"] .home-search-clear {
    position: absolute;
    z-index: 3;
    right: 10px;
    top: 50%;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #8e8392;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

body[data-page="home"] .home-search-clear:hover { background: #f5f1f7; }

body[data-page="home"] .home-quick-order-trigger {
    min-width: 166px;
    height: 54px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #ded3e4;
    border-radius: 16px;
    background: #fff;
    color: #4d4256;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(55,31,73,.04);
}

body[data-page="home"] .home-quick-order-trigger:hover {
    border-color: #cdbadd;
    background: #fbf9fc;
}

body[data-page="home"] .home-quick-order-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f0e5fa;
    color: #6726AB;
    font-size: 19px;
    line-height: 1;
    font-weight: 600;
}

body[data-page="home"] .home-search-results {
    position: absolute;
    z-index: 80;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    max-height: min(470px, 70vh);
    overflow: auto;
    padding: 6px;
    border: 1px solid #e5dce9;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(42,24,55,.18);
}

body[data-page="home"] .home-search-result {
    min-height: 68px;
    padding: 7px 9px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    border-radius: 11px;
    color: #33283a;
    text-decoration: none;
}

body[data-page="home"] .home-search-result:hover,
body[data-page="home"] .home-search-result.is-active {
    background: #f6f2f8;
}

body[data-page="home"] .home-search-result > img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 9px;
    background: #f7f5f8;
}

body[data-page="home"] .home-search-result-copy,
body[data-page="home"] .home-search-result-side {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

body[data-page="home"] .home-search-result-copy { gap: 4px; }
body[data-page="home"] .home-search-result-copy strong {
    overflow: hidden;
    color: #2b2230;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body[data-page="home"] .home-search-result-copy small {
    overflow: hidden;
    color: #8a7e90;
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-page="home"] .home-search-result-side {
    align-items: flex-end;
    gap: 5px;
    text-align: right;
}
body[data-page="home"] .home-search-result-side > b {
    color: #342a39;
    font-size: 12px;
    white-space: nowrap;
}
body[data-page="home"] .home-search-result-side .badge,
body[data-page="home"] .home-search-result-side .badge-preorder,
body[data-page="home"] .home-search-result-side .out {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 2px 6px !important;
    display: inline-flex !important;
    border-radius: 999px !important;
    font-size: 8px !important;
    line-height: 1.2 !important;
}

body[data-page="home"] .home-search-all,
body[data-page="home"] .home-search-message {
    padding: 12px 13px;
    display: block;
    color: #786d7c;
    font-size: 12px;
    line-height: 1.35;
}
body[data-page="home"] .home-search-all {
    border-top: 1px solid #eee8f1;
    color: #6726AB;
    font-weight: 800;
    text-decoration: none;
}

body[data-page="home"] .home-hero-position {
    position: absolute;
    z-index: 5;
    right: 14px;
    bottom: 14px;
    min-width: 46px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(28,20,34,.52);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    text-align: center;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    pointer-events: none;
}

/* Categories now have their own section heading. */
body[data-page="home"] .home-category-stage {
    padding-top: 24px !important;
}
body[data-page="home"] .home-category-stage .home-section-head-v3 {
    margin-bottom: 12px !important;
}
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 {
    padding-top: 0 !important;
}

@media (min-width: 900px) {
    body[data-page="home"] .home-category-stage .home-hero-mosaic-v3.is-multirow {
        display: grid !important;
        grid-template-columns: repeat(var(--home-category-columns, 6), 110px) !important;
        grid-template-rows: repeat(2, auto) !important;
        grid-auto-flow: row !important;
        grid-auto-columns: unset !important;
        align-items: start;
        justify-content: start;
        column-gap: 12px !important;
        row-gap: 14px !important;
    }
}

body[data-page="home"] .home-text-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

/* Compact personalized rails: hidden completely when there is no data. */
body[data-page="home"] .home-smart-section[hidden] { display: none !important; }
body[data-page="home"] .home-smart-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

body[data-page="home"] .home-smart-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #eae3ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(53,31,66,.035);
}

body[data-page="home"] .home-smart-card-main {
    min-width: 0;
    display: block;
    color: inherit;
    text-decoration: none;
}

body[data-page="home"] .home-smart-card-image {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #faf9fb;
}
body[data-page="home"] .home-smart-card-image > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
}
body[data-page="home"] .home-smart-card-image > .badge {
    top: 9px !important;
    left: 9px !important;
}

body[data-page="home"] .home-smart-card-copy {
    padding: 11px 12px 9px;
    display: grid;
    gap: 4px;
}
body[data-page="home"] .home-smart-card-copy small {
    color: #998da0;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 700;
}
body[data-page="home"] .home-smart-card-copy strong {
    min-height: 32px;
    overflow: hidden;
    color: #2c2331;
    font-size: 12.5px;
    line-height: 1.28;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
body[data-page="home"] .home-smart-card-copy b {
    color: #352a3b;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 900;
}

body[data-page="home"] .home-smart-add {
    min-height: 38px;
    margin: auto 10px 10px;
    border: 0;
    border-radius: 11px;
    background: #6726AB;
    color: #fff;
    font: inherit;
    font-size: 11.5px;
    line-height: 1.2;
    font-weight: 800;
    cursor: pointer;
}
body[data-page="home"] .home-smart-add:disabled {
    background: #eee9f0;
    color: #918795;
    cursor: default;
}

/* Gallery lightbox navigation. */
body[data-page="home"] .home-lightbox-media { position: relative; touch-action: pan-y; }
body[data-page="home"] .home-lightbox-nav {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    transform: translateY(-50%);
    background: rgba(25,17,31,.52);
    color: transparent;
    font-size: 0;
    cursor: pointer;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}
body[data-page="home"] .home-lightbox-nav.prev { left: 12px; }
body[data-page="home"] .home-lightbox-nav.next { right: 12px; }
body[data-page="home"] .home-lightbox-nav::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}
body[data-page="home"] .home-lightbox-nav.prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
body[data-page="home"] .home-lightbox-nav.next::before { transform: translate(-65%, -50%) rotate(45deg); }
body[data-page="home"] .home-lightbox-counter {
    position: absolute;
    z-index: 4;
    right: 12px;
    bottom: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(25,17,31,.55);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    pointer-events: none;
}
body[data-page="home"] #homeLightboxImage.is-changing { animation: dcrHomeGalleryIn .18s ease both; }
@keyframes dcrHomeGalleryIn { from { opacity: .74; } to { opacity: 1; } }

/* Quick order modal. */
body.home-quick-order-open { overflow: hidden !important; }
body[data-page="home"] .home-quick-order-modal {
    position: fixed;
    z-index: 12050;
    inset: 0;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(24,17,29,.55);
    opacity: 0;
    transition: opacity .16s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
body[data-page="home"] .home-quick-order-modal[hidden] { display: none !important; }
body[data-page="home"] .home-quick-order-modal.is-open { opacity: 1; }
body[data-page="home"] .home-quick-order-dialog {
    width: min(720px, 100%);
    max-height: min(760px, calc(100dvh - 36px));
    overflow: auto;
    padding: 20px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(24,15,31,.28);
    transform: translateY(8px) scale(.985);
    transition: transform .18s ease;
}
body[data-page="home"] .home-quick-order-modal.is-open .home-quick-order-dialog { transform: translateY(0) scale(1); }
body[data-page="home"] .home-quick-order-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
body[data-page="home"] .home-quick-order-head > div > span {
    display: block;
    margin-bottom: 3px;
    color: #8d8192;
    font-size: 10px;
    font-weight: 750;
}
body[data-page="home"] .home-quick-order-head h2 {
    margin: 0;
    color: #281f2e;
    font-size: 23px;
    line-height: 1.15;
}
body[data-page="home"] .home-quick-order-close {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f4f0f5;
    color: #5a4e60;
    font-size: 24px;
    cursor: pointer;
}
body[data-page="home"] .home-quick-order-help {
    margin: 12px 0;
    color: #736878;
    font-size: 12.5px;
    line-height: 1.5;
}
body[data-page="home"] #homeQuickOrderInput {
    box-sizing: border-box;
    width: 100%;
    min-height: 126px;
    resize: vertical;
    padding: 12px 14px;
    border: 1px solid #ded5e3;
    border-radius: 13px;
    outline: none;
    color: #302637;
    background: #fcfbfd;
    font: inherit;
    font-size: 15px;
    line-height: 1.5;
}
body[data-page="home"] #homeQuickOrderInput:focus {
    border-color: rgba(103,38,171,.48);
    box-shadow: 0 0 0 3px rgba(103,38,171,.07);
}
body[data-page="home"] .home-quick-order-preview {
    margin-top: 12px;
    display: grid;
    gap: 6px;
}
body[data-page="home"] .home-quick-order-empty {
    padding: 14px;
    border: 1px dashed #ddd4e1;
    border-radius: 11px;
    color: #968b9a;
    font-size: 12px;
    text-align: center;
}
body[data-page="home"] .home-quick-order-row {
    min-width: 0;
    padding: 7px 9px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    gap: 9px;
    align-items: center;
    border: 1px solid #ebe5ee;
    border-radius: 11px;
    background: #fff;
}
body[data-page="home"] .home-quick-order-row > img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: contain;
    background: #f7f5f8;
}
body[data-page="home"] .home-quick-order-row > span {
    min-width: 0;
    display: grid;
    gap: 2px;
}
body[data-page="home"] .home-quick-order-row > span strong { color: #312637; font-size: 11.5px; }
body[data-page="home"] .home-quick-order-row > span small {
    overflow: hidden;
    color: #8d8192;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body[data-page="home"] .home-quick-order-row > em {
    color: #625668;
    font-size: 11px;
    font-style: normal;
    font-weight: 750;
    white-space: nowrap;
}
body[data-page="home"] .home-quick-order-row > b {
    color: #3a2f40;
    font-size: 11px;
    white-space: nowrap;
}
body[data-page="home"] .home-quick-order-row.is-error { border-color: #ead8dc; background: #fff9fa; }
body[data-page="home"] .home-quick-order-row.is-error > b { color: #a64e5b; }
body[data-page="home"] .home-quick-order-status {
    min-height: 18px;
    margin-top: 8px;
    color: #34714d;
    font-size: 11px;
    font-weight: 750;
}
body[data-page="home"] .home-quick-order-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
body[data-page="home"] .home-quick-order-actions > button,
body[data-page="home"] .home-quick-order-actions > a {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font: inherit;
    font-size: 11.5px;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
body[data-page="home"] .home-quick-order-secondary {
    border: 1px solid #ded5e3;
    background: #fff;
    color: #64596a;
}
body[data-page="home"] .home-quick-order-primary {
    border: 1px solid #6726AB;
    background: #6726AB;
    color: #fff;
}
body[data-page="home"] .home-quick-order-primary:disabled {
    border-color: #e4dfe6;
    background: #eee9f0;
    color: #a097a4;
    cursor: default;
}

@media (max-width: 899px) {
    body[data-page="home"] .home-discovery {
        margin-bottom: 12px;
        grid-template-columns: minmax(0, 1fr) 132px;
        gap: 8px;
    }
    body[data-page="home"] .home-search-shell > input {
        height: 50px;
        padding-left: 43px;
        padding-right: 39px;
        border-radius: 14px;
        font-size: 16px; /* prevent iOS focus zoom */
    }
    body[data-page="home"] .home-search-icon { left: 14px; width: 19px; height: 19px; }
    body[data-page="home"] .home-quick-order-trigger {
        min-width: 0;
        height: 50px;
        padding: 0 11px;
        border-radius: 14px;
        font-size: 11px;
        gap: 6px;
    }
    body[data-page="home"] .home-quick-order-icon { width: 21px; height: 21px; font-size: 17px; }

    body[data-page="home"] .home-search-results {
        left: 0;
        right: min(-140px, calc(-132px - 8px));
        max-height: min(430px, 66dvh);
        border-radius: 14px;
    }
    body[data-page="home"] .home-search-result {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 9px;
    }
    body[data-page="home"] .home-search-result > img { width: 48px; height: 48px; }
    body[data-page="home"] .home-search-result-side > b { font-size: 10.5px; }

    body[data-page="home"] .home-hero-actions-v4 {
        grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    }
    body[data-page="home"] .home-hero-actions-v4 a[href="/gallery"] {
        order: 2 !important;
        grid-column: auto !important;
    }
    body[data-page="home"] .home-hero-position {
        right: 10px;
        bottom: 10px;
    }

    body[data-page="home"] .home-category-stage { padding-top: 22px !important; }
    body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 {
        display: flex !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        gap: 10px !important;
    }
    body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card,
    body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-1 {
        width: 92px !important;
        min-width: 92px !important;
    }
    body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card img {
        width: 92px !important;
        height: 92px !important;
        flex-basis: 92px !important;
        border-radius: 14px;
    }

    body[data-page="home"] .home-smart-grid {
        margin-left: -16px;
        margin-right: -16px;
        padding: 0 16px 3px;
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }
    body[data-page="home"] .home-smart-grid::-webkit-scrollbar { display: none; }
    body[data-page="home"] .home-smart-card {
        flex: 0 0 min(68vw, 250px);
        scroll-snap-align: start;
    }
    body[data-page="home"] .home-smart-card-image { height: 144px; }

    body[data-page="home"] .home-lightbox-nav {
        width: 34px;
        height: 34px;
    }
    body[data-page="home"] .home-lightbox-nav.prev { left: 8px; }
    body[data-page="home"] .home-lightbox-nav.next { right: 8px; }

    body[data-page="home"] .home-quick-order-modal {
        padding: 0;
        align-items: flex-end;
    }
    body[data-page="home"] .home-quick-order-dialog {
        width: 100%;
        max-height: min(88dvh, 760px);
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
        border-radius: 20px 20px 0 0;
    }
    body[data-page="home"] #homeQuickOrderInput { font-size: 16px; }
    body[data-page="home"] .home-quick-order-row {
        grid-template-columns: 38px minmax(0, 1fr) auto;
    }
    body[data-page="home"] .home-quick-order-row > img { width: 38px; height: 38px; }
    body[data-page="home"] .home-quick-order-row > b {
        grid-column: 2 / -1;
        justify-self: start;
    }
    body[data-page="home"] .home-quick-order-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    body[data-page="home"] .home-quick-order-primary { grid-column: 1 / -1; min-height: 46px !important; }
}

@media (max-width: 520px) {
    body[data-page="home"] .home-discovery {
        grid-template-columns: minmax(0, 1fr);
    }
    body[data-page="home"] .home-quick-order-trigger {
        width: 100%;
        height: 42px;
    }
    body[data-page="home"] .home-search-results {
        right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body[data-page="home"] .home-quick-order-modal,
    body[data-page="home"] .home-quick-order-dialog,
    body[data-page="home"] #homeLightboxImage.is-changing {
        transition: none !important;
        animation: none !important;
    }
}
@media (max-width: 899px) {
    body[data-page="home"] .home-lightbox-nav { display: none !important; }
}

/* ============================================================
   V45.30.1 — CATALOG DISCOVERY CONTROLS
   Search and "all products" live in Catalog only; home stays a showcase.
   ============================================================ */
body[data-page="catalog"] .catalog-root-tools {
    margin: 0 0 22px;
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    align-items: center;
    gap: 12px;
}

body[data-page="catalog"] .catalog-root-tools[hidden] {
    display: none !important;
}

body[data-page="catalog"] .catalog-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid #e7e1ea;
    border-radius: 12px;
    background: #f7f5f8;
}

body[data-page="catalog"] .catalog-view-switch-btn {
    min-height: 38px;
    padding: 8px 14px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #756a7a;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

body[data-page="catalog"] .catalog-view-switch-btn.active {
    background: #fff;
    color: #37293c;
    box-shadow: 0 1px 4px rgba(48, 32, 55, .10);
}

body[data-page="catalog"] .catalog-search-box {
    position: relative;
    min-width: 0;
    display: block;
}

body[data-page="catalog"] .catalog-search-box > svg {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    fill: none;
    stroke: #887d8d;
    stroke-width: 1.8;
    pointer-events: none;
}

body[data-page="catalog"] .catalog-search-box > input {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 10px 42px 10px 42px;
    border: 1px solid #e5dee8;
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: #342b38;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    transition: border-color .16s ease, box-shadow .16s ease;
}

body[data-page="catalog"] .catalog-search-box > input::placeholder {
    color: #9b929f;
    font-weight: 550;
}

body[data-page="catalog"] .catalog-search-box > input:focus {
    border-color: #b7a9be;
    box-shadow: 0 0 0 3px rgba(85, 57, 96, .07);
}

body[data-page="catalog"] .catalog-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 30px;
    height: 30px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #756a7a;
    font-size: 20px;
    line-height: 30px;
    cursor: pointer;
}

body[data-page="catalog"] .catalog-search-clear:hover {
    background: #f4f1f5;
}

body[data-page="catalog"] .catalog-search-summary {
    min-width: 112px;
    color: #887e8c;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
    text-align: right;
}

body[data-page="catalog"] .catalog-search-empty {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 28px 18px;
    border: 1px dashed #e2dbe5;
    border-radius: 14px;
    background: #faf9fb;
    text-align: center;
}

body[data-page="catalog"] .catalog-search-empty strong {
    color: #3b303f;
    font-size: 15px;
}

body[data-page="catalog"] .catalog-search-empty span {
    color: #817686;
    font-size: 12px;
}

@media (max-width: 720px) {
    body[data-page="catalog"] .catalog-root-tools {
        margin-bottom: 16px;
        grid-template-columns: 1fr;
        gap: 9px;
    }

    body[data-page="catalog"] .catalog-view-switch {
        width: 100%;
        box-sizing: border-box;
    }

    body[data-page="catalog"] .catalog-view-switch-btn {
        flex: 1 1 0;
        min-width: 0;
        min-height: 40px;
        padding-inline: 10px;
        font-size: 12.5px;
    }

    body[data-page="catalog"] .catalog-search-box > input {
        min-height: 45px;
        font-size: 13px;
    }

    body[data-page="catalog"] .catalog-search-summary {
        min-width: 0;
        padding: 0 2px;
        text-align: left;
        font-size: 10.5px;
    }
}

/* ============================================================
   V45.30.8 — DISCOVERY POLISH / MOBILE CATALOG PERFORMANCE
   ============================================================ */

/* Catalog search: use only the DCR clear button, never the browser-native ×. */
body[data-page="catalog"] .catalog-search-box > input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}
body[data-page="catalog"] .catalog-search-box > input[type="search"]::-webkit-search-cancel-button,
body[data-page="catalog"] .catalog-search-box > input[type="search"]::-webkit-search-decoration,
body[data-page="catalog"] .catalog-search-box > input[type="search"]::-webkit-search-results-button,
body[data-page="catalog"] .catalog-search-box > input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

/* Home categories: always one rail. Navigation arrows work on desktop and mobile. */
body[data-page="home"] .home-category-rail-shell {
    position: relative;
    width: 100%;
    min-width: 0;
}
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3,
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3.is-multirow {
    display: flex !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-auto-flow: unset !important;
    grid-auto-columns: unset !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3::-webkit-scrollbar {
    display: none;
}
body[data-page="home"] .home-category-stage .home-mosaic-card {
    scroll-snap-align: start;
}
body[data-page="home"] .home-category-nav {
    position: absolute;
    z-index: 7;
    top: 48px;
    width: 38px;
    height: 38px;
    padding: 0 0 2px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(62, 46, 69, .13);
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #4f3c59;
    box-shadow: 0 5px 18px rgba(45, 31, 51, .14);
    font: inherit;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
body[data-page="home"] .home-category-nav.prev { left: -17px; }
body[data-page="home"] .home-category-nav.next { right: -17px; }
body[data-page="home"] .home-category-nav[hidden] { display: none !important; }
body[data-page="home"] .home-category-nav:disabled {
    opacity: .24;
    cursor: default;
}
body[data-page="home"] .home-category-nav:not(:disabled):hover {
    background: #fff;
    color: #6726AB;
}

/* Mobile catalog: keep vertical scrolling on the compositor. Off-screen cards
   are skipped by supporting browsers and extra carousel images are hydrated
   only after the customer interacts with that card. */
@media (max-width: 767px) {
    body[data-page="catalog"] .product-card {
        content-visibility: auto;
        contain-intrinsic-size: 560px;
    }
    body[data-page="catalog"] .product-card .slider-container {
        touch-action: pan-y;
    }
    body[data-page="catalog"] .product-card img {
        -webkit-user-drag: none;
    }

    body[data-page="home"] .home-category-nav {
        top: 41px;
        width: 32px;
        height: 32px;
        font-size: 23px;
        background: rgba(255,255,255,.96);
        box-shadow: 0 4px 14px rgba(45, 31, 51, .16);
    }
    body[data-page="home"] .home-category-nav.prev { left: 2px; }
    body[data-page="home"] .home-category-nav.next { right: 2px; }
}


/* ============================================================
   V45.30.8 — CATEGORY RAIL / CACHE-BUSTED UX FINAL OVERRIDES
   ============================================================ */
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3,
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3.is-multirow {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-auto-flow: unset !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3::-webkit-scrollbar { display:none; }
body[data-page="home"] .home-category-stage .home-mosaic-card {
    flex: 0 0 auto !important;
    scroll-snap-align: start;
}
body[data-page="home"] .home-category-nav {
    display: grid;
    place-items: center;
    font-size: 19px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}
body[data-page="home"] .home-category-nav[hidden] { display:none !important; }
@media (max-width: 767px) {
    body[data-page="home"] .home-category-rail-shell {
        margin-left: -4px;
        margin-right: -4px;
        padding-left: 4px;
        padding-right: 4px;
    }
    body[data-page="home"] .home-category-nav {
        width: 34px !important;
        height: 34px !important;
        top: 46px !important;
        border-width: 1px !important;
        opacity: .96;
    }
    body[data-page="home"] .home-category-nav.prev { left: 4px !important; }
    body[data-page="home"] .home-category-nav.next { right: 4px !important; }
    body[data-page="home"] .home-category-nav:disabled { opacity: .30 !important; }
}

/* ============================================================
   V45.30.8 — SAFE IMAGE COPY DETERRENCE
   Does not intercept tap, click, swipe, pointer or pinch gestures.
   ============================================================ */
.product-card img,
.product-modal img,
.category-card img,
.home-mosaic-card img,
.home-new-products img,
.home-search-result img,
.home-gallery img,
.gallery-grid img,
.gallery-card img,
.dcr-pinch-image {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}


/* ============================================================
   V45.30.10 — HOME CLEANUP
   Keep category discovery as one clean horizontal rail without overlay arrows.
   Recently viewed is intentionally not shown on the homepage.
   ============================================================ */
body[data-page="home"] .home-category-nav {
    display: none !important;
}
body[data-page="home"] #homeRecentSection {
    display: none !important;
}
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 {
    cursor: default;
}
@media (max-width: 767px) {
    body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 {
        touch-action: pan-x pan-y;
    }
}


/* ============================================================
   V45.30.10 — HOME CATEGORY CHEVRONS
   Keep arrow navigation, but make it visually quiet: narrow edge chevrons,
   no circular floating buttons. Recently viewed remains removed from home.
   ============================================================ */
body[data-page="home"] .home-category-rail-shell {
    position: relative;
}
body[data-page="home"] .home-category-nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 8;
    top: 17px !important;
    width: 27px !important;
    height: 62px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: rgba(255,255,255,.76) !important;
    color: #5f4b67 !important;
    box-shadow: 0 2px 10px rgba(45,31,51,.08) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: none !important;
    cursor: pointer;
    opacity: .68;
    transition: opacity .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}
body[data-page="home"] .home-category-nav.prev { left: -5px !important; }
body[data-page="home"] .home-category-nav.next { right: -5px !important; }
body[data-page="home"] .home-category-nav span {
    display: block;
    font: 400 30px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    transform: translateY(-1px);
}
body[data-page="home"] .home-category-nav[hidden] { display: none !important; }
body[data-page="home"] .home-category-nav:disabled {
    opacity: 0 !important;
    pointer-events: none;
}
@media (hover:hover) and (pointer:fine) {
    body[data-page="home"] .home-category-rail-shell:hover .home-category-nav:not(:disabled) {
        opacity: .94;
    }
    body[data-page="home"] .home-category-nav:not(:disabled):hover {
        background: rgba(255,255,255,.97) !important;
        color: #6726AB !important;
        transform: scale(1.04) !important;
    }
}
@media (max-width: 767px) {
    body[data-page="home"] .home-category-nav {
        top: 19px !important;
        width: 24px !important;
        height: 52px !important;
        border-radius: 8px !important;
        opacity: .80;
        box-shadow: 0 1px 8px rgba(45,31,51,.08) !important;
    }
    body[data-page="home"] .home-category-nav.prev { left: 1px !important; }
    body[data-page="home"] .home-category-nav.next { right: 1px !important; }
    body[data-page="home"] .home-category-nav span {
        font-size: 27px;
    }
}


/* ============================================================
   V45.30.11 — PRODUCT IMAGE VIEWER
   Full-screen click/tap enlargement. Existing swipe and pinch stay intact.
   ============================================================ */
.product-modal .detail-swipe-track img {
    cursor: zoom-in;
}

.product-image-viewer[hidden] {
    display: none !important;
}

.product-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 24px 72px 44px;
    background: rgba(13, 9, 17, .94);
    opacity: 0;
    transition: opacity .16s ease;
    overscroll-behavior: contain;
}

.product-image-viewer.is-open {
    opacity: 1;
}

.product-image-viewer-stage {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
}

.product-image-viewer-img {
    display: block;
    max-width: min(1400px, 100%);
    max-height: calc(100vh - 68px);
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.product-image-viewer-close,
.product-image-viewer-nav {
    position: fixed;
    z-index: 2;
    border: 0;
    color: #fff;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .14s ease, transform .14s ease;
}

.product-image-viewer-close {
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    font-weight: 300;
}

.product-image-viewer-nav {
    top: 50%;
    width: 42px;
    height: 62px;
    border-radius: 14px;
    transform: translateY(-50%);
    font-size: 42px;
    line-height: 1;
    font-weight: 250;
}

.product-image-viewer-nav.prev { left: max(14px, env(safe-area-inset-left)); }
.product-image-viewer-nav.next { right: max(14px, env(safe-area-inset-right)); }
.product-image-viewer-close:hover,
.product-image-viewer-nav:hover { background: rgba(255,255,255,.18); }
.product-image-viewer-nav:hover { transform: translateY(-50%) scale(1.04); }
.product-image-viewer-close:hover { transform: scale(1.04); }

.product-image-viewer-counter {
    position: fixed;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    color: rgba(255,255,255,.84);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .02em;
    pointer-events: none;
}

@media (max-width: 767px) {
    .product-image-viewer {
        padding: 54px 12px 48px;
    }
    .product-image-viewer-img {
        max-width: 100%;
        max-height: calc(100vh - 102px);
    }
    .product-image-viewer-nav {
        width: 34px;
        height: 54px;
        border-radius: 12px;
        font-size: 34px;
        background: rgba(0,0,0,.22);
    }
    .product-image-viewer-nav.prev { left: 6px; }
    .product-image-viewer-nav.next { right: 6px; }
    .product-image-viewer-close {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}

/* ============================================================
   V45.30.15 — PDF / КП COMPRESSION PRESETS
   ============================================================ */

.admin-proposal-view {
    min-height: 0 !important;
    overflow: hidden !important;
}
.admin-proposal-shell {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 18px 20px 20px;
    gap: 16px;
    box-sizing: border-box;
}
.admin-proposal-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex: 0 0 auto;
}
.admin-proposal-heading h3 {
    margin: 3px 0 4px;
    font-size: 1.35rem;
    line-height: 1.15;
    color: #302833;
}
.admin-proposal-heading p {
    margin: 0;
    color: #7c7180;
    font-size: .84rem;
}
.admin-proposal-quick-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}
.admin-proposal-quick-actions button {
    border: 1px solid rgba(90,68,101,.12);
    background: #fff;
    color: #5d5362;
    border-radius: 10px;
    min-height: 36px;
    padding: 0 12px;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}
.admin-proposal-quick-actions button:hover { background: #f7f3f8; }
.admin-proposal-layout {
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
    gap: 14px;
}
.admin-proposal-settings,
.admin-proposal-picker {
    min-height: 0;
    border: 1px solid rgba(83,60,94,.10);
    border-radius: 16px;
    background: #fff;
}
.admin-proposal-settings {
    padding: 16px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.admin-proposal-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.admin-proposal-field > span,
.admin-proposal-discount-row > label > span {
    font-size: .72rem;
    font-weight: 800;
    color: #5f5463;
    letter-spacing: .01em;
}
.admin-proposal-field > span small { font-weight: 500; color: #9c929f; }
.admin-proposal-field input[type="text"],
.admin-proposal-discount-input input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(92,70,102,.14);
    background: #faf8fb;
    color: #302833;
    min-height: 40px;
    border-radius: 10px;
    padding: 0 11px;
    font: inherit;
    font-size: .84rem;
    outline: none;
}
.admin-proposal-field input:focus,
.admin-proposal-discount-input input:focus {
    border-color: rgba(103,38,171,.42);
    box-shadow: 0 0 0 3px rgba(103,38,171,.08);
}
.admin-proposal-segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 3px;
    border-radius: 10px;
    background: #f4f0f5;
}
.admin-proposal-segmented button {
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #716677;
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
}
.admin-proposal-segmented button.active {
    background: #fff;
    color: #6726ab;
    box-shadow: 0 1px 5px rgba(55,37,62,.09);
}
.admin-proposal-discount-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) 88px;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border-radius: 12px;
    background: #faf8fb;
    border: 1px solid rgba(92,70,102,.08);
}
.admin-proposal-switch {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: #514756;
    font-size: .79rem;
    font-weight: 700;
}
.admin-proposal-switch input {
    width: 17px;
    height: 17px;
    accent-color: #6726ab;
    flex: 0 0 auto;
}
.admin-proposal-option {
    padding: 2px 1px;
}
.admin-proposal-discount-input {
    display: flex;
    align-items: center;
    gap: 5px;
}
.admin-proposal-discount-input input { min-height: 34px; text-align: right; padding-inline: 8px; }
.admin-proposal-discount-input input:disabled { opacity: .45; }
.admin-proposal-discount-input span { color:#7a6e7e; font-size:.8rem; font-weight:800; }
.admin-proposal-info {
    margin-top: 2px;
    padding: 12px;
    border-radius: 12px;
    background: #f7f3f8;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.admin-proposal-info strong { color:#342b38; font-size:.9rem; }
.admin-proposal-info span { color:#6f6474; font-size:.76rem; }
.admin-proposal-info small { color:#958a98; font-size:.68rem; line-height:1.45; margin-top:4px; }
.admin-proposal-generate {
    margin-top: auto;
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    background: #6726ab;
    color: #fff;
    font: inherit;
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(103,38,171,.16);
}
.admin-proposal-generate:hover:not(:disabled) { background:#5c219a; }
.admin-proposal-generate:disabled { opacity:.45; cursor:not-allowed; box-shadow:none; }
.admin-proposal-picker {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.admin-proposal-picker-head {
    flex: 0 0 auto;
    padding: 12px;
    border-bottom: 1px solid rgba(83,60,94,.08);
    background: rgba(250,248,251,.92);
}
.admin-proposal-picker-head .admin-search-wrap { width:100%; }
.admin-proposal-picker-caption {
    padding: 8px 3px 0;
    color: #938899;
    font-size: .7rem;
}
.admin-proposal-tree {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 9px 10px 18px;
}
.admin-proposal-tree details > summary { list-style:none; }
.admin-proposal-tree details > summary::-webkit-details-marker { display:none; }
.admin-proposal-group,
.admin-proposal-section {
    border-radius: 11px;
}
.admin-proposal-group { margin-bottom: 7px; border:1px solid rgba(82,60,91,.08); overflow:hidden; background:#fff; }
.admin-proposal-group > summary,
.admin-proposal-section > summary {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    cursor:pointer;
    user-select:none;
}
.admin-proposal-group > summary { min-height:44px; padding:0 12px; background:#f8f5f9; }
.admin-proposal-section > summary { min-height:40px; padding:0 10px; background:#fff; border-top:1px solid rgba(82,60,91,.06); }
.admin-proposal-group > summary label,
.admin-proposal-section > summary label {
    min-width:0;
    display:flex;
    align-items:center;
    gap:9px;
    flex:1 1 auto;
    font-size:.8rem;
    font-weight:800;
    color:#443a48;
    cursor:pointer;
}
.admin-proposal-section > summary label { font-size:.76rem; font-weight:750; color:#63586a; }
.admin-proposal-group > summary label span,
.admin-proposal-section > summary label span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-proposal-group > summary input,
.admin-proposal-section > summary input,
.admin-proposal-product input { width:16px; height:16px; accent-color:#6726ab; flex:0 0 auto; }
.admin-proposal-group > summary small,
.admin-proposal-section > summary small { color:#9b919d; font-size:.66rem; font-weight:700; margin-left:auto; }
.admin-proposal-group > summary b,
.admin-proposal-section > summary b { color:#9b919d; font-size:.75rem; transition:transform .16s ease; }
.admin-proposal-group[open] > summary b,
.admin-proposal-section[open] > summary b { transform:rotate(180deg); }
.admin-proposal-sections { padding:4px 7px 7px; }
.admin-proposal-products { padding:3px 4px 8px 24px; }
.admin-proposal-product {
    min-height: 52px;
    display: grid;
    grid-template-columns: 18px 42px minmax(0,1fr);
    align-items: center;
    gap: 8px;
    padding: 5px 5px;
    border-radius: 9px;
    cursor: pointer;
}
.admin-proposal-product:hover { background:#faf7fb; }
.admin-proposal-product img {
    width:42px;
    height:42px;
    object-fit:contain;
    border-radius:8px;
    background:#f5f2f6;
}
.admin-proposal-product span { min-width:0; display:flex; flex-direction:column; gap:3px; }
.admin-proposal-product strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#443a48; font-size:.74rem; }
.admin-proposal-product small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#938899; font-size:.66rem; }

@media (max-width: 820px) {
    .admin-proposal-view { overflow:auto !important; }
    .admin-proposal-shell { height:auto; min-height:100%; padding:14px 12px 20px; }
    .admin-proposal-heading { align-items:flex-start; flex-direction:column; }
    .admin-proposal-quick-actions { width:100%; }
    .admin-proposal-quick-actions button { flex:1 1 0; }
    .admin-proposal-layout { display:flex; flex-direction:column; overflow:visible; }
    .admin-proposal-settings { overflow:visible; }
    .admin-proposal-picker { min-height:520px; }
    .admin-proposal-tree { max-height:62vh; }
    .admin-proposal-generate { position:sticky; bottom:8px; z-index:4; }
}

.admin-proposal-segmented.admin-proposal-compression {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-proposal-segmented.admin-proposal-compression button {
    padding: 0 5px;
    font-size: .70rem;
    white-space: nowrap;
}
.admin-proposal-field-hint {
    display: block;
    margin-top: -1px;
    color: #9a909d;
    font-size: .66rem;
    line-height: 1.35;
}
@media (max-width: 430px) {
    .admin-proposal-segmented.admin-proposal-compression button {
        font-size: .66rem;
    }
}


/* v45.30.34 — smooth same-origin page navigation without layout motion */
@view-transition {
    navigation: auto;
}
@keyframes dcrPageFadeOut { from { opacity: 1; } to { opacity: .94; } }
@keyframes dcrPageFadeIn { from { opacity: .94; } to { opacity: 1; } }
::view-transition-old(root) {
    animation: 70ms ease-out both dcrPageFadeOut;
}
::view-transition-new(root) {
    animation: 100ms ease-in both dcrPageFadeIn;
}
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}


/* ===== DCR 45.30.34 — Gallery 4:3 source/preview system ===== */
body[data-page="home"] .home-gallery-grid-v3 .home-gallery-card img,
body[data-page="gallery"] .public-gallery-card img {
    aspect-ratio: 4 / 3;
}

body[data-page="gallery"] .home-lightbox-media img,
body[data-page="home"] .home-lightbox-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 640px) {
    body[data-page="home"] .home-gallery-grid-v3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}


/* ===== DCR 45.30.34 — Curated hero carousel ===== */
body[data-page="home"].has-hero-carousel .home-landing-hero {
    display: none !important;
}

body[data-page="home"] .home-hero-slide {
    position: relative;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
}

body[data-page="home"] .home-hero-slide-picture,
body[data-page="home"] .home-hero-slide-picture img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

body[data-page="home"] .home-hero-slide-picture img {
    object-fit: cover;
    object-position: center;
    transform: scale(1.001);
}

body[data-page="home"] .home-hero-slide-shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(24,18,29,.72) 0%, rgba(24,18,29,.42) 35%, rgba(24,18,29,.10) 64%, rgba(24,18,29,0) 82%);
    pointer-events: none;
}

body[data-page="home"] .home-hero-slide-copy {
    position: absolute;
    z-index: 2;
    left: 52px;
    top: 50%;
    width: min(470px, 44%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

body[data-page="home"] .home-hero-slide-title {
    display: block;
    max-width: 100%;
    color: #fff;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.05;
    letter-spacing: -.035em;
    font-weight: 850;
    text-wrap: balance;
}

body[data-page="home"] .home-hero-slide-subtitle {
    display: block;
    max-width: 420px;
    color: rgba(255,255,255,.88);
    font-size: 15px;
    line-height: 1.45;
    font-weight: 500;
}

body[data-page="home"] .home-hero-slide-cta {
    min-height: 38px;
    margin-top: 4px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 12px;
    background: rgba(255,255,255,.94);
    color: #3e224f;
    font-size: 12.5px;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
}

body[data-page="home"] .home-hero-carousel-arrow {
    width: 34px;
    height: 50px;
    border-radius: 11px;
    background: rgba(16,12,19,.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: .76;
    transition: opacity .18s ease, background .18s ease;
}

body[data-page="home"] .home-hero-carousel:hover .home-hero-carousel-arrow {
    opacity: 1;
    background: rgba(16,12,19,.34);
}

@media (max-width: 899px) {
    body[data-page="home"] .home-hero-carousel {
        height: auto !important;
        aspect-ratio: 11 / 10;
        border-radius: 16px !important;
    }

    body[data-page="home"] .home-hero-slide-shade {
        background: linear-gradient(0deg, rgba(23,17,27,.76) 0%, rgba(23,17,27,.36) 48%, rgba(23,17,27,.05) 76%);
    }

    body[data-page="home"] .home-hero-slide-copy {
        left: 20px;
        right: 20px;
        top: auto;
        bottom: 22px;
        width: auto;
        gap: 7px;
        transform: none;
    }

    body[data-page="home"] .home-hero-slide-title {
        max-width: 94%;
        font-size: clamp(24px, 7.5vw, 34px);
        line-height: 1.05;
    }

    body[data-page="home"] .home-hero-slide-subtitle {
        max-width: 92%;
        font-size: 13px;
        line-height: 1.38;
    }

    body[data-page="home"] .home-hero-slide-cta {
        min-height: 34px;
        padding: 9px 13px;
        border-radius: 10px;
        font-size: 11.5px;
    }

    body[data-page="home"] .home-hero-position {
        top: 12px !important;
        right: 12px !important;
        bottom: auto !important;
        padding: 5px 9px;
        border-radius: 999px;
        background: rgba(16,12,19,.34);
        color: rgba(255,255,255,.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* ===== DCR 45.30.34 — Hero arrows exact vertical centering ===== */
@media (min-width: 900px) {
  body[data-page="home"] .home-hero-carousel-arrow {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


/* ===== DCR 45.30.34 — desktop hero height + correct stacking ===== */
@media (min-width: 900px) {
  body[data-page="home"].has-hero-carousel .home-hero-wrap {
    height: 425px !important;
    min-height: 425px !important;
    max-height: 425px !important;
    overflow: hidden !important;
  }
  body[data-page="home"].has-hero-carousel .home-hero-wrap::after {
    display: none !important;
    content: none !important;
  }
  body[data-page="home"] .home-hero-wrap > .home-hero-carousel,
  body[data-page="home"] .home-hero-wrap > .home-hero-carousel > .home-hero-carousel-track,
  body[data-page="home"] .home-hero-wrap > .home-hero-carousel > .home-hero-carousel-track > .home-hero-slide {
    height: 425px !important;
    min-height: 425px !important;
    max-height: 425px !important;
    aspect-ratio: auto !important;
  }
  body[data-page="home"] .home-hero-wrap > .home-hero-carousel > .home-hero-carousel-arrow {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    z-index: 5 !important;
  }
  body[data-page="home"] .home-hero-slide-shade {
    z-index: 1 !important;
  }
  body[data-page="home"] .home-hero-slide-copy {
    z-index: 2 !important;
    opacity: 1 !important;
    filter: none !important;
  }
  body[data-page="home"] .home-hero-slide-title {
    color: #fff !important;
    opacity: 1 !important;
  }
  body[data-page="home"] .home-hero-slide-subtitle {
    color: rgba(255,255,255,.92) !important;
    opacity: 1 !important;
  }
  body[data-page="home"] .home-hero-slide-cta {
    opacity: 1 !important;
  }
}


/* ===== DCR 45.30.34 — home gallery spacing, hero CTA, gallery actions ===== */
body[data-page="home"] #homeGallerySection {
    margin-top: 22px !important;
}

@media (min-width: 900px) {
    body[data-page="home"] .home-hero-slide-copy {
        left: 44px !important;
        right: auto !important;
        top: auto !important;
        bottom: 28px !important;
        width: min(480px, 46%) !important;
        gap: 8px !important;
        transform: none !important;
        align-items: flex-start !important;
    }
    body[data-page="home"] .home-hero-slide-title {
        color: #ffffff !important;
        text-shadow: 0 4px 20px rgba(0,0,0,.26);
    }
    body[data-page="home"] .home-hero-slide-subtitle {
        color: rgba(255,255,255,.96) !important;
        text-shadow: 0 3px 16px rgba(0,0,0,.24);
    }
}

body[data-page="home"] .home-hero-slide-cta {
    border-color: rgba(111, 55, 172, .96) !important;
    background: linear-gradient(180deg, rgba(122, 66, 188, .98) 0%, rgba(100, 38, 166, .98) 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(66, 21, 112, .28) !important;
}

body[data-page="gallery"] .home-lightbox-media { position: relative; touch-action: pan-y; }
body[data-page="gallery"] .home-lightbox-nav {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    transform: translateY(-50%);
    background: rgba(25,17,31,.52);
    color: transparent;
    font-size: 0;
    cursor: pointer;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}
body[data-page="gallery"] .home-lightbox-nav.prev { left: 12px; }
body[data-page="gallery"] .home-lightbox-nav.next { right: 12px; }
body[data-page="gallery"] .home-lightbox-nav::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}
body[data-page="gallery"] .home-lightbox-nav.prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
body[data-page="gallery"] .home-lightbox-nav.next::before { transform: translate(-65%, -50%) rotate(45deg); }
body[data-page="gallery"] .home-lightbox-counter {
    position: absolute;
    z-index: 4;
    right: 12px;
    bottom: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(25,17,31,.55);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    pointer-events: none;
}

.public-gallery-card {
    display: flex;
    flex-direction: column;
}
.public-gallery-open {
    padding: 0;
    display: block;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.public-gallery-open > span {
    padding: 12px 13px 10px;
    display: block;
}
.public-gallery-actions {
    padding: 0 13px 13px;
    display: flex;
}
.public-gallery-product {
    min-height: 38px;
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 11px;
    background: #6726AB;
    color: #fff;
    text-decoration: none;
    font-size: 12.5px;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(71, 27, 118, .16);
}
.public-gallery-product:hover { background: #5a2098; }

@media (max-width: 899px) {
    body[data-page="gallery"] .home-lightbox-nav { display: none !important; }
    .public-gallery-actions { padding: 0 12px 12px; }
    .public-gallery-product { width: 100%; justify-content: center; }
}


/* ============================================================
   V45.30.34 — HOME MOTION + PREMIUM INTERACTIONS
   Built from stable 45.30.32. No heavy cards, no global dark overlay.
   ============================================================ */

/* Hero: keep the photo bright; shade only where the copy needs contrast. */
@media (min-width: 900px) {
  body[data-page="home"] .home-hero-slide-shade {
    background:
      linear-gradient(90deg, rgba(24,18,29,.54) 0%, rgba(24,18,29,.30) 30%, rgba(24,18,29,.10) 52%, rgba(24,18,29,0) 69%),
      linear-gradient(0deg, rgba(20,14,24,.26) 0%, rgba(20,14,24,.08) 30%, rgba(20,14,24,0) 50%) !important;
  }
  body[data-page="home"] .home-hero-slide-copy {
    left: 38px !important;
    bottom: 30px !important;
    width: min(510px, 48%) !important;
    gap: 9px !important;
  }
  body[data-page="home"] .home-hero-slide-title {
    max-width: 490px !important;
    font-size: clamp(32px, 3vw, 43px) !important;
    line-height: 1.04 !important;
    letter-spacing: -.035em !important;
    text-shadow: 0 3px 18px rgba(0,0,0,.26) !important;
  }
  body[data-page="home"] .home-hero-slide-subtitle {
    max-width: 440px !important;
    font-size: 14px !important;
    line-height: 1.46 !important;
    text-shadow: 0 2px 12px rgba(0,0,0,.24) !important;
  }
  body[data-page="home"] .home-hero-slide-cta {
    min-height: 40px !important;
    padding: 11px 15px !important;
    border-radius: 12px !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
  }
  body[data-page="home"] .home-hero-slide-cta::after {
    content: '→';
    margin-left: 8px;
    transition: transform .18s ease;
  }
  body[data-page="home"] .home-hero-slide:hover .home-hero-slide-cta {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 14px 28px rgba(66,21,112,.34) !important;
  }
  body[data-page="home"] .home-hero-slide:hover .home-hero-slide-cta::after {
    transform: translateX(3px);
  }
  body[data-page="home"] .home-hero-slide-picture img {
    transition: transform 7s cubic-bezier(.2,.65,.2,1);
  }
  body[data-page="home"] .home-hero-slide.is-active .home-hero-slide-picture img {
    transform: scale(1.018);
  }

  /* Right-side carousel controls inspired by editorial sliders. */
  body[data-page="home"] .home-hero-carousel-arrow {
    left: auto !important;
    right: 18px !important;
    width: 36px !important;
    height: 36px !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    border-radius: 50% !important;
    background: rgba(22,16,27,.22) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.12) !important;
    opacity: .92 !important;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition: background .18s ease, transform .18s ease, border-color .18s ease !important;
  }
  body[data-page="home"] .home-hero-carousel-arrow.prev {
    top: calc(50% - 54px) !important;
    transform: translateY(-50%) !important;
  }
  body[data-page="home"] .home-hero-carousel-arrow.next {
    top: calc(50% + 54px) !important;
    transform: translateY(-50%) !important;
  }
  body[data-page="home"] .home-hero-carousel-arrow:hover {
    background: rgba(103,38,171,.82) !important;
    border-color: rgba(255,255,255,.34) !important;
    transform: translateY(-50%) scale(1.06) !important;
  }
  body[data-page="home"] .home-hero-position {
    display: none !important;
  }
  body[data-page="home"] .home-hero-dots {
    position: absolute;
    z-index: 6;
    top: 50%;
    right: 33px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transform: translate(50%, -50%);
  }
  body[data-page="home"] .home-hero-dots[hidden] { display: none !important; }
  body[data-page="home"] .home-hero-dots button {
    width: 4px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.48);
    box-shadow: none;
    cursor: pointer;
    transition: height .18s ease, background .18s ease, transform .18s ease;
  }
  body[data-page="home"] .home-hero-dots button.active {
    height: 24px;
    background: #fff;
  }
  body[data-page="home"] .home-hero-dots button:hover {
    background: rgba(255,255,255,.88);
    transform: scaleX(1.3);
  }
}

/* Category rail: no outer white capsule, larger imagery, subtle editorial hover. */
body[data-page="home"] .home-category-stage {
  margin-top: 14px !important;
}
body[data-page="home"] .home-category-stage .home-section-head-v3 {
  margin-bottom: 8px !important;
}
body[data-page="home"] .home-category-rail-shell {
  position: relative;
  padding: 2px 0 10px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
}
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3,
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3.is-multirow {
  gap: 14px !important;
  padding: 4px 34px 10px 0 !important;
  scroll-snap-type: x proximity !important;
  scroll-padding-right: 40px;
}
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card,
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-1 {
  position: relative;
  width: 132px !important;
  min-width: 132px !important;
  padding: 0 0 4px !important;
  gap: 8px !important;
  align-items: flex-start !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translateY(0);
  transition: transform .18s ease !important;
}
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card::after {
  content: '' !important;
  display: block !important;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #6726AB;
  transition: width .20s ease;
}
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card img {
  width: 132px !important;
  height: 110px !important;
  flex: 0 0 110px !important;
  border-radius: 15px !important;
  object-fit: cover !important;
  background: #f1ecf4;
  box-shadow: 0 4px 14px rgba(39,27,45,.06);
  outline: 1px solid rgba(75,56,84,.05);
  outline-offset: -1px;
  transition: transform .22s ease, box-shadow .22s ease, outline-color .22s ease !important;
}
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card span {
  width: 100% !important;
  min-height: 30px !important;
  padding: 0 !important;
  justify-content: flex-start !important;
  color: #3f3446 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 760 !important;
  text-align: left !important;
  border-top: 0 !important;
  transition: color .18s ease !important;
}
@media (hover:hover) and (pointer:fine) {
  body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card:hover {
    transform: translateY(-3px) !important;
  }
  body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card:hover img {
    transform: scale(1.025) !important;
    outline-color: rgba(103,38,171,.26) !important;
    box-shadow: 0 10px 24px rgba(64,35,78,.14) !important;
  }
  body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card:hover span {
    color: #6726AB !important;
  }
  body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card:hover::after {
    width: 30px !important;
  }
}

/* Small edge controls appear only when useful; autoplay remains the primary motion. */
body[data-page="home"] .home-category-nav {
  top: 54px !important;
  width: 28px !important;
  height: 50px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.90) !important;
  color: #5d4b65 !important;
  box-shadow: 0 4px 16px rgba(41,28,47,.10) !important;
  opacity: 0 !important;
  transform: none !important;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
body[data-page="home"] .home-category-nav.prev { left: -8px !important; }
body[data-page="home"] .home-category-nav.next { right: -8px !important; }
body[data-page="home"] .home-category-nav:disabled { opacity: 0 !important; }
@media (hover:hover) and (pointer:fine) {
  body[data-page="home"] .home-category-rail-shell:hover .home-category-nav:not(:disabled) {
    opacity: .88 !important;
  }
  body[data-page="home"] .home-category-nav:not(:disabled):hover {
    opacity: 1 !important;
    color: #6726AB !important;
    background: #fff !important;
    transform: scale(1.04) !important;
  }
}

/* The home gallery rows should never stretch a short card to match a long title next door. */
body[data-page="home"] .home-gallery-grid-v3 {
  align-items: start !important;
}
body[data-page="home"] .home-gallery-grid-v3 .home-gallery-card {
  align-self: start !important;
}

@media (max-width: 899px) {
  body[data-page="home"] .home-hero-dots { display: none !important; }
  body[data-page="home"] .home-category-stage {
    margin-top: 14px !important;
  }
  body[data-page="home"] .home-category-stage .home-hero-mosaic-v3,
  body[data-page="home"] .home-category-stage .home-hero-mosaic-v3.is-multirow {
    gap: 10px !important;
    padding: 3px 28px 8px 0 !important;
  }
  body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card,
  body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-1 {
    width: 92px !important;
    min-width: 92px !important;
    gap: 6px !important;
  }
  body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card img {
    width: 92px !important;
    height: 82px !important;
    flex: 0 0 82px !important;
    border-radius: 13px !important;
  }
  body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card span {
    min-height: 28px !important;
    font-size: 11px !important;
  }
  body[data-page="home"] .home-category-nav {
    display: none !important;
  }
}


/* ============================================================
   V45.30.35 — HOME POLISH after visual QA
   Kept in v45.30.39 so admin work does not roll back the live homepage.
   ============================================================ */
@media (min-width: 900px) {
  body[data-page="home"] .home-hero-dots {
    top:auto!important;right:auto!important;bottom:16px!important;left:50%!important;
    flex-direction:row!important;gap:8px!important;transform:translateX(-50%)!important;
  }
  body[data-page="home"] .home-hero-dots button {
    width:8px!important;height:8px!important;border-radius:999px!important;
    background:rgba(255,255,255,.56)!important;
    transition:width .18s ease,background .18s ease,transform .18s ease!important;
  }
  body[data-page="home"] .home-hero-dots button.active {width:22px!important;height:8px!important;background:#fff!important}
  body[data-page="home"] .home-hero-dots button:hover {transform:translateY(-1px)!important;background:rgba(255,255,255,.9)!important}
}
body[data-page="home"] .home-new-panel{padding-bottom:2px!important}
body[data-page="home"] .home-gallery-stage{margin-top:34px!important}
body[data-page="home"] .home-category-stage .home-section-head-v3{margin-bottom:12px!important}
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3,
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3.is-multirow{
  gap:14px!important;padding:4px 42px 12px 0!important
}
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card,
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-1{
  width:136px!important;min-width:136px!important;gap:9px!important
}
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card::after{display:none!important;content:none!important}
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card::before{
  content:'↗'!important;position:absolute!important;top:10px!important;right:10px!important;z-index:2!important;
  width:30px!important;height:30px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  border-radius:999px!important;background:rgba(103,38,171,.92)!important;color:#fff!important;font-size:15px!important;
  line-height:1!important;font-weight:800!important;box-shadow:0 8px 18px rgba(74,27,122,.22)!important;
  opacity:0!important;transform:translateY(6px) scale(.92)!important;
  transition:opacity .18s ease,transform .18s ease!important;pointer-events:none!important
}
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card img{
  width:136px!important;height:136px!important;flex:0 0 136px!important;border-radius:16px!important;object-fit:cover!important
}
body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card span{min-height:32px!important}
@media (hover:hover) and (pointer:fine){
  body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card:hover{transform:translateY(-4px)!important}
  body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card:hover img{
    transform:scale(1.035)!important;outline-color:rgba(103,38,171,.30)!important;box-shadow:0 14px 28px rgba(64,35,78,.16)!important
  }
  body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card:hover span{color:#6726AB!important}
  body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card:hover::before{opacity:1!important;transform:translateY(0) scale(1)!important}
}
body[data-page="home"] .home-category-nav{
  top:68px!important;width:36px!important;height:36px!important;border:1px solid rgba(103,38,171,.10)!important;
  border-radius:999px!important;background:rgba(255,255,255,.96)!important;color:#5f4f67!important;
  box-shadow:0 8px 22px rgba(41,28,47,.12)!important;
  transition:opacity .18s ease,transform .18s ease,color .18s ease,box-shadow .18s ease!important
}
body[data-page="home"] .home-category-nav.prev{left:-12px!important}
body[data-page="home"] .home-category-nav.next{right:-12px!important}
body[data-page="home"] .home-category-nav span{font-size:18px!important;line-height:1!important;font-weight:700!important}
@media (hover:hover) and (pointer:fine){
  body[data-page="home"] .home-category-rail-shell:hover .home-category-nav:not(:disabled){opacity:.95!important}
  body[data-page="home"] .home-category-nav:not(:disabled):hover{
    color:#6726AB!important;transform:translateY(-1px) scale(1.04)!important;box-shadow:0 12px 26px rgba(41,28,47,.16)!important
  }
}
@media (max-width:899px){
  body[data-page="home"] .home-gallery-stage{margin-top:28px!important}
  body[data-page="home"] .home-category-stage .home-hero-mosaic-v3,
  body[data-page="home"] .home-category-stage .home-hero-mosaic-v3.is-multirow{gap:10px!important;padding:3px 22px 8px 0!important}
  body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card,
  body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-1{width:94px!important;min-width:94px!important}
  body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card img{
    width:94px!important;height:94px!important;flex:0 0 94px!important;border-radius:14px!important
  }
  body[data-page="home"] .home-category-stage .home-hero-mosaic-v3 .home-mosaic-card span{min-height:30px!important;font-size:11px!important}
  body[data-page="home"] .home-gallery-grid-v3{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  body[data-page="home"] .home-gallery-grid-v3 .home-gallery-card img{aspect-ratio:4/3!important}
  body[data-page="home"] .home-gallery-grid-v3 .home-gallery-card>span{padding:10px!important}
  body[data-page="home"] .home-gallery-grid-v3 .home-gallery-card strong{font-size:12.5px!important;line-height:1.25!important}
  body[data-page="home"] .home-gallery-grid-v3 .home-gallery-card small{font-size:10.5px!important;line-height:1.3!important}
}
