﻿/* ═══════════════════════════════════════════════════════════════
   PERCENT PERFUME — Mobile App CSS v2.0
   Complete mobile-first redesign for iOS + Android
   ═══════════════════════════════════════════════════════════════ */

:root{
  --m-safe-top:env(safe-area-inset-top,0px);
  --m-safe-bottom:env(safe-area-inset-bottom,0px);
  --m-safe-left:env(safe-area-inset-left,0px);
  --m-safe-right:env(safe-area-inset-right,0px);
  --m-header-h:60px;
  --m-bottom-h:68px;
  --m-touch:48px;
  --m-gold:#c9a961;--m-gold-dk:#a8874a;--m-gold-lt:#e8d4a2;
  --m-black:#0a0a0a;--m-black-2:#16161a;
  --m-bg:#faf8f3;--m-ivory:#f5f1e8;--m-cream:#ebe5d6;
  --m-text:#1a1a1a;--m-muted:#6b6459;
  --m-border:rgba(10,10,10,.08);
  --m-gold-border:rgba(201,169,97,.28);
  --m-ease:cubic-bezier(.22,1,.36,1);
  --m-spring:cubic-bezier(.34,1.56,.64,1);
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE BREAKPOINT — max-width: 900px
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px){

  /* ─── Base reset ─── */
  html{
    -webkit-text-size-adjust:100%;
    -webkit-tap-highlight-color:transparent;
    overscroll-behavior-y: auto;
    scroll-behavior:smooth;
    
  }

  body{
    min-height:100dvh!important;
    padding-bottom:calc(var(--m-bottom-h) + var(--m-safe-bottom) + 8px)!important;
    overscroll-behavior-y: auto;
    
    -webkit-overflow-scrolling:touch;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    font-size:15px;
    margin:0;
  }

  .cursor-dot,.cursor-ring,.scroll-progress{display:none!important}

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea{
    font-size:16px!important;
    -webkit-appearance:none;
    appearance:none;
  }

  /* ✅ إصلاح: مربعات الاختيار تظهر بوضوح على الجوال */
  input[type="checkbox"],
  input[type="radio"]{
    -webkit-appearance: auto !important;
    appearance: auto !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    accent-color: #c9a961 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    pointer-events: auto !important;
    transform: none !important;
    border: 1.5px solid #c9a961 !important;
    border-radius: 4px !important;
    background-color: #fff !important;
  }

  input[type="checkbox"]:checked,
  input[type="radio"]:checked{
    background-color: #c9a961 !important;
  }

  button,a,[role="button"],.m-tappable{
    min-height:var(--m-touch);
    touch-action:manipulation;
    user-select:none;
    -webkit-user-select:none;
    -webkit-touch-callout:none;
  }

  button:active,a:active{opacity:.85}

  /* ═══════════════════════════════════════════════════════════
     HEADER
     ═══════════════════════════════════════════════════════════ */
  header#header,header{
    padding:8px 0!important;
    padding-top:calc(8px + var(--m-safe-top))!important;
    background:rgba(250,248,243,.96)!important;
    backdrop-filter:saturate(180%) blur(20px)!important;
    -webkit-backdrop-filter:saturate(180%) blur(20px)!important;
    border-bottom:1px solid var(--m-gold-border)!important;
    box-shadow:0 4px 20px rgba(10,10,10,.05)!important;
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    z-index:1200!important;
  }

  header.scrolled,header.scrolled *{}

  .nav-container{
    padding:0 14px!important;
    gap:8px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
  }

  .brand{gap:8px!important;display:flex!important;align-items:center!important}
  .brand-mark{width:34px!important;height:34px!important;flex-shrink:0!important}
  .brand-text{display:flex!important;flex-direction:column!important;line-height:1!important}
  .brand-name{font-size:1rem!important;letter-spacing:2px!important}
  .brand-sub{font-size:.42rem!important;letter-spacing:3px!important}

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

  .icon-btn,.wishlist-header-btn{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    min-height:40px!important;
    border-radius:12px!important;
    background:rgba(201,169,97,.06)!important;
    border:1px solid var(--m-gold-border)!important;
    color:var(--m-gold-dk)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:.92rem!important;
  }

  .lang-switch{
    padding:9px 12px!important;
    font-size:.72rem!important;
    border-radius:12px!important;
    min-height:40px!important;
    min-width:44px!important;
    background:rgba(201,169,97,.06)!important;
    border:1px solid var(--m-gold-border)!important;
    color:var(--m-gold-dk)!important;
    font-weight:800!important;
  }

  .menu-toggle{
    display:flex!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    min-height:40px!important;
    border-radius:12px!important;
    background:rgba(201,169,97,.08)!important;
    border:1px solid var(--m-gold-border)!important;
    align-items:center!important;
    justify-content:center!important;
    color:var(--m-gold-dk)!important;
    font-size:1.15rem!important;
    cursor:pointer!important;
  }

  /* ─── Slide-in nav ─── */
  .nav-links{
    position:fixed!important;
    top:0!important;
    inset-inline-end:0!important;
    right:0!important;
    left:auto!important;
    width:0!important;
    max-width:100vw!important;
    height:100vh!important;
    height:100dvh!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
    align-items:stretch!important;
    gap:6px!important;
    padding:calc(var(--m-header-h) + var(--m-safe-top) + 16px) 18px calc(30px + var(--m-safe-bottom))!important;
    background:rgba(250,248,243,.99)!important;
    backdrop-filter:blur(24px)!important;
    -webkit-backdrop-filter:blur(24px)!important;
    border-inline-start:1px solid var(--m-gold-border)!important;
    box-shadow:-20px 0 60px rgba(10,10,10,.18)!important;
    overflow-y:auto!important;
    z-index:1300!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transition:width .45s var(--m-ease),opacity .3s ease,visibility .3s ease!important;
  }

  html[dir="ltr"] .nav-links{right:auto!important;left:0!important;border-inline-start:none!important;border-inline-end:1px solid var(--m-gold-border)!important}

  .nav-links.active{
    width:min(86vw,340px)!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }

  .nav-links a{
    width:100%!important;
    padding:15px 18px!important;
    border-radius:14px!important;
    font-size:1rem!important;
    font-weight:800!important;
    text-align:start!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    min-height:56px!important;
    border:1px solid transparent!important;
    background:transparent!important;
    color:var(--m-black)!important;
    text-decoration:none!important;
    transition:background .2s!important;
  }

  .nav-links a::after{
    content:'\f053'!important;
    font-family:'Font Awesome 6 Free'!important;
    font-weight:900!important;
    font-size:.7rem!important;
    color:var(--m-gold)!important;
    opacity:.55!important;
    position:static!important;
    width:auto!important;
    height:auto!important;
    background:none!important;
    inset-inline-start:auto!important;
    bottom:auto!important;
  }

  html[dir="ltr"] .nav-links a::after{content:'\f054'!important}

  .nav-links a:active{background:rgba(201,169,97,.12)!important}

  .nav-links a.active{
    background:rgba(201,169,97,.14)!important;
    border-color:var(--m-gold-border)!important;
    color:var(--m-gold-dk)!important;
  }

  /* ═══════════════════════════════════════════════════════════
     BOTTOM NAVIGATION
     ═══════════════════════════════════════════════════════════ */
  .m-bottom-nav{
    display:flex!important;
    position:fixed!important;
    bottom:0!important;
    left:0!important;
    right:0!important;
    inset-inline-start:0!important;
    inset-inline-end:0!important;
    height:calc(var(--m-bottom-h) + var(--m-safe-bottom))!important;
    padding-bottom:var(--m-safe-bottom)!important;
    padding-inline:6px!important;
    background:rgba(250,248,243,.97)!important;
    backdrop-filter:saturate(180%) blur(24px)!important;
    -webkit-backdrop-filter:saturate(180%) blur(24px)!important;
    border-top:1px solid var(--m-gold-border)!important;
    box-shadow:0 -8px 30px rgba(10,10,10,.07)!important;
    z-index:1400!important;
    align-items:stretch!important;
    justify-content:space-around!important;
    margin:0!important;
  }

  .m-nav-item{
    flex:1!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    color:var(--m-muted)!important;
    font-size:.64rem!important;
    font-weight:800!important;
    text-decoration:none!important;
    position:relative!important;
    background:transparent!important;
    border:none!important;
    padding:8px 2px 4px!important;
    min-height:auto!important;
    letter-spacing:.2px!important;
    transition:color .25s ease!important;
    cursor:pointer!important;
    -webkit-tap-highlight-color:transparent!important;
  }

  .m-nav-item i{
    font-size:1.15rem!important;
    transition:transform .35s var(--m-spring),color .25s ease!important;
  }

  .m-nav-item:active i{transform:scale(.82)!important}

  .m-nav-item.active{color:var(--m-gold-dk)!important}

  .m-nav-item.active i{
    transform:translateY(-2px) scale(1.08)!important;
    filter:drop-shadow(0 4px 10px rgba(201,169,97,.45))!important;
  }

  .m-nav-item.active::before{
    content:''!important;
    position:absolute!important;
    top:3px!important;
    inset-inline-start:50%!important;
    transform:translateX(-50%)!important;
    width:24px!important;
    height:3px!important;
    border-radius:3px!important;
    background:linear-gradient(90deg,var(--m-gold-lt),var(--m-gold-dk))!important;
    box-shadow:0 0 12px rgba(201,169,97,.6)!important;
  }

  .m-nav-item .m-nav-badge{
    position:absolute!important;
    top:2px!important;
    inset-inline-end:calc(50% - 22px)!important;
    min-width:18px!important;
    height:18px!important;
    padding:0 5px!important;
    background:#b91c1c!important;
    color:#fff!important;
    font-size:.6rem!important;
    font-weight:800!important;
    border-radius:20px!important;
    display:none!important;
    align-items:center!important;
    justify-content:center!important;
    line-height:1!important;
    box-shadow:0 2px 6px rgba(185,28,28,.4)!important;
  }

  .m-nav-item .m-nav-badge.show{
    display:inline-flex!important;
    animation:mBadgePop .4s var(--m-spring)!important;
  }

  @keyframes mBadgePop{
    0%{transform:scale(0)}
    60%{transform:scale(1.3)}
    100%{transform:scale(1)}
  }

  /* ═══════════════════════════════════════════════════════════
     HERO PAGES (home)
     ═══════════════════════════════════════════════════════════ */
  .hero{
    min-height:auto!important;
    padding:calc(100px + var(--m-safe-top)) 0 50px!important;
  }

  .hero-grid{
    grid-template-columns:1fr!important;
    gap:32px!important;
    text-align:center!important;
  }

  .hero-title{font-size:2.2rem!important;letter-spacing:1px!important;margin-bottom:16px!important}
  .hero-tagline{font-size:1rem!important;margin-bottom:14px!important}
  .hero p.hero-desc{font-size:.95rem!important;margin:0 auto 26px!important}
  .hero-badge{font-size:.72rem!important;padding:8px 16px!important;margin-bottom:18px!important}
  .hero-actions{flex-direction:column!important;width:100%!important;gap:10px!important}
  .hero-actions .btn{width:100%!important;padding:14px 24px!important;font-size:.92rem!important}
  .hero-visual{min-height:260px!important}
  .hero-card{width:220px!important;height:260px!important;border-radius:20px!important}
  .hero-card svg{width:120px!important;height:120px!important}
  .halo{width:280px!important;height:280px!important}
  .halo-ring{width:320px!important;height:320px!important}
  .float-chip{font-size:.68rem!important;padding:8px 12px!important}
  .chip-1{top:20px!important;inset-inline-start:0!important}
  .chip-2{bottom:30px!important;inset-inline-end:0!important}
  .chip-3{display:none!important}

  .collections-grid{grid-template-columns:1fr!important;gap:18px!important}
  .collection-card{height:340px!important;border-radius:20px!important}
  .collection-title{font-size:1.8rem!important}
  .collection-desc{font-size:.88rem!important}

  .story-wrap{grid-template-columns:1fr!important;gap:30px!important}
  .story-visual{height:300px!important}
  .story-frame svg{width:130px!important;height:130px!important}
  .stats{grid-template-columns:repeat(3,1fr)!important;gap:10px!important;margin-top:26px!important}
  .stat{padding:14px 8px!important}
  .stat-num{font-size:1.5rem!important}
  .stat-label{font-size:.7rem!important}

  .loyalty-grid{grid-template-columns:1fr!important;gap:30px!important;text-align:center!important}
  .loyalty h2{font-size:2rem!important}
  .loyalty p{font-size:.95rem!important}
  .loyalty-perks{justify-content:center!important;gap:8px!important}
  .perk{font-size:.74rem!important;padding:7px 14px!important}

  .section-header{margin-bottom:36px!important}
  .section-header h2{font-size:1.7rem!important}
  .section-header p{font-size:.9rem!important}
  .section-eyebrow{font-size:.68rem!important;letter-spacing:3px!important}
  .section-eyebrow::before,.section-eyebrow::after{width:20px!important}

  section{padding:60px 0!important}

  .marquee{padding:14px 0!important}
  .marquee-item{font-size:.85rem!important;gap:18px!important;padding-inline:18px!important}

  .newsletter{padding:60px 0!important}
  .newsletter h2{font-size:1.5rem!important}
  .newsletter p{font-size:.88rem!important}
  .news-form{flex-direction:column!important;gap:10px!important}
  .news-form input{width:100%!important;padding:14px 18px!important;font-size:.92rem!important}
  .news-form .btn{width:100%!important;justify-content:center!important;padding:14px 20px!important}

  .testi-viewport{min-height:auto!important}
  .testi-slide{padding:26px 20px!important;border-radius:18px!important}
  .testi-text{font-size:.92rem!important;line-height:1.75!important}
  .testi-avatar{width:44px!important;height:44px!important;font-size:1rem!important}

  .cube-stage{width:180px!important;height:180px!important}
  .cube{width:180px!important;height:180px!important}
  .f-front{transform:translateZ(90px)!important}
  .f-back{transform:rotateY(180deg) translateZ(90px)!important}
  .f-right{transform:rotateY(90deg) translateZ(90px)!important}
  .f-left{transform:rotateY(-90deg) translateZ(90px)!important}

  /* ═══════════════════════════════════════════════════════════
     CATEGORY HERO (women/men)
     ═══════════════════════════════════════════════════════════ */
  .cat-hero{
    min-height:auto!important;
    padding:calc(90px + var(--m-safe-top)) 14px 30px!important;
  }

  .cat-hero h1{font-size:1.85rem!important;line-height:1.1!important;margin-bottom:10px!important}
  .cat-hero .cat-tagline{font-size:.92rem!important;margin-bottom:12px!important}
  .cat-hero p.cat-desc{font-size:.88rem!important;margin-bottom:20px!important}
  .cat-icon-badge{width:66px!important;height:66px!important;margin-bottom:16px!important}
  .cat-icon-badge i{font-size:1.5rem!important}
  .breadcrumb{font-size:.72rem!important;padding:6px 14px!important;margin-bottom:16px!important}

  .filter-chips{
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    justify-content:flex-start!important;
    gap:8px!important;
    margin:8px -14px 0!important;
    padding:0 14px 8px!important;
    scrollbar-width:none!important;
  }

  .filter-chips::-webkit-scrollbar{display:none!important}

  .chip{
    flex-shrink:0!important;
    padding:9px 16px!important;
    font-size:.78rem!important;
    min-height:40px!important;
    border-radius:30px!important;
  }

  .toolbar{
    flex-direction:column!important;
    align-items:stretch!important;
    gap:10px!important;
    padding:12px 14px!important;
    margin:0 14px 20px!important;
    border-radius:14px!important;
  }

  .toolbar-left{flex-direction:column!important;align-items:stretch!important;gap:8px!important}
  .result-count{font-size:.82rem!important;text-align:center!important}

  .sort-select{
    width:100%!important;
    padding:12px 40px 12px 16px!important;
    font-size:.85rem!important;
    min-height:46px!important;
    border-radius:12px!important;
  }

  html[dir="ltr"] .sort-select{padding:12px 16px 12px 40px!important}

  .view-toggle{display:none!important}

  .promo-banner{
    grid-template-columns:1fr!important;
    padding:24px 20px!important;
    border-radius:18px!important;
    margin:0 14px 40px!important;
    text-align:center!important;
  }

  .promo-visual{display:none!important}
  .promo-content h3{font-size:1.3rem!important}
  .promo-content p{font-size:.88rem!important;margin-bottom:18px!important}
  .promo-tag{font-size:.68rem!important;padding:6px 14px!important}
  .promo-content .btn-gold{width:100%!important;justify-content:center!important}

  /* ═══════════════════════════════════════════════════════════
     PRODUCT CARDS (2-column grid)
     ═══════════════════════════════════════════════════════════ */
  .products-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
    padding:0 14px!important;
  }

  .product-card{
    width:100%!important;
    min-width:0!important;
    padding:10px!important;
    border-radius:16px!important;
    background:#fff!important;
    border:1px solid var(--m-border)!important;
    transform:none!important;
    display:flex!important;
    flex-direction:column!important;
  }

  .product-card[style*="display: none"]{display:none!important}

  .product-card:hover{
    transform:none!important;
    box-shadow:0 4px 16px rgba(10,10,10,.06)!important;
  }

  .product-card::before{display:none!important}

  .product-card .product-media,
  .product-card .product-media-wrapper{
    height:168px!important;
    border-radius:12px!important;
    margin-bottom:8px!important;
    position:relative!important;
    overflow:hidden!important;
  }

  .product-card .product-media .media-placeholder{
    width:55px!important;
    height:55px!important;
  }

  .product-card .product-title,
  .product-card .product-title-ar{
    font-size:.88rem!important;
    line-height:1.35!important;
    margin-bottom:3px!important;
    font-weight:800!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }

  .product-card .product-sub,
  .product-card .product-title-en{
    font-size:.68rem!important;
    margin-bottom:6px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .product-card .product-cat{
    font-size:.62rem!important;
    letter-spacing:1.5px!important;
    margin-bottom:5px!important;
  }

  .product-card .notes{display:none!important}

  .product-card .stars{
    font-size:.68rem!important;
    margin-bottom:6px!important;
    letter-spacing:1px!important;
  }

  .product-card .stars span{font-size:.65rem!important}

  .product-card .price-now,
  .product-card .product-price-row .price-now{
    font-size:1rem!important;
    font-weight:800!important;
    color:var(--m-gold-dk)!important;
  }

  .product-card .price-old{font-size:.72rem!important}

  .product-card .product-price,
  .product-card .product-price-row{
    margin-bottom:10px!important;
    margin-top:auto!important;
    gap:6px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  .product-card .add-to-cart{
    padding:11px 8px!important;
    font-size:.78rem!important;
    border-radius:10px!important;
    min-height:44px!important;
    gap:6px!important;
    transition:background .2s,transform .15s!important;
    width:100%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  .product-card .add-to-cart:active{
    transform:scale(.96)!important;
    background:var(--m-gold)!important;
    color:var(--m-black)!important;
  }

  .product-card .add-to-cart i{font-size:.78rem!important}

  .product-card .quick-actions{
    opacity:1!important;
    transform:none!important;
    top:8px!important;
    inset-inline-end:8px!important;
    gap:6px!important;
    position:absolute!important;
    display:flex!important;
    flex-direction:column!important;
  }

  html[dir="ltr"] .product-card .quick-actions{transform:none!important}

  .product-card .qa-btn{
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    min-height:32px!important;
    font-size:.75rem!important;
    background:rgba(255,255,255,.94)!important;
    box-shadow:0 4px 12px rgba(10,10,10,.12)!important;
    border-radius:50%!important;
  }

  .product-card .product-tags,
  .product-card .product-tag{
    top:8px!important;
    inset-inline-start:8px!important;
    font-size:.58rem!important;
    padding:4px 10px!important;
    position:absolute!important;
    z-index:5!important;
  }

  .tilt-card{transform:none!important}

  /* ═══════════════════════════════════════════════════════════
     PRODUCT DETAIL PAGE
     ═══════════════════════════════════════════════════════════ */
  .product-page{padding:calc(80px + var(--m-safe-top)) 14px 40px!important}
  .product-hero{grid-template-columns:1fr!important;gap:24px!important}
  .gallery{position:relative!important;top:0!important}
  .gallery-main{border-radius:18px!important;aspect-ratio:1/1!important}
  .gallery-thumbs{grid-template-columns:repeat(4,1fr)!important;gap:8px!important;margin-top:10px!important}
  .product-brand{font-size:.72rem!important;letter-spacing:2px!important}
  .product-name-ar{font-size:1.5rem!important;line-height:1.2!important}
  .product-name-en{font-size:.98rem!important;margin-bottom:14px!important}
  .product-rating{padding:10px 14px!important;margin-bottom:16px!important;flex-wrap:wrap!important;gap:8px!important}
  .price-current{font-size:2rem!important}
  .price-current small{font-size:.82rem!important}

  /* STICKY ADD TO CART */
  .qty-add-row{
    position:fixed!important;
    bottom:calc(var(--m-bottom-h) + var(--m-safe-bottom) + 8px)!important;
    left:0!important;
    right:0!important;
    inset-inline-start:0!important;
    inset-inline-end:0!important;
    background:rgba(250,248,243,.98)!important;
    backdrop-filter:blur(20px)!important;
    -webkit-backdrop-filter:blur(20px)!important;
    padding:10px 14px calc(10px + var(--m-safe-bottom))!important;
    margin:0!important;
    gap:8px!important;
    border-top:1px solid var(--m-gold-border)!important;
    box-shadow:0 -10px 30px rgba(10,10,10,.08)!important;
    z-index:1390!important;
    display:flex!important;
    align-items:center!important;
  }

  .qty-selector{padding:2px!important;flex-shrink:0!important;display:flex!important;align-items:center!important}
  .qty-selector button{width:38px!important;height:38px!important;border-radius:10px!important;font-size:.9rem!important}
  .qty-selector input{width:42px!important;font-size:1rem!important}
  .add-to-cart-main{
    padding:14px 18px!important;
    font-size:.9rem!important;
    border-radius:12px!important;
    min-height:52px!important;
    flex:1!important;
  }
  .wishlist-btn{
    width:52px!important;
    height:52px!important;
    min-width:52px!important;
    border-radius:12px!important;
  }
  .product-info{padding-bottom:90px!important}

  .trust-row{grid-template-columns:1fr 1fr!important;padding:12px!important;gap:8px!important}
  .trust-item{font-size:.72rem!important;gap:8px!important}
  .trust-item i{width:28px!important;height:28px!important;font-size:.75rem!important}

  .tabs-section{padding:30px 14px 30px!important}
  .tabs-nav{overflow-x:auto!important;scrollbar-width:none!important;display:flex!important}
  .tabs-nav::-webkit-scrollbar{display:none!important}
  .tab-btn{padding:12px 16px!important;font-size:.82rem!important;flex-shrink:0!important;min-height:46px!important}
  .tab-content{padding:18px 16px!important;font-size:.9rem!important;border-radius:14px!important}
  .tab-content h3{font-size:1.1rem!important}

  .review-summary{grid-template-columns:1fr!important;gap:18px!important}
  .review-big-score strong{font-size:2.4rem!important}
  .review-item{padding:14px!important;border-radius:12px!important}

  .related-section{padding:40px 0 60px!important}
  .section-header h2{font-size:1.4rem!important}

  /* ═══════════════════════════════════════════════════════════
     CART / CHECKOUT
     ═══════════════════════════════════════════════════════════ */
  .checkout-hero{padding:calc(90px + var(--m-safe-top)) 0 20px!important}
  .checkout-hero h1{font-size:1.8rem!important;gap:10px!important}
  .checkout-hero h1 .hero-icon-badge{width:48px!important;height:48px!important;font-size:1.15rem!important}
  .checkout-hero p.hero-sub{font-size:.88rem!important}
  .steps-track{gap:6px!important}
  .step-item{padding:6px 12px!important;font-size:.7rem!important}

  .checkout-section{padding:20px 0 60px!important}
  .checkout-main{gap:16px!important}
  .checkout-block{border-radius:18px!important}
  .block-head{padding:16px 18px!important;gap:10px!important}
  .block-num{width:32px!important;height:32px!important;font-size:.78rem!important}
  .block-head h2{font-size:1rem!important}
  .block-body{padding:18px 18px!important}

  .compact-row{grid-template-columns:64px 1fr auto!important;gap:10px!important;padding:12px!important}
  .compact-thumb{width:64px!important;height:64px!important}
  .compact-title{font-size:.88rem!important}
  .compact-meta{font-size:.7rem!important}
  .compact-total strong{font-size:.95rem!important}
  .qty-stepper button{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important}
  .qty-stepper span{min-width:28px!important;font-size:.85rem!important}
  .compact-remove{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}

  .checkout-layout{grid-template-columns:1fr!important;gap:20px!important}
  .checkout-side{position:relative!important;top:auto!important}
  .order-summary{border-radius:18px!important}
  .summary-head{padding:18px 20px!important}
  .summary-body{padding:18px 20px!important}

  /* ═══════════════════════════════════════════════════════════
     FORMS
     ═══════════════════════════════════════════════════════════ */
  .form-grid{grid-template-columns:1fr!important;gap:14px!important}
  .form-field{gap:6px!important}
  .form-field label{font-size:.82rem!important}
  .form-input,.form-select,.form-textarea{
    padding:14px 16px!important;
    font-size:16px!important;
    min-height:52px!important;
    border-radius:12px!important;
  }
  .form-textarea{min-height:100px!important}
  .payment-options{grid-template-columns:1fr!important;gap:10px!important}
  .payment-option-inner{padding:16px!important;min-height:74px!important;border-radius:14px!important}
  .payment-icon{width:44px!important;height:44px!important;font-size:1.05rem!important}
  .payment-text strong{font-size:.9rem!important}
  .payment-text small{font-size:.72rem!important}
  .bank-info{grid-template-columns:1fr!important}
  .upload-zone{padding:22px 16px!important;border-radius:14px!important}
  .upload-icon{width:50px!important;height:50px!important}
  .place-order-btn{
    padding:16px 22px!important;
    font-size:.95rem!important;
    min-height:58px!important;
    border-radius:14px!important;
    width:100%!important;
  }
  .coupon-form input{min-height:48px!important;font-size:16px!important}
  .coupon-form button{padding:12px 18px!important;min-height:48px!important}
  .consent-block{padding:14px!important;border-radius:14px!important}
  .consent-block label{padding:10px!important;font-size:.78rem!important}

  /* ═══════════════════════════════════════════════════════════
     CART DRAWER & WISHLIST → BOTTOM SHEETS
     ═══════════════════════════════════════════════════════════ */
  .cart-drawer,.wishlist-drawer{
    top:auto!important;
    bottom:0!important;
    left:0!important;
    right:0!important;
    inset-inline-start:0!important;
    inset-inline-end:0!important;
    width:100%!important;
    max-width:100vw!important;
    height:90vh!important;
    height:90dvh!important;
    max-height:90dvh!important;
    border-radius:24px 24px 0 0!important;
    transform:translateY(105%)!important;
    transition:transform .45s var(--m-ease)!important;
    box-shadow:0 -20px 60px rgba(0,0,0,.3)!important;
    z-index:9999!important;
    position:fixed!important;
    display:flex!important;
    flex-direction:column!important;
  }

  html[dir="ltr"] .cart-drawer,
  html[dir="ltr"] .wishlist-drawer{transform:translateY(105%)!important}

  .cart-drawer.open,.wishlist-drawer.open{transform:translateY(0)!important}

  .cart-drawer::before,.wishlist-drawer::before{
    content:''!important;
    position:absolute!important;
    top:10px!important;
    inset-inline-start:50%!important;
    transform:translateX(-50%)!important;
    width:44px!important;
    height:4px!important;
    border-radius:4px!important;
    background:rgba(201,169,97,.5)!important;
    z-index:10!important;
  }

  .cart-head,.wishlist-head{padding:22px 20px 16px!important;border-radius:24px 24px 0 0!important;flex-shrink:0!important}
  .cart-head h3,.wishlist-head h3{font-size:1.05rem!important}
  .cart-head button,.wishlist-head button,#cartClose,#wishlistClose{
    width:40px!important;height:40px!important;
    min-width:40px!important;min-height:40px!important;
    border-radius:12px!important;font-size:1rem!important;
  }

  .cart-body,.wishlist-body{
    padding:14px 18px!important;
    padding-bottom:100px!important;
    flex:1!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }

  .cart-item,.wishlist-item{padding:14px 0!important;gap:12px!important}
  .cart-item-thumb,.wishlist-thumb{width:62px!important;height:62px!important;border-radius:12px!important}
  .cart-item-info strong,.wishlist-info strong{font-size:.88rem!important}
  .cart-item-info > span{font-size:.82rem!important}

  .cart-drawer .qty-ctrl button{
    width:32px!important;height:32px!important;
    min-width:32px!important;min-height:32px!important;
    border-radius:10px!important;font-size:.85rem!important;
  }

  .cart-remove,.wishlist-item-actions button{
    width:38px!important;height:38px!important;
    min-width:38px!important;min-height:38px!important;
    border-radius:10px!important;
  }

  .cart-foot,.wishlist-foot{
    position:absolute!important;
    bottom:0!important;
    left:0!important;
    right:0!important;
    padding:14px 18px!important;
    padding-bottom:calc(14px + var(--m-safe-bottom))!important;
    background:#fff!important;
    border-top:1px solid var(--m-border)!important;
    box-shadow:0 -8px 24px rgba(10,10,10,.06)!important;
    border-radius:0!important;
    flex-shrink:0!important;
  }

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

  .cart-foot .btn,.wishlist-foot-btn{
    min-height:54px!important;
    font-size:.95rem!important;
    border-radius:12px!important;
    padding:14px 20px!important;
  }

  .view-full-cart{padding:12px!important;font-size:.82rem!important}

  .overlay,.wishlist-overlay{
    background:rgba(5,5,5,.72)!important;
    backdrop-filter:blur(6px)!important;
    -webkit-backdrop-filter:blur(6px)!important;
  }

  /* ═══════════════════════════════════════════════════════════
     MODALS → BOTTOM SHEETS
     ═══════════════════════════════════════════════════════════ */
  .modal,.success-modal,.admin-access-modal,.rd-modal{
    align-items:flex-end!important;
    padding:0!important;
    background:rgba(5,5,5,.72)!important;
    backdrop-filter:blur(6px)!important;
    -webkit-backdrop-filter:blur(6px)!important;
  }

  .modal-card,.rd-modal-card{
    width:100%!important;
    max-width:100%!important;
    max-height:92vh!important;
    max-height:92dvh!important;
    border-radius:24px 24px 0 0!important;
    transform:translateY(100%)!important;
    transition:transform .45s var(--m-ease)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    padding-bottom:var(--m-safe-bottom)!important;
    margin:0!important;
  }

  .modal.show .modal-card,
  .rd-modal.show .rd-modal-card{transform:translateY(0)!important}

  .modal-head{
    padding:14px 20px!important;
    border-radius:24px 24px 0 0!important;
    position:sticky!important;
    top:0!important;
    background:var(--m-bg)!important;
    z-index:10!important;
  }

  .modal-head h3{font-size:1.05rem!important}

  .modal-close{
    width:40px!important;height:40px!important;
    min-width:40px!important;min-height:40px!important;
    font-size:.92rem!important;
  }

  .modal-body{padding:18px 20px!important}

  .modal-foot{
    padding:14px 20px!important;
    padding-bottom:calc(14px + var(--m-safe-bottom))!important;
    position:sticky!important;
    bottom:0!important;
    background:var(--m-bg)!important;
    border-top:1px solid var(--m-border)!important;
    flex-direction:column-reverse!important;
    gap:8px!important;
  }

  .modal-foot .btn-sm{
    width:100%!important;
    min-height:50px!important;
    font-size:.9rem!important;
    justify-content:center!important;
    padding:13px 20px!important;
    border-radius:12px!important;
  }

  /* ═══════════════════════════════════════════════════════════
     LOYALTY PAGE
     ═══════════════════════════════════════════════════════════ */
  .prive-hero{
    min-height:auto!important;
    padding:calc(90px + var(--m-safe-top)) 14px 50px!important;
  }

  .prive-hero-grid{grid-template-columns:1fr!important;gap:30px!important;text-align:center!important}
  .prive-hero h1{font-size:2.2rem!important;letter-spacing:2px!important}
  .prive-badge{font-size:.68rem!important;padding:8px 18px!important;letter-spacing:3px!important}
  .prive-tagline{font-size:.92rem!important}
  .prive-desc{font-size:.9rem!important;margin-inline:auto!important}
  .prive-stats{grid-template-columns:repeat(3,1fr)!important;gap:8px!important}
  .prive-stat{padding:12px 8px!important}
  .prive-stat strong{font-size:1.15rem!important}
  .prive-stat small{font-size:.6rem!important}

  .prive-login{padding:26px 20px 22px!important;border-radius:20px!important}
  .prive-login h2{font-size:1.15rem!important}
  .prive-login-icon{width:62px!important;height:62px!important;font-size:1.4rem!important}
  .prive-field input{padding:14px 18px 14px 68px!important;font-size:16px!important;min-height:52px!important}
  .prive-submit{padding:15px!important;font-size:.95rem!important;min-height:54px!important}

  .prive-member-section{padding:40px 14px 30px!important}
  .prive-member-card{padding:22px 18px!important;border-radius:20px!important}
  .prive-member-grid{grid-template-columns:1fr!important;gap:20px!important}
  .prive-avatar{width:60px!important;height:60px!important;font-size:1.35rem!important}
  .prive-member-name{font-size:1.15rem!important}
  .prive-points-wrap{text-align:center!important}
  .prive-points-value{font-size:2.4rem!important}
  .prive-member-actions{justify-content:center!important;margin-top:18px!important;gap:8px!important}
  .prive-action-btn{padding:10px 16px!important;font-size:.78rem!important}
  .prive-mini-stats{grid-template-columns:repeat(3,1fr)!important;gap:8px!important;margin-top:20px!important}
  .prive-mini-stat{padding:12px 6px!important}
  .prive-mini-stat strong{font-size:1.05rem!important}
  .prive-mini-stat small{font-size:.6rem!important}

  #memberPanelsGrid{grid-template-columns:1fr!important;gap:16px!important}

  .prive-tiers-section{padding:50px 14px!important}
  .prive-tiers-grid{grid-template-columns:1fr 1fr!important;gap:12px!important}
  .prive-tier-card{padding:18px 14px 16px!important;border-radius:16px!important}
  .prive-tier-icon{width:50px!important;height:50px!important;font-size:1.15rem!important;border-radius:14px!important}
  .prive-tier-name{font-size:1rem!important}

  .prive-section-header h2{font-size:1.55rem!important}
  .prive-section-header p{font-size:.85rem!important}
  .prive-eyebrow{font-size:.68rem!important;letter-spacing:3px!important}

  .prive-rewards-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}
  .prive-reward-card{padding:18px 14px 16px!important;border-radius:16px!important}
  .prive-reward-icon{width:46px!important;height:46px!important;font-size:1.15rem!important;border-radius:12px!important}
  .prive-reward-name{font-size:.9rem!important}
  .prive-reward-desc{font-size:.72rem!important;margin-bottom:12px!important}
  .prive-reward-cost{padding:6px 12px!important;font-size:.7rem!important}

  .prive-steps-grid{grid-template-columns:1fr 1fr!important;gap:12px!important}
  .prive-steps-grid::before{display:none!important}
  .prive-step-card{padding:20px 14px 18px!important;border-radius:16px!important}
  .prive-step-num{width:50px!important;height:50px!important;font-size:1.1rem!important}
  .prive-step-card h3{font-size:.9rem!important}
  .prive-step-card p{font-size:.74rem!important}

  .prive-faq-q{padding:16px 18px!important;font-size:.88rem!important}
  .prive-faq-icon{width:28px!important;height:28px!important;font-size:.72rem!important}

  .prive-cta{padding:60px 14px!important}
  .prive-cta h2{font-size:1.55rem!important}
  .prive-cta-buttons{flex-direction:column!important;gap:10px!important}
  .prive-btn-gold,.prive-btn-ghost{width:100%!important;justify-content:center!important;padding:14px 20px!important;font-size:.92rem!important}

  #referralCodeDisplay{font-size:1.3rem!important;letter-spacing:3px!important}

  /* ═══════════════════════════════════════════════════════════
     FOOTER
     ═══════════════════════════════════════════════════════════ */
  footer{
    padding:40px 14px calc(24px + var(--m-safe-bottom))!important;
  }

  .footer-grid{grid-template-columns:1fr!important;gap:26px!important;margin-bottom:30px!important}
  .footer-col h3{font-size:.95rem!important;margin-bottom:14px!important}
  .footer-col p,.footer-col a{font-size:.85rem!important;margin-bottom:10px!important}
  .footer-brand{gap:10px!important}
  .footer-brand svg{width:34px!important;height:34px!important}
  .social-icons{gap:10px!important}
  .social-icons a{width:40px!important;height:40px!important;min-height:40px!important}
  .footer-bottom{padding-top:18px!important;font-size:.78rem!important}
  .secret-admin-btn{display:none!important}

  /* ═══════════════════════════════════════════════════════════
     TOAST + TO-TOP
     ═══════════════════════════════════════════════════════════ */
  .toast{
    inset-inline-start:14px!important;
    inset-inline-end:14px!important;
    left:14px!important;
    right:14px!important;
    bottom:calc(var(--m-bottom-h) + var(--m-safe-bottom) + 12px)!important;
    max-width:none!important;
    padding:13px 18px!important;
    font-size:.85rem!important;
    border-radius:14px!important;
  }

  .to-top{
    bottom:calc(var(--m-bottom-h) + var(--m-safe-bottom) + 14px)!important;
    inset-inline-end:14px!important;
    right:14px!important;
    width:46px!important;
    height:46px!important;
    min-height:46px!important;
    border-radius:14px!important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   VERY SMALL PHONES (<= 420px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 420px){
  .products-grid{gap:10px!important;padding:0 10px!important}
  .product-card{padding:8px!important;border-radius:14px!important}
  .product-card .product-media{height:145px!important}
  .product-card .product-title,.product-card .product-title-ar{font-size:.82rem!important}
  .product-card .price-now{font-size:.92rem!important}
  .product-card .add-to-cart{font-size:.72rem!important;padding:10px 6px!important}
  .prive-tiers-grid,.prive-rewards-grid,.prive-steps-grid{grid-template-columns:1fr!important}
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN PANEL — Mobile
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px){
  .admin-layout{grid-template-columns:1fr!important}
  .sidebar{
    position:fixed!important;
    inset-inline-start:-100%!important;
    left:-100%!important;
    width:min(84vw,300px)!important;
    height:100vh!important;
    height:100dvh!important;
    padding-top:var(--m-safe-top)!important;
    transition:left .4s var(--m-ease),inset-inline-start .4s var(--m-ease)!important;
    z-index:2000!important;
    box-shadow:0 0 60px rgba(0,0,0,.4)!important;
  }
  html[dir="ltr"] .sidebar{left:auto!important;right:-100%!important}
  html[dir="ltr"] .sidebar.open{right:0!important}
  .sidebar.open{left:0!important;inset-inline-start:0!important}

  .admin-main{
    padding:14px 14px calc(60px + var(--m-safe-bottom))!important;
    padding-top:calc(80px + var(--m-safe-top))!important;
  }

  .top-bar{flex-direction:column!important;align-items:stretch!important;gap:12px!important;margin-bottom:18px!important}
  .top-bar h1{font-size:1.3rem!important}
  .menu-btn{display:flex!important}
  .top-actions{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:8px!important;width:100%!important}
  .refresh-btn,.view-site-btn{min-height:44px!important;justify-content:center!important;font-size:.82rem!important}

  .kpi-grid{grid-template-columns:repeat(2,1fr)!important;gap:10px!important}
  .kpi-card{padding:14px!important;border-radius:14px!important}
  .kpi-value{font-size:1.5rem!important}
  .kpi-icon{width:38px!important;height:38px!important;font-size:.9rem!important}

  .filters-bar{padding:12px!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important}
  .search-field{min-width:100%!important}
  .filter-chips{overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:6px!important}
  .filter-chip{flex-shrink:0!important}

  .table-wrap{overflow-x:auto!important}
  .data-table{min-width:640px!important;font-size:.82rem!important}
  .data-table th,.data-table td{padding:12px 14px!important}

  .card{border-radius:16px!important;margin-bottom:14px!important}
  .card-head{padding:14px 16px!important;flex-direction:column!important;align-items:flex-start!important;gap:10px!important}
  .card-body{padding:16px!important}
  .dash-grid{grid-template-columns:1fr!important;gap:14px!important}
  .chart-bars{height:170px!important}
  .settings-grid{grid-template-columns:1fr!important}
  .config-grid{grid-template-columns:1fr!important}
  .member-info-grid{grid-template-columns:1fr!important}
  .points-action-panel{grid-template-columns:1fr!important}

  .tabs-nav{overflow-x:auto!important}
  .tab-btn{flex-shrink:0!important;min-height:46px!important}
}

/* ═══════════════════════════════════════════════════════════════
   PULL-TO-REFRESH INDICATOR
   ═══════════════════════════════════════════════════════════════ */
.m-ptr-indicator{
  position:fixed;
  top:calc(var(--m-safe-top) + 70px);
  inset-inline-start:50%;
  transform:translateX(-50%) translateY(-40px) scale(0);
  width:46px;
  height:46px;
  border-radius:50%;
  background:var(--m-black);
  color:var(--m-gold);
  display:none;
  align-items:center;
  justify-content:center;
  font-size:1rem;
  z-index:9999;
  box-shadow:0 12px 30px rgba(0,0,0,.4);
  border:1px solid var(--m-gold-border);
  transition:transform .3s var(--m-spring),opacity .3s ease;
  opacity:0;
  pointer-events:none;
}

@media (max-width: 900px){
  .m-ptr-indicator{display:flex}
  .m-ptr-indicator.pulling{
    transform:translateX(-50%) translateY(0) scale(1);
    opacity:1;
  }
  .m-ptr-indicator.spinning i{animation:mSpin 1s linear infinite}
}

@keyframes mSpin{to{transform:rotate(360deg)}}

/* ═══════════════════════════════════════════════════════════════
   PWA INSTALL BANNER
   ═══════════════════════════════════════════════════════════════ */
.m-install-banner{
  display:none;
  position:fixed;
  bottom:calc(var(--m-bottom-h) + var(--m-safe-bottom) + 14px);
  inset-inline-start:14px;
  inset-inline-end:14px;
  left:14px;
  right:14px;
  background:linear-gradient(135deg,var(--m-black),var(--m-black-2));
  border:1px solid var(--m-gold-border);
  border-radius:18px;
  padding:14px 16px;
  z-index:1500;
  align-items:center;
  gap:12px;
  box-shadow:0 20px 50px rgba(0,0,0,.4);
}

@media (max-width: 900px){
  .m-install-banner.show{display:flex;animation:mSlideUp .5s var(--m-ease)}
}

@keyframes mSlideUp{
  from{transform:translateY(30px);opacity:0}
  to{transform:translateY(0);opacity:1}
}

.m-install-banner .m-install-icon{
  width:46px;
  height:46px;
  border-radius:12px;
  background:linear-gradient(145deg,var(--m-gold),var(--m-gold-dk));
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  overflow:hidden;
}

.m-install-banner .m-install-icon img{width:100%;height:100%;object-fit:cover}

.m-install-banner .m-install-text{flex:1;min-width:0;color:#fff}
.m-install-banner .m-install-text strong{
  display:block;
  font-size:.88rem;
  color:var(--m-gold-lt);
  font-weight:800;
  margin-bottom:2px;
}
.m-install-banner .m-install-text small{
  display:block;
  font-size:.7rem;
  color:#a8a29b;
  font-weight:700;
}

.m-install-banner .m-install-btn{
  padding:10px 16px;
  border-radius:10px;
  background:linear-gradient(120deg,var(--m-gold),var(--m-gold-lt));
  color:var(--m-black);
  font-weight:800;
  font-size:.78rem;
  border:none;
  cursor:pointer;
  white-space:nowrap;
  min-height:40px;
}

.m-install-banner .m-install-close{
  width:30px;
  height:30px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  border:none;
  color:#a8a29b;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.72rem;
  flex-shrink:0;
  min-height:30px;
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important;
  }
}
/* ═══════════════════════════════════════════════════════════════
   PATCH v2.1 - Additional Mobile Fixes
   ═══════════════════════════════════════════════════════════════ */

/* FIX 1: Hide Netlify badge on mobile */
@media (max-width: 900px){
  #netlify-badge,
  #netlify-identity,
  iframe[src*="netlify"],
  .netlify-badge,
  [id*="netlify"][style*="position: fixed"],
  a[href*="netlify.com"][target="_blank"]{
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  body > a[href*="netlify"]{
    display: none !important;
  }
}

/* FIX 2: Better safe-area handling for Android */
@media (max-width: 900px){
  /* Android doesn't need as much top padding as iOS */
  @supports not (padding: env(safe-area-inset-top)){
    header#header, header{
      padding-top: 8px !important;
    }
    body{
      padding-bottom: calc(var(--m-bottom-h) + 8px) !important;
    }
  }

  /* Ensure header is fully visible */
  header#header, header{
    min-height: 56px !important;
    display: flex !important;
    align-items: center !important;
  }

  .nav-container{
    width: 100% !important;
    min-height: 40px !important;
  }

  /* Prevent header icons from being cut off */
  .nav-icons{
    flex-shrink: 0 !important;
    min-width: fit-content !important;
  }

  .brand{
    flex-shrink: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .brand-text{
    min-width: 0 !important;
    overflow: hidden !important;
  }
}

/* FIX 3: Product images not loading - better placeholder */
@media (max-width: 900px){
  .product-card .product-media{
    background: linear-gradient(160deg, #faf8f3, #ebe5d6) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .product-card .product-media img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .product-card .product-media img[src=""],
  .product-card .product-media img:not([src]){
    display: none !important;
  }
}

/* FIX 4: Netlify banner overlap fix - push bottom nav up */
@media (max-width: 900px){
  body{
    /* Leave extra space if Netlify badge is present */
    padding-bottom: calc(var(--m-bottom-h) + var(--m-safe-bottom) + 8px) !important;
  }
}

/* FIX 5: Better tap feedback on Android */
@media (max-width: 900px){
  .m-nav-item:active,
  button:active,
  .add-to-cart:active,
  .icon-btn:active{
    background-color: rgba(201,169,97,.15) !important;
    transition: background-color .1s !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PATCH v2.1 — Additional Mobile Fixes
   ═══════════════════════════════════════════════════════════════ */

/* FIX 1: Hide Netlify badge on mobile */
@media (max-width: 900px){
  #netlify-badge,
  #netlify-identity,
  iframe[src*="netlify"],
  .netlify-badge,
  [id*="netlify"][style*="position: fixed"],
  a[href*="netlify.com"][target="_blank"]{
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  body > a[href*="netlify"]{
    display: none !important;
  }
}

/* FIX 2: Better safe-area handling for Android */
@media (max-width: 900px){
  /* Android doesn't need as much top padding as iOS */
  @supports not (padding: env(safe-area-inset-top)){
    header#header, header{
      padding-top: 8px !important;
    }
    body{
      padding-bottom: calc(var(--m-bottom-h) + 8px) !important;
    }
  }

  /* Ensure header is fully visible */
  header#header, header{
    min-height: 56px !important;
    display: flex !important;
    align-items: center !important;
  }

  .nav-container{
    width: 100% !important;
    min-height: 40px !important;
  }

  /* Prevent header icons from being cut off */
  .nav-icons{
    flex-shrink: 0 !important;
    min-width: fit-content !important;
  }

  .brand{
    flex-shrink: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .brand-text{
    min-width: 0 !important;
    overflow: hidden !important;
  }
}

/* FIX 3: Product images not loading — better placeholder */
@media (max-width: 900px){
  .product-card .product-media{
    background: linear-gradient(160deg, #faf8f3, #ebe5d6) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .product-card .product-media img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .product-card .product-media img[src=""],
  .product-card .product-media img:not([src]){
    display: none !important;
  }
}

/* FIX 4: Netlify banner overlap fix — push bottom nav up */
@media (max-width: 900px){
  body{
    /* Leave extra space if Netlify badge is present */
    padding-bottom: calc(var(--m-bottom-h) + var(--m-safe-bottom) + 8px) !important;
  }
}

/* FIX 5: Better tap feedback on Android */
@media (max-width: 900px){
  .m-nav-item:active,
  button:active,
  .add-to-cart:active,
  .icon-btn:active{
    background-color: rgba(201,169,97,.15) !important;
    transition: background-color .1s !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PATCH v3.0 — KILL Horizontal Overflow (CRITICAL FIX)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px){

  /* ─── 1. FORCE NO HORIZONTAL SCROLL (root cause fix) ─── */
  html, body{overflow-x: hidden !important; max-width: 100% !important; width: 100% !important;}

  *{
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* ─── 2. CONTAIN EVERY SECTION ─── */
  section,
  .hero, .cat-hero, .checkout-hero, .prive-hero, .prive-cta, .prive-section, .prive-tiers-section, .prive-member-section,
  .collections, .story, .bestsellers, .loyalty, .testimonials, .newsletter,
  .products-section, .checkout-section, .product-page, .tabs-section, .related-section,
  .marquee, footer{
    overflow-x: clip !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  /* Fallback for older browsers that don't support clip */
  @supports not (overflow-x: clip){
    section,
    .hero, .cat-hero, .checkout-hero, .prive-hero, .prive-cta, .prive-section,
    .collections, .story, .bestsellers, .loyalty, .testimonials, .newsletter,
    .products-section, .checkout-section, .product-page, .tabs-section, .related-section,
    .marquee, footer{
      overflow: hidden !important;
    }
  }

  /* ─── 3. CONTAINER — tight padding ─── */
  .container{
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* ─── 4. HERO — convert to true single column ─── */
  .hero{
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }

  .hero-grid{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 24px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }

  .hero-text{
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
  }

  .hero-title{
    font-size: 2rem !important;
    line-height: 1.05 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .hero-tagline,
  .hero-desc{
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  .hero-badge,
  .hero-actions{
    max-width: 100% !important;
    flex-wrap: wrap !important;
  }

  /* ─── 5. HERO VISUAL — clip the decorative elements ─── */
  .hero-visual{
    position: relative !important;
    width: 100% !important;
    max-width: 340px !important;
    height: auto !important;
    min-height: 300px !important;
    margin: 0 auto !important;
    overflow: visible !important;
    isolation: isolate !important;
  }

  .hero-card{
    position: relative !important;
    width: 220px !important;
    max-width: 70vw !important;
    height: 260px !important;
    margin: 0 auto !important;
    left: auto !important;
    right: auto !important;
  }

  .hero-card svg{
    width: 110px !important;
    height: 110px !important;
  }

  /* ─── 6. KILL the overflow culprits ─── */
  .halo,
  .halo-ring{
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 280px !important;
    height: 280px !important;
    max-width: 90vw !important;
    max-height: 90vw !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
  }

  .halo-ring{
    width: 320px !important;
    height: 320px !important;
    max-width: 95vw !important;
    max-height: 95vw !important;
  }

  /* ─── 7. FLOATING CHIPS — contained ─── */
  .float-chip{
    position: absolute !important;
    max-width: 60% !important;
    padding: 6px 12px !important;
    font-size: .65rem !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    z-index: 10 !important;
  }

  .chip-1{
    top: 8px !important;
    inset-inline-start: 4px !important;
    left: auto !important;
    right: auto !important;
  }

  .chip-2{
    bottom: 8px !important;
    inset-inline-end: 4px !important;
    left: auto !important;
    right: auto !important;
  }

  .chip-3{
    display: none !important;
  }

  /* ─── 8. PARTICLES + ORBS — contained ─── */
  .particles,
  .hero-orb,
  .o1, .o2{
    max-width: 100vw !important;
    max-height: 100vw !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  .hero-orb{
    filter: blur(60px) !important;
  }

  .hero-orb.o1{
    width: 300px !important;
    height: 300px !important;
    top: -150px !important;
    inset-inline-end: -150px !important;
    right: -150px !important;
    left: auto !important;
  }

  .hero-orb.o2{
    width: 260px !important;
    height: 260px !important;
    bottom: -130px !important;
    inset-inline-start: -130px !important;
    left: -130px !important;
    right: auto !important;
  }

  /* ─── 9. CATEGORY HERO — same treatment ─── */
  .cat-hero::before,
  .cat-hero::after{
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  .cat-hero h1{
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  /* ─── 10. MARQUEE — must not cause overflow ─── */
  .marquee{
    overflow: hidden !important;
  }

  .marquee-track{
    display: flex !important;
  }

  /* ─── 11. ALL TITLES — prevent long words from overflowing ─── */
  h1, h2, h3, h4,
  .hero-title, .section-header h2, .cat-hero h1{
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: auto !important;
  }

  /* ─── 12. IMAGES — never wider than container ─── */
  img,
  .media-img,
  .product-media img,
  .gallery-main img,
  .cart-item-thumb img,
  .wishlist-thumb img{
    max-width: 100% !important;
  }

  /* ─── 13. MOBILE NAV & HEADER — ensure correct positioning ─── */
  header#header, header{
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .m-bottom-nav{
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  /* ─── 14. CHECKOUT & FORMS ─── */
  .checkout-layout{
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .checkout-block,
  .order-summary,
  .product-hero,
  .gallery,
  .product-info{
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* ─── 15. ADMIN ─── */
  .admin-layout,
  .admin-main,
  .kpi-grid,
  .data-table{
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .table-wrap{
    max-width: 100% !important;
    overflow-x: auto !important;
  }
}

/* Also for very small screens */
@media (max-width: 420px){
  .hero-visual{
    max-width: 300px !important;
  }

  .hero-card{
    width: 190px !important;
    height: 230px !important;
  }

  .halo{
    width: 240px !important;
    height: 240px !important;
  }

  .halo-ring{
    width: 280px !important;
    height: 280px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FINAL SAFETY NET — kill any remaining horizontal overflow
   ═══════════════════════════════════════════════════════════════ */
body > *:not(header):not(.m-bottom-nav):not(script):not(style){
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

/* ═══════════════════════════════════════════════════════════════
   PATCH v3.0 — KILL Horizontal Overflow (CRITICAL FIX)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px){

  /* ─── 1. FORCE NO HORIZONTAL SCROLL (root cause fix) ─── */
  html, body{
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative !important;
  }

  *{
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* ─── 2. CONTAIN EVERY SECTION ─── */
  section,
  .hero, .cat-hero, .checkout-hero, .prive-hero, .prive-cta, .prive-section, .prive-tiers-section, .prive-member-section,
  .collections, .story, .bestsellers, .loyalty, .testimonials, .newsletter,
  .products-section, .checkout-section, .product-page, .tabs-section, .related-section,
  .marquee, footer{
    overflow-x: clip !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  /* Fallback for older browsers that don't support clip */
  @supports not (overflow-x: clip){
    section,
    .hero, .cat-hero, .checkout-hero, .prive-hero, .prive-cta, .prive-section,
    .collections, .story, .bestsellers, .loyalty, .testimonials, .newsletter,
    .products-section, .checkout-section, .product-page, .tabs-section, .related-section,
    .marquee, footer{
      overflow: hidden !important;
    }
  }

  /* ─── 3. CONTAINER — tight padding ─── */
  .container{
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* ─── 4. HERO — convert to true single column ─── */
  .hero{
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }

  .hero-grid{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 24px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }

  .hero-text{
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
  }

  .hero-title{
    font-size: 2rem !important;
    line-height: 1.05 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .hero-tagline,
  .hero-desc{
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  .hero-badge,
  .hero-actions{
    max-width: 100% !important;
    flex-wrap: wrap !important;
  }

  /* ─── 5. HERO VISUAL — clip the decorative elements ─── */
  .hero-visual{
    position: relative !important;
    width: 100% !important;
    max-width: 340px !important;
    height: auto !important;
    min-height: 300px !important;
    margin: 0 auto !important;
    overflow: visible !important;
    isolation: isolate !important;
  }

  .hero-card{
    position: relative !important;
    width: 220px !important;
    max-width: 70vw !important;
    height: 260px !important;
    margin: 0 auto !important;
    left: auto !important;
    right: auto !important;
  }

  .hero-card svg{
    width: 110px !important;
    height: 110px !important;
  }

  /* ─── 6. KILL the overflow culprits ─── */
  .halo,
  .halo-ring{
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 280px !important;
    height: 280px !important;
    max-width: 90vw !important;
    max-height: 90vw !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
  }

  .halo-ring{
    width: 320px !important;
    height: 320px !important;
    max-width: 95vw !important;
    max-height: 95vw !important;
  }

  /* ─── 7. FLOATING CHIPS — contained ─── */
  .float-chip{
    position: absolute !important;
    max-width: 60% !important;
    padding: 6px 12px !important;
    font-size: .65rem !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    z-index: 10 !important;
  }

  .chip-1{
    top: 8px !important;
    inset-inline-start: 4px !important;
    left: auto !important;
    right: auto !important;
  }

  .chip-2{
    bottom: 8px !important;
    inset-inline-end: 4px !important;
    left: auto !important;
    right: auto !important;
  }

  .chip-3{
    display: none !important;
  }

  /* ─── 8. PARTICLES + ORBS — contained ─── */
  .particles,
  .hero-orb,
  .o1, .o2{
    max-width: 100vw !important;
    max-height: 100vw !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  .hero-orb{
    filter: blur(60px) !important;
  }

  .hero-orb.o1{
    width: 300px !important;
    height: 300px !important;
    top: -150px !important;
    inset-inline-end: -150px !important;
    right: -150px !important;
    left: auto !important;
  }

  .hero-orb.o2{
    width: 260px !important;
    height: 260px !important;
    bottom: -130px !important;
    inset-inline-start: -130px !important;
    left: -130px !important;
    right: auto !important;
  }

  /* ─── 9. CATEGORY HERO — same treatment ─── */
  .cat-hero::before,
  .cat-hero::after{
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  .cat-hero h1{
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  /* ─── 10. MARQUEE — must not cause overflow ─── */
  .marquee{
    overflow: hidden !important;
  }

  .marquee-track{
    display: flex !important;
  }

  /* ─── 11. ALL TITLES — prevent long words from overflowing ─── */
  h1, h2, h3, h4,
  .hero-title, .section-header h2, .cat-hero h1{
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: auto !important;
  }

  /* ─── 12. IMAGES — never wider than container ─── */
  img,
  .media-img,
  .product-media img,
  .gallery-main img,
  .cart-item-thumb img,
  .wishlist-thumb img{
    max-width: 100% !important;
    height: auto !important;
  }

  /* ─── 13. MOBILE NAV & HEADER — ensure correct positioning ─── */
  header#header, header{
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .m-bottom-nav{
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  /* ─── 14. CHECKOUT & FORMS ─── */
  .checkout-layout{
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .checkout-block,
  .order-summary,
  .product-hero,
  .gallery,
  .product-info{
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* ─── 15. ADMIN ─── */
  .admin-layout,
  .admin-main,
  .kpi-grid,
  .data-table{
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .table-wrap{
    max-width: 100% !important;
    overflow-x: auto !important;
  }
}

/* Also for very small screens */
@media (max-width: 420px){
  .hero-visual{
    max-width: 300px !important;
  }

  .hero-card{
    width: 190px !important;
    height: 230px !important;
  }

  .halo{
    width: 240px !important;
    height: 240px !important;
  }

  .halo-ring{
    width: 280px !important;
    height: 280px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FINAL SAFETY NET — kill any remaining horizontal overflow
   ═══════════════════════════════════════════════════════════════ */
body > *:not(header):not(.m-bottom-nav):not(script):not(style){
  max-width: 100vw !important;
  box-sizing: border-box !important;
}
