/* ════════════════════════════════════════════════════════════════════
   MOBILE PRODUCT PAGE FIXES v3.9.14
   - Popup mobile overhaul (bigger preview, visible ATC, compact layout)
   - Gallery swipe visual feedback
   - Dimension stepper improvements
   - Gallery masonry redesign
   ════════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────
   §1  POPUP (ta-cust-modal) — BASE STYLES FOR sd-cd-*
   These base styles are MISSING from reskin.css!
   ────────────────────────────────────────────────────── */

/* Bottom section — price + cart area */
.sd-cd-bottom{
    padding:16px 22px;
    border-top:1px solid #f0f0f0;
    background:#fff;
}
.sd-cd-bottom__row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:4px 0;
    font-size:14px;
    color:#555;
    direction:rtl;
}
.sd-cd-bottom__row--big{
    font-size:18px;
    color:#111;
    padding:6px 0 12px;
}
.sd-cd-bottom__row--big strong{
    font-size:22px;
    font-weight:900;
}
.sd-cd-bottom__min{
    font-size:12px;
    color:#888;
    margin:0 0 8px;
    direction:rtl;
    text-align:right;
}

/* ATC button — BLACK, prominent */
.sd-cd-bottom__cart{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
    height:52px;
    background:#111 !important;
    color:#fff !important;
    border:none;
    border-radius:8px;
    font-size:16px;
    font-weight:700;
    font-family:inherit;
    cursor:pointer;
    transition:background .2s, transform .15s;
}
.sd-cd-bottom__cart:hover{
    background:#333 !important;
    transform:translateY(-1px);
}
.sd-cd-bottom__cart:active{
    transform:scale(.98);
}
.sd-cd-bottom__cart svg{
    stroke:#fff;
}
.sd-cd-bottom__cart:disabled{
    background:#999 !important;
    cursor:wait;
}

/* Shipping text */
.sd-cd-bottom__shipping{
    display:block;
    text-align:center;
    font-size:12px;
    color:#888;
    margin-top:8px;
    direction:rtl;
}

/* Section styling */
.sd-cd-section{
    padding:16px 22px;
    border-bottom:1px solid #f5f5f5;
}
.sd-cd-section__title{
    font-size:14px;
    font-weight:700;
    color:#111;
    margin:0 0 4px;
}
.sd-cd-section__hint{
    font-size:12px;
    color:#888;
    margin:0 0 12px;
}

/* Dimensions inputs */
.sd-cd-dims{
    display:flex;
    gap:12px;
    align-items:flex-end;
}
.sd-cd-dims__field{
    flex:1;
}
.sd-cd-dims__field label{
    display:block;
    font-size:12px;
    font-weight:600;
    color:#555;
    margin-bottom:4px;
}
.sd-cd-dims__input-wrap{
    display:flex;
    align-items:center;
    border:1.5px solid #ddd;
    border-radius:6px;
    overflow:hidden;
    background:#fff;
    transition:border-color .15s;
}
.sd-cd-dims__input-wrap:focus-within{
    border-color:#111;
    box-shadow:0 0 0 3px rgba(0,0,0,.06);
}
.sd-cd-dims__input-wrap input{
    flex:1;
    border:none;
    outline:none;
    height:44px;
    padding:0 12px;
    font-size:16px;
    font-weight:700;
    text-align:center;
    background:transparent;
    color:#111;
    -moz-appearance:textfield;
}
.sd-cd-dims__input-wrap input::-webkit-outer-spin-button,
.sd-cd-dims__input-wrap input::-webkit-inner-spin-button{
    -webkit-appearance:none;margin:0;
}
.sd-cd-dims__unit{
    padding:0 10px;
    font-size:12px;
    color:#888;
    background:#f8f8f8;
    height:44px;
    display:flex;
    align-items:center;
    border-inline-start:1px solid #eee;
    white-space:nowrap;
}
.sd-cd-dims__x{
    font-size:16px;
    color:#bbb;
    flex-shrink:0;
    padding-bottom:4px;
}
.sd-cd-dims__margin{
    margin-top:8px;
}
.sd-cd-dims__margin label{
    font-size:13px;
    color:#555;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    gap:6px;
}

/* Materials */
.sd-cd-materials{
    display:flex;
    flex-direction:column;
    gap:8px;
}
.sd-cd-mat{
    cursor:pointer;
}
.sd-cd-mat input[type="radio"]{
    display:none;
}
.sd-cd-mat__card{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 14px;
    border:1.5px solid #e5e5e5;
    border-radius:8px;
    transition:border-color .15s, box-shadow .15s;
    background:#fff;
    direction:rtl;
}
.sd-cd-mat input:checked + .sd-cd-mat__card{
    border-color:#111;
    box-shadow:0 0 0 1px #111;
}
.sd-cd-mat__info{
    display:flex;
    flex-direction:column;
    gap:2px;
}
.sd-cd-mat__info strong{
    font-size:14px;
    color:#111;
}
.sd-cd-mat__info span{
    font-size:11px;
    color:#888;
}
.sd-cd-mat__price{
    font-size:13px;
    font-weight:700;
    color:#111;
    white-space:nowrap;
}

/* Filters */
.sd-cd-filters{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
}
.sd-cd-filter{
    cursor:pointer;
}
.sd-cd-filter input{display:none}
.sd-cd-filter__pill{
    display:inline-block;
    padding:6px 14px;
    border:1.5px solid #e5e5e5;
    border-radius:100px;
    font-size:12px;
    font-weight:500;
    color:#555;
    transition:all .15s;
}
.sd-cd-filter input:checked + .sd-cd-filter__pill{
    border-color:#111;
    background:#111;
    color:#fff;
}

/* Options row */
.sd-cd-options-row{
    margin-bottom:12px;
}
.sd-cd-toggle{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:13px;
    font-weight:500;
    color:#333;
    cursor:pointer;
}
.sd-cd-toggle input{
    width:16px;height:16px;accent-color:#111;
}

/* Reset button */
.sd-cd-reset-btn{
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:4px 10px;
    border:1px solid #ddd;
    border-radius:4px;
    background:#fff;
    font-size:11px;
    color:#666;
    cursor:pointer;
    transition:background .15s;
}
.sd-cd-reset-btn:hover{background:#f5f5f5}

/* Preview bar info */
.sd-cd-preview-bar__info{
    font-size:12px;
    color:#888;
}

/* ──────────────────────────────────────────────────────
   §2  POPUP MOBILE — Complete overhaul
   ────────────────────────────────────────────────────── */
@media(max-width:900px){
    /* Full-screen modal on mobile */
    .ta-cust-modal{
        padding:0 !important;
        z-index:99999 !important;
    }
    .ta-cust-modal-studio{
        flex-direction:column !important;
        height:100vh !important;
        height:100dvh !important;
        width:100% !important;
        max-width:100% !important;
        border-radius:0 !important;
        overflow:hidden !important;
    }

    /* Preview area — MORE space for the image */
    .ta-cust-studio-preview{
        min-height:45vh !important;
        max-height:50vh !important;
        padding:8px !important;
        flex-shrink:0 !important;
        background:#f5f5f5 !important;
    }
    .ta-cust-canvas-wrap{
        min-height:38vh !important;
        max-height:45vh !important;
    }

    /* Controls — scrollable, compact */
    .ta-cust-studio-controls{
        width:100% !important;
        flex:1 !important;
        overflow-y:auto !important;
        -webkit-overflow-scrolling:touch;
        position:relative !important;
        border-right:none !important;
        border-top:1px solid #e5e5e5 !important;
        padding-bottom:0 !important;
    }
    .ta-cust-studio-close{
        top:8px !important;
        right:8px !important;
        z-index:30 !important;
        width:36px !important;
        height:36px !important;
        background:rgba(0,0,0,.5) !important;
        color:#fff !important;
        border-radius:50% !important;
    }
    .ta-cust-studio-close svg{stroke:#fff !important}

    /* Sections: tighter padding on mobile */
    .ta-cust-studio-controls .sd-cd-section{
        padding:12px 16px !important;
    }
    .ta-cust-studio-controls .sd-cd-section__title{
        font-size:13px !important;
    }
    .ta-cust-studio-controls .sd-cd-section__hint{
        font-size:11px !important;
        margin-bottom:8px !important;
    }

    /* Dims — side by side, compact */
    .ta-cust-studio-controls .sd-cd-dims{
        gap:8px !important;
    }
    .ta-cust-studio-controls .sd-cd-dims__input-wrap input{
        height:40px !important;
        font-size:15px !important;
    }
    .ta-cust-studio-controls .sd-cd-dims__unit{
        height:40px !important;
        font-size:11px !important;
        padding:0 8px !important;
    }
    .ta-cust-studio-controls .sd-cd-dims__x{
        font-size:14px !important;
    }

    /* Materials — compact cards */
    .ta-cust-studio-controls .sd-cd-mat__card{
        padding:10px 12px !important;
    }
    .ta-cust-studio-controls .sd-cd-mat__info strong{
        font-size:13px !important;
    }
    .ta-cust-studio-controls .sd-cd-mat__info span{
        font-size:10px !important;
    }
    .ta-cust-studio-controls .sd-cd-mat__price{
        font-size:12px !important;
    }

    /* Filters — compact pills */
    .ta-cust-studio-controls .sd-cd-filter__pill{
        padding:5px 10px !important;
        font-size:11px !important;
    }

    /* ── STICKY BOTTOM (ATC button) — ALWAYS visible ── */
    .ta-cust-studio-controls .sd-cd-bottom{
        position:sticky !important;
        bottom:0 !important;
        left:0 !important;
        right:0 !important;
        background:#fff !important;
        border-top:1px solid #eee !important;
        padding:10px 16px 14px !important;
        box-shadow:0 -4px 16px rgba(0,0,0,.1) !important;
        z-index:100 !important;
    }

    /* Price rows: compact */
    .ta-cust-studio-controls .sd-cd-bottom__row{
        padding:2px 0 !important;
        font-size:13px !important;
    }
    .ta-cust-studio-controls .sd-cd-bottom__row--big{
        padding:4px 0 8px !important;
    }
    .ta-cust-studio-controls .sd-cd-bottom__row--big strong{
        font-size:20px !important;
    }

    /* ATC button — BLACK, full width, prominent */
    .ta-cust-studio-controls .sd-cd-bottom__cart{
        width:100% !important;
        height:48px !important;
        font-size:15px !important;
        border-radius:8px !important;
        background:#111 !important;
        color:#fff !important;
    }

    /* HIDE shipping text on mobile — saves space */
    .ta-cust-studio-controls .sd-cd-bottom__shipping{
        display:none !important;
    }

    /* WhatsApp link — compact one-liner, small */
    .ta-cust-studio-controls .ta-cust-wa-link{
        font-size:11px !important;
        padding:6px !important;
        margin-top:6px !important;
        border-width:1px !important;
    }

    /* Hide header inside popup on very small screens to save space */
    .ta-cust-studio-header{
        padding:8px 16px !important;
        font-size:12px !important;
    }
    .ta-cust-studio-header strong{
        font-size:13px !important;
    }

    /* Preview bar compact */
    .ta-cust-preview-bar{
        padding:4px 0 !important;
    }
    .sd-cd-reset-btn{
        font-size:10px !important;
        padding:3px 8px !important;
    }
    .sd-cd-preview-bar__info{
        font-size:11px !important;
    }
}

/* Extra small phones */
@media(max-width:400px){
    .ta-cust-studio-preview{
        min-height:40vh !important;
        max-height:45vh !important;
    }
    .ta-cust-studio-controls .sd-cd-section{
        padding:10px 12px !important;
    }
    .ta-cust-studio-controls .sd-cd-bottom{
        padding:8px 12px 12px !important;
    }
    .ta-cust-studio-controls .sd-cd-bottom__cart{
        height:44px !important;
        font-size:14px !important;
    }
    /* Hide WhatsApp on very small screens to save space */
    .ta-cust-studio-controls .ta-cust-wa-link{
        display:none !important;
    }
}

/* ──────────────────────────────────────────────────────
   §3  DIMENSION INPUTS — Stepper +/- on product page
   ────────────────────────────────────────────────────── */

/* Step buttons for width/height dimension inputs */
.pw-dim-stepper{
    display:flex;
    align-items:center;
    border:1.5px solid #ccc;
    border-radius:8px;
    overflow:hidden;
    background:#fff;
    transition:border-color .15s;
    max-width:100%;
}
.pw-dim-stepper:focus-within{
    border-color:#111;
    box-shadow:0 0 0 3px rgba(0,0,0,.06);
}
.pw-dim-step-btn{
    width:38px;
    min-width:38px;
    height:42px;
    border:none;
    background:#f0f0f0;
    font-size:20px;
    font-weight:600;
    cursor:pointer;
    color:#333;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:background .15s;
    flex-shrink:0;
    -webkit-tap-highlight-color:transparent;
    user-select:none;
    line-height:1;
    padding:0;
    outline:none;
}
.pw-dim-step-btn:hover{background:#e5e5e5}
.pw-dim-step-btn:active{background:#ddd}
.pw-dim-stepper .pw-dim-inp{
    border:none !important;
    border-radius:0 !important;
    border-inline:1px solid #ddd !important;
    width:54px;
    min-width:40px;
    height:42px;
    font-size:16px;
    font-weight:700;
    text-align:center;
    -moz-appearance:textfield;
    background:transparent;
    padding:0 2px;
    flex:1 1 auto;
    box-shadow:none !important;
}
.pw-dim-stepper .pw-dim-inp::-webkit-outer-spin-button,
.pw-dim-stepper .pw-dim-inp::-webkit-inner-spin-button{
    -webkit-appearance:none;margin:0;
}
.pw-dim-stepper .pw-dim-unit{
    height:42px;
    display:flex;
    align-items:center;
    padding:0 6px;
    font-size:11px;
    color:#888;
    background:#f8f8f8;
    border-inline-start:1px solid #ddd;
    white-space:nowrap;
    flex-shrink:0;
}

@media(max-width:768px){
    .pw-dim-step-btn{
        width:42px !important;
        min-width:42px !important;
        height:46px !important;
        font-size:22px !important;
        background:#eee !important;
    }
    .pw-dim-step-btn:active{
        background:#ddd !important;
    }
    .pw-dim-stepper .pw-dim-inp{
        height:46px !important;
        font-size:18px !important;
        width:58px;
    }
    .pw-dim-stepper .pw-dim-unit{
        height:46px !important;
        padding:0 5px;
    }
    .pw-dim-stepper{
        border-width:2px;
        border-color:#bbb;
    }
}

/* ──────────────────────────────────────────────────────
   §4  GALLERY SWIPE — visual feedback
   ────────────────────────────────────────────────────── */
.pw-main-img-wrap{
    touch-action:pan-y pinch-zoom;
    -webkit-user-select:none;
    user-select:none;
}
@media(max-width:768px){
    .pw-main-img-wrap{
        cursor:grab;
        max-height:55vh;
        display:flex;
        align-items:center;
        justify-content:center;
    }
    .pw-main-img-wrap img:not(.wallpaper-with-canvas){
        max-height:55vh!important;
        width:auto!important;
        max-width:100%!important;
        object-fit:contain!important;
        margin:0 auto;
    }
    .pw-main-img-wrap:active{
        cursor:grabbing;
    }
    /* Ensure image dots are visible */
    .pw-img-dots{
        display:flex !important;
        justify-content:center;
        gap:6px;
        padding:8px 0;
    }
    .pw-img-dot{
        width:8px;
        height:8px;
        border-radius:50%;
        background:#ccc;
        border:none;
        padding:0;
        cursor:pointer;
        transition:background .2s, transform .2s;
    }
    .pw-img-dot.is-active{
        background:#111;
        transform:scale(1.3);
    }
}

/* ──────────────────────────────────────────────────────
   §5  INSPIRATION GALLERY — Photowall-style Masonry v2
   Edge-to-edge grid, upload CTA, clean design
   ────────────────────────────────────────────────────── */

/* Hero — compact, centered */
.inspo-page .inspo-hero{
    padding:40px 0 28px !important;
    background:#fff !important;
    border-bottom:none !important;
    text-align:center !important;
}
.inspo-page .inspo-hero-inner{
    max-width:640px !important;
    margin:0 auto !important;
}
.inspo-page .inspo-bc{
    justify-content:center !important;
    margin-bottom:16px !important;
    font-size:12px !important;
    color:#999 !important;
}
.inspo-page .inspo-bc a{color:#999 !important}
.inspo-page .inspo-bc a:hover{color:#111 !important}
.inspo-page .inspo-bc-sep{color:#ccc !important;margin:0 4px !important}
.inspo-page .inspo-hero-tag{display:none !important}
.inspo-page .inspo-hero-title{
    font-size:32px !important;
    font-weight:900 !important;
    letter-spacing:-.5px !important;
    margin:0 0 8px !important;
    color:#111 !important;
}
.inspo-page .inspo-hero-desc{
    font-size:14px !important;
    color:#666 !important;
    line-height:1.7 !important;
    margin:0 auto 16px !important;
    max-width:500px !important;
}
.inspo-page .inspo-hero-stat{
    gap:6px !important;
    justify-content:center !important;
}
.inspo-page .inspo-hero-stat-num{
    font-size:28px !important;
    font-weight:900 !important;
    color:#111 !important;
    background:none !important;
    -webkit-text-fill-color:#111 !important;
}
.inspo-page .inspo-hero-stat-lbl{
    font-size:13px !important;
    color:#888 !important;
}

/* Filter bar */
.inspo-page .inspo-filter-bar{
    padding:14px 0 !important;
    border-bottom:1px solid #eee !important;
    background:#fff !important;
    box-shadow:none !important;
}
.inspo-page .inspo-filters{
    gap:6px !important;
    justify-content:center !important;
}
.inspo-page .inspo-filter-btn{
    padding:8px 18px !important;
    border:1.5px solid #e0e0e0 !important;
    border-radius:100px !important;
    font-size:13px !important;
    font-weight:600 !important;
    color:#555 !important;
    background:#fff !important;
    transition:all .2s !important;
}
.inspo-page .inspo-filter-btn:hover{
    border-color:#111 !important;
    color:#111 !important;
}
.inspo-page .inspo-filter-btn.is-active{
    background:#111 !important;
    color:#fff !important;
    border-color:#111 !important;
}

/* Gallery wrap — edge-to-edge, no container */
.inspo-page .inspo-gallery-wrap{
    padding:4px 0 48px !important;
    background:#fff !important;
}

/* Grid — 4 columns, tight gaps like Photowall */
.inspo-page .inspo-grid{
    display:grid !important;
    grid-template-columns:repeat(4, 1fr) !important;
    gap:4px !important;
    column-count:unset !important;
    column-gap:unset !important;
    grid-auto-rows:unset !important;
    padding:0 !important;
    max-width:100% !important;
}

/* Card — clean, edge-to-edge */
.inspo-page .inspo-card{
    position:relative !important;
    overflow:hidden !important;
    cursor:pointer !important;
    aspect-ratio:1/1 !important;
    background:#f0ede8 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    grid-row:unset !important;
    margin:0 !important;
    transition:opacity .3s !important;
    break-inside:unset !important;
    display:block !important;
    width:auto !important;
}
.inspo-page .inspo-card:nth-child(n){
    grid-row:unset !important;
}
.inspo-page .inspo-card:hover{
    opacity:.9 !important;
    transform:none !important;
    box-shadow:none !important;
}

.inspo-page .inspo-card-media{
    width:100% !important;
    height:100% !important;
    position:absolute !important;
    inset:0 !important;
    line-height:0 !important;
}
.inspo-page .inspo-card-img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    display:block !important;
    transition:transform .4s cubic-bezier(.4,0,.2,1) !important;
}
.inspo-page .inspo-card:hover .inspo-card-img{
    transform:scale(1.03) !important;
}

/* Overlay — subtle, only on hover */
.inspo-page .inspo-card-overlay{
    position:absolute !important;
    inset:0 !important;
    background:linear-gradient(0deg,rgba(0,0,0,.55) 0%,transparent 50%) !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-end !important;
    padding:14px !important;
    opacity:0 !important;
    transition:opacity .3s !important;
}
.inspo-page .inspo-card:hover .inspo-card-overlay{
    opacity:1 !important;
}
.inspo-page .inspo-card-title{
    color:#fff !important;
    font-size:13px !important;
    font-weight:600 !important;
    margin:0 0 4px !important;
}
.inspo-page .inspo-card-buy{
    display:inline-flex !important;
    align-items:center !important;
    gap:4px !important;
    color:#fff !important;
    font-size:11px !important;
    font-weight:500 !important;
    text-decoration:none !important;
    opacity:.85 !important;
}

/* Video badge — small dot */
.inspo-page .inspo-card-video-badge{
    position:absolute !important;
    top:10px !important;
    right:10px !important;
    width:28px !important;
    height:28px !important;
    background:rgba(0,0,0,.6) !important;
    border-radius:50% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:0 !important;
    font-size:0 !important;
    backdrop-filter:blur(4px) !important;
    z-index:2 !important;
}
.inspo-page .inspo-card-video-badge svg{
    margin:0 !important;
}

/* ── Upload CTA Card — dark, like Photowall ── */
.inspo-upload-card{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-end !important;
    justify-content:flex-end !important;
    padding:24px !important;
    background:#111 !important;
    color:#fff !important;
    text-decoration:none !important;
    aspect-ratio:1/1 !important;
    position:relative !important;
    overflow:hidden !important;
    transition:background .3s !important;
    break-inside:avoid !important;
    direction:rtl !important;
    text-align:right !important;
}
.inspo-upload-card:hover{
    background:#222 !important;
    color:#fff !important;
}
.inspo-upload-icon{
    margin-bottom:16px !important;
    opacity:.7 !important;
}
.inspo-upload-icon svg{
    stroke:#fff !important;
}
.inspo-upload-text{
    font-size:18px !important;
    font-weight:800 !important;
    line-height:1.3 !important;
    margin-bottom:12px !important;
    direction:rtl !important;
}
.inspo-upload-arrow{
    font-size:24px !important;
    opacity:.5 !important;
    transition:transform .3s, opacity .3s !important;
}
.inspo-upload-card:hover .inspo-upload-arrow{
    transform:translateX(-6px) !important;
    opacity:1 !important;
}

/* Load more */
.inspo-page .inspo-pagination{
    text-align:center !important;
    padding:40px 0 !important;
}
.inspo-page .inspo-load-more{
    padding:14px 48px !important;
    background:#111 !important;
    color:#fff !important;
    border:none !important;
    border-radius:100px !important;
    font-size:14px !important;
    font-weight:700 !important;
    cursor:pointer !important;
    transition:all .25s !important;
    font-family:inherit !important;
}
.inspo-page .inspo-load-more:hover{
    background:#333 !important;
    transform:translateY(-2px) !important;
}

/* Empty state */
.inspo-page .inspo-empty{
    text-align:center !important;
    padding:60px 20px !important;
    color:#888 !important;
    font-size:16px !important;
}

/* Lightbox */
.inspo-lb{
    position:fixed !important;
    inset:0 !important;
    z-index:99999 !important;
    display:none !important;
    align-items:center !important;
    justify-content:center !important;
}
.inspo-lb.is-open{display:flex !important}
.inspo-lb-bg{
    position:absolute !important;
    inset:0 !important;
    background:rgba(0,0,0,.9) !important;
    backdrop-filter:blur(6px) !important;
}
.inspo-lb-close{
    position:absolute !important;
    top:16px !important;
    right:16px !important;
    width:44px !important;
    height:44px !important;
    background:rgba(255,255,255,.1) !important;
    border:none !important;
    border-radius:50% !important;
    color:#fff !important;
    font-size:20px !important;
    cursor:pointer !important;
    z-index:3 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}
.inspo-lb-nav{
    position:absolute !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    width:44px !important;
    height:44px !important;
    background:rgba(255,255,255,.1) !important;
    border:none !important;
    border-radius:50% !important;
    color:#fff !important;
    font-size:22px !important;
    cursor:pointer !important;
    z-index:3 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}
.inspo-lb-nav:hover,.inspo-lb-close:hover{background:rgba(255,255,255,.2) !important}
#inspo-lb-prev{left:16px !important}
#inspo-lb-next{right:16px !important}
.inspo-lb-content{
    position:relative !important;
    z-index:2 !important;
    max-width:90vw !important;
    max-height:90vh !important;
    text-align:center !important;
}
.inspo-lb-img{
    max-width:90vw !important;
    max-height:85vh !important;
    border-radius:6px !important;
    box-shadow:0 8px 40px rgba(0,0,0,.3) !important;
}
.inspo-lb-video-wrap{
    width:80vw !important;
    max-width:900px !important;
    aspect-ratio:16/9 !important;
    border-radius:8px !important;
    overflow:hidden !important;
    background:#000 !important;
}
.inspo-lb-video-wrap iframe{width:100% !important;height:100% !important;border:none !important}
.inspo-lb-footer{
    padding:12px 0 !important;
    color:#fff !important;
}
.inspo-lb-title{font-size:14px !important;font-weight:500 !important;margin:0 !important}
.inspo-lb-buy{
    color:#fff !important;
    font-size:13px !important;
    text-decoration:underline !important;
    margin-top:4px !important;
    display:inline-flex !important;
    gap:4px !important;
}

/* ── Responsive — tablet ── */
@media(max-width:1024px){
    .inspo-page .inspo-grid{
        grid-template-columns:repeat(3, 1fr) !important;
        gap:3px !important;
    }
}

/* ── Mobile ── */
@media(max-width:768px){
    .inspo-page .inspo-hero{padding:28px 0 20px !important}
    .inspo-page .inspo-hero-title{font-size:24px !important}
    .inspo-page .inspo-hero-stat-num{font-size:24px !important}
    .inspo-page .inspo-hero-desc{font-size:13px !important}
    .inspo-page .inspo-grid{
        grid-template-columns:repeat(2, 1fr) !important;
        gap:2px !important;
    }
    .inspo-page .inspo-card-overlay{
        opacity:1 !important;
        background:linear-gradient(0deg,rgba(0,0,0,.45) 0%,transparent 30%) !important;
        padding:10px !important;
    }
    .inspo-page .inspo-card-title{font-size:11px !important}
    .inspo-page .inspo-card-buy{display:none !important}
    .inspo-page .inspo-filters{
        justify-content:flex-start !important;
        flex-wrap:nowrap !important;
        overflow-x:auto !important;
        padding:0 16px !important;
    }
    .inspo-page .inspo-filter-btn{
        padding:7px 14px !important;
        font-size:12px !important;
    }
    .inspo-upload-text{font-size:15px !important}
    .inspo-upload-card{padding:16px !important}
    .inspo-page .inspo-load-more{
        padding:12px 36px !important;
        font-size:13px !important;
    }
    #inspo-lb-prev{left:8px !important}
    #inspo-lb-next{right:8px !important}
}

/* ── Small phones ── */
@media(max-width:480px){
    .inspo-page .inspo-hero-title{font-size:22px !important}
    .inspo-upload-text{font-size:14px !important}
}

/* ════════════════════════════════════════════════════════════════════
   §6  MOBILE HEADER & NAVIGATION FIXES
   - Visible logo/home icon on mobile header
   - Submenu toggle buttons (parent link stays clickable)
   ════════════════════════════════════════════════════════════════════ */

/* ── Desktop: hide mobile-only elements ── */
.mobile-home-icon{display:none !important}
.nav-submenu-toggle{display:none}
.nav-link-row{display:contents} /* On desktop, behave as if wrapper isn't there */

@media(max-width:768px){

    /* ── Mobile header logo — always visible ── */
    .header .logo{
        display:flex !important;
        align-items:center;
        flex-shrink:0;
        min-width:0;
    }
    .header .logo img,
    .header .logo .custom-logo{
        max-height:28px !important;
        width:auto !important;
        display:block !important;
    }

    /* Mobile home icon — always-visible clickable home button */
    .mobile-home-icon{
        display:flex !important;
        align-items:center;
        justify-content:center;
        width:38px;
        height:38px;
        flex-shrink:0;
        color:#111;
        text-decoration:none;
        -webkit-tap-highlight-color:transparent;
    }
    .mobile-home-icon svg{
        width:22px;
        height:22px;
    }

    /* ── Mobile nav drawer — logo as clickable home link ── */
    .nav-mobile-logo{
        display:flex !important;
        align-items:center;
        gap:8px;
        text-decoration:none;
        color:#111;
        font-size:16px;
        font-weight:700;
    }
    .nav-mobile-logo .custom-logo-link{
        display:inline-block;
        line-height:0;
    }
    .nav-mobile-logo .custom-logo-link img,
    .nav-mobile-logo .custom-logo{
        max-height:28px !important;
        width:auto !important;
    }
    .nav-mobile-home-icon{
        flex-shrink:0;
    }

    /* ── Nav link row: flex wrapper for link + toggle ── */
    .nav-link-row{
        display:flex !important;
        align-items:center;
        width:100%;
    }
    .nav-link-row .nav-link{
        flex:1;
        min-width:0;
    }
    /* Hide the desktop chevron inside the link on mobile */
    .nav-chevron--desktop{
        display:none !important;
    }

    /* ── Submenu toggle button ── */
    .nav-submenu-toggle{
        display:flex !important;
        align-items:center;
        justify-content:center;
        width:48px;
        height:48px;
        flex-shrink:0;
        border:none;
        background:none;
        cursor:pointer;
        color:#666;
        border-inline-start:1px solid #f0f0f0;
        transition:background .2s, color .2s;
        -webkit-tap-highlight-color:transparent;
    }
    .nav-submenu-toggle:active,
    .nav-submenu-toggle:hover{
        background:#f5f5f5;
        color:#111;
    }
    .nav-submenu-toggle svg{
        transition:transform .25s ease;
    }
    .nav-submenu-toggle.is-open svg{
        transform:rotate(180deg);
    }
    .nav-submenu-toggle.is-open{
        color:#111;
        background:#f0f0f0;
    }
}
