:root {
            --bg: #f5f5f7;
            --text-main: #121212;
            --text-muted: #737373;
            --text-subtle: #a3a3a3;
            --surface-glass: rgba(255, 255, 255, 0.92);
            --border: rgba(0, 0, 0, 0.06);
            --border-light: rgba(255, 255, 255, 0.95);
            --radius-card: 16px;
            --radius-sm: 10px;
        }
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            -webkit-tap-highlight-color: transparent;
        }
        body {
            background-color: var(--bg);
            color: var(--text-main);
            padding-bottom: 90px;
            -webkit-font-smoothing: antialiased;
        }

        /* Header (Apple Style Dark Semi-Transparent Glass) */
        header {
            background: rgba(29, 29, 31, 0.8);
            backdrop-filter: saturate(180%) blur(20px);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .header-inner {
            max-width: 640px;
            margin: 0 auto;
            padding: 12px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .brand-link {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: #ffffff;
        }
        .brand-logo-svg {
            height: 38px;
            width: auto;
            color: #ffffff;
            display: block;
        }
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            text-decoration: none;
            color: #ffffff;
            font-size: 13px;
            font-weight: 500;
            padding: 6px 12px;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.16);
            transition: background 0.15s;
        }
        .back-link svg {
            stroke: #ffffff;
        }
        .back-link:hover { background: rgba(255, 255, 255, 0.22); color: #ffffff; }
        .back-link:active { background: rgba(255, 255, 255, 0.28); transform: scale(0.96); }

        @media (max-width: 680px) {
            .header-inner {
                padding: 10px 16px;
            }
            .brand-logo-svg {
                height: 31px;
            }
            .back-link {
                width: 36px;
                height: 36px;
                padding: 0;
                border-radius: 50%;
                justify-content: center;
            }
            .back-link .header-btn-text {
                display: none;
            }
        }

        .container {
            max-width: 640px;
            margin: 0 auto;
            padding: 16px;
        }

        /* Breadcrumb / Top Info */
        .spec-hero {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
            gap: 12px;
        }
        .hero-left {}
        .kicker {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-muted);
            margin-bottom: 2px;
        }
        .art-title {
            font-size: 24px;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: var(--text-main);
            line-height: 1.1;
        }
        .hero-right {
            display: flex;
            justify-content: flex-end;
        }
        .stock-badge {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            font-size: 12px;
            font-weight: 500;
            color: #15803d;
            background: rgba(34, 197, 94, 0.1);
            padding: 5px 12px;
            border-radius: 12px;
            text-align: left;
            line-height: 1.25;
        }
        .stock-badge.warning {
            color: #b45309;
            background: rgba(245, 158, 11, 0.12);
        }
        .stock-badge.info {
            color: #4338ca;
            background: rgba(99, 102, 241, 0.12);
        }
        .stock-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #22c55e;
            flex-shrink: 0;
        }
        .stock-dot.warning { background: #f59e0b; }
        .stock-dot.info { background: #6366f1; }
        .stock-text {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }
        .stock-title {
            font-size: 11px;
            font-weight: 500;
            opacity: 0.88;
            white-space: nowrap;
        }
        .stock-val {
            font-size: 12px;
            font-weight: 600;
            white-space: nowrap;
        }

        /* Gallery Card */
        .card-gallery {
            background: var(--surface-glass);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-card);
            overflow: hidden;
            box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
            margin-bottom: 16px;
        }
        .main-stage {
            position: relative;
            width: 100%;
            height: 380px;
            background: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            cursor: zoom-in;
            user-select: none;
            touch-action: pan-y pinch-zoom;
        }
        .main-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: opacity 0.2s;
        }
        .stage-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(0, 0, 0, 0.08);
            color: #171717;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 5;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
        }
        .stage-arrow:hover {
            background: #ffffff;
            transform: translateY(-50%) scale(1.08);
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
        }
        .stage-arrow:active {
            transform: translateY(-50%) scale(0.92);
        }
        .stage-prev { left: 10px; }
        .stage-next { right: 10px; }
        .stage-counter {
            position: absolute;
            bottom: 10px;
            right: 12px;
            background: rgba(0, 0, 0, 0.55);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            color: #ffffff;
            font-size: 11px;
            font-weight: 500;
            padding: 3px 9px;
            border-radius: 12px;
            letter-spacing: 0.03em;
            pointer-events: none;
            z-index: 4;
        }

        .thumbs-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.7);
            border-top: 1px solid var(--border);
            padding: 8px 8px;
            gap: 6px;
        }
        .thumb-nav {
            flex: 0 0 30px;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: #ffffff;
            border: 1px solid var(--border);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #171717;
            transition: all 0.15s ease;
            z-index: 2;
        }
        .thumb-nav:hover {
            background: #f4f4f5;
            transform: scale(1.06);
        }
        .thumb-nav:active {
            transform: scale(0.92);
        }
        .thumbs-strip {
            flex: 1 1 auto;
            display: flex;
            gap: 8px;
            overflow-x: auto;
            scroll-behavior: smooth;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
            padding: 2px 2px;
        }
        .thumbs-strip::-webkit-scrollbar { display: none; }
        .thumb-box {
            flex: 0 0 62px;
            width: 62px;
            height: 62px;
            border-radius: 8px;
            overflow: hidden;
            border: 2px solid transparent;
            background: #ffffff;
            cursor: pointer;
            transition: all 0.15s ease;
            box-sizing: border-box;
        }
        .thumb-box.active {
            border-color: #171717;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
            transform: scale(1.02);
        }
        .thumb-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* Parameters & Pricing Card */
        .card-spec {
            background: var(--surface-glass);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-card);
            padding: 20px;
            box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
            margin-bottom: 16px;
        }
        .price-section {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            padding-bottom: 16px;
            margin-bottom: 16px;
            border-bottom: 1px solid var(--border);
        }
        .price-val {
            font-size: 28px;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: var(--text-main);
        }
        .price-unit {
            font-size: 14px;
            font-weight: 400;
            color: var(--text-muted);
            margin-left: 2px;
        }
        .box-price-hint {
            font-size: 13px;
            color: var(--text-muted);
        }
        .box-price-hint b {
            color: var(--text-main);
            font-weight: 600;
        }

        /* Minimalist Specs Matrix */
        .specs-table {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }
        .spec-cell {
            background: rgba(255, 255, 255, 0.7);
            border: 1px solid var(--border);
            padding: 10px 12px;
            border-radius: var(--radius-sm);
        }
        .spec-cell-wide {
            grid-column: 1 / -1;
        }
        .cell-lbl {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 2px;
        }
        .cell-val {
            font-size: 13.5px;
            font-weight: 600;
            color: var(--text-main);
        }

        /* Warehouses Availability Block */
        .warehouses-section {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid var(--border);
        }
        .warehouses-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
        }
        .warehouses-title {
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text-muted);
        }
        .warehouses-total {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-main);
        }
        .warehouses-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .wh-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(255, 255, 255, 0.75);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 8px 12px;
            font-size: 13px;
        }
        .wh-row.is-primary {
            background: rgba(34, 197, 94, 0.06);
            border-color: rgba(34, 197, 94, 0.25);
        }
        .wh-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .wh-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #22c55e;
            flex-shrink: 0;
        }
        .wh-dot.warning {
            background: #f59e0b;
        }
        .wh-dot.info {
            background: #6366f1;
        }
        .wh-name {
            font-weight: 600;
            color: var(--text-main);
        }
        .wh-tag {
            font-size: 10.5px;
            color: var(--text-muted);
            background: rgba(0, 0, 0, 0.04);
            padding: 2px 6px;
            border-radius: 4px;
        }
        .wh-row.is-primary .wh-tag {
            background: rgba(34, 197, 94, 0.12);
            color: #15803d;
            font-weight: 500;
        }
        .wh-right {
            display: flex;
            align-items: baseline;
            gap: 6px;
            text-align: right;
        }
        .wh-val {
            font-weight: 700;
            color: var(--text-main);
        }
        .wh-sub {
            font-size: 11px;
            color: var(--text-muted);
        }

        /* Calculator Card */
        .card-calc {
            background: var(--surface-glass);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-card);
            padding: 18px 20px;
            box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
            margin-bottom: 16px;
        }
        .calc-title {
            font-size: 13.5px;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 10px;
        }
        .calc-input-wrap {
            position: relative;
            margin-bottom: 12px;
        }
        .calc-input {
            width: 100%;
            padding: 11px 44px 11px 14px;
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 15px;
            font-weight: 600;
            color: #171717;
            outline: none;
            transition: border-color 0.15s;
        }
        .calc-input:focus {
            border-color: #171717;
            background: #ffffff;
        }
        .calc-unit {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 13.5px;
            color: var(--text-muted);
            font-weight: 500;
        }
        .calc-summary {
            background: rgba(255, 255, 255, 0.6);
            border: 1px solid var(--border);
            padding: 12px 14px;
            border-radius: var(--radius-sm);
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.5;
        }
        .calc-summary b {
            color: var(--text-main);
            font-weight: 600;
        }

        /* 3D Visualization Architectural Note */
        .callout-3d {
            background: rgba(255, 255, 255, 0.7);
            border: 1px solid var(--border);
            border-radius: var(--radius-card);
            padding: 14px 18px;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 14px;
        }
        .callout-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #ffffff;
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: #171717;
        }
        .callout-text {
            font-size: 12px;
            color: var(--text-muted);
            line-height: 1.4;
        }
        .callout-text b {
            color: var(--text-main);
            font-weight: 600;
        }

        /* Messengers (Order: Telegram, MAX, WhatsApp) */
        .card-messengers {
            background: var(--surface-glass);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-card);
            padding: 20px;
            box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
            margin-bottom: 16px;
        }
        .msg-heading {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 4px;
        }
        .msg-sub {
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 14px;
        }
        .showroom-address-card {
            margin-top: 14px;
            padding-top: 12px;
            border-top: 1px solid var(--border);
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }
        .showroom-addr-icon {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            background: rgba(220, 38, 38, 0.08);
            color: #dc2626;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            margin-top: 2px;
        }
        .showroom-addr-text {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }
        .showroom-addr-title {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: var(--text-muted);
            font-weight: 600;
        }
        .showroom-map-link {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-main);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: color 0.15s;
        }
        .showroom-map-link:hover {
            color: #2563eb;
            text-decoration: underline;
        }
        .map-link-arrow {
            font-size: 12px;
            color: var(--text-muted);
        }
        .showroom-hours-text {
            font-size: 11.5px;
            color: var(--text-muted);
        }

        /* Fullscreen Modal Lightbox */
        .modal-viewer {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(12, 12, 12, 0.96);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            z-index: 100;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            user-select: none;
            touch-action: none;
        }
        .modal-viewer.active { display: flex; }

        .modal-topbar {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            padding: 16px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            z-index: 102;
            background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
            color: #ffffff;
        }
        .modal-info {
            display: flex;
            align-items: center;
        }
        .modal-counter {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.85);
            font-weight: 500;
        }
        .modal-viewer-close {
            background: rgba(255, 255, 255, 0.15);
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            width: 42px;
            height: 42px;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
        }
        .modal-viewer-close:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.05);
        }

        .modal-body {
            position: relative;
            overflow: hidden;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 70px 20px 20px 20px;
            box-sizing: border-box;
            cursor: zoom-out;
        }
        .modal-viewer-img {
            transform-origin: center center;
            max-width: 94vw;
            max-height: 84vh;
            object-fit: contain;
            border-radius: 6px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.6);
            transition: opacity 0.15s ease;
            cursor: default;
        }

        /* Fullscreen Navigation Buttons */
        .modal-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.14);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.22);
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 105;
            transition: all 0.15s ease;
            outline: none;
        }
        .modal-nav-btn:hover {
            background: rgba(255, 255, 255, 0.28);
            transform: translateY(-50%) scale(1.08);
        }
        .modal-nav-btn:active {
            transform: translateY(-50%) scale(0.96);
        }
        .modal-nav-prev {
            left: 24px;
        }
        .modal-nav-next {
            right: 24px;
        }

        @media (max-width: 600px) {
            .modal-nav-btn {
                width: 44px;
                height: 44px;
                background: rgba(0, 0, 0, 0.5);
            }
            .modal-nav-prev {
                left: 10px;
            }
            .modal-nav-next {
                right: 10px;
            }
            .modal-body {
                padding: 65px 10px 15px 10px;
            }
            .modal-viewer-img {
                max-width: 98vw;
                max-height: 80vh;
            }
        }

        /* Bottom Sheet for Messenger Selection */
        .modal-sheet-wrap {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            z-index: 90;
            display: none;
            align-items: flex-end;
            justify-content: center;
        }
        .modal-sheet-wrap.active { display: flex; }
        .modal-sheet-box {
            background: #ffffff;
            border-radius: 20px 20px 0 0;
            padding: 24px 20px 32px;
            width: 100%;
            max-width: 640px;
        }
        .sheet-handle {
            width: 36px;
            height: 4px;
            background: #e4e4e7;
            border-radius: 2px;
            margin: 0 auto 16px;
        }
        .sheet-title {
            font-size: 16px;
            font-weight: 600;
            color: #18181b;
            text-align: center;
            margin-bottom: 4px;
        }
        .sheet-desc {
            font-size: 12.5px;
            color: var(--text-muted);
            text-align: center;
            margin-bottom: 18px;
        }
        
        /* Favorites & Cart Header Buttons & Badges (Dark Glass Theme) */
        .header-fav-btn, .header-cart-btn {
            position: relative;
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 20px;
            height: 34px;
            padding: 0 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            color: #ffffff;
            cursor: pointer;
            transition: background 0.15s, transform 0.15s;
            font-size: 13px;
            font-weight: 500;
            text-decoration: none;
            box-sizing: border-box;
            flex-shrink: 0;
        }
        .header-fav-btn svg, .header-cart-btn svg {
            color: #ffffff;
            stroke: #ffffff;
        }
        .header-fav-btn:hover, .header-cart-btn:hover { background: rgba(255, 255, 255, 0.22); color: #ffffff; }
        .header-fav-btn:active, .header-cart-btn:active { transform: scale(0.96); background: rgba(255, 255, 255, 0.28); }

        .header-fav-badge, .header-cart-badge {
            font-size: 11px;
            font-weight: 700;
            min-width: 18px;
            height: 18px;
            border-radius: 9px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
            line-height: 1;
            animation: badgePop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-sizing: border-box;
            border: 2px solid #141414;
        }
        .header-fav-badge {
            background: #ef4444;
            color: #ffffff;
        }
        .header-cart-badge {
            background: #ef4444;
            color: #ffffff;
        }
        @keyframes badgePop {
            0% { transform: scale(0.6); }
            100% { transform: scale(1); }
        }

        /* Card Heart Button in Catalog */
        .card-fav-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(0, 0, 0, 0.06);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #737373;
            cursor: pointer;
            z-index: 5;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .card-fav-btn:hover {
            background: #ffffff;
            color: #ef4444;
            transform: scale(1.1);
        }
        .card-fav-btn:active {
            transform: scale(0.92);
        }
        .card-fav-btn.active {
            background: #ffffff;
            color: #ef4444;
        }
        .card-fav-btn.active svg {
            fill: #ef4444;
            stroke: #ef4444;
        }

        /* Product Detail Page Favorite Buttons */
        .btn-page-fav {
            width: 100%;
            margin-top: 8px;
            padding: 11px 16px;
            background: rgba(0, 0, 0, 0.03);
            color: var(--text-main);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 13.5px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.15s;
        }
        .btn-page-fav:hover {
            background: rgba(0, 0, 0, 0.06);
        }
        .btn-page-fav.active {
            background: rgba(239, 68, 68, 0.08);
            border-color: rgba(239, 68, 68, 0.3);
            color: #ef4444;
        }
        .btn-page-fav.active svg {
            fill: #ef4444;
            stroke: #ef4444;
        }
        .bar-fav-btn {
            width: 44px;
            height: 44px;
            border-radius: var(--radius-sm);
            background: rgba(0, 0, 0, 0.05);
            border: 1px solid var(--border);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--text-main);
            cursor: pointer;
            flex-shrink: 0;
            transition: all 0.15s;
        }
        .bar-fav-btn:hover { background: rgba(0, 0, 0, 0.09); }
        .bar-fav-btn.active {
            background: rgba(239, 68, 68, 0.08);
            border-color: rgba(239, 68, 68, 0.3);
            color: #ef4444;
        }
        .bar-fav-btn.active svg {
            fill: #ef4444;
            stroke: #ef4444;
        }

        /* Fav Modal & Item Styles */
        .fav-action-bar {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-bottom: 14px;
        }
        .btn-fav-action {
            height: 42px;
            border-radius: var(--radius-sm);
            font-size: 12.5px;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: all 0.15s;
            border: 1px solid var(--border);
            padding: 0 10px;
        }
        .btn-fav-cart {
            background: #171717;
            color: #ffffff;
            border-color: #171717;
        }
        .btn-fav-cart:hover { background: #262626; }
        .btn-fav-share {
            background: #ffffff;
            color: #171717;
        }
        .btn-fav-share:hover { background: rgba(0, 0, 0, 0.05); }

        .fav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid var(--border);
        }
        .fav-item:last-child {
            border-bottom: none;
        }
        .fav-item-img {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            object-fit: cover;
            background: #f4f4f5;
            flex-shrink: 0;
            border: 1px solid var(--border);
        }
        .fav-item-info {
            flex: 1;
            min-width: 0;
        }
        .fav-item-art {
            font-size: 13.5px;
            font-weight: 700;
            color: var(--text-main);
            text-decoration: none;
            display: block;
        }
        .fav-item-art:hover { color: #2563eb; }
        .fav-item-meta {
            font-size: 11.5px;
            color: var(--text-muted);
            margin-top: 2px;
        }
        .fav-item-price {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-main);
            margin-top: 3px;
        }
        .fav-item-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }
        .fav-btn-add-cart {
            padding: 6px 10px;
            background: rgba(0, 0, 0, 0.05);
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 11.5px;
            font-weight: 600;
            cursor: pointer;
            color: var(--text-main);
            transition: all 0.15s;
            white-space: nowrap;
        }
        .fav-btn-add-cart:hover {
            background: #171717;
            color: #ffffff;
        }
        .fav-btn-remove {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: none;
            border: none;
            color: var(--text-subtle);
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
        }
        .fav-btn-remove:hover {
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
        }

        /* Toast notification */
        .laplitka-toast {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            background: #171717;
            color: #ffffff;
            padding: 10px 18px;
            border-radius: 24px;
            font-size: 13px;
            font-weight: 500;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
            z-index: 250;
            opacity: 0;
            pointer-events: none;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            white-space: nowrap;
        }
        .laplitka-toast.active {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        /* Header Actions Layout & Responsive */
        .header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .header-right-tools {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        @media (max-width: 680px) {
            .header-tagline { display: none; }
            .header-fav-btn, .header-cart-btn {
                width: 36px;
                height: 36px;
                padding: 0;
                border-radius: 50%;
                justify-content: center;
            }
            .header-fav-btn .header-btn-text,
            .header-cart-btn .header-btn-text {
                display: none;
            }
            .header-fav-badge, .header-cart-badge {
                position: absolute;
                top: -3px;
                right: -3px;
                min-width: 17px;
                height: 17px;
                padding: 0 3px;
                font-size: 10px;
                border: 2px solid #141414;
            }
            .header-right-tools, .header-actions {
                gap: 6px;
            }
            .back-link {
                height: 36px;
                padding: 0 10px;
                border-radius: 18px;
                font-size: 12px;
            }
            .back-link .header-btn-text {
                display: none;
            }
        }

        /* Calculator Add to Cart Button */
        .btn-add-cart {
            width: 100%;
            margin-top: 12px;
            padding: 12px 16px;
            background: #171717;
            color: #ffffff;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: background 0.2s, transform 0.15s;
        }
        .btn-add-cart:hover {
            background: #262626;
        }
        .btn-add-cart:active {
            transform: scale(0.98);
        }
        .btn-add-cart.added {
            background: #15803d !important;
        }

        /* Bottom Floating Bar Layout */
        .bottom-action-bar {
            position: fixed;
            bottom: 0; left: 0; right: 0;
            background: rgba(255, 255, 255, 0.94);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid var(--border);
            padding: 10px 14px;
            z-index: 80;
        }
        .bottom-inner {
            max-width: 640px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }
        .bar-btn {
            height: 46px;
            border-radius: var(--radius-sm);
            font-size: 14px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            text-decoration: none;
            box-sizing: border-box;
            transition: all 0.15s;
        }
        .bar-btn:active {
            transform: scale(0.98);
        }
        .bar-btn-write {
            background: #171717;
            color: #ffffff;
            border: none;
        }
        .bar-btn-write:hover {
            background: #262626;
        }
        .bar-btn-call {
            background: rgba(0, 0, 0, 0.05);
            border: 1px solid var(--border);
            color: var(--text-main);
        }
        .bar-btn-call:hover {
            background: rgba(0, 0, 0, 0.09);
        }

        /* Cart Modal Backdrop & Box */
        .cart-modal-wrap {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            z-index: 120;
            display: none;
            align-items: flex-end;
            justify-content: center;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }
        .cart-modal-wrap.active {
            display: flex;
        }
        @media (min-width: 680px) {
            .cart-modal-wrap {
                align-items: center;
                padding: 20px;
            }
        }
        .cart-modal-box {
            background: #ffffff;
            border-radius: 24px 24px 0 0;
            width: 100%;
            max-width: 580px;
            max-height: 88vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
            animation: sheetSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            overflow: hidden;
        }
        @media (min-width: 680px) {
            .cart-modal-box {
                border-radius: 20px;
                max-height: 84vh;
                box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
            }
        }
        @keyframes sheetSlideUp {
            from { transform: translateY(30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        .cart-sheet-handle {
            width: 36px;
            height: 4px;
            background: #e4e4e7;
            border-radius: 2px;
            margin: 12px auto 4px;
        }
        @media (min-width: 680px) {
            .cart-sheet-handle { display: none; }
        }
        .cart-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 20px;
            border-bottom: 1px solid var(--border);
        }
        .cart-title-row {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .cart-title {
            font-size: 17px;
            font-weight: 700;
            color: var(--text-main);
            letter-spacing: -0.01em;
        }
        .cart-count-pill {
            font-size: 11.5px;
            font-weight: 600;
            color: var(--text-muted);
            background: rgba(0, 0, 0, 0.05);
            padding: 2px 8px;
            border-radius: 12px;
        }
        .cart-close-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.04);
            border: none;
            font-size: 15px;
            color: var(--text-muted);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s;
        }
        .cart-close-btn:hover { background: rgba(0, 0, 0, 0.08); color: var(--text-main); }
        .cart-body {
            padding: 12px 20px;
            overflow-y: auto;
            flex: 1;
            overscroll-behavior: contain;
        }

        /* Empty State */
        .cart-empty-state {
            text-align: center;
            padding: 44px 20px;
        }
        .cart-empty-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.03);
            border: 1px solid var(--border);
            margin: 0 auto 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-subtle);
        }
        .cart-empty-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 6px;
        }
        .cart-empty-desc {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.4;
            max-width: 300px;
            margin: 0 auto 20px;
        }
        .cart-empty-btn {
            display: inline-block;
            padding: 9px 20px;
            background: #171717;
            color: #ffffff;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
            text-decoration: none;
        }

        /* Cart Item Row */
        .cart-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid var(--border);
        }
        .cart-item:last-child {
            border-bottom: none;
        }
        .cart-item-img-link {
            display: block;
            width: 60px;
            height: 60px;
            border-radius: 8px;
            overflow: hidden;
            background: #f4f4f5;
            flex-shrink: 0;
            border: 1px solid var(--border);
        }
        .cart-item-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .cart-item-info {
            flex: 1;
            min-width: 0;
        }
        .cart-item-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 2px;
        }
        .cart-item-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-main);
            text-decoration: none;
        }
        .cart-item-del {
            background: none;
            border: none;
            color: var(--text-subtle);
            cursor: pointer;
            padding: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            transition: color 0.15s;
        }
        .cart-item-del:hover {
            color: #ef4444;
        }
        .cart-item-meta {
            font-size: 11.5px;
            color: var(--text-muted);
            margin-bottom: 8px;
        }
        .cart-item-bottom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .cart-stepper {
            display: inline-flex;
            align-items: center;
            background: rgba(0, 0, 0, 0.04);
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 2px;
        }
        .step-btn {
            width: 24px;
            height: 24px;
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 4px;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-main);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            line-height: 1;
        }
        .step-btn:active { background: #f4f4f5; }
        .step-input {
            width: 42px;
            text-align: center;
            font-size: 13px;
            font-weight: 600;
            border: none;
            background: transparent;
            outline: none;
            color: var(--text-main);
            -moz-appearance: textfield;
            padding: 0;
        }
        .step-input::-webkit-outer-spin-button,
        .step-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .step-unit {
            font-size: 11.5px;
            color: var(--text-muted);
            padding-right: 4px;
            user-select: none;
        }
        .cart-item-price-col {
            text-align: right;
        }
        .cart-item-price {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-main);
        }
        .cart-item-boxes {
            font-size: 11px;
            color: var(--text-muted);
        }

        /* Cart Footer & Summary */
        .cart-footer {
            padding: 14px 20px 20px;
            background: #fafafa;
            border-top: 1px solid var(--border);
        }
        .cart-summary-card {
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px 14px;
            margin-bottom: 14px;
        }
        .cart-sum-line {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12.5px;
            color: var(--text-muted);
            margin-bottom: 4px;
        }
        .cart-sum-line:last-child {
            margin-bottom: 0;
        }
        .cart-sum-line.total-highlight {
            padding-top: 8px;
            margin-top: 8px;
            border-top: 1px solid var(--border);
            font-size: 13.5px;
            font-weight: 600;
            color: var(--text-main);
        }
        .cart-sum-price {
            font-size: 17px;
            font-weight: 700;
            color: var(--text-main);
        }
        .cart-msg-heading {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 3px;
        }
        .cart-msg-desc {
            font-size: 11.5px;
            color: var(--text-muted);
            margin-bottom: 12px;
        }
        .cart-clear-wrap {
            text-align: center;
            margin-top: 10px;
        }
        .cart-clear-btn {
            background: none;
            border: none;
            font-size: 12px;
            color: var(--text-subtle);
            cursor: pointer;
            text-decoration: underline;
            transition: color 0.15s;
        }
        .cart-clear-btn:hover { color: #ef4444; }

        /* Messenger button styles - Centered Icon & Name group with Vertical Icon Alignment */
        .msg-stack {
            display: flex;
            flex-direction: column;
            gap: 8px;
            width: 100%;
        }
        .btn-msg {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            padding-left: calc(50% - 62px);
            gap: 12px;
            width: 100%;
            height: 48px;
            border-radius: var(--radius-sm);
            text-decoration: none;
            font-size: 14.5px;
            font-weight: 600;
            color: #ffffff;
            box-sizing: border-box;
            transition: opacity 0.15s, transform 0.15s;
        }
        .btn-msg:active { transform: scale(0.99); opacity: 0.92; }
        .btn-msg-tg { background: #0088cc; }
        .btn-msg-max { background: linear-gradient(135deg, #2D1457, #532299); }
        .btn-msg-wa { background: #25d366; }
        .btn-msg > svg {
            width: 22px;
            height: 22px;
            flex-shrink: 0;
        }
        .btn-msg > span {
            text-align: left;
            white-space: nowrap;
        }

        .cart-modal-wrap .btn-msg {
            padding-left: calc(50% - 110px);
            font-size: 14px;
            gap: 10px;
        }
        @media (max-width: 480px) {
            .cart-modal-wrap .btn-msg {
                padding-left: calc(50% - 105px);
                font-size: 13px;
                gap: 8px;
            }
        }

        /* Legal Disclaimer Footer */
        .site-legal-footer {
            margin-top: 32px;
            padding-top: 20px;
            padding-bottom: 24px;
            border-top: 1px solid var(--border);
            text-align: center;
        }
        .legal-disclaimer {
            font-size: 11.5px;
            line-height: 1.55;
            color: var(--text-muted);
            max-width: 580px;
            margin: 0 auto;
            opacity: 0.85;
        }
        .drawer-legal-disclaimer {
            margin-top: 14px;
            font-size: 10.5px;
            line-height: 1.45;
            color: var(--text-muted);
            text-align: center;
            opacity: 0.75;
        }

        /* Cookie Consent Banner (Apple Dark Glass Style) */
        .cookie-banner {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(30px);
            max-width: 580px;
            width: calc(100% - 32px);
            background: rgba(29, 29, 31, 0.88);
            backdrop-filter: saturate(180%) blur(20px);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.16);
            box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32), 0 2px 8px rgba(0, 0, 0, 0.2);
            border-radius: 16px;
            padding: 13px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            z-index: 1000;
            color: #ffffff;
            opacity: 0;
            transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            pointer-events: none;
            box-sizing: border-box;
        }
        .cookie-banner.active {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
            pointer-events: auto;
        }
        .cookie-content {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            min-width: 0;
        }
        .cookie-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: #ffffff;
        }
        .cookie-text {
            font-size: 12.5px;
            line-height: 1.4;
            color: rgba(255, 255, 255, 0.88);
            font-weight: 400;
        }
        .cookie-actions {
            flex-shrink: 0;
        }
        .cookie-btn-accept {
            background: #ffffff;
            color: #121212;
            border: none;
            border-radius: 20px;
            padding: 8px 18px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
        }
        .cookie-btn-accept:hover {
            background: #f4f4f5;
            transform: scale(1.03);
        }
        .cookie-btn-accept:active {
            transform: scale(0.97);
            background: #e4e4e7;
        }

        @media (max-width: 600px) {
            .cookie-banner {
                bottom: 16px;
                padding: 12px 14px;
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
                border-radius: 14px;
            }
            .cookie-banner.above-bar {
                bottom: 84px;
            }
            .cookie-content {
                gap: 10px;
            }
            .cookie-text {
                font-size: 11.5px;
                line-height: 1.35;
            }
            .cookie-btn-accept {
                width: 100%;
                text-align: center;
                padding: 10px;
                font-size: 13px;
            }
        }

        /* Scroll To Top Floating Button (Apple Dark Glass Style) */
        .scroll-top-btn {
            position: fixed;
            bottom: 28px;
            right: 28px;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(29, 29, 31, 0.85);
            backdrop-filter: saturate(180%) blur(20px);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.18);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24), 0 2px 6px rgba(0, 0, 0, 0.12);
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 990;
            opacity: 0;
            transform: translateY(16px) scale(0.9);
            pointer-events: none;
            transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease, border-color 0.15s ease;
        }
        .scroll-top-btn svg {
            transition: transform 0.2s ease;
        }
        .scroll-top-btn:hover {
            background: rgba(45, 45, 48, 0.95);
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
        }
        .scroll-top-btn:hover svg {
            transform: translateY(-2px);
        }
        .scroll-top-btn:active {
            transform: scale(0.92);
            background: rgba(20, 20, 22, 0.95);
        }
        .scroll-top-btn.visible {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0) scale(1);
        }
        @media (max-width: 600px) {
            .scroll-top-btn {
                bottom: 20px;
                right: 16px;
                width: 42px;
                height: 42px;
            }
            .scroll-top-btn.above-bar {
                bottom: calc(76px + env(safe-area-inset-bottom, 0px));
            }
        }

        /* Header Search Toggle Button */
        .header-search-btn {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            height: 38px;
            padding: 0 14px;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.16);
            color: #ffffff;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            user-select: none;
        }
        .header-search-btn:hover {
            background: rgba(255, 255, 255, 0.22);
            color: #ffffff;
        }
        .header-search-btn:active {
            background: rgba(255, 255, 255, 0.28);
            transform: scale(0.96);
        }
        .header-search-btn.active {
            background: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.4);
        }

        /* On catalog page: header search icon collapses/expands with scroll */
        body.catalog-page .header-search-btn {
            opacity: 0;
            width: 0;
            padding: 0;
            margin: 0;
            overflow: hidden;
            border: none;
            pointer-events: none;
            transform: scale(0.8);
            transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), width 0.25s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }
        body.catalog-page .header-search-btn.scrolled-visible {
            opacity: 1;
            width: auto;
            padding: 0 14px;
            pointer-events: auto;
            border: 1px solid rgba(255, 255, 255, 0.16);
            transform: scale(1);
        }

        @media (max-width: 680px) {
            .header-search-btn {
                width: 36px;
                height: 36px;
                padding: 0;
                border-radius: 50%;
                justify-content: center;
            }
            .header-search-btn .header-btn-text {
                display: none;
            }
            body.catalog-page .header-search-btn.scrolled-visible {
                width: 36px;
                height: 36px;
                padding: 0;
                border-radius: 50%;
                justify-content: center;
            }
        }

        /* Floating / Expandable Header Search Bar */
        .header-search-bar {
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            background: rgba(20, 20, 22, 0.96);
            backdrop-filter: saturate(180%) blur(20px);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            z-index: 99;
        }
        .header-search-bar.open {
            max-height: 540px;
            opacity: 1;
            overflow: visible;
        }
        .header-search-inner {
            max-width: 960px;
            margin: 0 auto;
            padding: 12px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .header-search-input-wrap {
            position: relative;
            flex: 1;
            display: flex;
            align-items: center;
        }
        .header-search-input-icon {
            position: absolute;
            left: 14px;
            color: rgba(255, 255, 255, 0.55);
            display: flex;
            align-items: center;
            pointer-events: none;
            z-index: 2;
        }
        .header-search-input {
            width: 100%;
            padding: 10px 38px 10px 40px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 20px;
            color: #ffffff;
            font-size: 14px;
            outline: none;
            transition: all 0.2s ease;
            box-sizing: border-box;
        }
        .header-search-input::placeholder {
            color: rgba(255, 255, 255, 0.45);
        }
        .header-search-input:focus {
            background: rgba(255, 255, 255, 0.16);
            border-color: rgba(255, 255, 255, 0.4);
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
        }
        .header-search-clear-btn {
            position: absolute;
            right: 12px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: #ffffff;
            font-size: 11px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s;
            z-index: 10;
            pointer-events: auto;
        }
        .header-search-clear-btn:hover {
            background: rgba(255, 255, 255, 0.35);
        }
        .header-search-close-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.75);
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            padding: 6px 10px;
            border-radius: 8px;
            transition: all 0.15s;
            flex-shrink: 0;
            position: relative;
            z-index: 10;
            pointer-events: auto;
        }
        .header-search-close-btn:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.1);
        }
        @media (max-width: 600px) {
            .header-search-inner {
                padding: 10px 14px;
                gap: 8px;
            }
            .header-search-close-text {
                display: none;
            }
            .header-search-close-btn {
                padding: 8px;
                border-radius: 50%;
                background: rgba(255, 255, 255, 0.1);
            }
        }

        /* Autocomplete Dropdown */
        .header-search-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: #141416;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            border-bottom: 1px solid rgba(255, 255, 255, 0.14);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
            max-height: 400px;
            overflow-y: auto;
            z-index: 100;
        }
        .header-search-results-list {
            max-width: 960px;
            margin: 0 auto;
            padding: 10px 16px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .search-result-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 8px 12px;
            border-radius: 12px;
            text-decoration: none;
            color: #ffffff;
            transition: background 0.15s ease, transform 0.1s ease;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        .search-result-item:hover, .search-result-item.selected {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.18);
            transform: translateX(2px);
        }
        .search-result-thumb {
            width: 44px;
            height: 44px;
            border-radius: 8px;
            object-fit: cover;
            background: #2a2a2c;
            flex-shrink: 0;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        .search-result-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .search-result-art {
            font-size: 13.5px;
            font-weight: 600;
            color: #ffffff;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .search-result-meta {
            font-size: 11.5px;
            color: rgba(255, 255, 255, 0.65);
        }
        .search-result-price {
            font-size: 13.5px;
            font-weight: 600;
            color: #ffffff;
            white-space: nowrap;
            text-align: right;
            flex-shrink: 0;
        }
        .search-result-empty {
            padding: 18px 12px;
            text-align: center;
            color: rgba(255, 255, 255, 0.55);
            font-size: 13px;
        }
        .search-all-results-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px;
            margin-top: 4px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            color: #60a5fa;
            font-size: 12.5px;
            font-weight: 500;
            text-decoration: none;
            transition: background 0.15s;
            cursor: pointer;
            border: none;
            width: 100%;
        }
        .search-all-results-btn:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        
        /* Collection Siblings Section */
        .card-collection-siblings {
            background: var(--surface-glass);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-card);
            padding: 22px 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
        }
        .siblings-header {
            margin-bottom: 16px;
        }
        .siblings-kicker {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-muted);
            margin-bottom: 4px;
        }
        .siblings-title {
            font-size: 17px;
            font-weight: 700;
            color: var(--text-main);
            letter-spacing: -0.01em;
            margin-bottom: 4px;
        }
        .siblings-subtitle {
            font-size: 12.5px;
            color: var(--text-muted);
            line-height: 1.4;
        }
        .siblings-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }
        @media (min-width: 640px) {
            .siblings-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 14px;
            }
        }
        @media (min-width: 900px) {
            .siblings-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 16px;
            }
        }
        .sibling-card {
            background: #ffffff;
            border: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 12px;
            overflow: hidden;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, border-color 0.2s;
        }
        .sibling-card:hover {
            transform: translateY(-3px);
            border-color: #171717;
            box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
        }
        .sibling-card:active {
            transform: scale(0.98);
        }
        .sibling-img-box {
            position: relative;
            width: 100%;
            height: 120px;
            background: #f4f4f5;
            overflow: hidden;
        }
        .sibling-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }
        .sibling-card:hover .sibling-img {
            transform: scale(1.05);
        }
        .sibling-format-badge {
            position: absolute;
            bottom: 6px;
            left: 6px;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(4px);
            color: #ffffff;
            font-size: 10px;
            font-weight: 600;
            padding: 2px 6px;
            border-radius: 4px;
        }
        .sibling-info {
            padding: 10px 12px 12px;
            display: flex;
            flex-direction: column;
            gap: 2px;
            flex: 1;
            justify-content: space-between;
        }
        .sibling-art {
            font-size: 13.5px;
            font-weight: 700;
            color: var(--text-main);
        }
        .sibling-surface {
            font-size: 11.5px;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .sibling-price-row {
            display: flex;
            align-items: baseline;
            gap: 2px;
            margin-top: 6px;
            padding-top: 6px;
            border-top: 1px solid var(--border);
        }
        .sibling-price {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-main);
        }
        .sibling-unit {
            font-size: 11px;
            color: var(--text-muted);
        }
        .sibling-stock {
            font-size: 10.5px;
            font-weight: 600;
            color: #15803d;
            margin-top: 2px;
        }
        .sibling-stock.warning { color: #b45309; }
        .sibling-stock.muted { color: var(--text-muted); }

    