/* ============================================================
   site-overrides.css
   Load AFTER mobile-overrides.css - fixes layout/theme/wall-preview issues
   ============================================================ */

/* Remove phantom body padding-top */
body {
    padding-top: 0 !important;
}

/* Fabric canvas must keep inline height from Fabric.js */
#wallCanvas,
canvas.lower-canvas,
canvas.upper-canvas {
    height: revert !important;
    max-width: 100%;
}
#wallPreviewStage canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: unset !important;
}

.pc-controls {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    isolation: auto !important;
    z-index: auto !important;
}

.customizer-fab,
[data-customizer-fab] {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    isolation: isolate;
    transform: translateZ(0);
}

.navbar {
    position: sticky !important;
    top: 40px !important;
    z-index: 1000 !important;
    width: 100% !important;
}
.navbar.scrolled {
    isolation: isolate;
}

.premium-customizer,
.pc-header,
.pc-body,
.pc-sidebar,
.pc-panels-container,
.pc-canvas-area {
    position: relative !important;
    isolation: isolate;
}

/* Hide normal preview only when wall preview modal is closed */
body:not(.wall-preview-open) #wpmNormal {
    display: none !important;
}

#wallPreviewModal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 20000 !important;
    overflow: hidden !important;
    isolation: isolate;
    background: #0a0a0a !important;
    cursor: auto !important;
}

#wallPreviewModal *,
#wallPreviewModal button,
#wallPreviewModal [onclick] {
    cursor: pointer !important;
    pointer-events: all !important;
}

#wallPreviewModal > div:first-child {
    position: relative !important;
    z-index: 100 !important;
    background: rgba(10, 10, 10, 0.9) !important;
    pointer-events: all !important;
}

#wallPreviewModal[style*="display: flex"] {
    display: flex !important;
    flex-direction: column !important;
}

#wallPreviewStage {
    flex: 1 !important;
    min-height: 0 !important;
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    background: #111 !important;
    background-size: cover !important;
    background-position: center !important;
}

#wallPreviewStage canvas,
#wallCanvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

#proWallPreview,
#wpmNormal {
    flex: 1 1 auto;
}

/* â”€â”€ Mobile: navbar flex-column fix on small screens â”€â”€â”€â”€â”€â”€â”€â”€
   mobile-overrides.css sets flex-direction:column on .navbar
   which stacks the hamburger above the logo. Fix ordering.   */
@media (max-width: 768px) {
    .navbar {
        padding: 0 10px !important;
        height: auto !important;
        min-height: 60px !important;
    }
    .nav-container {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 40px minmax(0, 1fr) auto !important;
        align-items: center !important;
        column-gap: 8px !important;
    }
    .mobile-toggle {
        grid-column: 1 !important;
        justify-self: start !important;
        position: relative !important;
        z-index: 2 !important;
        margin: 0 !important;
    }
    .logo {
        grid-column: 2 !important;
        position: relative !important;
        left: auto !important;
        transform: none !important;
        margin: 0 !important;
        justify-self: start !important;
        max-width: 100% !important;
        overflow: hidden !important;
        z-index: 1 !important;
    }
    .nav-actions {
        grid-column: 3 !important;
        justify-self: end !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }
.nav-actions .icon-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
}
    .nav-search-cta {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        min-height: 32px !important;
        padding: 0 12px !important;
        margin-right: 4px !important;
        border-radius: 999px !important;
        border: 1px solid rgba(17, 17, 17, 0.12) !important;
        background: rgba(255, 255, 255, 0.9) !important;
        color: #1f1f1f !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
    }
    .nav-search-cta i {
        font-size: 0.95rem !important;
    }
}

/* Force navbar logo visibility across desktop + mobile */
.navbar .logo,
.navbar .logo img,
.navbar .logo-text {
    visibility: visible !important;
    opacity: 1 !important;
}

.navbar .logo {
    display: inline-flex !important;
    align-items: center !important;
    z-index: 1300 !important;
}

.navbar .logo img {
    display: block !important;
    width: auto !important;
    object-fit: contain !important;
}

.navbar .logo-text {
    display: inline-block !important;
    white-space: nowrap !important;
}

.nav-search-cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    margin-right: 6px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(17, 17, 17, 0.12) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #1f1f1f !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.nav-search-cta i {
    font-size: 0.95rem !important;
}

@media (min-width: 769px) {
    .navbar .logo img {
        height: 56px !important;
    }
}

@media (max-width: 768px) {
    .navbar .logo img {
        height: 30px !important;
        max-width: 30px !important;
    }
    .navbar .logo-text {
        font-size: 0.88rem !important;
        max-width: 86px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

@media (max-width: 420px) {
    .navbar .logo-text {
        display: none !important;
    }
}

.footer .logo,
.footer .logo img,
.footer .logo-text {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Keep icons visible/aligned even under aggressive mobile overrides */
.nav-actions .icon-btn i.ph,
.mobile-bottom-nav .bottom-nav-item i.ph,
.mobile-toggle i.ph {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1em !important;
    height: 1em !important;
    font-size: 1.1rem !important;
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.nav-actions .icon-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
}

.mobile-bottom-nav .bottom-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    text-align: center !important;
}

.mobile-bottom-nav .bottom-nav-item i.ph {
    font-size: 1.45rem !important;
    margin: 0 !important;
}

/* Keep all bottom-nav items in one straight line and center upload button */
.mobile-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: center !important;
    justify-items: center !important;
    padding: 0 12px !important;
    overflow: hidden !important;
}

.mobile-bottom-nav .bottom-nav-item {
    height: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

.mobile-bottom-nav .bottom-nav-item.bottom-nav-center {
    width: 54px !important;
    height: 54px !important;
    margin-top: 0 !important;
    transform: none !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    align-self: center !important;
    justify-self: center !important;
}

.upload-cloud-hint {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 18px);
    transform: translateX(-50%);
    width: min(240px, calc(100vw - 32px));
    padding: 13px 15px 16px;
    border-radius: 18px;
    background: #ffffff;
    color: #1c1b1b;
    border: 1px solid rgba(28, 27, 27, 0.08);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    z-index: 6;
    overflow: visible;
    animation: uploadHintFloat 2.8s ease-in-out infinite;
}

.upload-cloud-arrow {
    align-self: center;
    margin-top: 2px;
    margin-bottom: 2px;
    color: #d4af37;
    font-size: 1.3rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.16));
}

.upload-cloud-hint strong {
    font-size: 0.82rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0;
}

.upload-cloud-hint small {
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.3;
    font-weight: 700;
    white-space: normal;
}

body.show-upload-hint .upload-cloud-hint {
    opacity: 1;
    visibility: visible;
}

body.hide-upload-hint .upload-cloud-hint {
    display: none !important;
}

body.show-upload-hint .mobile-bottom-nav,
body.show-upload-hint .mobile-bottom-nav .bottom-nav-center,
body.show-upload-hint .mobile-bottom-nav .bottom-nav-item.bottom-nav-center {
    overflow: visible !important;
}

@keyframes uploadHintFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

@media (max-width: 360px) {
    .mobile-bottom-nav .bottom-nav-item {
        font-size: 0.64rem !important;
        gap: 2px !important;
    }

    .mobile-bottom-nav .bottom-nav-item i.ph {
        font-size: 1.28rem !important;
    }

    .mobile-bottom-nav .bottom-nav-item.bottom-nav-center {
        width: 50px !important;
        height: 50px !important;
    }

    .upload-cloud-hint {
        width: min(214px, calc(100vw - 24px));
        padding: 11px 12px 14px;
    }
}

@media (max-width: 480px) {
    .upload-cloud-hint {
        bottom: calc(100% + 42px);
        width: min(226px, calc(100vw - 20px));
        padding: 11px 12px 23px;
        animation-duration: 3.2s;
    }

    .upload-cloud-hint::before {
        bottom: -10px;
    }

    .upload-cloud-hint::after {
        bottom: -19px;
    }
}

@media (max-width: 380px) {
    .upload-cloud-hint {
        bottom: calc(100% + 50px);
        width: min(210px, calc(100vw - 20px));
        padding: 10px 11px 22px;
        animation: uploadHintFloatSmall 3.6s ease-in-out infinite;
    }

    .upload-cloud-hint::before {
        bottom: -10px;
    }

    .upload-cloud-hint::after {
        bottom: -18px;
    }
}

@keyframes uploadHintFloatSmall {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-3px); }
}

/* â”€â”€ Mobile: wall preview header wraps on small screens â”€â”€â”€â”€â”€â”€ */
@media (max-width: 600px) {
    #wallPreviewModal > div:first-child {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 12px !important;
    }
    .wpm-room-btn {
        padding: 5px 10px !important;
        font-size: 0.65rem !important;
    }
}

/* Wall preview mobile fit: stable across iPhone/Android viewports */
@media (max-width: 991px) {
    #wallPreviewModal {
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 0 !important;
    }

    #wallPreviewModal > div:first-child {
        width: 100% !important;
        max-width: none !important;
        padding: 10px 12px !important;
        gap: 8px !important;
        align-items: flex-start !important;
    }

    #wallPreviewModal .wpm-view-btn,
    #wallPreviewModal .wpm-room-btn {
        min-height: 34px !important;
        padding: 5px 10px !important;
        font-size: 0.62rem !important;
        letter-spacing: 0.04em !important;
    }

    #wallPreviewModal button[onclick="wpmDownload()"] {
        min-height: 34px !important;
        padding: 6px 10px !important;
        font-size: 0.65rem !important;
    }

    #wallPreviewStage {
        max-width: none !important;
        width: 100% !important;
        min-height: calc(100dvh - 170px) !important;
        height: calc(100dvh - 170px) !important;
        flex: 0 0 auto !important;
    }

    #wallPreviewStage canvas,
    #wallCanvas {
        width: 100% !important;
        height: 100% !important;
    }
}

/* Cart drawer frame upsell split (index split-cart only) */
.cart-drawer-split {
    right: 0 !important;
    transform: translateX(100%);
    max-width: min(860px, 100vw) !important;
    width: min(860px, 100vw) !important;
    transition: transform 0.3s ease !important;
    will-change: transform;
}
.cart-drawer-split.open {
    transform: translateX(0);
}
.cart-drawer-split .cart-header {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #fff;
}
.cart-drawer-split .cart-header .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
}
.cart-layout {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(170px, 230px) minmax(0, 1fr);
}
.frame-addon-panel {
    border-right: 1px solid #ececec;
    background: linear-gradient(180deg, #ffffff 0%, #fff7ef 100%);
    padding: 14px 12px 16px;
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: framePanelIn .45s ease both;
}
@keyframes framePanelIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
.frame-addon-head h3 { margin: 0; font-size: .95rem; font-weight: 800; line-height: 1.2; }
.frame-addon-head p { margin: 4px 0 10px; color: #6b7280; font-size: .78rem; }
.frame-addon-psych { display: grid; gap: 6px; margin-bottom: 10px; }
.frame-addon-psych span { font-size: .74rem; font-weight: 700; color: #9a3412; background: #fff3e0; border: 1px solid #fed7aa; border-radius: 999px; padding: 6px 9px; }
.frame-addon-list {
    display: grid;
    gap: 8px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    max-height: none;
    padding-right: 4px;
    scrollbar-width: thin;
}
.frame-addon-list::-webkit-scrollbar { width: 6px; }
.frame-addon-list::-webkit-scrollbar-thumb { background: #d6d3d1; border-radius: 999px; }
.frame-addon-card {
    border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; padding: 10px;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; cursor: pointer; position: relative; overflow: hidden;
}
.frame-addon-card:hover { transform: scale(1.03); border-color: #ef4444; }
.frame-addon-card.selected { border-color: #16a34a; box-shadow: 0 0 0 2px rgba(22,163,74,.2), 0 8px 20px rgba(22,163,74,.15); }
.frame-addon-thumb {
    width: 100%;
    aspect-ratio: 16 / 6;
    border-radius: 10px;
    border: 1px solid #ececec;
    background: #fafafa;
    overflow: hidden;
    margin-bottom: 8px;
}
.frame-addon-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.frame-addon-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.frame-addon-card .name { font-size: .82rem; font-weight: 800; color: #111827; }
.frame-addon-card .price { font-size: .8rem; font-weight: 700; color: #dc2626; margin-top: 2px; }
.frame-addon-size-wrap { margin-top: 8px; }
.frame-addon-size-label { display: block; font-size: .68rem; color: #6b7280; font-weight: 700; margin-bottom: 4px; }
.frame-addon-size {
    width: 100%;
    min-height: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: .75rem;
    padding: 4px 8px;
}
.frame-addon-select-btn {
    margin-top: 8px !important;
}
.frame-addon-card .btn { margin-top: 8px; width: 100%; font-size: .74rem; min-height: 32px; }
.frame-addon-badge { position: absolute; top: 8px; right: 8px; font-size: .63rem; font-weight: 800; color: #fff; border-radius: 999px; padding: 3px 7px; }
.frame-addon-badge.popular { background: #f59e0b; }
.frame-addon-badge.premium { background: #111827; }
.frame-addon-selected { margin-top: 10px; font-size: .76rem; font-weight: 700; color: #166534; }
.cart-main-pane { min-height: 0; display: flex; flex-direction: column; }
.cart-main-pane .cart-items { min-height: 0; }
.cart-total #cartTotal { transition: opacity .2s ease, transform .2s ease; }
.cart-total #cartTotal.price-updating { opacity: .55; transform: scale(1.04); }

@media (max-width: 1200px) {
    .cart-drawer-split { max-width: min(760px, 100vw) !important; width: min(760px, 100vw) !important; }
    .cart-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
    .frame-addon-panel {
        border-right: 0;
        border-bottom: 1px solid #ececec;
        padding: 10px 12px;
        max-height: none;
    }
    .frame-addon-psych { display: none; }
    .frame-addon-list {
        display: flex !important;
        flex-wrap: nowrap;
        gap: 10px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 2px 2px 8px !important;
        scroll-snap-type: x proximity;
    }
    .frame-addon-card {
        flex: 0 0 242px;
        scroll-snap-align: start;
    }
    #frameAddonToggle { display: inline-flex !important; align-self: flex-start; margin-top: 4px; }
}

@media (max-width: 768px) {
    .cart-drawer-split { max-width: 100vw !important; width: 100vw !important; }
    .frame-addon-panel { padding: 10px; }
    .frame-addon-head h3 { font-size: .88rem; }
    .frame-addon-head p { font-size: .74rem; margin-bottom: 8px; }
    .frame-addon-list {
        gap: 8px !important;
    }
    .frame-addon-panel.mobile-collapsed .frame-addon-list,
    .frame-addon-panel.mobile-collapsed .frame-addon-selected { display: none; }
    .frame-addon-card {
        flex-basis: 218px;
        grid-template-columns: 74px minmax(0, 1fr) !important;
        min-height: 98px !important;
        padding: 8px !important;
    }
    .frame-addon-thumb {
        width: 74px !important;
        height: 82px !important;
    }
}

/* Product cards: normalize padding/heights so all cards align evenly */
.product-grid {
    align-items: stretch !important;
}
.product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    padding: 8px !important;
    border-radius: 10px !important;
}
.product-image {
    flex: 0 0 auto !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f6f6f6 !important;
    overflow: hidden !important;
}
.product-card .product-image img,
.product-card .product-image video,
.product-card .product-image .product-media {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #f6f6f6 !important;
}
.product-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    flex: 1 !important;
    justify-content: flex-start !important;
    padding: 8px 6px 6px !important;
}
.product-info h4 {
    margin: 0 !important;
    min-height: 2.1em !important;
    font-size: 0.84rem !important;
    line-height: 1.2 !important;
}
.product-info .price {
    margin: 0 !important;
    min-height: 1.1em !important;
    font-size: 0.78rem !important;
    line-height: 1.1 !important;
}
.product-info .btn-pc-primary,
.product-info .btn {
    margin-top: auto !important;
    width: 100% !important;
    min-height: 34px !important;
    font-size: 0.74rem !important;
    padding: 6px 8px !important;
}

@media (max-width: 768px) {
    .product-grid {
        gap: 8px !important;
    }

    .product-card {
        padding: 6px !important;
        border-radius: 9px !important;
    }

    .product-image {
        height: 132px !important;
        border-radius: 8px !important;
    }

    .product-info {
        padding: 6px 4px 4px !important;
        gap: 3px !important;
    }

    .product-info h4 {
        font-size: 0.76rem !important;
        min-height: 2em !important;
    }

    .product-info .price {
        font-size: 0.72rem !important;
        min-height: 1em !important;
    }

    .product-stars {
        font-size: 0.65rem !important;
        margin: 0 !important;
    }

    .product-info .btn-pc-primary,
    .product-info .btn {
        min-height: 30px !important;
        font-size: 0.7rem !important;
        padding: 4px 6px !important;
        border-radius: 7px !important;
    }
}

/* â”€â”€ Misc layout stability â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Prevent images from collapsing inside flex containers */
.scene-poster img,
.poster-item img,
.product-card img,
.trending-card img {
    height: auto;
    max-width: 100%;
    display: block;
}

/* Ensure hero scene doesn't get pushed by body padding */
.hero-scene,
.glass-marquee-section {
    margin-top: 0 !important;
}

/* Replace static text hero with slider hero */
.pc-hero-desktop {
    display: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-hero-slider {
    display: block !important;
}

/* Homepage hero and spacing cleanup */
.mobile-hero-slider {
    margin: 0 !important;
}

.mobile-hero-slider + .glass-marquee-section,
.glass-marquee-section + .mobile-hero-slider,
.mobile-hero-slider + .section,
.glass-marquee-section + .section {
    margin-top: 0 !important;
}

.section.category-showcase {
    padding-top: 20px !important;
    padding-bottom: 28px !important;
}

#acrylic-posters,
#paper-posters,
.custom-cta-v2,
#customizer {
    margin-top: 0 !important;
}

@media (min-width: 769px) {
    .mobile-hero-slider {
        display: block !important;
        min-height: clamp(500px, 62vh, 760px);
    }

    .mhs-track {
        width: 300% !important;
        height: clamp(500px, 62vh, 760px);
        will-change: transform;
    }

    .mhs-slide {
        width: 33.333333% !important;
        min-height: clamp(500px, 62vh, 760px) !important;
        padding: 72px 7vw 112px !important;
        justify-content: flex-start !important;
    }

    .mhs-content {
        max-width: min(560px, 44vw) !important;
        text-align: left !important;
        margin-left: 0 !important;
    }

    .mhs-title {
        font-size: clamp(3.2rem, 5vw, 5.2rem) !important;
        margin-bottom: 16px !important;
    }

    .mhs-subtitle {
        font-size: clamp(1.05rem, 1.4vw, 1.3rem) !important;
        max-width: 36rem;
    }

    .mhs-dots {
        bottom: 34px !important;
        justify-content: flex-start !important;
        padding-left: 7vw !important;
    }

    .mhs-stats {
        gap: 24px;
        justify-content: center;
        padding: 16px 7vw !important;
    }

    .glass-marquee-section {
        padding: 12px 0 !important;
    }

    .glass-marquee-card {
        flex: 0 0 350px !important;
        height: 520px !important;
    }

    .section {
        padding-top: 36px !important;
        padding-bottom: 36px !important;
    }

    #acrylic-posters,
    #paper-posters {
        padding-top: 52px !important;
        padding-bottom: 52px !important;
    }
}

@media (max-width: 768px) {
    .glass-marquee-card {
        flex: 0 0 185px !important;
        height: 260px !important;
    }
}

/* Remove extra blank gap before reviews section */
#customizer.studio-section {
    margin-bottom: 0 !important;
    padding-bottom: 28px !important;
}

#customizer .container,
#customizer .studio-layout {
    margin-bottom: 0 !important;
}

#customizer + .reviews-v2.section {
    margin-top: 0 !important;
    padding-top: 24px !important;
}

@media (max-width: 991px) {
    #customizer.studio-section {
        padding-bottom: 16px !important;
    }

    #customizer + .reviews-v2.section {
        padding-top: 12px !important;
    }
}

/* Cart drawer must sit ABOVE the floating bottom nav pill (1500) */
.cart-drawer {
    z-index: 2000 !important;
}
.cart-overlay {
    z-index: 1999 !important;
}

/* Hide floating pill nav when cart is open or Wall Preview modal is active,
   so it never overlaps modal/drawer content */
body.cart-open .mobile-bottom-nav,
body.wall-preview-open .mobile-bottom-nav {
    display: none !important;
}

/* Product mobile buy bar must never cover cart checkout actions. */
body.cart-open .mobile-sticky-buy {
    display: none !important;
}
body.cart-open #pcFloatingWhatsappBtn,
body.wall-preview-open #pcFloatingWhatsappBtn {
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 768px) {
    .mobile-sticky-buy {
        display: grid !important;
        grid-template-columns: minmax(86px, 0.8fr) minmax(0, 1.6fr);
        gap: 8px 12px;
        align-items: center;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .mobile-sticky-buy .sticky-price,
    .mobile-sticky-buy .sticky-actions {
        min-width: 0;
    }

    .mobile-sticky-buy .sticky-actions {
        justify-content: flex-end;
        gap: 8px;
    }

    .mobile-sticky-buy .sticky-actions .btn-sm {
        min-width: 0;
        white-space: nowrap;
        padding: 10px 12px !important;
        font-size: 0.82rem !important;
    }

    .mobile-sticky-buy .sticky-trust-text {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 0;
        color: #6b7280;
        font-size: 0.72rem;
        font-weight: 600;
        line-height: 1.25;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .cart-drawer {
        display: flex !important;
        flex-direction: column !important;
    }

    .cart-items {
        flex: 1 1 auto !important;
        min-height: 0 !important;
    }

    .cart-footer {
        flex: 0 0 auto !important;
        z-index: 2;
    }
}

@media (max-width: 380px) {
    .mobile-sticky-buy {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 6px 8px;
    }

    .mobile-sticky-buy .sticky-actions .btn-pc-glass {
        display: none;
    }

    .mobile-sticky-buy .sticky-actions .btn-pc-primary {
        width: 100%;
    }
}

/* Fix overlapping transparency/labels: Make the floating nav pill solid white */
.mobile-bottom-nav {
    background: #ffffff !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #e1e1e1 !important;
}

@media (max-width: 991px) {
    #pcFloatingWhatsappBtn {
        bottom: calc(30px + 70px + 16px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* Mobile marquee/coupon resilience: keep motion obvious and override older slow rules. */
@keyframes pc-photo-marquee-loop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-33.333%, 0, 0); }
}

@keyframes pc-coupon-marquee-loop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-25%, 0, 0); }
}

.marquee-pro {
    display: block !important;
    overflow: hidden !important;
    width: 100% !important;
}

.marquee-pro-content {
    display: inline-flex !important;
    align-items: center !important;
    width: max-content !important;
    min-width: max-content !important;
    white-space: nowrap !important;
    transform: translate3d(0, 0, 0);
    animation: pc-coupon-marquee-loop 32s linear infinite !important;
    -webkit-animation: pc-coupon-marquee-loop 32s linear infinite !important;
    animation-play-state: running !important;
    -webkit-animation-play-state: running !important;
    will-change: transform !important;
}

.coupon-marquee-copy {
    display: inline-block !important;
    flex: 0 0 auto !important;
    padding-right: 48px;
}

.glass-marquee-section {
    display: block !important;
    overflow: hidden !important;
}

.glass-marquee-container {
    overflow: hidden !important;
    width: 100% !important;
}

.glass-marquee-track {
    display: flex !important;
    width: max-content !important;
    min-width: max-content !important;
    transform: translate3d(0, 0, 0);
    animation: pc-photo-marquee-loop 90s linear infinite !important;
    -webkit-animation: pc-photo-marquee-loop 90s linear infinite !important;
    animation-play-state: running !important;
    -webkit-animation-play-state: running !important;
    will-change: transform !important;
}

@media (max-width: 768px) {
    .marquee-pro {
        height: 34px !important;
        line-height: 34px !important;
    }

    .marquee-pro-content {
        animation-duration: 18s !important;
        -webkit-animation-duration: 18s !important;
    }

    .coupon-marquee-copy {
        padding-right: 32px;
    }

    .glass-marquee-section {
        padding: 8px 0 !important;
        min-height: 236px !important;
    }

    .glass-marquee-track {
        gap: 12px !important;
        animation-duration: 42s !important;
        -webkit-animation-duration: 42s !important;
    }

    .glass-marquee-card {
        flex: 0 0 160px !important;
        height: 220px !important;
    }
}

/* â”€â”€ WALL PREVIEW / AR VIEW OPEN: hide ALL page content behind the modal â”€â”€
   Sticky / fixed elements (customizer controls, nav, marquee) can
   escape z-index stacking contexts and bleed over the modal overlay.
   We now use display:none which is the most reliable way to clear the viewport. */
body.wall-preview-open > *:not(#wallPreviewModal):not(#arViewModal),
body.ar-view-open > *:not(#wallPreviewModal):not(#arViewModal) {
    display: none !important;
}
/* Keep the active modal itself fully visible */
body.wall-preview-open #wallPreviewModal,
body.ar-view-open #arViewModal {
    display: flex !important;
    visibility: visible !important;
    pointer-events: all !important;
}

/* Ensure both modals always render above everything */
#wallPreviewModal {
    z-index: 20000 !important;
}
#arViewModal {
    z-index: 20000 !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
    background: #0a0a0a !important; /* Solid background to prevent bleed-through */
}

/* Fresh AR modal rebuild */
#arViewModal.ar-modal {
    z-index: 22000 !important;
}

#arViewModal .ar-modal-header,
#arViewModal .ar-modal-footer {
    width: 100%;
    pointer-events: all;
}

#arViewModal #arPosterWrap.ar-poster-wrap {
    transform-origin: center center;
    will-change: transform;
}

#arViewModal #arFrame {
    min-width: 96px;
    max-width: 280px;
    border-width: 7px !important;
}

#arViewModal #arGestureHint {
    user-select: none;
}

@media (min-width: 992px) {
    #arViewModal .ar-modal-header {
        padding: 18px 26px !important;
    }
    #arViewModal .ar-modal-footer {
        justify-content: flex-end !important;
        gap: 10px !important;
        padding: 18px 26px 24px !important;
    }
    #arViewModal #arGestureHint {
        margin-left: auto;
    }
}

@media (max-width: 991px) {
    #arViewModal .ar-modal-header {
        padding: 14px 14px !important;
    }
    #arViewModal .ar-modal-footer {
        flex-wrap: wrap;
        justify-content: center !important;
        padding: 12px 12px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    }
    #arViewModal #arFrame {
        min-width: 88px;
        border-width: 6px !important;
    }
    #arViewModal #arGestureHint {
        width: 100%;
        text-align: center;
    }
}

/* â”€â”€ FIX: Customizer footer overlapping with floating bottom nav pill â”€â”€
   The floating nav pill (.mobile-bottom-nav) sits at bottom:30px,
   height:70px, and the center FAB protrudes 30px above that.
   Total clearance needed from viewport bottom: ~130px.
   We add generous bottom-margin to the studio-footer so it
   never sits behind the nav pill, and increase the controls
   column bottom padding.                                        */
.studio-footer.pc-bottom {
    margin-bottom: 40px !important;
    padding-bottom: 20px !important;
}

/* Increase bottom padding on controls column to clear the nav pill */
.studio-controls-col,
.pc-controls {
    padding-bottom: 180px !important; /* Increased from 140px to fully clear the nav pill labels */
}

/* On desktop (wider screens), less padding is needed since
   the layout is side-by-side and footer isn't near bottom */
@media (min-width: 992px) {
    .studio-controls-col,
    .pc-controls {
        padding-bottom: 140px !important;
    }
    .studio-footer.pc-bottom {
        margin-bottom: 40px !important;
    }
}

/* Fast first paint: show lightweight placeholders until admin media loads */
.mhs-track.is-loading {
    width: 100% !important;
    transform: none !important;
}

.mhs-track.is-loading .mhs-skeleton,
.mhs-fallback-slide {
    width: 100% !important;
    min-width: 100% !important;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.18), transparent 26%),
        linear-gradient(135deg, #171717 0%, #2b2419 58%, #111827 100%);
}

.mhs-track:not(.is-loading) {
    width: 100% !important;
}

.mhs-track:not(.is-loading) .mhs-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
}

.marquee-loading-card {
    flex: 0 0 260px;
    height: 340px;
    border-radius: 16px;
    background: linear-gradient(90deg, #f1f5f9 0%, #ffffff 45%, #f1f5f9 100%);
    background-size: 220% 100%;
    animation: pcSkeletonShimmer 1.2s ease-in-out infinite;
}

@keyframes pcSkeletonShimmer {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

/* ============================================================
   Compact responsive cart drawer
   ============================================================ */
.cart-drawer {
    width: min(94vw, 430px) !important;
    max-width: 430px !important;
    height: 100dvh !important;
    background: #fff !important;
    overflow: hidden !important;
}

.cart-drawer.cart-drawer-split {
    right: 0 !important;
    transform: translateX(100%);
    width: min(94vw, 920px) !important;
    max-width: min(94vw, 920px) !important;
    transition: transform 0.3s ease !important;
    will-change: transform;
}

.cart-drawer.cart-drawer-split.open {
    transform: translateX(0);
}

.cart-drawer .cart-header {
    min-height: 74px;
    padding: 18px 22px !important;
    border-bottom: 1px solid #eceff3 !important;
}

.cart-drawer .cart-header h2 {
    font-size: clamp(1.15rem, 2vw, 1.45rem) !important;
    letter-spacing: 0 !important;
}

.cart-drawer .cart-header .icon-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    font-size: 1rem !important;
}

.cart-layout {
    min-height: 0 !important;
    height: calc(100dvh - 74px) !important;
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) !important;
}

.frame-addon-panel {
    padding: 14px !important;
    gap: 10px !important;
    background: #fffaf4 !important;
    overflow: hidden !important;
}

.frame-addon-head {
    display: grid;
    gap: 4px;
}

.frame-addon-head h3 {
    font-size: .96rem !important;
    line-height: 1.18 !important;
}

.frame-addon-head p {
    margin: 0 !important;
    font-size: .78rem !important;
    line-height: 1.35 !important;
}

#frameAddonToggle {
    min-height: 34px !important;
    padding: 7px 12px !important;
    font-size: .78rem !important;
    border-radius: 8px !important;
}

.frame-addon-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    padding: 2px 4px 6px 0 !important;
}

.frame-addon-card {
    display: grid !important;
    grid-template-columns: 88px minmax(0, 1fr) !important;
    grid-template-areas:
        "thumb name"
        "thumb price"
        "thumb size"
        "thumb button" !important;
    align-items: center !important;
    gap: 5px 10px !important;
    padding: 9px !important;
    border-radius: 10px !important;
    overflow: visible !important;
    min-height: 112px !important;
}

.frame-addon-card:hover {
    transform: translateY(-1px) !important;
}

.frame-addon-thumb {
    grid-area: thumb;
    width: 88px !important;
    height: 96px !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #f8fafc !important;
}

.frame-addon-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

.frame-addon-card .name {
    grid-area: name;
    min-width: 0;
    font-size: .82rem !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere;
}

.frame-addon-card .price {
    grid-area: price;
    margin: 0 !important;
    font-size: .8rem !important;
}

.frame-addon-size-wrap {
    grid-area: size;
    margin: 0 !important;
}

.frame-addon-size {
    min-height: 30px !important;
    font-size: .74rem !important;
    padding: 4px 8px !important;
}

.frame-addon-select-btn {
    grid-area: button;
    width: 100% !important;
    min-height: 32px !important;
    padding: 6px 8px !important;
    font-size: .74rem !important;
}

.frame-addon-badge {
    top: 6px !important;
    right: 6px !important;
    max-width: 96px;
    white-space: nowrap;
}

.frame-addon-selected {
    margin: 0 !important;
    padding: 8px 10px;
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    line-height: 1.25;
}

.cart-main-pane {
    min-width: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
}

.cart-main-pane .cart-items,
.cart-items {
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding: 14px !important;
    gap: 10px !important;
}

.cart-empty {
    margin: auto !important;
    max-width: 320px;
    min-height: 220px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.cart-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f8;
    color: #111827;
    font-size: 1.6rem;
}

.cart-empty h3 {
    margin: 0;
    font-size: 1.02rem;
}

.cart-empty p {
    margin: 0 0 4px !important;
    font-size: .86rem !important;
    line-height: 1.45;
}

.cart-item {
    display: grid !important;
    grid-template-columns: 86px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 10px !important;
    border: 1px solid #edf0f4 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .045);
}

.cart-item-img-wrap {
    width: 86px;
    height: 104px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0 !important;
    background: #f8fafc;
}

.cart-item-info {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.cart-item-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: start !important;
    gap: 8px;
}

.cart-item-info h5 {
    margin: 0 !important;
    font-size: .92rem !important;
    line-height: 1.22 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-remove-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border: 1px solid #eef2f7 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #64748b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.cart-remove-icon:hover {
    color: #dc2626 !important;
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
}

.cart-item-detail,
.cart-item-meta {
    color: #64748b !important;
    font-size: .74rem !important;
    line-height: 1.25 !important;
}

.cart-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
}

.cart-item-meta span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.cart-item-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-top: 2px;
}

.cart-item-price {
    margin: 0 !important;
    color: #111827 !important;
    font-size: .96rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    white-space: nowrap;
}

.cart-item-controls {
    margin: 0 !important;
    gap: 5px !important;
    padding: 3px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.cart-item-controls small {
    display: none;
}

.cart-item-controls button {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 999px !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    font-weight: 800;
}

.cart-item-controls span {
    min-width: 18px !important;
    font-size: .82rem !important;
    font-weight: 800 !important;
}

.cart-discount {
    padding: 9px 11px;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: .8rem;
    font-weight: 800;
}

.cart-footer {
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    background: #fff !important;
    border-top: 1px solid #edf0f4 !important;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, .06) !important;
}

.cart-mini-breakdown {
    display: grid;
    gap: 5px;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: .78rem;
}

.cart-mini-breakdown div,
.cart-total {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cart-mini-breakdown strong {
    color: #111827;
    font-weight: 800;
    white-space: nowrap;
}

.cart-mini-breakdown .positive strong {
    color: #16a34a;
}

.cart-total {
    margin-bottom: 10px !important;
    font-size: 1rem !important;
}

.cart-footer .btn-full {
    min-height: 46px !important;
    border-radius: 10px !important;
    font-size: .9rem !important;
}

@media (max-width: 1200px) {
    .cart-drawer.cart-drawer-split {
        width: min(96vw, 760px) !important;
        max-width: min(96vw, 760px) !important;
    }

    .cart-layout {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
    }

    .frame-addon-panel {
        border-right: 0 !important;
        border-bottom: 1px solid #ececec !important;
        max-height: none !important;
    }

    .frame-addon-head {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .frame-addon-head p {
        grid-column: 1 / -1;
    }

    .frame-addon-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 2px 2px 8px !important;
        scroll-snap-type: x proximity;
    }

    .frame-addon-card {
        flex: 0 0 242px;
        scroll-snap-align: start;
    }
}

@media (min-width: 1201px) {
    .cart-drawer.cart-drawer-split {
        width: min(92vw, 920px) !important;
        max-width: min(92vw, 920px) !important;
    }
}

@media (max-width: 768px) {
    .cart-drawer,
    .cart-drawer.cart-drawer-split {
        width: 100vw !important;
        max-width: 100vw !important;
    }

    .cart-drawer .cart-header {
        min-height: 62px;
        padding: 10px 14px !important;
    }

    .cart-layout {
        height: calc(100dvh - 62px) !important;
    }

    .frame-addon-panel {
        max-height: none !important;
        padding: 10px !important;
        gap: 8px !important;
    }

    .frame-addon-head h3 {
        font-size: .86rem !important;
    }

    .frame-addon-head p {
        font-size: .72rem !important;
    }

    .frame-addon-card {
        flex-basis: 218px;
        grid-template-columns: 74px minmax(0, 1fr) !important;
        min-height: 98px !important;
        padding: 8px !important;
    }

    .frame-addon-thumb {
        width: 74px !important;
        height: 82px !important;
    }

    .frame-addon-panel.mobile-collapsed {
        max-height: 92px;
    }

    .frame-addon-panel.mobile-collapsed .frame-addon-list,
    .frame-addon-panel.mobile-collapsed .frame-addon-selected {
        display: none !important;
    }

    .cart-main-pane .cart-items,
    .cart-items {
        padding: 10px !important;
    }

    .cart-item {
        grid-template-columns: 76px minmax(0, 1fr) !important;
        gap: 10px !important;
        padding: 9px !important;
    }

    .cart-item-img-wrap {
        width: 76px;
        height: 94px;
    }

    .cart-item-info h5 {
        font-size: .84rem !important;
    }

    .cart-item-meta {
        font-size: .7rem !important;
    }

    .cart-item-footer {
        align-items: flex-end !important;
    }

    .cart-item-price {
        font-size: .88rem !important;
    }

    .cart-footer {
        padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .cart-mini-breakdown {
        grid-template-columns: 1fr 1fr;
        gap: 4px 10px;
        font-size: .72rem;
    }

    .cart-mini-breakdown div {
        display: grid !important;
        gap: 1px;
    }
}

@media (max-width: 380px) {
    .cart-item {
        grid-template-columns: 68px minmax(0, 1fr) !important;
    }

    .cart-item-img-wrap {
        width: 68px;
        height: 84px;
    }

    .cart-item-footer {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
    }

    .frame-addon-card {
        flex-basis: 204px;
    }
}

/* Cart icon badge: prevent cropped count bubble in navbar */
.navbar,
.nav-container,
.nav-actions,
.nav-actions .icon-btn,
.navbar .icon-btn,
.cart-btn {
    overflow: visible !important;
}

.cart-btn,
.navbar .cart-btn,
.nav-actions .cart-btn {
    position: relative !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 40px !important;
}

.cart-btn i.ph,
.navbar .cart-btn i.ph,
.nav-actions .cart-btn i.ph {
    width: 1.15em !important;
    height: 1.15em !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.cart-btn .badge,
.navbar .cart-btn .badge,
.nav-actions .cart-btn .badge,
#cartCount {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    min-width: 15px !important;
    height: 15px !important;
    padding: 0 4px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--clr-accent, #c5a059) !important;
    color: #fff !important;
    border: 1.5px solid #fff !important;
    box-sizing: border-box !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    transform: none !important;
    z-index: 3 !important;
}

@media (max-width: 480px) {
    .cart-btn,
    .navbar .cart-btn,
    .nav-actions .cart-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        flex-basis: 36px !important;
    }

    .cart-btn .badge,
    .navbar .cart-btn .badge,
    .nav-actions .cart-btn .badge,
    #cartCount {
        top: 1px !important;
        right: 1px !important;
        min-width: 14px !important;
        height: 14px !important;
        font-size: 8px !important;
        padding: 0 3px !important;
    }
}

/* ------------------------------------------------------------
   Perf-lite overrides: keep the site responsive on low-power/mobile
   ------------------------------------------------------------ */
body.perf-lite .glass,
body.perf-lite .glass-dark,
body.perf-lite .btn-pc-glass,
body.perf-lite .mobile-sticky-buy,
body.perf-lite .sticky-cart,
body.perf-lite .cart-drawer,
body.perf-lite .nav-links,
body.perf-lite .glass-marquee-card,
body.perf-lite .glass-action-card,
body.perf-lite .product-card,
body.perf-lite .grid-item,
body.perf-lite .category-card,
body.perf-lite .frame-addon-card,
body.perf-lite .mini-item {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

body.perf-lite .glass-marquee-card video.marquee-media,
body.perf-lite .fx-cursor-dot,
body.perf-lite .fx-cursor-ring,
body.perf-lite .fx-social-proof,
body.perf-lite #fxSearchOverlay {
    display: none !important;
}

body.perf-lite .product-card,
body.perf-lite .grid-item,
body.perf-lite .category-card,
body.perf-lite .glass-action-card,
body.perf-lite .glass-marquee-card,
body.perf-lite .frame-addon-card {
    transform: none !important;
    will-change: auto !important;
}

body.perf-lite .related-grid > *,
body.perf-lite .footer-widget,
body.perf-lite .footer-col,
body.perf-lite .faq-item,
body.perf-lite .accordion-item {
    content-visibility: auto;
    contain-intrinsic-size: 180px;
    contain: layout paint style;
}

body.perf-lite .glass-marquee-section,
body.perf-lite .marquee-pro,
body.perf-lite .glass-marquee-track,
body.perf-lite .marquee-pro-content {
    transform: translateZ(0);
}

body.perf-lite .hero,
body.perf-lite .hero-scene,
body.perf-lite .hero-scene-container,
body.perf-lite .hero-scene-content,
body.perf-lite .hero-scene-posters,
body.perf-lite .hero-bg-parallax,
body.perf-lite .fx-bg-wrap,
body.perf-lite .fx-bg-banner {
    animation: none !important;
    transform: none !important;
}

body.perf-lite .hero-bg-parallax,
body.perf-lite .fx-bg-blob,
body.perf-lite .fx-dot-grid,
body.perf-lite .fx-line-accent,
body.perf-lite .fx-corner-shape,
body.perf-lite .hero-scene-bg::before,
body.perf-lite .hero-scene-bg::after {
    display: none !important;
}

body.perf-lite .hero-scene-posters .scene-frame,
body.perf-lite .category-card,
body.perf-lite .product-card,
body.perf-lite .grid-item,
body.perf-lite .glass-action-card {
    transition: none !important;
}

body.perf-lite .hero-scene-posters .scene-frame::after,
body.perf-lite .product-card::after,
body.perf-lite .category-card::before,
body.perf-lite .glass-action-card::before {
    display: none !important;
}

body.perf-lite .product-grid,
body.perf-lite .desktop-category-cards,
body.perf-lite .glass-action-grid,
body.perf-lite .related-grid,
body.perf-lite .gallery-scroll,
body.perf-lite .gallery-grid {
    content-visibility: auto;
    contain-intrinsic-size: 360px 260px;
    contain: layout paint style;
}

body.perf-lite .gallery-item,
body.perf-lite .product-card,
body.perf-lite .grid-item,
body.perf-lite .category-card {
    will-change: auto !important;
}

body.perf-lite .gallery-item img,
body.perf-lite .gallery-item video,
body.perf-lite .product-card .product-media,
body.perf-lite .category-card .cat-img img,
body.perf-lite .category-card .cat-img video {
    transform: none !important;
    filter: none !important;
}

/* =================================================================
   Off-Canvas Sidebar Navigation Drawer (Mobile / Tablet)
   ================================================================= */
@media (max-width: 1101px) {
  /* Prevent background scrolling */
  body.scroll-lock {
    overflow: hidden !important;
    touch-action: none !important;
    position: relative !important;
  }

  /* Overlay behind drawer */
  #mobileNavOverlay {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.45) !important;
    z-index: 1290 !important; /* Just below drawer */
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 280ms cubic-bezier(0.4, 0, 0.2, 1), visibility 280ms !important;
    backdrop-filter: none !important; /* Clear dark overlay */
    -webkit-backdrop-filter: none !important;
    pointer-events: none !important;
  }

  #mobileNavOverlay.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Navigation Drawer Container */
  .navbar .nav-links {
    display: flex !important; /* Always display flex to allow transform transition */
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 85% !important;
    max-width: 340px !important; /* Mobile max width */
    height: 100% !important;
    height: 100dvh !important;
    background: #ffffff !important;
    border-radius: 0 !important; /* Full height drawer */
    border: none !important;
    border-right: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18) !important;
    transform: translateX(-102%) !important; /* Hide off-screen left */
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1300 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 100% !important;
    will-change: transform;
    pointer-events: auto !important;
  }

  /* Tablet adjustment */
  @media (min-width: 480px) {
    .navbar .nav-links {
      max-width: 380px !important;
    }
  }

  .navbar .nav-links.open {
    transform: translateX(0) !important;
  }

  /* Drawer Header */
  .navbar .nav-links .drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: #ffffff !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    min-height: 64px !important;
  }

  .navbar .nav-links .drawer-logo {
    display: flex !important;
    align-items: center !important;
    height: 32px !important;
  }

  .navbar .nav-links .drawer-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    background: transparent !important;
    color: #111111 !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    transition: background 0.2s ease !important;
  }

  .navbar .nav-links .drawer-close:hover,
  .navbar .nav-links .drawer-close:focus-visible {
    background: rgba(0, 0, 0, 0.05) !important;
    outline: none !important;
  }

  /* Drawer Links styling */
  .navbar .nav-links a {
    width: 100% !important;
    min-height: 52px !important; /* Generous touch target >= 48px */
    display: flex !important;
    align-items: center !important;
    padding: 14px 20px !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 0.96rem !important;
    font-weight: 500 !important;
    color: #333333 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease !important;
  }

  .navbar .nav-links a:hover,
  .navbar .nav-links a:focus-visible {
    background: rgba(0, 0, 0, 0.02) !important;
    color: #111111 !important;
    padding-left: 24px !important; /* Subtle lift */
    outline: none !important;
  }

  /* Active page highlight */
  .navbar .nav-links a.active {
    background: rgba(17, 17, 17, 0.04) !important;
    color: #111111 !important;
    font-weight: 700 !important;
    border-left: 4px solid #111111 !important;
    padding-left: 16px !important; /* adjust for border */
  }
}


