
@media (max-width: 1180px){
  .hero-grid,
  .split-showcase,
  .story-ribbon .ribbon-layout,
  .heritage-grid,
  .page-hero-grid,
  .product-detail,
  .checkout-layout,
  .cart-layout{grid-template-columns:1fr}
  .hero-copy,.toolbar-copy{text-align:left}
  .frame-stack{min-height:540px}
  .hero-card-main{inset:60px 80px 40px 0}
  .showcase-image img,.arched-card img,.product-gallery-main img{min-height:520px}
  .product-gallery-main{position:relative;top:auto}
  .footer-grid{grid-template-columns:repeat(2,1fr)}
  /* Boutique: revert to 3-col grid on medium screens */
  .boutique-shell .catalogue-grid{grid-template-columns:repeat(3,1fr)}
  /* Boutique hero collapses to stacked */
  .boutique-hero-inner{flex-direction:column;align-items:flex-start;gap:24px}
  .boutique-hero-stats{width:100%}
  .boutique-hero-stats div{flex:1;min-width:0}
}

@media (max-width: 980px){
  .main-nav{
    position:fixed;
    inset:96px 24px auto 24px;
    padding:18px;
    border-radius:24px;
    background:rgba(17,12,9,.96);
    border:1px solid rgba(255,255,255,.08);
    transform:translateY(-16px);
    opacity:0;
    pointer-events:none;
    transition:all .35s ease;
  }
  body.menu-open .main-nav{
    opacity:1;
    pointer-events:auto;
    transform:none;
  }
  .main-nav ul{
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
  }
  .nav-toggle{display:flex}
  .nav-actions .link-chip{display:none}
  .signature-points,
  .collection-grid,
  .testimonials-grid,
  .craft-columns,
  .process-grid,
  .featured-grid,
  .catalogue-grid,
  .stats-ribbon,
  .hero-metrics{grid-template-columns:repeat(2,1fr)}
  .contact-layout,
  .faq-preview-grid,
  .narrative-card,
  .narrative-card.reverse{grid-template-columns:1fr}
  .narrative-card.reverse > div{order:initial}
  /* Boutique: 2-col grid on tablet */
  .boutique-shell .catalogue-grid{grid-template-columns:repeat(2,1fr)}
  /* Boutique filter bar wraps on tablet */
  .boutique-filter-bar{gap:10px;padding:12px 16px}
  .filter-controls{flex-wrap:wrap;gap:8px}
  .filter-search{width:160px}
  /* Boutique hero stats — horizontal scroll */
  .boutique-hero-stats{gap:8px;overflow-x:auto;padding-bottom:4px}
  .boutique-hero-stats div{min-width:90px;padding:14px 16px}
}

@media (max-width: 720px){
  :root{
    --container:min(100% - 28px, 100%);
  }
  .topbar-inner{flex-direction:column;align-items:flex-start}
  .nav-shell{gap:10px}
  .brand-text small{display:none}
  h1{font-size:clamp(2.5rem, 14vw, 4.2rem)}
  h2{font-size:clamp(1.8rem, 9vw, 2.8rem)}
  .hero{padding-top:54px}
  .section{padding:80px 0}
  .hero-metrics,
  .signature-points,
  .collection-grid,
  .process-grid,
  .testimonials-grid,
  .craft-columns,
  .featured-grid,
  .catalogue-grid,
  .stats-ribbon,
  .product-details-grid,
  .form-grid{grid-template-columns:1fr}
  .frame-stack{min-height:420px}
  .hero-card-main{inset:30px 40px 40px 0}
  .hero-card-side{width:180px;height:220px;right:10px}
  .floating-note{left:10px;right:10px;max-width:none}
  .floating-badge{right:16px;bottom:140px}
  .showcase-image img,.arched-card img,.hero-image-stack img,.narrative-card img,.product-gallery-main img{min-height:320px}
  .cta-shell,.catalogue-toolbar,.footer-bottom{flex-direction:column;align-items:flex-start}
  .cart-item{
    grid-template-columns:1fr;
    justify-items:start;
  }
  .footer-grid{grid-template-columns:1fr}
  /* Boutique mobile — 2 columns from 340px; tiny fallback handled at the end */
  .boutique-shell .catalogue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  /* Boutique mobile */
  .boutique-hero{padding:40px 0 20px}
  .boutique-hero-copy h1{font-size:clamp(2.2rem,12vw,3.4rem)}
  .boutique-hero-stats{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px}
  .boutique-hero-stats div{min-width:84px;padding:12px 14px}
  .boutique-filter-bar{
    flex-direction:column;
    align-items:stretch;
    padding:12px 14px;
    gap:10px;
    border-radius:20px;
    margin-bottom:24px;
  }
  .filter-chips{gap:6px}
  .boutique-filter-bar .chip{padding:7px 12px;font-size:.82rem}
  .filter-controls{flex-direction:column;gap:8px}
  .filter-search,.filter-sort{width:100%;border-radius:16px;padding:11px 16px}
  .filter-sort{padding-right:36px}
}


@media (max-width: 1180px){
  .custom-design-grid,
  .custom-page-layout,
  .sales-reassurance-grid,
  .mini-testimonials,
  .product-assurance,
  .conversion-strip{grid-template-columns:1fr}
}

@media (max-width: 980px){
  .nav-actions{margin-left:auto}
  .nav-actions .theme-toggle{display:none}
  .chatbot-panel{bottom:78px}
  .floating-contact-stack{right:16px;bottom:92px}
  .chatbot-shell{right:16px;bottom:16px}
}

@media (max-width: 720px){
  .theme-toggle{padding:10px 14px}
  .chatbot-panel{width:min(100vw - 24px, 390px)}
  .chatbot-cta-row{grid-template-columns:1fr}
  .chatbot-toggle span.label{display:none}
  .sticky-contact-panel{width:min(100vw - 24px, 290px)}
  .floating-contact-stack{right:12px;bottom:88px}
  .chatbot-shell{right:12px;bottom:12px}
  .custom-design-content,
  .custom-design-aside,
  .custom-form-shell{padding:24px}
  .custom-form-grid{grid-template-columns:1fr}
  .dual-cta,
  .product-cta-stack{flex-direction:column;align-items:stretch}
}

/* ============================================================
   Phase 3.6 — responsiveness polish
   ============================================================ */

/* Tighten header on tablet so the ~180px whitespace customers complained
   about shrinks considerably. */
@media (max-width: 980px){
  .brand-mark{width:46px;height:46px;border-radius:14px;font-size:1rem}
  .nav-shell{padding:12px 0}
  .topbar-inner{padding:7px 0;font-size:.74rem}
  .hero{padding:60px 0 50px}
  .page-hero{padding:50px 0 22px}
  .section{padding:70px 0}
}

/* Phones: kill the stacked topbar double-row and collapse further. */
@media (max-width: 720px){
  .topbar-inner{flex-direction:row;align-items:center;gap:12px;padding:6px 0;font-size:.72rem}
  .topbar-inner span:nth-child(2){display:none} /* too dense on phones */
  .nav-shell{padding:10px 0;gap:8px}
  .brand-mark{width:40px;height:40px;border-radius:12px;font-size:.92rem}
  .hero{padding:36px 0 40px}
  .page-hero{padding:36px 0 16px}
  .section{padding:54px 0}
  .frame-stack{min-height:320px}
  .hero-card-main{inset:20px 20px 30px 0;border-radius:24px}
  .hero-card-side{width:150px;height:190px;border-radius:20px}
  .floating-badge{bottom:100px;padding:10px 14px;font-size:.78rem}
  .floating-note{padding:10px 14px;font-size:.8rem}
  h1{font-size:clamp(2.1rem, 10.5vw, 3.4rem)}
}

/* Checkout layout: ensure summary panel sits below form on small widths and
   keeps readable padding. */
@media (max-width: 1024px){
  .checkout-layout{grid-template-columns:1fr;gap:22px}
  .summary-card{position:relative;top:auto}
  .cart-summary-panel{position:relative;top:auto}
}

/* Product page detail grid full-width on tablet, keep gallery aspect. */
@media (max-width: 1180px){
  .product-detail{gap:28px}
  .product-gallery-main img{max-height:520px;object-fit:cover}
}

/* ── Admin responsiveness ──────────────────────────────────
   The admin area previously had no mobile/tablet fallback. Below breakpoints
   collapse the sidebar into a top strip and allow horizontal scroll on
   wide tables so nothing overflows off-screen. */
@media (max-width: 1024px){
  .admin-wrap{grid-template-columns:1fr}
  .admin-sidebar{
    position:static;
    width:100%;
    height:auto;
    min-height:0;
    border-right:none;
    border-bottom:1px solid var(--adm-border,rgba(255,255,255,.06));
    padding:14px 16px;
  }
  .admin-sidebar .sidebar-nav{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
  }
  .admin-sidebar .sidebar-section{display:none}
  .admin-sidebar .admin-nav-link{
    flex:0 0 auto;
    padding:8px 12px;
    font-size:.82rem;
    border-radius:10px;
  }
  .admin-sidebar .sidebar-footer{
    margin-top:10px;
    display:flex;
    gap:8px;
  }
  .admin-content{padding:0}
  .admin-inner{padding:18px}
  .admin-topbar{padding:14px 18px}
  .admin-topbar h1{font-size:1.2rem}
  .stats-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .admin-table-wrap{overflow-x:auto}
  .admin-table{min-width:640px}
  .admin-form-grid{grid-template-columns:1fr}
  .admin-form-grid .span-2{grid-column:auto}
}

@media (max-width: 640px){
  .stats-grid{grid-template-columns:1fr}
  .admin-filter-bar{flex-direction:column;align-items:stretch;gap:8px;padding:10px 12px}
  .admin-search,.admin-select{width:100%}
  .admin-topbar{flex-direction:column;align-items:flex-start;gap:10px}
  .topbar-right{width:100%;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
  /* Custom-requests list: the date column is the only one we can safely
     drop to keep the table on a single mobile screen. Scope narrowly so
     we don't accidentally hide the Actions column on other admin pages. */
  #cr-tbody tr td:last-child,
  #cr-tbody tr + thead th:last-child{display:none}
  table .admin-table thead tr th:last-child{display:revert}
}

/* Custom-requests admin page: detail card un-sticks on narrow screens so
   the user can scroll naturally between list and detail. */
@media (max-width: 1100px){
  .cr-detail-card{position:relative;top:auto}
}

/* ============================================================
   Phase 3.7 — final responsiveness pass
   ============================================================ */

/* --- Laptop (1180–1280): give the container a touch more breathing room
   and keep the hero frame-stack from colliding with the text column. */
@media (min-width: 1025px) and (max-width: 1280px){
  .hero{padding:56px 0 60px}
  .frame-stack{min-height:560px}
  .hero-card-main{inset:40px 60px 40px 0}
}

/* --- Tablet landscape (980–1180): tighten vertical rhythm. */
@media (min-width: 981px) and (max-width: 1180px){
  .hero-grid{gap:28px}
  .stats-ribbon{grid-template-columns:repeat(3,1fr)}
  .section{padding:80px 0}
}

/* --- Mobile nav menu position: the existing menu is anchored to
   `inset:96px 24px auto 24px`, which is correct for the OLD taller
   header. After Phase 3.7 tightened the header the menu now floats too
   low. Pin it to the actual header height with CSS instead. */
@media (max-width: 980px){
  .main-nav{ inset: calc(100% + 8px) 16px auto 16px; }
}

/* --- Hero frame-stack overlap on small phones: the two hero images were
   clipping the floating note badge. Keep them contained. */
@media (max-width: 520px){
  .frame-stack{min-height:280px}
  .hero-card-main{
    inset:14px 14px 40px 0;
    transform:rotate(-3deg);
  }
  .hero-card-side{
    width:130px;height:160px;
    right:6px;top:0;
    transform:rotate(5deg);
  }
  .floating-note{
    left:8px;right:8px;bottom:auto;top:auto;
    position:relative;
    margin-top:14px;
    border-radius:16px;
  }
  .floating-badge{display:none} /* redundant with the hero metrics below */
}

/* --- Boutique chips: on tablet/phone the chip row was truncating behind
   the filter bar. Make the chip row horizontally scrollable but keep the
   search/sort row below it legible. */
@media (max-width: 980px){
  .filter-chips{
    overflow-x:auto;
    flex-wrap:nowrap;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding-bottom:4px;
    margin: -2px -2px 4px;
  }
  .filter-chips::-webkit-scrollbar{display:none}
  .filter-chips .chip{flex:0 0 auto;white-space:nowrap}
}

/* --- Product-detail gallery on small phones: stop the main image from
   leaving a tall, empty slot when the image is portrait. */
@media (max-width: 720px){
  .product-gallery-main{border-radius:22px;overflow:hidden}
  .product-gallery-main img{
    max-height:460px;
    min-height:260px;
    object-fit:cover;
    width:100%;
    display:block;
  }
  .product-gallery-thumbs{
    display:flex;
    gap:6px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding:8px 0 2px;
  }
  .product-gallery-thumbs::-webkit-scrollbar{display:none}
  .gallery-thumb{flex:0 0 64px;height:64px}
  .gallery-thumb img{width:100%;height:100%;object-fit:cover}
}

/* --- Language switcher placement on phones: make sure it doesn't fight
   the cart pill / FAQ link for space. */
@media (max-width: 720px){
  .nav-actions{gap:8px;flex-wrap:wrap}
  .nav-actions .link-chip{display:none}
  .lang-switcher{order:2}
  .cart-pill{order:3}
  .theme-toggle{order:1}
}

/* --- Admin: smaller sidebar-strip chips on phones so all links fit
   without overflowing horizontally. */
@media (max-width: 640px){
  .admin-sidebar .sidebar-nav{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .admin-sidebar .sidebar-nav::-webkit-scrollbar{display:none}
  .admin-sidebar .admin-nav-link{font-size:.76rem;padding:7px 10px}
  .admin-sidebar .sidebar-brand{margin-bottom:8px}
}

/* --- Remove any remaining overflow on very small viewports --- */
@media (max-width: 400px){
  .container{padding-left:14px;padding-right:14px}
  .btn{padding:12px 14px;font-size:.85rem}
}


/* ============================================================
   FINAL POLISH — responsive overrides for 3.8 structure
   ============================================================ */
@media (max-width: 1180px){
  .hero{padding:40px 0 44px}
  .hero-grid{gap:28px}
  .frame-stack{min-height:420px}
  .featured-after-hero{padding:50px 0 60px}
}
@media (max-width: 980px){
  .hero{padding:28px 0 36px}
  .hero-grid{grid-template-columns:1fr;gap:28px}
  .hero-copy h1{font-size:clamp(2rem,7vw,2.8rem)}
  .frame-stack{min-height:340px}
  .hero-card-main{inset:16px 40px 24px 0}
  .hero-card-side{width:180px;height:220px}
  .hero-metrics{margin-top:20px}
  .featured-after-hero{padding:44px 0 50px}
  .featured-after-hero .section-heading{margin-bottom:22px}
  .section{padding:56px 0}
  .editorial-section{padding:52px 0}
  .dark-band{padding:56px 0}
  .boutique-hero{padding:24px 0 10px}
  .boutique-shell{padding-bottom:56px !important}
  .site-footer{padding:44px 0 24px}
  .topbar{font-size:.7rem}
  .main-nav ul{gap:14px}
}
@media (max-width: 720px){
  .hero{padding:22px 0 30px}
  .hero-copy h1{font-size:clamp(1.9rem,8.5vw,2.5rem);margin-bottom:10px}
  .hero-copy p{font-size:.94rem}
  .hero-actions{margin-top:16px}
  .hero-actions .btn{width:100%;text-align:center;justify-content:center}
  .hero-metrics{margin-top:18px;grid-template-columns:1fr;gap:10px}
  .hero-metrics div{padding:12px 14px}
  .frame-stack{min-height:260px;margin-top:8px}
  .hero-card-main{inset:10px 14px 30px 0;border-radius:22px;transform:rotate(-2deg)}
  .hero-card-side{width:130px;height:160px;border-radius:18px;transform:rotate(3deg)}
  .floating-note{position:relative;left:auto;right:auto;bottom:auto;top:auto;margin-top:16px;max-width:none}
  .floating-badge{display:none}
  .featured-after-hero{padding:36px 0 44px}
  .featured-after-hero .section-heading h2{font-size:1.5rem}
  .section{padding:44px 0}
  .editorial-section{padding:40px 0}
  .dark-band{padding:46px 0}
  .boutique-hero{padding:18px 0 6px}
  .boutique-hero-copy h1{font-size:clamp(1.8rem,8vw,2.3rem)}
  .boutique-shell{padding-bottom:40px !important}
  .catalogue-grid{gap:14px}
  .product-card{border-radius:20px}
  /* Nav actions: priority row on phones */
  .nav-actions{gap:6px}
  .cart-pill{padding:7px 12px;font-size:.8rem}
  .theme-toggle{padding:7px 10px}
  .brand-mark{width:38px;height:38px;border-radius:12px}
  .brand-text strong{font-size:.95rem}
  .brand-text small{display:none}
  .nav-shell{padding:8px 0;gap:8px}
  .topbar-inner{padding:5px 0;font-size:.66rem}
}
@media (max-width: 420px){
  .hero-card-main{inset:8px 10px 28px 0}
  .hero-card-side{width:110px;height:140px}
  .floating-note{padding:10px 12px;font-size:.8rem}
  .hero-metrics div{padding:10px 12px}
}

/* ============================================================
   FINAL RESPONSIVE SYSTEM — Phase 3.9
   ============================================================ */
@media (max-width: 1180px){
  .nav-shell{grid-template-columns:auto minmax(0,1fr) auto}
  .main-nav ul{justify-content:flex-start}
  .hero-grid{grid-template-columns:minmax(0,1fr) minmax(280px,.88fr)}
  .frame-stack{min-height:360px}
  .boutique-category-grid{grid-template-columns:repeat(2, minmax(0,1fr))}
  .filter-sort{min-width:180px}
}

@media (max-width: 980px){
  .site-header{overflow:visible}
  .nav-shell{
    grid-template-columns:auto auto 1fr auto;
    min-height:68px;
    gap:10px;
  }
  .brand{order:1}
  .nav-toggle{display:flex;order:2}
  .main-nav{
    position:fixed;
    top:calc(var(--header-offset, 88px) + 8px);
    left:16px;
    right:16px;
    bottom:auto;
    max-height:calc(100dvh - var(--header-offset, 88px) - 24px);
    overflow:auto;
    padding:18px;
    border-radius:24px;
    background:rgba(17,12,9,.96);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 24px 54px rgba(0,0,0,.34);
    transform:translateY(-10px);
    opacity:0;
    pointer-events:none;
    transition:opacity .25s ease, transform .25s ease;
  }
  body.menu-open .main-nav{
    opacity:1;
    pointer-events:auto;
    transform:none;
  }
  .main-nav ul{
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
  }
  .main-nav a::after{bottom:-6px}
  .nav-actions{
    order:4;
    justify-self:end;
    flex-wrap:nowrap;
    gap:6px;
  }
  .theme-toggle{
    display:inline-flex;
    padding:8px 10px;
    min-height:40px;
  }
  .theme-toggle .theme-toggle-label{display:none}
  .theme-toggle .theme-toggle-icon{
    width:22px;
    height:22px;
    margin:0;
  }
  .lang-switcher{padding:2px}
  .lang-btn{padding:5px 7px;font-size:.67rem}
  .cart-pill{padding:8px 12px;font-size:.82rem}

  .hero{
    padding:24px 0 34px;
  }
  .hero-grid{
    grid-template-columns:1fr;
    gap:24px;
  }
  .hero-copy h1{max-width:none}
  .frame-stack{
    min-height:320px;
    margin-top:2px;
  }
  .hero-card-main{inset:14px 34px 18px 0}
  .hero-card-side{width:170px;height:210px}

  .page-hero{padding:26px 0 16px}
  .compact-hero{padding-bottom:0}

  .boutique-hero{padding:18px 0 4px}
  .boutique-shell{padding-bottom:48px !important}
  .boutique-category-grid{grid-template-columns:repeat(2, minmax(0,1fr))}
  .boutique-category-card{min-height:108px}
  .boutique-filter-bar{
    top:calc(var(--header-offset, 88px) + 8px);
  }
  .filter-controls{
    width:100%;
    flex-wrap:wrap;
  }
  .filter-search,
  .filter-sort{
    width:100%;
    min-width:0;
  }
  .conversion-strip{padding:18px}
}

@media (max-width: 720px){
  .topbar-inner{
    flex-direction:row;
    justify-content:flex-start;
    gap:10px;
  }
  .topbar-inner span:last-child{display:none}
  .nav-shell{
    grid-template-columns:auto auto 1fr;
    grid-auto-rows:auto;
    align-items:center;
  }
  .brand-text strong{font-size:.92rem}
  .nav-actions{
    grid-column:1 / -1;
    justify-self:stretch;
    justify-content:flex-start;
    flex-wrap:wrap;
    padding-top:2px;
  }
  .lang-switcher{order:1}
  .cart-pill{order:2}
  .theme-toggle{order:3}

  .hero{padding:20px 0 28px}
  .hero-copy h1{font-size:clamp(1.9rem, 8.2vw, 2.5rem)}
  .hero-copy p{font-size:.94rem}
  .hero-actions .btn{width:100%}
  .hero-metrics{grid-template-columns:1fr;gap:10px}
  .frame-stack{min-height:255px}
  .hero-card-main{inset:10px 12px 26px 0;border-radius:22px}
  .hero-card-side{width:122px;height:154px;border-radius:18px}
  .floating-note{
    position:relative;
    left:auto;right:auto;bottom:auto;
    margin-top:14px;
    max-width:none;
  }
  .floating-badge{display:none}

  .featured-grid,
  .catalogue-grid{gap:14px}
  .product-card{border-radius:20px}
  .product-actions{grid-template-columns:1fr}

  .boutique-category-intro{align-items:flex-start}
  .boutique-category-grid{
    display:flex;
    overflow-x:auto;
    gap:12px;
    padding-bottom:4px;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .boutique-category-grid::-webkit-scrollbar{display:none}
  .boutique-category-card{
    flex:0 0 min(78vw, 260px);
    min-height:112px;
    scroll-snap-align:start;
  }
  .boutique-filter-bar{
    padding:10px;
    border-radius:18px;
  }
}

@media (max-width: 480px){
  .nav-actions{gap:5px}
  .lang-btn{padding:5px 6px;font-size:.64rem}
  .cart-pill{font-size:.78rem;padding:7px 10px}
  .theme-toggle{padding:7px 9px}
  .hero-card-side{width:108px;height:136px}
  .boutique-category-card{flex-basis:84vw}
}

/* RTL adjustments for the new category rail / sticky filter flow */
[dir="rtl"] .boutique-category-intro,
[dir="rtl"] .boutique-category-grid,
[dir="rtl"] .boutique-category-card,
[dir="rtl"] .nav-actions{
  direction:rtl;
}
[dir="rtl"] .boutique-category-card{text-align:right}
[dir="rtl"] .main-nav ul{justify-content:flex-start}


/* === Final packaged boutique responsive fixes === */
@media (max-width: 1180px){
  .boutique-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .catalogue-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .filter-controls{width:100%;justify-content:flex-end;}
}
@media (max-width: 920px){
  .container-wide{width:min(100% - 28px, 100%);}
  .boutique-hero-inner{grid-template-columns:1fr;gap:18px;}
  .boutique-hero-copy h1{max-width:12ch;}
  .boutique-hero-stats{grid-template-columns:repeat(3,minmax(0,1fr));}
  .boutique-catalog-shell{padding:20px;border-radius:26px;}
  .boutique-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .boutique-filter-bar{flex-direction:column;align-items:stretch;}
  .filter-controls{width:100%;justify-content:stretch;}
  .filter-search,.filter-sort{width:100%;min-width:0;}
}
@media (max-width: 640px){
  .nav-shell{min-height:66px;}
  .boutique-hero{padding:24px 0 8px;}
  .boutique-hero-copy h1{font-size:clamp(2.05rem,10vw,3.4rem);}
  .boutique-hero-stats{grid-template-columns:1fr;gap:10px;}
  .boutique-catalog-shell{padding:16px;border-radius:22px;gap:14px;}
  .boutique-category-grid{display:flex;overflow:auto;gap:12px;padding-bottom:4px;}
  .boutique-category-card{min-width:78vw;}
  .catalogue-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .product-media{aspect-ratio:4/4.45;}
  .product-actions{grid-template-columns:1fr;}
}


/* ============================================================
   MOBILE-FIRST FINAL OVERRIDES — April 2026
   ============================================================ */

@media (max-width: 980px){
  .topbar-inner{padding:5px 0;font-size:.72rem;}
  .nav-shell{grid-template-columns:minmax(0,1fr) auto auto;gap:10px;min-height:64px;padding:8px 0;}
  .brand{grid-column:1;}
  .nav-toggle{display:inline-flex;grid-column:2;justify-self:end;}
  .nav-actions{grid-column:3;justify-self:end;gap:8px;}
  .cart-pill{padding:8px 12px;font-size:.82rem;}
  .main-nav{position:fixed;top:calc(var(--header-offset, 82px) + 8px);left:12px;right:12px;max-height:calc(100dvh - var(--header-offset, 82px) - 20px);overflow:auto;overscroll-behavior:contain;padding:16px;border-radius:22px;background:rgba(16,11,8,.97);border:1px solid rgba(255,255,255,.08);box-shadow:0 26px 54px rgba(0,0,0,.34);}
  .main-nav ul{gap:14px;}
  .main-nav a{font-size:1rem;padding:4px 0;}
  .mobile-nav-utility{display:grid;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08);}
  .mobile-nav-utility[hidden]{display:none;}
  .mobile-nav-utility .lang-switcher,.mobile-nav-utility .theme-toggle,.mobile-nav-utility .link-chip{width:100%;justify-content:center;}
  .mobile-nav-utility .theme-toggle .theme-toggle-label{display:inline;}
  .mobile-nav-utility .theme-toggle .theme-toggle-icon{margin-right:6px;}
  .hero{padding:24px 0 28px;}
  .hero-grid,.page-hero-grid,.product-detail,.cart-layout,.checkout-layout,.contact-layout{grid-template-columns:1fr;}
  .hero-copy h1{max-width:none;font-size:clamp(2rem, 7vw, 2.7rem);}
  .hero-copy p{max-width:46ch;}
  .frame-stack{min-height:320px;}
  .hero-card-main{inset:14px 26px 22px 0;}
  .hero-card-side{width:150px;height:188px;right:8px;}
  .hero-metrics{grid-template-columns:1fr 1fr;gap:10px;}
  .page-hero{padding:24px 0 12px;}
  .stats-ribbon{grid-template-columns:repeat(3, 1fr);}
  .boutique-hero{padding:16px 0 8px;}
  .boutique-hero-inner{gap:14px;}
  .boutique-hero-copy h1{font-size:clamp(2rem, 6vw, 2.6rem);max-width:10ch;}
  .boutique-shell{padding-top:6px !important;padding-bottom:44px !important;}
  .boutique-catalog-shell{padding:16px;border-radius:24px;gap:14px;}
  .boutique-category-grid{grid-template-columns:repeat(2, minmax(0, 1fr));}
  .boutique-filter-bar{position:sticky !important;top:calc(var(--header-offset, 82px) + 8px) !important;z-index:24 !important;padding:10px;border-radius:18px;}
  .filter-controls{width:100%;display:grid;grid-template-columns:1fr;gap:8px;}
  .filter-search,.filter-sort{width:100%;min-width:0;}
  .catalogue-grid,.featured-grid{grid-template-columns:repeat(2, minmax(0, 1fr));gap:14px;}
  .product-title{font-size:clamp(1.85rem, 6vw, 2.5rem);}
  .product-gallery-wrap{position:relative;top:auto;}
  .product-gallery-main{aspect-ratio:1 / 1.02;}
  .product-price-line{grid-template-columns:1fr;align-items:flex-start;gap:10px;}
  .product-actions-row{grid-template-columns:minmax(0,1fr);}
  .qty-box{width:100%;justify-content:space-between;}
  .product-cta-stack,.product-assurance,.product-details-grid,.mini-testimonials{grid-template-columns:1fr;}
  .cart-item{grid-template-columns:96px minmax(0,1fr);gap:14px;}
  .cart-item-media img{width:96px;height:96px;}
  .cart-item-side{grid-column:1 / -1;display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;padding-top:0;}
  .summary-card,.cart-summary-panel{position:relative;top:auto;}
}

@media (max-width: 720px){
  :root{--container:min(100% - 24px, 100%);}
  .topbar-inner span:last-child{display:none;}
  .nav-shell{gap:8px;}
  .brand{gap:10px;}
  .brand-text strong{font-size:.92rem;white-space:normal;line-height:1.05;}
  .brand-text small{display:none;}
  .nav-actions{gap:6px;}
  .nav-actions > :not(.cart-pill):not(.currency-switcher){display:none !important;}
  .cart-pill{min-height:38px;padding:7px 10px;}
  .section,.dark-band,.editorial-section{padding:40px 0;}
  .section-heading{margin-bottom:24px;}
  .hero{padding:18px 0 24px;}
  .hero-copy h1{font-size:clamp(1.85rem, 8vw, 2.35rem);margin-bottom:10px;}
  .hero-copy p{font-size:.94rem;}
  .hero-actions{gap:10px;margin-top:16px;}
  .hero-actions .btn,.product-actions .btn,.product-cta-stack .btn,.contact-shortcut{width:100%;}
  .hero-metrics{grid-template-columns:1fr;}
  .hero-metrics div{padding:12px 14px;border-radius:18px;}
  .frame-stack{min-height:250px;}
  .hero-card-main{inset:10px 12px 24px 0;border-radius:22px;}
  .hero-card-side{width:118px;height:146px;}
  .floating-note{position:relative;left:auto;right:auto;bottom:auto;margin-top:14px;border-radius:16px;}
  .floating-badge{display:none;}
  .page-hero{padding:20px 0 8px;}
  .stats-ribbon{grid-template-columns:1fr;}
  .stats-ribbon div{padding:14px;}
  .boutique-hero-copy h1{font-size:clamp(1.8rem, 8vw, 2.2rem);}
  .boutique-hero-copy p{font-size:.92rem;}
  .boutique-hero-stats{display:grid;grid-template-columns:repeat(3, minmax(92px, 1fr));gap:8px;overflow-x:auto;padding-bottom:2px;}
  .boutique-hero-stats div{padding:12px 10px;min-width:92px;border-radius:18px;}
  .boutique-category-grid{display:flex;overflow-x:auto;gap:10px;padding-bottom:4px;scrollbar-width:none;}
  .boutique-category-grid::-webkit-scrollbar{display:none;}
  .boutique-category-card{flex:0 0 76vw;min-height:100px;border-radius:20px;}
  .catalogue-grid,.featured-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .product-card{border-radius:20px;}
  .product-media{aspect-ratio:4 / 4.55;}
  .product-body{gap:8px;padding:14px 14px 16px;}
  .product-card h3{font-size:1.02rem;}
  .product-card p{min-height:0;-webkit-line-clamp:2;}
  .product-actions{grid-template-columns:1fr;}
  .product-detail{gap:20px;}
  .product-title{font-size:clamp(1.65rem, 8vw, 2.1rem);margin-top:10px;margin-bottom:12px;}
  .product-info > p{font-size:.94rem;}
  .product-purchase-panel{gap:10px;margin:18px 0;}
  .product-price-line{padding:14px 16px;border-radius:18px;}
  .product-price-value{font-size:1.75rem;}
  .product-gallery-main{border-radius:20px;aspect-ratio:1 / 1.02;}
  .product-gallery-thumbs{display:flex;overflow-x:auto;gap:8px;padding:8px 0 2px;scrollbar-width:none;}
  .product-gallery-thumbs::-webkit-scrollbar{display:none;}
  .gallery-thumb{width:60px;height:60px;border-radius:12px;}
  .gallery-nav{width:38px;height:38px;}
  .contact-card,.contact-form,.checkout-form,.cart-items-panel,.summary-card{padding:18px;border-radius:20px;}
  .form-grid{grid-template-columns:1fr;gap:14px;}
  .contact-form label span,.form-grid span{font-size:.82rem;}
  .contact-form input,.contact-form textarea,.checkout-form input,.checkout-form textarea{min-height:48px;}
  .cart-item{grid-template-columns:84px minmax(0,1fr);padding:14px 0;}
  .cart-item-media img{width:84px;height:84px;border-radius:14px;}
  .cart-item h3{font-size:.98rem;margin-bottom:6px;}
  .qty-inline{gap:8px;margin-top:10px;}
  .qty-inline button{width:32px;height:32px;}
  .cart-item-side{align-items:flex-start;flex-direction:column;gap:8px;}
}

@media (max-width: 420px){
  .main-nav{left:10px;right:10px;padding:14px;}
  .brand-text strong{font-size:.88rem;}
  .cart-pill{font-size:.76rem;}
  .hero-copy h1,.boutique-hero-copy h1,.product-title{word-break:break-word;}
  .product-media{aspect-ratio:4 / 4.35;}
  .product-gallery-main{aspect-ratio:1 / 1;}
}

/* ============================================================
   APRIL 2026 STABILITY PATCH
   - boutique hero gap
   - product gallery sticky removal / proportions
   - dark mode contrast
   ============================================================ */
html:not([data-theme="light"]){
  --panel-bg-strong:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  --panel-bg-soft:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  --panel-border-strong:rgba(255,255,255,.13);
  --field-bg-strong:rgba(255,255,255,.08);
  --field-border-strong:rgba(255,255,255,.15);
  --text-secondary-strong:#d2b9a4;
  --text-tertiary-strong:#b99d84;
  --price-strong:#f3d99c;
}

/* Boutique hero: collapse the artificial split so no empty right column remains */
.boutique-page .boutique-hero{
  padding:24px 0 10px;
}
.boutique-page .boutique-hero-inner{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:start;
  justify-content:start;
  gap:16px;
  max-width:min(920px,100%);
}
.boutique-page .boutique-hero-copy{
  max-width:min(820px,100%);
}
.boutique-page .boutique-hero-copy h1{
  max-width:12ch;
  margin-bottom:10px;
}
.boutique-page .boutique-hero-copy p{
  max-width:58ch;
}
.boutique-page .boutique-hero-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  width:100%;
  max-width:720px;
  align-self:start;
}
.boutique-page .boutique-hero-stats div{
  min-width:0;
}

/* Product page: remove sticky gallery and rebalance media/info columns */
.product-detail{
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:30px;
}
.product-gallery-wrap{
  position:relative !important;
  top:auto !important;
  align-self:start;
}
.product-gallery-main{
  aspect-ratio:1 / .96;
}
.product-gallery-main img{
  min-height:0;
  height:100%;
  max-height:640px;
}
.product-info{
  max-width:680px;
}

/* Dark mode contrast: restore readable surfaces and text without changing brand identity */
html:not([data-theme="light"]) .boutique-catalog-shell,
html:not([data-theme="light"]) .product-card,
html:not([data-theme="light"]) .boutique-filter-bar,
html:not([data-theme="light"]) .boutique-category-card,
html:not([data-theme="light"]) .contact-card,
html:not([data-theme="light"]) .contact-form,
html:not([data-theme="light"]) .checkout-form,
html:not([data-theme="light"]) .cart-items-panel,
html:not([data-theme="light"]) .summary-card,
html:not([data-theme="light"]) .detail-card,
html:not([data-theme="light"]) .payment-box,
html:not([data-theme="light"]) .empty-state,
html:not([data-theme="light"]) .product-price-line,
html:not([data-theme="light"]) .product-assurance .trust-card,
html:not([data-theme="light"]) .mini-testimonial{
  background:var(--panel-bg-soft);
  border-color:var(--panel-border-strong);
}
html:not([data-theme="light"]) .product-card,
html:not([data-theme="light"]) .boutique-catalog-shell,
html:not([data-theme="light"]) .boutique-filter-bar{
  box-shadow:0 20px 42px rgba(0,0,0,.22);
}
html:not([data-theme="light"]) .product-media,
html:not([data-theme="light"]) .product-gallery-main,
html:not([data-theme="light"]) .gallery-thumb{
  background:rgba(12,8,6,.72);
}
html:not([data-theme="light"]) .product-card h3,
html:not([data-theme="light"]) .product-title,
html:not([data-theme="light"]) .detail-card h3,
html:not([data-theme="light"]) .summary-line.total,
html:not([data-theme="light"]) .checkout-line span:last-child,
html:not([data-theme="light"]) .payment-option,
html:not([data-theme="light"]) .contact-card strong,
html:not([data-theme="light"]) .trust-card strong,
html:not([data-theme="light"]) .mini-testimonial strong{
  color:var(--text);
}
html:not([data-theme="light"]) .product-card p,
html:not([data-theme="light"]) .product-info > p,
html:not([data-theme="light"]) .detail-card p,
html:not([data-theme="light"]) .contact-card p,
html:not([data-theme="light"]) .checkout-line,
html:not([data-theme="light"]) .summary-line,
html:not([data-theme="light"]) .empty-state,
html:not([data-theme="light"]) .payment-box,
html:not([data-theme="light"]) .notice{
  color:var(--text-secondary-strong);
}
html:not([data-theme="light"]) .product-collection,
html:not([data-theme="light"]) .boutique-category-meta,
html:not([data-theme="light"]) .boutique-category-kicker,
html:not([data-theme="light"]) .cart-item .cart-meta,
html:not([data-theme="light"]) .contact-form label span,
html:not([data-theme="light"]) .form-grid span,
html:not([data-theme="light"]) .product-meta-row,
html:not([data-theme="light"]) .mini-testimonial cite,
html:not([data-theme="light"]) .boutique-hero-copy p,
html:not([data-theme="light"]) .boutique-hero-stats span{
  color:var(--text-tertiary-strong);
}
html:not([data-theme="light"]) .price,
html:not([data-theme="light"]) .product-price-value,
html:not([data-theme="light"]) .product-badge,
html:not([data-theme="light"]) .meta-pill{
  color:var(--price-strong);
}
html:not([data-theme="light"]) .filter-search,
html:not([data-theme="light"]) .filter-sort,
html:not([data-theme="light"]) .contact-form input,
html:not([data-theme="light"]) .contact-form textarea,
html:not([data-theme="light"]) .checkout-form input,
html:not([data-theme="light"]) .checkout-form textarea,
html:not([data-theme="light"]) .newsletter-form input,
html:not([data-theme="light"]) .qty-box,
html:not([data-theme="light"]) .qty-inline button{
  background:var(--field-bg-strong);
  border-color:var(--field-border-strong);
  color:var(--text);
}
html:not([data-theme="light"]) .filter-search::placeholder,
html:not([data-theme="light"]) .contact-form input::placeholder,
html:not([data-theme="light"]) .contact-form textarea::placeholder,
html:not([data-theme="light"]) .checkout-form input::placeholder,
html:not([data-theme="light"]) .checkout-form textarea::placeholder,
html:not([data-theme="light"]) .newsletter-form input::placeholder{
  color:var(--text-tertiary-strong);
  opacity:1;
}
html:not([data-theme="light"]) .btn-ghost,
html:not([data-theme="light"]) .link-chip,
html:not([data-theme="light"]) .cart-pill,
html:not([data-theme="light"]) .theme-toggle{
  color:var(--text);
  border-color:var(--field-border-strong);
}

@media (max-width: 980px){
  .product-detail{
    grid-template-columns:1fr;
  }
}

@media (max-width: 720px){
  .boutique-page .boutique-hero{
    padding:18px 0 8px;
  }
  .boutique-page .boutique-hero-stats{
    grid-template-columns:repeat(3,minmax(92px,1fr));
    max-width:none;
  }
  .product-gallery-main{
    aspect-ratio:1 / 1.02;
  }
  .product-gallery-main img{
    max-height:none;
  }
}

/* ============================================================
   FINAL FIXES — responsive (currency, mobile polish)
   ============================================================ */

/* Desktop/laptop: align currency with the other nav utilities */
.currency-switcher{margin-left:4px}

/* Tablet: keep currency compact */
@media (max-width: 980px){
  .currency-switcher{padding:2px;gap:0}
  .currency-btn{padding:5px 8px;font-size:.66rem;letter-spacing:.02em}
  .nav-actions{flex-wrap:wrap;gap:6px;justify-content:flex-end}
}

/* Phone: currency stays visible, goes to second row if needed */
@media (max-width: 720px){
  .currency-switcher{order:4;margin-left:0}
  .lang-switcher{order:3}
  .cart-pill{order:5}
  .theme-toggle{order:2}
  .link-chip{order:1;display:none}
  .nav-actions{gap:6px}
  .currency-btn{padding:5px 7px;font-size:.62rem}
}

/* Very small phones: abbreviate currency buttons to symbols */
@media (max-width: 400px){
  .currency-btn{padding:4px 6px;font-size:.6rem}
}

/* Product gallery responsive cap */
@media (max-width: 980px){
  .product-gallery-main img{max-height:520px}
}
@media (max-width: 720px){
  .product-gallery-main img{max-height:420px;aspect-ratio:4/4.4}
  .product-gallery-thumbs{grid-template-columns:repeat(4,1fr);gap:6px}
}

/* RTL: currency switcher flows correctly */
[dir="rtl"] .currency-switcher{flex-direction:row-reverse}
[dir="rtl"] .nav-actions{flex-direction:row-reverse}


/* ============================================================
   PHASE 4.0 — LAUNCH FIXES (April 2026, mobile comfort)
   Strictly additive below existing rules. Scoped to phones.
   ============================================================ */

/* Compact boutique filter bar for phones.
   Previously: chips row + full-width search + full-width sort = 3
   vertical rows eating the viewport while sticky.
   Now: chips scroll horizontally, search + sort share a single row. */
@media (max-width: 720px){
  .boutique-filter-bar{
    padding:8px 10px !important;
    gap:8px !important;
    border-radius:16px !important;
    margin-bottom:16px !important;
  }
  .boutique-filter-bar .filter-chips{
    overflow-x:auto;
    flex-wrap:nowrap;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    gap:6px;
    padding-bottom:2px;
  }
  .boutique-filter-bar .filter-chips::-webkit-scrollbar{display:none}
  .boutique-filter-bar .filter-chips .chip{
    flex:0 0 auto;
    white-space:nowrap;
    padding:6px 11px;
    font-size:.78rem;
  }
  .boutique-filter-bar .filter-controls{
    display:grid !important;
    grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) !important;
    gap:8px !important;
    width:100%;
  }
  .boutique-filter-bar .filter-search,
  .boutique-filter-bar .filter-sort{
    width:100% !important;
    min-width:0 !important;
    padding:9px 12px !important;
    font-size:.86rem;
    min-height:40px;
  }
  .boutique-filter-bar .filter-sort{padding-right:30px !important}
}

/* Very small phones (360–400px): sort select wraps under search */
@media (max-width: 400px){
  .boutique-filter-bar .filter-controls{
    grid-template-columns:1fr !important;
  }
}

/* Mobile hero — tighten homepage hero one more notch so there is no
   empty band between headline and the first products section. */
@media (max-width: 720px){
  .hero-home{padding:14px 0 22px !important}
  .hero-home .hero-copy h1{margin-top:6px}
  .hero-home .hero-copy p{margin-bottom:12px}
  .hero-home .hero-metrics{margin-top:14px}
}

/* Prevent any horizontal scroll caused by RTL mirrored fixed helpers */
html[dir="rtl"] body{overflow-x:hidden}

/* RTL — currency switcher retains correct order in mobile menu drawer */
@media (max-width: 720px){
  [dir="rtl"] .mobile-nav-utility .currency-switcher{flex-direction:row}
  [dir="rtl"] .mobile-nav-utility{text-align:right}
}

/* Safety: never let the floating contact stack appear above an open
   mobile menu (cascade from style.css is already sufficient, this is
   a defensive duplicate for the specific phone breakpoint). */
@media (max-width: 980px){
  body.menu-open .floating-contact-stack,
  body.menu-open .chatbot-shell,
  body.menu-open .site-toast{display:none !important}
}

/* ============================================================
   APRIL 2026 RESPONSIVE ROOT + MOBILE COMMERCE STABILITY PATCH
   Uses JS-added html/body classes while keeping CSS as source of truth.
   ============================================================ */
:root{
  --header-icon-color:#2a160f;
  --header-control-bg:rgba(255,255,255,.82);
  --header-control-border:rgba(60,38,25,.14);
  --dropdown-bg:#fffaf3;
  --dropdown-text:#2a160f;
}
html:not([data-theme="light"]),
[data-theme="dark"]{
  --header-icon-color:#f4e8d7;
  --header-control-bg:rgba(18,13,10,.9);
  --header-control-border:rgba(244,232,215,.18);
  --dropdown-bg:#1c130e;
  --dropdown-text:#f4e8d7;
}

html,
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}
*,*::before,*::after{box-sizing:border-box}
img,svg,video,canvas{max-width:100%}
main,section,.container,.container-wide,.nav-shell,.boutique-shell,.boutique-filter-bar,.boutique-hero,.boutique-catalog-shell,.catalogue-area{min-width:0}

/* Compact dropdown utilities: currency + language */
.utility-dropdown,
.utility-dropdown.lang-switcher,
.utility-dropdown.currency-switcher{
  position:relative;
  display:inline-block;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  min-width:0;
  z-index:90;
}
.utility-dropdown-trigger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:40px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--header-control-border);
  background:var(--header-control-bg);
  color:var(--header-icon-color);
  font-weight:800;
  font-size:.72rem;
  letter-spacing:.06em;
  line-height:1;
  text-transform:uppercase;
  white-space:nowrap;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}
.utility-caret{font-size:.7rem;opacity:.72;line-height:1;transition:transform .2s ease}
.utility-dropdown.is-open .utility-caret{transform:rotate(180deg)}
.utility-dropdown-menu{
  position:absolute;
  inset-inline-end:0;
  top:calc(100% + 8px);
  min-width:112px;
  display:grid;
  gap:4px;
  padding:6px;
  border-radius:16px;
  border:1px solid var(--header-control-border);
  background:var(--dropdown-bg);
  color:var(--dropdown-text);
  box-shadow:0 24px 50px rgba(0,0,0,.24);
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px);
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index:120;
}
.utility-dropdown.is-open .utility-dropdown-menu{
  opacity:1;
  visibility:visible;
  transform:none;
  pointer-events:auto;
}
.utility-dropdown-menu button,
.utility-dropdown-menu .currency-btn,
.utility-dropdown-menu .lang-btn{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:34px;
  padding:8px 10px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:var(--dropdown-text);
  font-size:.74rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.utility-dropdown-menu button:hover,
.utility-dropdown-menu button.active{
  background:linear-gradient(135deg,var(--gold-2),var(--gold));
  color:#150f0c;
}
[dir="rtl"] .utility-dropdown-menu{inset-inline-start:0;inset-inline-end:auto}

/* Icon-only theme toggle and robust hamburger contrast */
.theme-toggle{
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  min-height:40px !important;
  padding:0 !important;
  display:inline-grid !important;
  place-items:center !important;
  border-radius:999px !important;
  border:1px solid var(--header-control-border) !important;
  background:var(--header-control-bg) !important;
  color:var(--header-icon-color) !important;
  line-height:1 !important;
}
.theme-toggle .theme-toggle-label{display:none !important}
.theme-toggle .theme-toggle-icon{
  width:auto !important;
  height:auto !important;
  border:0 !important;
  background:transparent !important;
  color:currentColor !important;
  font-size:1.05rem !important;
}
.nav-toggle{
  border:1px solid var(--header-control-border) !important;
  background:var(--header-control-bg) !important;
  color:var(--header-icon-color) !important;
  box-shadow:0 10px 24px rgba(0,0,0,.1);
}
.nav-toggle span{
  background:var(--header-icon-color) !important;
  opacity:1 !important;
}

/* Root-class layout guarantees */
html.is-phone .container,
html.is-phone .container-wide,
html.is-phone .nav-shell,
html.is-phone .boutique-filter-bar,
html.is-phone .boutique-hero,
html.is-phone .boutique-shell,
html.is-phone .boutique-catalog-shell{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
}
html.is-phone .container,
html.is-phone .container-wide{padding-inline:10px !important}
html.is-phone .catalogue-grid > *,
html.is-phone .featured-grid > *,
html.is-phone .product-card{
  min-width:0 !important;
  max-width:100% !important;
}
/* All phones: SINGLE COLUMN — requirement is 1 column under 768px */
html.is-small-phone .catalogue-grid,
html.is-small-phone .featured-grid,
html.is-phone .catalogue-grid,
html.is-phone .featured-grid{
  grid-template-columns:1fr !important;
}
html.is-tablet .catalogue-grid,
html.is-tablet .featured-grid{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}

/* Mobile header/nav polish */
body.mobile-layout .topbar{display:none !important}
html.is-phone .site-header{overflow:visible !important}
html.is-phone .nav-shell{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto auto !important;
  min-height:56px !important;
  padding:7px 10px !important;
  gap:8px !important;
}
html.is-phone .brand{gap:8px !important;min-width:0 !important}
html.is-phone .brand-mark{width:34px !important;height:34px !important;border-radius:11px !important}
html.is-phone .brand-text{min-width:0 !important;max-width:calc(100vw - 150px) !important}
html.is-phone .brand-text strong{
  display:block;
  font-size:.86rem !important;
  line-height:1.05;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
html.is-phone .brand-text small{display:none !important}
html.is-phone .nav-toggle{
  display:inline-flex !important;
  width:38px !important;
  height:38px !important;
  border-radius:13px !important;
  align-items:center !important;
  justify-content:center !important;
  gap:4px !important;
  padding:0 !important;
}
html.is-phone .nav-toggle span{width:17px !important;height:2px !important;border-radius:999px !important}
html.is-phone .nav-actions{grid-column:3 !important;display:flex !important;gap:0 !important;min-width:0 !important}
html.is-phone .nav-actions > :not(.cart-pill){display:none !important}
html.is-phone .cart-pill{
  min-height:38px !important;
  padding:7px 10px !important;
  border-radius:999px !important;
  font-size:0 !important;
  gap:0 !important;
}
html.is-phone .cart-pill::before{content:'🛒';font-size:1rem;line-height:1}
html.is-phone .cart-count{min-width:20px !important;height:20px !important;font-size:.68rem !important;margin-left:4px}
html.is-phone .main-nav{
  position:fixed !important;
  top:calc(var(--header-offset, 64px) + 6px) !important;
  left:max(10px, env(safe-area-inset-left)) !important;
  right:max(10px, env(safe-area-inset-right)) !important;
  max-width:calc(100vw - 20px) !important;
  max-height:calc(100dvh - var(--header-offset, 64px) - 20px) !important;
  overflow:auto !important;
  padding:16px !important;
  border-radius:22px !important;
  background:color-mix(in srgb, var(--surface) 96%, #000 4%) !important;
  border:1px solid var(--header-control-border) !important;
  box-shadow:0 28px 60px rgba(0,0,0,.42) !important;
  z-index:80 !important;
}
html[data-theme="light"].is-phone .main-nav{background:rgba(255,250,243,.98) !important}
html.is-phone .main-nav ul{gap:12px !important}
html.is-phone .main-nav a{font-size:.96rem !important;padding:3px 0 !important;color:var(--text) !important}
html.is-phone .mobile-nav-utility{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:9px !important;
  margin-top:12px !important;
  padding-top:12px !important;
  border-top:1px solid var(--header-control-border) !important;
}
html.is-phone .mobile-nav-utility[hidden]{display:none !important}
html.is-phone .mobile-nav-utility > *,
html.is-phone .mobile-nav-utility .theme-toggle,
html.is-phone .mobile-nav-utility .link-chip,
html.is-phone .mobile-nav-utility .utility-dropdown{
  width:100% !important;
  display:flex !important;
  justify-content:center !important;
}
html.is-phone .mobile-nav-utility .utility-dropdown{display:block !important}
html.is-phone .mobile-nav-utility .utility-dropdown-trigger{width:100% !important;justify-content:space-between !important;min-height:42px !important}
html.is-phone .mobile-nav-utility .utility-dropdown-menu{
  position:static !important;
  width:100% !important;
  min-width:0 !important;
  margin-top:6px !important;
  box-shadow:none !important;
}
html.is-phone .mobile-nav-utility .theme-toggle{min-width:100% !important;border-radius:16px !important}
html.is-phone .mobile-nav-utility .link-chip{min-height:42px !important;border-radius:16px !important;align-items:center !important}
body.menu-open .floating-contact-stack,
body.menu-open .chatbot-shell,
body.menu-open .site-toast{display:none !important}

/* Boutique-first compact product discovery */
html.is-phone .hero,
html.is-phone .page-hero,
html.is-phone .boutique-hero{padding-block:14px 8px !important}
html.is-phone .section.boutique-shell{padding-block:8px 74px !important}
html.is-phone .boutique-hero-inner{gap:8px !important;padding-inline:10px !important}
html.is-phone .boutique-hero-copy h1{font-size:clamp(1.55rem,7vw,2.05rem) !important;line-height:1 !important;margin-bottom:8px !important;max-width:100% !important}
html.is-phone .boutique-hero-copy p{font-size:.88rem !important;line-height:1.45 !important;margin-bottom:0 !important;max-width:100% !important}
html.is-phone .eyebrow{font-size:.62rem !important;letter-spacing:.16em !important;margin-bottom:8px !important}
html.is-phone .boutique-hero-stats{
  display:flex !important;
  gap:7px !important;
  overflow-x:auto !important;
  max-width:100% !important;
  padding-bottom:2px !important;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
html.is-phone .boutique-hero-stats::-webkit-scrollbar{display:none}
html.is-phone .boutique-hero-stats div{flex:0 0 auto !important;min-width:84px !important;padding:9px 10px !important;border-radius:15px !important}
html.is-phone .boutique-hero-stats strong{font-size:.92rem !important}
html.is-phone .boutique-hero-stats span{font-size:.68rem !important}
html.is-phone .boutique-catalog-shell{padding:8px !important;border-radius:18px !important;gap:10px !important}
html.is-phone .boutique-filter-bar{
  display:grid !important;
  gap:7px !important;
  padding:7px !important;
  margin:0 !important;
  border-radius:15px !important;
  overflow:hidden !important;
}
html.is-phone .filter-chips{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:6px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  max-width:100% !important;
  min-width:0 !important;
  padding:0 0 2px !important;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
html.is-phone .filter-chips::-webkit-scrollbar{display:none}
html.is-phone .filter-chips .chip{
  flex:0 0 auto !important;
  white-space:nowrap !important;
  padding:6px 10px !important;
  border-radius:999px !important;
  font-size:.73rem !important;
  line-height:1 !important;
}
html.is-phone .filter-controls{
  display:grid !important;
  width:100% !important;
  gap:7px !important;
  min-width:0 !important;
}
html.is-small-phone .filter-controls{grid-template-columns:1fr !important}
html.is-phone:not(.is-small-phone) .filter-controls{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr) !important}
html.is-phone .filter-search,
html.is-phone .filter-sort{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  min-height:38px !important;
  padding:8px 10px !important;
  border-radius:13px !important;
  font-size:.8rem !important;
  line-height:1.15 !important;
}
html.is-phone .filter-sort{padding-right:26px !important}
html.is-phone .catalogue-area{gap:10px !important}
html.is-phone .catalogue-grid,
html.is-phone .featured-grid{gap:9px !important;align-items:stretch !important}
html.is-phone .product-card{border-radius:17px !important;overflow:hidden !important;box-shadow:0 12px 26px rgba(73,45,26,.08) !important}
html.is-phone .product-media{aspect-ratio:1 / 1.05 !important}
html.is-phone .product-badge,
html.is-phone .badge-oos{top:8px !important;left:8px !important;padding:4px 7px !important;font-size:.58rem !important;border-radius:999px !important}
html.is-phone .product-body{padding:9px !important;gap:6px !important}
html.is-phone .product-meta-top{gap:5px !important;align-items:flex-start !important}
html.is-phone .product-collection{font-size:.58rem !important;letter-spacing:.08em !important;line-height:1.15 !important;max-width:58%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.is-phone .price{font-size:.82rem !important;line-height:1.05 !important;white-space:nowrap !important}
html.is-phone .price-original{font-size:.68rem !important;margin-top:1px !important;white-space:nowrap !important}
html.is-phone .product-card h3{
  font-size:.86rem !important;
  line-height:1.18 !important;
  margin:0 !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
html.is-phone .boutique-page .product-card p,
html.is-phone body.boutique-page .product-card p{display:none !important}
html.is-phone .product-actions{display:grid !important;gap:6px !important;min-width:0 !important}
html.is-small-phone .product-actions{grid-template-columns:1fr !important}
html.is-phone:not(.is-small-phone) .product-actions{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
html.is-phone .product-actions .btn{
  width:100% !important;
  min-width:0 !important;
  min-height:34px !important;
  padding:7px 5px !important;
  border-radius:11px !important;
  font-size:.68rem !important;
  line-height:1.05 !important;
  gap:4px !important;
}
html.is-phone .conversion-strip{order:2;margin-top:8px !important;padding:12px !important;border-radius:16px !important;grid-template-columns:1fr !important;gap:8px !important}

/* Floating helpers: safe area, no overflow, no CTA coverage */
html.is-phone .chatbot-shell,
html.is-phone .floating-contact-stack{
  right:max(10px, env(safe-area-inset-right)) !important;
  left:auto !important;
  max-width:calc(100vw - 20px) !important;
}
html.is-phone .chatbot-shell{bottom:max(12px, env(safe-area-inset-bottom)) !important}
html.is-phone .floating-contact-stack{bottom:calc(max(12px, env(safe-area-inset-bottom)) + 54px) !important;gap:8px !important}
html.is-phone .chatbot-toggle,
html.is-phone .sticky-contact-btn{
  width:44px !important;
  height:44px !important;
  min-width:44px !important;
  min-height:44px !important;
  padding:0 !important;
  border-radius:999px !important;
  justify-content:center !important;
  overflow:hidden !important;
}
html.is-phone .chatbot-toggle .label,
html.is-phone .sticky-contact-btn span:not(.dot){display:none !important}
html.is-phone .chatbot-toggle .dot,
html.is-phone .sticky-contact-btn .dot{width:10px !important;height:10px !important;margin:0 !important}
html.is-phone .sticky-contact-panel,
html.is-phone .chatbot-panel{
  width:min(330px, calc(100vw - 20px)) !important;
  right:0 !important;
  left:auto !important;
}
html.is-phone .chatbot-panel{bottom:58px !important}
html.is-phone .sticky-contact-panel{bottom:52px !important}
html[dir="rtl"].is-phone .chatbot-shell,
html[dir="rtl"].is-phone .floating-contact-stack{right:auto !important;left:max(10px, env(safe-area-inset-left)) !important}
html[dir="rtl"].is-phone .sticky-contact-panel,
html[dir="rtl"].is-phone .chatbot-panel{right:auto !important;left:0 !important}

@media (min-width:768px) and (max-width:1024px){
  .nav-shell{gap:12px !important}
  .utility-dropdown-trigger{padding-inline:10px;min-height:38px}
  .theme-toggle{width:38px !important;height:38px !important;min-width:38px !important;min-height:38px !important}
}

/* ============================================================
   PRODUCTION MOBILE SYSTEM — clean cascade, no conflicting 1-col rules
   ============================================================ */
@media (max-width:980px){
  html,body{width:100%;max-width:100%;overflow-x:hidden;}
  .site-header{z-index:120;}
  .nav-shell{position:relative;}
  .nav-toggle{display:inline-flex !important;}
  .main-nav{
    position:fixed !important;
    top:calc(var(--header-offset, 64px) + 10px) !important;
    left:12px !important;
    right:12px !important;
    width:auto !important;
    max-width:calc(100vw - 24px) !important;
    max-height:calc(100dvh - var(--header-offset, 64px) - 24px) !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    padding:16px !important;
    border-radius:24px !important;
    background:var(--surface) !important;
    border:1px solid var(--border-soft) !important;
    box-shadow:0 24px 70px rgba(0,0,0,.22) !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    transform:translateY(-10px) scale(.98) !important;
    transition:opacity .22s ease, transform .22s ease, visibility .22s ease !important;
    z-index:121 !important;
  }
  html[data-theme="dark"] .main-nav{background:#17110D !important;box-shadow:0 24px 70px rgba(0,0,0,.52) !important;}
  body.menu-open .main-nav{opacity:1 !important;visibility:visible !important;pointer-events:auto !important;transform:none !important;}
  body.menu-open::before{content:"";position:fixed;inset:0;background:rgba(15,11,8,.36);z-index:110;backdrop-filter:blur(3px);}
  .main-nav ul{display:grid !important;grid-template-columns:1fr !important;gap:4px !important;margin:0 !important;padding:0 !important;}
  .main-nav a{display:flex !important;align-items:center !important;min-height:42px !important;padding:8px 6px !important;border-bottom:1px solid var(--border-soft);}
  .mobile-nav-utility{display:grid !important;grid-template-columns:1fr !important;gap:10px !important;margin-top:14px !important;padding-top:14px !important;border-top:1px solid var(--border-soft) !important;}
  .mobile-nav-utility[hidden]{display:none !important;}
  .mobile-nav-utility .utility-dropdown,.mobile-nav-utility .lang-switcher,.mobile-nav-utility .currency-switcher,.mobile-nav-utility .theme-toggle,.mobile-nav-utility .link-chip{width:100% !important;max-width:100% !important;min-width:0 !important;}
  .mobile-nav-utility .utility-dropdown-trigger{width:100% !important;min-height:44px !important;justify-content:space-between !important;}
  .mobile-nav-utility .utility-dropdown-menu{position:static !important;width:100% !important;min-width:0 !important;max-width:100% !important;margin-top:8px !important;box-shadow:none !important;transform:none !important;}
  .mobile-nav-utility .utility-dropdown:not(.open) .utility-dropdown-menu{display:none !important;}
  .mobile-nav-utility .utility-dropdown.open .utility-dropdown-menu{display:grid !important;opacity:1 !important;visibility:visible !important;pointer-events:auto !important;}
  body.menu-open .floating-contact-stack,body.menu-open .chatbot-shell{display:none !important;}
}
@media (max-width:767px){
  :root{--container:min(100% - 24px, 100%);--container-wide:min(100% - 24px, 100%);}
  .section{padding:52px 0;}
  h1{font-size:clamp(2.05rem, 10vw, 3.2rem);}
  h2{font-size:clamp(1.65rem, 8vw, 2.5rem);}
  p{font-size:.95rem;}
  .nav-shell{min-height:62px;padding:8px 0 !important;}
  .brand-text strong{font-size:.95rem;line-height:1.05;}
  .brand-text small{display:none;}
  .nav-actions > :not(.cart-pill):not(.currency-switcher){display:none !important;}
  .cart-pill{padding:8px 10px !important;min-height:38px;font-size:.82rem;}
  .hero,.page-hero,.boutique-hero{padding:34px 0 24px !important;}
  .hero-grid,.page-hero-grid,.product-detail,.cart-layout,.checkout-layout,.contact-layout{grid-template-columns:1fr !important;}
  .filter-controls{display:grid !important;grid-template-columns:1fr !important;gap:8px !important;width:100% !important;}
  .filter-search,.filter-sort{width:100% !important;min-width:0 !important;}
  .filter-chips{display:flex !important;flex-wrap:nowrap !important;gap:8px !important;overflow-x:auto !important;scrollbar-width:none !important;-webkit-overflow-scrolling:touch;}
  .filter-chips::-webkit-scrollbar{display:none;}
  .floating-contact-stack,.chatbot-shell{position:fixed !important;right:max(12px,env(safe-area-inset-right)) !important;left:auto !important;z-index:70 !important;}
  .chatbot-shell{bottom:max(12px,env(safe-area-inset-bottom)) !important;}
  .floating-contact-stack{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 64px) !important;gap:8px !important;}
  .chatbot-panel,.sticky-contact-panel{width:min(340px,calc(100vw - 24px)) !important;right:0 !important;left:auto !important;}
  html[dir="rtl"] .floating-contact-stack,html[dir="rtl"] .chatbot-shell{right:auto !important;left:max(12px,env(safe-area-inset-left)) !important;}
  html[dir="rtl"] .chatbot-panel,html[dir="rtl"] .sticky-contact-panel{right:auto !important;left:0 !important;}
  body.boutique-page main,body.boutique-page .container,body.boutique-page .container-wide,body.boutique-page .boutique-shell,body.boutique-page .boutique-catalog-shell,body.boutique-page .catalogue-area{max-width:100% !important;min-width:0 !important;overflow-x:clip !important;}
  body.boutique-page .boutique-catalog-shell{padding:12px !important;border-radius:22px !important;}
  body.boutique-page .boutique-filter-bar{position:relative !important;top:auto !important;z-index:1 !important;padding:12px !important;border-radius:18px !important;}
}
@media (min-width:340px) and (max-width:767px){
  body.boutique-page .catalogue-grid,
  body.boutique-page .featured-grid,
  body.boutique-page .catalogue-grid[data-boutique-grid],
  html.is-phone body.boutique-page .catalogue-grid,
  html.is-phone body.boutique-page .featured-grid,
  html.is-phone body.boutique-page .catalogue-grid[data-boutique-grid]{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    align-items:stretch !important;
  }
  body.boutique-page .product-card{min-width:0 !important;max-width:100% !important;border-radius:16px !important;}
  body.boutique-page .product-media{aspect-ratio:1 / 1.04 !important;}
  body.boutique-page .product-body{padding:10px !important;gap:6px !important;min-width:0 !important;}
  body.boutique-page .product-card h3{font-size:.86rem !important;line-height:1.16 !important;margin:0 !important;display:-webkit-box !important;-webkit-line-clamp:2 !important;-webkit-box-orient:vertical !important;overflow:hidden !important;}
  body.boutique-page .product-card p{display:none !important;}
  body.boutique-page .product-collection{font-size:.58rem !important;letter-spacing:.08em !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;}
  body.boutique-page .price{font-size:.94rem !important;white-space:nowrap !important;}
  body.boutique-page .price-original{font-size:.68rem !important;white-space:nowrap !important;}
  body.boutique-page .product-actions{display:grid !important;grid-template-columns:1fr !important;gap:6px !important;margin-top:5px !important;min-width:0 !important;}
  body.boutique-page .product-actions .btn{width:100% !important;min-width:0 !important;min-height:34px !important;padding:7px 6px !important;font-size:.68rem !important;border-radius:12px !important;white-space:nowrap !important;}
}
@media (max-width:339px){
  body.boutique-page .catalogue-grid,body.boutique-page .featured-grid,body.boutique-page .catalogue-grid[data-boutique-grid]{grid-template-columns:1fr !important;}
}
@media (min-width:768px) and (max-width:1024px){
  body.boutique-page .catalogue-grid,body.boutique-page .featured-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
}
