/* Rainbow Gold Covering — original customer mobile system, October 2026.
   ALL presentation rules live under a 767px media query. Desktop is untouched.
   Functional product, cart, account and payment behavior stays in the existing JS. */
.mobile-shop-nav,.mobile-shop-intro{display:none}
@media (max-width:767px) {
  :root{--mobile-ink:#231c1a;--mobile-subtle:#847b75;--mobile-canvas:#fffdfa;--mobile-stroke:#ece4df;--mobile-gold:#bf9855}
  html{scroll-padding-top:132px}
  body{background:var(--mobile-canvas);color:var(--mobile-ink);-webkit-tap-highlight-color:transparent}
  .container{width:calc(100% - 32px);max-width:100%;margin-inline:auto}
  button,a,input,select{touch-action:manipulation}
  :where(a,button,input,select,textarea):focus-visible{outline:3px solid var(--gold);outline-offset:3px}
  .section{padding-block:36px}
  .section-kicker{font-size:calc(10px * var(--type-scale));letter-spacing:.15em}
  .section h2{font:600 clamp(calc(24px * var(--type-scale)),calc(6.4vw * var(--type-scale)),calc(30px * var(--type-scale)))/1.17 var(--font-heading);letter-spacing:-.035em}
  .btn{min-height:44px;font-size:calc(12px * var(--type-scale))}
  .btn-dark{background:var(--red);border-color:var(--red);color:white}

  /* Real storefront controls, two measured rows and no cloned search forms. */
  .storefront-topbar{background:rgba(255,253,250,.97);border-bottom:1px solid #f1e8e1;box-shadow:0 2px 15px rgba(80,20,28,.035)}
  .storefront-topbar .nav{
    display:block!important;position:static!important;width:100%!important;max-width:100%!important;
    min-height:0!important;height:auto!important;margin:0!important;padding:8px 16px 12px!important;
  }
  .storefront-header-row{
    display:grid!important;grid-template-columns:46px minmax(0,1fr) 96px!important;
    grid-template-rows:52px 48px;column-gap:4px;row-gap:8px;
    align-items:center!important;justify-content:initial!important;
    position:relative!important;min-height:0!important;padding:0!important;width:100%!important;
  }
  .storefront-header-left{grid-column:1;grid-row:1;display:flex!important;align-items:center!important;
    min-width:0!important;min-height:0!important;flex:none!important}
  .storefront-header-row .menu-toggle{
    position:static!important;transform:none!important;left:auto!important;top:auto!important;
    display:grid!important;place-items:center;width:44px!important;height:44px!important;flex:none!important;
    border-radius:14px!important;border:1px solid var(--mobile-stroke);background:white;
  }
  .storefront-header-row .menu-toggle svg{width:23px!important;height:23px!important}
  .storefront-header-row .logo{
    grid-column:2;grid-row:1;position:static!important;transform:none!important;
    left:auto!important;top:auto!important;z-index:1;display:flex!important;flex-direction:row!important;
    justify-content:center!important;align-items:center!important;gap:5px!important;
    margin:0!important;white-space:nowrap;text-align:left!important;min-width:0;
  }
  .storefront-header-row .logo .brand-logo{width:30px!important;height:30px!important;flex:0 0 30px}
  .storefront-header-row .logo strong{font-size:clamp(calc(10px * var(--type-scale)),calc(3.1vw * var(--type-scale)),calc(14px * var(--type-scale)))!important;letter-spacing:.045em!important;line-height:1.03}
  .storefront-header-row .logo small{font-size:clamp(calc(5px * var(--type-scale)),calc(1.72vw * var(--type-scale)),calc(7px * var(--type-scale)))!important;letter-spacing:.15em!important;margin-top:3px}
  .storefront-header-right{display:contents!important}
  .storefront-header-actions{
    grid-column:3;grid-row:1;display:flex!important;align-items:center!important;justify-self:end!important;
    justify-content:flex-end!important;gap:3px!important;width:auto!important;margin:0!important;
    position:static!important;transform:none!important;padding:0!important;
  }
  .storefront-header-actions .icon-button{
    display:grid;place-items:center;width:44px!important;height:44px!important;flex:0 0 44px!important;
    border:1px solid var(--mobile-stroke);border-radius:14px!important;background:#fff;
  }
  .storefront-header-actions .icon-button svg{width:20px!important;height:20px!important}
  .storefront-header-actions #wishlistToggle{display:none!important}
  .storefront-search-form,.storefront-header-right .storefront-search-form{
    grid-column:1/-1;grid-row:2;display:flex!important;width:100%!important;max-width:none!important;
    min-width:0!important;height:48px!important;flex:none!important;margin:0!important;
    border-radius:15px!important;border:1px solid #eadfd5!important;background:#fff!important;
    padding:3px 5px 3px 15px!important;box-shadow:none!important;
  }
  .storefront-search-form input[type="search"]{font-size:calc(14px * var(--type-scale))!important}
  .storefront-search-form .search-tool-button{width:34px;height:38px;flex-basis:34px}
  .storefront-search-form .search-submit{width:39px;height:39px;flex-basis:39px;border-radius:12px}
  .storefront-topbar .search-feedback{font-size:calc(12px * var(--type-scale));margin:6px 0 0;padding:4px 1px}
  .icon-count{font-size:calc(10px * var(--type-scale))}
  .shop-drawer{padding:19px 19px calc(25px + env(safe-area-inset-bottom));background:#fffefa}
  .drawer-type-link{min-height:58px;border-radius:15px!important}
  .drawer-type-thumb,.drawer-type-fallback{border-radius:12px!important}
  .drawer-quicklinks a,.drawer-quicklinks button{min-height:48px;font-size:calc(13px * var(--type-scale))!important}

  /* Editorial, uniquely Rainbow welcome caption. Hidden when cart or product page. */
  .mobile-shop-intro{display:block;padding:21px 0 14px;background:var(--mobile-canvas)}
  .mobile-shop-intro .mobile-eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--red);
    font-size:calc(10px * var(--type-scale));font-weight:800;letter-spacing:.14em;text-transform:uppercase}
  .mobile-shop-intro .mobile-eyebrow::before{content:"";width:18px;height:2px;background:var(--mobile-gold)}
  .mobile-shop-intro h1{margin:9px 0 3px;font:500 clamp(calc(28px * var(--type-scale)),calc(7.8vw * var(--type-scale)),calc(38px * var(--type-scale)))/1.12 var(--font-heading);letter-spacing:-.048em}
  .mobile-shop-intro h1 em{font-style:normal;color:var(--red)}
  .mobile-shop-intro p{margin:0;color:#7e736d;font-size:calc(12px * var(--type-scale));line-height:1.7}

  /* Brand-approved live promotion photographs: no invented discounts. */
  .rotating-feature{padding:0 0 20px;background:var(--mobile-canvas)}
  .rotating-feature .container{width:calc(100% - 32px)}
  .rotating-feature-frame{height:clamp(188px,57vw,290px)!important;
    border:1px solid #eadfd5;border-radius:22px!important;box-shadow:0 12px 26px rgba(61,23,11,.075);
    background:linear-gradient(145deg,#fcf6ed,#f5e8da)!important}
  .promotion-image-button img{object-fit:contain!important}
  .promotion-carousel-arrow{width:34px!important;height:34px!important;border-radius:50%!important;
    background:rgba(255,255,255,.9)!important}
  .promotion-carousel-dots{bottom:9px!important}

  /* Real category tiles become an image-first, scrollable rail, not a copied screen. */
  .live-products{padding:21px 0 46px!important;background:var(--mobile-canvas);scroll-margin-top:135px}
  .live-products .section-head{display:flex!important;align-items:center!important;
    justify-content:space-between!important;gap:10px;margin:0 0 13px!important}
  .live-products .section-head>div{min-width:0}
  .live-products .section-head #productHeading{font:600 clamp(calc(22px * var(--type-scale)),calc(6.4vw * var(--type-scale)),calc(29px * var(--type-scale)))/1.15 var(--font-heading)!important;
    letter-spacing:-.04em;margin:4px 0 0!important;overflow-wrap:anywhere}
  .live-products #browseAllProducts{flex:0 0 auto;min-width:0;max-width:39%;min-height:39px;
    padding:9px 11px!important;font-size:calc(11px * var(--type-scale))!important;white-space:normal;text-align:center;
    color:var(--red);background:#fff;border:1px solid #ead9cb;border-radius:999px}
  .catalog-layout,.catalog-layout.catalog-layout--filters-left{display:block!important;grid-template-columns:minmax(0,1fr)!important}
  .catalog-main{min-width:0!important}
  .catalog-filter-sidebar{position:static!important;margin-bottom:12px}
  .catalog-filter-sidebar-inner{padding:0!important;background:transparent!important;border:0!important;
    box-shadow:none!important;border-radius:0!important}
  .catalog-filter-sidebar .section-head{display:flex!important;margin:0 0 12px!important}
  .catalog-filter-sidebar .product-toolbar{margin:4px 0 14px!important;padding:0!important;
    border:0!important;display:flex;align-items:center;gap:9px}
  .product-status{font-size:calc(11px * var(--type-scale));line-height:1.55}
  .catalog-main .product-grid,.catalog-layout--filters-left .catalog-main .product-grid,.catalog-layout .product-grid{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 12px!important;min-width:0}
  .catalog-main .product-grid:has(> .category-tile){
    display:grid!important;grid-template-columns:none!important;grid-auto-flow:column!important;
    grid-auto-columns:clamp(116px,34vw,149px)!important;gap:15px!important;
    overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;
    padding:3px 1px 14px;scrollbar-width:none}
  .catalog-main .product-grid:has(> .category-tile)::-webkit-scrollbar{display:none}
  .product-grid .category-tile{scroll-snap-align:start;display:flex!important;flex-direction:column;
    text-align:center!important;min-width:0;border:0!important;box-shadow:none!important;
    background:transparent!important;border-radius:0!important;overflow:visible!important;padding:0!important}
  .product-grid .category-tile .category-tile-image{width:100%;aspect-ratio:1;
    border-radius:50%!important;overflow:hidden;border:3px solid white;
    outline:1px solid #e9dacf;box-shadow:0 5px 15px rgba(58,22,18,.08);
    background:#f6ede6}
  .product-grid .category-tile .category-tile-image img{height:100%;width:100%;object-fit:cover}
  .category-tile-copy{display:block!important;text-align:center;padding:10px 0 0!important}
  .category-tile-copy strong{display:block!important;font:700 calc(12px * var(--type-scale))/1.3 var(--font-body)!important}
  .category-tile-copy small{display:none!important}

  /* Photo-forward catalogue. Real stock, variants and prices remain untouched. */
  .catalog-main .product-card,.catalog-layout .product-card{min-width:0!important;transform:none!important;
    border:0!important;background:transparent!important;box-shadow:none!important}
  .catalog-main .product-card .product-image,.catalog-layout .product-image{
    aspect-ratio:4/5!important;border-radius:17px!important;overflow:hidden!important;
    border:1px solid #eee4dc;background:#f7f1ea}
  .catalog-main .product-image img,.catalog-layout .product-image img{width:100%;height:100%;
    object-fit:cover;display:block;transition:transform .2s ease}
  .product-wishlist-button{top:9px;right:9px;width:38px;height:38px;
    border-radius:50%;font-size:calc(22px * var(--type-scale));box-shadow:0 3px 13px rgba(32,10,8,.1)}
  .catalog-main .product-body,.catalog-layout .product-body{padding:10px 2px 0!important}
  .catalog-main .product-name,.catalog-layout .product-name{
    font:650 clamp(calc(12px * var(--type-scale)),calc(3.65vw * var(--type-scale)),calc(15px * var(--type-scale)))/1.35 var(--font-body)!important;
    letter-spacing:-.015em;min-height:0;margin:0 0 5px!important;
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .catalog-main .product-type{font-size:calc(10px * var(--type-scale));line-height:1.4;color:#8e8179}
  .catalog-main .product-meta,.catalog-layout .product-meta{display:flex;align-items:start;
    flex-wrap:wrap;gap:4px 6px;margin-top:7px!important;padding:0!important;border:0!important}
  .catalog-main .product-price,.catalog-layout .product-price{
    color:var(--red)!important;font-size:clamp(calc(14px * var(--type-scale)),calc(4vw * var(--type-scale)),calc(17px * var(--type-scale)))!important;font-weight:800!important;
    font-variant-numeric:tabular-nums}
  .catalog-main .product-stock{font-size:calc(9px * var(--type-scale))!important;line-height:1.6;letter-spacing:0}
  .product-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:3px 10px!important;margin-top:9px}
  .product-card-actions button,.product-card-actions a{display:inline-flex;align-items:center;
    min-height:30px;color:var(--red);font-size:calc(11px * var(--type-scale));font-weight:700;line-height:1.25}
  .catalogue-pager{margin-top:28px;padding-top:18px}
  .catalogue-pager .btn{border-radius:999px!important}
  .latest-arrivals{background:#fff8f1;padding-block:28px}
  .latest-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .latest-item{border-radius:16px;border-color:#f1e4d9}
  .latest-item img{aspect-ratio:4/5;object-fit:cover}
  .latest-item strong{font-size:calc(12px * var(--type-scale));margin-inline:11px}
  .latest-item span{font-size:calc(14px * var(--type-scale));margin-inline:11px}
  .gold-covering-explainer{padding-block:36px}
  .gold-covering-explainer h2{font-size:calc(28px * var(--type-scale))}
  .gold-covering-explainer p{font-size:calc(13px * var(--type-scale));line-height:1.75}
  .process,.story,.contact{padding-block:38px}
  .story-card{padding:22px;border-radius:19px}
  .contact-card{padding:24px;border-radius:21px}
  .floating-whatsapp{bottom:calc(94px + env(safe-area-inset-bottom))!important;right:13px;
    font-size:calc(11px * var(--type-scale));padding:10px 13px;max-width:140px}
  .footer{padding-bottom:calc(118px + env(safe-area-inset-bottom));line-height:1.7}
  .footer .footer-brand{display:inline-flex}

  /* Compact bottom navigation, entirely mobile-only, accessible & thumb-friendly. */
  .mobile-shop-nav{
    position:fixed;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;
    left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));
    z-index:24;min-height:67px;padding:6px 5px;border:1px solid rgba(255,255,255,.15);
    border-radius:24px;background:#291b21;color:#fff;box-shadow:0 12px 30px rgba(28,10,18,.26);
  }
  .mobile-shop-nav :is(a,button){border:0;background:transparent;color:#d8cbd0;display:grid;
    align-content:center;justify-items:center;gap:3px;min-width:0;min-height:54px;
    border-radius:17px;padding:4px 2px;cursor:pointer;text-decoration:none;font-size:calc(10px * var(--type-scale));line-height:1.1}
  .mobile-shop-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;
    stroke-linecap:round;stroke-linejoin:round}
  .mobile-shop-nav :is(.is-current,[aria-current="page"]){background:#fff;color:var(--red)}
  .mobile-shop-nav :is(a,button):active{transform:scale(.97)}
  body.modal-open .mobile-shop-nav,body:has(.shop-drawer.is-open) .mobile-shop-nav,
  body:has(.utility-overlay:not([hidden])) .mobile-shop-nav{display:none}

  /* Product quick view becomes a comfortable edge-to-edge mobile sheet. */
  .product-modal-panel{
    width:100vw!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;
    margin:0!important;padding:0 0 calc(28px + env(safe-area-inset-bottom))!important;
    border-radius:0!important;overscroll-behavior:contain;background:#fff!important;
  }
  .product-modal-backdrop{background:rgba(25,15,16,.62)}
  .product-modal-close{position:sticky;float:right;right:12px;top:12px;z-index:8!important;
    margin:11px 12px -53px 0;width:44px!important;height:44px!important;
    background:rgba(255,255,255,.96);border:1px solid #e9e0da;box-shadow:0 4px 18px #0002}
  .product-detail-grid{display:block!important;padding:0!important;gap:0!important}
  .product-gallery{display:block!important}
  .product-detail-main{aspect-ratio:1/1!important;min-height:0!important;border-radius:0!important;
    border:0!important;background:#f7f1eb}
  .product-detail-main img{object-fit:contain}
  .product-detail-thumbs{display:flex!important;gap:9px;max-height:none;overflow:auto;
    padding:11px 16px 6px;scrollbar-width:none}
  .product-detail-thumb{flex:0 0 63px!important;width:63px!important;aspect-ratio:1!important;
    border-radius:11px!important}
  .product-detail-info{position:static!important;max-height:none!important;overflow:visible!important;
    padding:20px 18px 80px!important}
  .product-breadcrumb{font-size:calc(10px * var(--type-scale))}
  .product-detail-info h2{font-size:clamp(calc(25px * var(--type-scale)),calc(7vw * var(--type-scale)),calc(32px * var(--type-scale)))!important;line-height:1.15}
  .modal-price{font-size:calc(25px * var(--type-scale))}
  .modal-price-row{margin:10px 0 17px}
  .product-quantity-row .quantity-picker button{width:43px;min-height:43px}
  .product-buy-actions{position:sticky!important;bottom:0!important;z-index:5;
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;
    background:rgba(255,255,255,.98)!important;box-shadow:0 -9px 22px rgba(30,12,12,.055);
    margin:17px -18px 0;padding:13px 18px calc(13px + env(safe-area-inset-bottom))!important;
    border-top:1px solid var(--mobile-stroke)}
  .product-buy-actions .btn{min-height:49px;font-size:calc(13px * var(--type-scale))!important;font-weight:750;
    border-radius:999px}
  .product-modal-nav{bottom:calc(16px + env(safe-area-inset-bottom))!important;
    width:35px!important;height:35px!important;opacity:.9;z-index:3}
  .product-modal-nav.previous{left:10px}
  .product-modal-nav.next{right:10px}

  /* Full product detail route — existing variant/stock JS stays unchanged. */
  body:has(.detail-page){background:white}
  body:has(.detail-page) .topbar .nav{
    display:grid!important;grid-template-columns:1fr auto;align-items:center!important;
    gap:8px;padding:8px 0!important;min-height:67px!important}
  body:has(.detail-page) .topbar .logo{position:static!important;transform:none!important;
    flex-direction:row;justify-self:start;align-items:center;min-width:0;gap:6px;max-width:100%}
  body:has(.detail-page) .topbar .logo .brand-logo{width:30px;height:30px}
  body:has(.detail-page) .topbar .logo strong{font-size:calc(12px * var(--type-scale))}
  body:has(.detail-page) .topbar .logo small{font-size:calc(6px * var(--type-scale))}
  body:has(.detail-page) .topbar .nav .btn{padding:9px 10px;font-size:calc(10px * var(--type-scale));min-height:40px}
  body:has(.detail-page) .topbar .nav > a[href="index.html#products"]{display:none!important}
  .detail-page{padding-top:13px;padding-bottom:48px}
  .product-crumb{font-size:calc(11px * var(--type-scale));margin:12px 0 17px}
  .detail-grid{gap:19px}
  .detail-main-image{border-radius:19px;aspect-ratio:1;background:#f8f1eb}
  .detail-thumbnails{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;padding-bottom:4px}
  .detail-thumbnails button{flex:0 0 62px;width:62px;height:62px;border-radius:11px}
  .detail-info h1{font-size:clamp(calc(27px * var(--type-scale)),calc(7.5vw * var(--type-scale)),calc(35px * var(--type-scale)));margin:12px 0 8px}
  .detail-price-row{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:15px 0}
  .detail-price-row strong{color:var(--red);font-size:calc(26px * var(--type-scale))}
  .detail-specs{font-size:calc(12px * var(--type-scale));gap:10px}
  .detail-picker{width:100%;min-width:0;border-radius:13px;min-height:49px}
  .detail-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:18px 0}
  .detail-buttons .btn{border-radius:999px;min-height:49px;padding:11px 8px}
  #detailShare{grid-column:1/-1}
  .detail-help{padding:18px;border-radius:16px;margin-top:19px}
  .detail-related{padding-top:35px}
  .detail-related>h2{font-size:calc(25px * var(--type-scale))}
  .detail-related-grid{gap:12px}
  .detail-related-card{border-radius:14px}
  .detail-related-card strong,.detail-related-card span{font-size:calc(12px * var(--type-scale))}

  /* Cart and checkout: readable cards, actual server-calculated totals and payment state. */
  body:has(.order-page){background:#fffdfa}
  body:has(.order-page) .topbar .nav{
    display:grid!important;grid-template-columns:1fr auto!important;grid-template-rows:1fr!important;
    align-items:center!important;gap:10px!important;min-height:65px!important;padding:7px 0!important}
  body:has(.order-page) .topbar .nav .logo{
    grid-column:1!important;grid-row:1!important;justify-self:start!important;
    position:static!important;transform:none!important;flex-direction:row!important;align-items:center;
    white-space:nowrap;text-align:left;gap:6px!important}
  body:has(.order-page) .topbar .nav .logo .brand-logo{width:30px;height:30px}
  body:has(.order-page) .topbar .nav .logo strong{font-size:calc(12px * var(--type-scale))}
  body:has(.order-page) .topbar .nav .logo small{font-size:calc(6px * var(--type-scale))}
  body:has(.order-page) .topbar .nav .navlinks{display:none!important}
  body:has(.order-page) .topbar .nav .nav-actions{grid-column:2!important;grid-row:1!important}
  body:has(.order-page) .topbar .nav .cart-top{border:1px solid #ecdeda;border-radius:999px;
    background:white;color:var(--red);min-height:43px;padding:8px 12px}
  body:has(.order-page) .order-page{padding:20px 0 65px}
  .order-page .order-head{display:flex;align-items:flex-start!important;gap:10px;margin-bottom:18px}
  .order-page .order-head h1{font-size:clamp(calc(30px * var(--type-scale)),calc(8vw * var(--type-scale)),calc(40px * var(--type-scale)));line-height:1.1;margin:7px 0}
  .order-page .order-head p{font-size:calc(12px * var(--type-scale));line-height:1.65;margin:8px 0}
  .checkout-back{border-radius:999px;padding:8px 12px;font-size:calc(11px * var(--type-scale))}
  .checkout-progress{display:flex;justify-content:space-between!important;gap:4px!important;
    padding:12px!important;border-radius:17px;margin:0 0 16px!important;
    border:1px solid var(--mobile-stroke);box-shadow:none}
  .checkout-progress .checkout-step{gap:5px!important;font-size:calc(10px * var(--type-scale))!important;white-space:nowrap}
  .checkout-progress .checkout-step b{width:23px!important;height:23px!important;flex:0 0 23px}
  .checkout-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:17px!important}
  .checkout-main{gap:15px!important}
  .checkout-layout .order-card{padding:19px 16px!important;border-radius:19px!important;
    border:1px solid #eee4de!important;background:white;box-shadow:0 3px 15px #38141108!important}
  .checkout-layout .order-card h2{font-size:calc(23px * var(--type-scale));line-height:1.2}
  .checkout-eyebrow{font-size:calc(9px * var(--type-scale))}
  .checkout-subtitle{font-size:calc(12px * var(--type-scale))}
  .checkout-layout .order-item{display:grid;grid-template-columns:78px minmax(0,1fr)!important;
    column-gap:12px!important;row-gap:4px!important;align-items:start;padding:14px 0}
  .checkout-layout .order-item img,.checkout-layout .order-item-placeholder{
    width:78px!important;height:90px!important;border-radius:13px!important;object-fit:cover}
  .checkout-layout .order-item h3{font-size:calc(13px * var(--type-scale));line-height:1.4;overflow-wrap:anywhere}
  .checkout-layout .order-price{grid-column:2;font-size:calc(14px * var(--type-scale));color:var(--red);font-weight:800}
  .checkout-layout .order-qty button{width:38px!important;height:38px!important;border-radius:11px}
  .checkout-layout .order-qty button:last-child{width:auto!important;min-width:38px}
  .checkout-layout .order-form{grid-template-columns:minmax(0,1fr)!important;gap:13px!important}
  .checkout-layout .order-form .full{grid-column:auto}
  .checkout-layout .order-form input,.checkout-layout .order-form select,
  .checkout-layout .order-form textarea{font-size:calc(16px * var(--type-scale))!important;min-height:49px;border-radius:12px}
  .payment-choice{padding:15px 12px;border-radius:15px}
  .payment-choice-top{flex-wrap:wrap;gap:7px}
  .payment-choice-top strong{font-size:calc(13px * var(--type-scale))}
  .checkout-aside{position:static!important}
  .checkout-summary-card .order-summary>div{font-size:calc(13px * var(--type-scale));gap:12px}
  .checkout-summary-card .order-summary .grand strong{font-size:calc(23px * var(--type-scale));color:var(--red)}
  .checkout-summary-card .place-order{min-height:53px;border-radius:999px!important;
    font-size:calc(14px * var(--type-scale));margin-top:18px}
  .checkout-test-notice{font-size:calc(11px * var(--type-scale));border-radius:12px}
  .payment-qr-card{flex-wrap:wrap}
  .payment-reference-label input{min-height:49px;font-size:calc(16px * var(--type-scale))}
  .footer .footer-logo{object-fit:contain}
  /* Never let fixed marketing UI cover payment or form controls. */
  body:has(.order-page) .floating-whatsapp{display:none}
  .analytics-preference{z-index:2000}
}
@media (max-width:355px) {
  .storefront-header-row{grid-template-columns:44px minmax(0,1fr) 92px!important}
  .storefront-header-row .logo .brand-logo{width:24px!important;height:24px!important;flex-basis:24px}
  .storefront-header-row .logo strong{font-size:calc(10px * var(--type-scale))!important}
  .mobile-shop-nav{left:8px;right:8px;gap:0}
  .mobile-shop-nav :is(a,button){font-size:calc(9px * var(--type-scale))}
  .checkout-progress .checkout-step{font-size:calc(9px * var(--type-scale))!important}
  .catalog-main .product-stock{font-size:calc(8px * var(--type-scale))!important}
}
@media (prefers-reduced-motion:reduce) and (max-width:767px) {
  .catalog-main .product-image img,.mobile-shop-nav :is(a,button){transition:none!important}
  .catalogue-skeleton{animation:none!important}
}

/* v2 — category-first phone browsing: visible ahead of every banner and product. */
.mobile-category-section{display:none}
@media(max-width:767px){
  /* The old editorial introduction made the first jewellery photo too far away. */
  .mobile-shop-intro{display:none!important}
  .mobile-category-section{
    display:block;padding:20px 0 15px;background:#fffdfa;position:relative;
    border-bottom:1px solid #f4eee7;
  }
  .mobile-category-section[hidden]{display:none!important}
  .mobile-category-heading{
    display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:16px;
  }
  .mobile-category-heading>div{min-width:0}
  .mobile-category-eyebrow{
    display:block;margin:0 0 6px;color:#976c38;
    font-size:calc(9px * var(--type-scale));font-weight:850;letter-spacing:.18em;line-height:1.3;
  }
  .mobile-category-heading h2{
    margin:0;font:600 clamp(calc(22px * var(--type-scale)),calc(6.4vw * var(--type-scale)),calc(29px * var(--type-scale)))/1.15 var(--font-heading);
    letter-spacing:-.048em;color:#2d2020;
  }
  .mobile-category-heading h2 span{color:var(--red)}
  #mobileCategorySeeAll{
    display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
    min-height:40px;min-width:72px;padding:8px 11px;margin-bottom:-4px;
    border:1px solid #e9ded5;border-radius:999px;background:#fff;
    color:var(--red);font-size:calc(11px * var(--type-scale));font-weight:750;cursor:pointer;
  }
  #mobileCategorySeeAll[aria-expanded="true"]{border-color:var(--red);background:#fff7f5}
  .mobile-category-track{
    display:flex;gap:12px;align-items:start;overflow-x:auto;overscroll-behavior-x:contain;
    scroll-snap-type:x proximity;scrollbar-width:none;
    margin:0 -16px;padding:5px 16px 13px;min-width:0;
  }
  .mobile-category-track::-webkit-scrollbar{display:none}
  .mobile-category-card{
    flex:0 0 clamp(77px,22vw,95px);display:grid;justify-items:center;align-content:start;
    gap:8px;min-width:0;min-height:116px;
    border:0;padding:0;background:transparent;color:#514641;
    text-align:center;scroll-snap-align:start;cursor:pointer;font:inherit;
  }
  .mobile-category-picture{
    display:grid;place-items:center;width:clamp(74px,21vw,91px);height:clamp(74px,21vw,91px);
    flex:0 0 auto;overflow:hidden;border:3px solid #fff;
    border-radius:50%;outline:1px solid #e6d9cb;background:linear-gradient(145deg,#f3e4d4,#fff9ef);
    box-shadow:0 4px 13px rgba(73,41,28,.075);
    transition:box-shadow .18s ease,outline-color .18s ease,transform .18s ease;
  }
  .mobile-category-picture img{width:100%;height:100%;object-fit:cover;display:block}
  .mobile-category-fallback{font:600 calc(32px * var(--type-scale))/1 var(--font-heading);color:#b28b56}
  .mobile-category-picture--all{
    background:linear-gradient(137deg,#871523,#ba303b 60%,#caa05e);
    color:#fff;font:400 calc(38px * var(--type-scale))/1 var(--font-heading);outline-color:#ebdad1;
  }
  .mobile-category-name{
    max-width:100%;display:block;font-size:calc(10px * var(--type-scale));font-weight:650;
    line-height:1.3;letter-spacing:-.01em;overflow-wrap:break-word;
  }
  .mobile-category-card.is-active .mobile-category-picture{
    outline:2px solid var(--red);outline-offset:2px;
    box-shadow:0 5px 17px rgba(143,21,32,.15);
  }
  .mobile-category-card.is-active .mobile-category-name{color:var(--red);font-weight:800}
  .mobile-category-card:active .mobile-category-picture{transform:scale(.94)}
  .mobile-category-card:focus-visible{outline:0}
  .mobile-category-card:focus-visible .mobile-category-picture{outline:3px solid var(--gold);outline-offset:3px}
  .mobile-category-loading,.mobile-category-empty{
    color:#877870;font-size:calc(12px * var(--type-scale));margin:10px 0 20px;
  }
  .mobile-category-section.is-expanded .mobile-category-track{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px 7px;
    overflow:visible;margin:0;padding:5px 0 14px;scroll-snap-type:none;
  }
  .mobile-category-section.is-expanded .mobile-category-card{
    width:100%;min-width:0;min-height:105px;gap:7px;justify-self:center;
  }
  .mobile-category-section.is-expanded .mobile-category-picture{
    width:min(20vw,84px);height:min(20vw,84px);
  }
  /* The category rail is the main discovery mechanism; do not repeat category tiles below. */
  .live-products{padding-top:24px!important}
  .rotating-feature{padding-top:13px;padding-bottom:9px}
  .rotating-feature-frame{height:clamp(185px,54vw,260px)!important}
  .latest-arrivals{padding:24px 0}
  .latest-arrivals .section-head{display:flex;align-items:center;justify-content:space-between;
    gap:8px;margin-bottom:14px}
  .latest-arrivals .section-head h2{font-size:calc(25px * var(--type-scale))}
  .latest-arrivals .section-head .btn{font-size:calc(10px * var(--type-scale));padding:8px;max-width:125px;
    border-radius:999px;min-height:40px;text-align:center}
  .catalog-main .product-grid,.catalog-layout--filters-left .catalog-main .product-grid{
    column-gap:14px!important;row-gap:24px!important;
  }
  .catalog-main .product-image,.catalog-layout .product-image{border-radius:16px!important}
  .catalog-main .product-image img:active{transform:scale(.99)}
  .product-card-actions button[data-product-open]{display:none}
  .product-card-actions a{
    display:inline-flex;align-items:center;min-height:33px;padding:0 1px;
    color:var(--red);font-size:calc(11px * var(--type-scale));text-decoration:none!important;font-weight:800;
  }
  .mobile-shop-nav{backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
  .mobile-shop-nav :is(a,button){transition:background-color .16s ease,transform .12s ease}
  /* Saved products should open as their own focused screen, not below promotions. */
  body.mobile-wishlist-view .mobile-category-section,
  body.mobile-wishlist-view .rotating-feature,
  body.mobile-wishlist-view .latest-arrivals{display:none!important}
  body.mobile-wishlist-view .live-products{padding-top:25px!important}
}
@media(max-width:355px){
  .mobile-category-section.is-expanded .mobile-category-track{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mobile-category-track{gap:10px}
  .mobile-category-heading h2{font-size:calc(22px * var(--type-scale))}
  .mobile-category-picture{width:74px;height:74px}
}
@media(max-width:767px) and (prefers-reduced-motion:reduce){
  .mobile-category-picture,.mobile-shop-nav :is(a,button){transition:none!important}
}

/* v2.1 — thumb reach and feedback, scoped to phones only. */
.mobile-shop-toast{display:none}
@media(max-width:767px){
  body.mobile-editing .mobile-shop-nav{display:none!important}
  .mobile-shop-nav :is(a,button){position:relative}
  .mobile-bag-count:not([hidden]){
    position:absolute;top:0;right:calc(50% - 23px);min-width:17px;height:17px;
    display:grid;place-items:center;border:2px solid #291b21;border-radius:999px;
    padding:0 2px;background:var(--gold);color:#25171b;font:800 calc(9px * var(--type-scale))/1 var(--font-body);
  }
  .mobile-shop-toast:not([hidden]){
    position:fixed;display:block;z-index:1010;left:50%;bottom:calc(93px + env(safe-area-inset-bottom));
    transform:translateX(-50%);max-width:calc(100vw - 40px);width:max-content;
    border:1px solid #d8bb83;border-radius:999px;padding:12px 20px;
    color:#fff;background:#34262b;font-size:calc(12px * var(--type-scale));font-weight:700;text-align:center;
    box-shadow:0 12px 35px rgba(23,10,13,.25);pointer-events:none;
    animation:mobile-toast-enter .18s ease-out;
  }
  @keyframes mobile-toast-enter{
    from{opacity:0;transform:translate(-50%,8px)}
    to{opacity:1;transform:translate(-50%,0)}
  }
  /* Always-reachable purchase actions; photo gallery owns horizontal swipe gestures. */
  .product-modal.open .product-detail-info{padding-bottom:125px!important}
  .product-modal.open .product-buy-actions{
    position:fixed!important;left:0!important;right:0!important;bottom:0!important;
    width:100vw!important;margin:0!important;z-index:8!important;
    padding:12px 17px calc(13px + env(safe-area-inset-bottom))!important;
    border-top:1px solid #eee5db!important;border-radius:18px 18px 0 0;
    box-shadow:0 -10px 25px rgba(35,15,16,.065);
  }
  .product-modal.open .product-modal-nav{display:none!important}
}
@media(max-width:767px) and (prefers-reduced-motion:reduce){
  .mobile-shop-toast:not([hidden]){animation:none}
}

/* Mobile gallery selection, preserving desktop product layouts. */
@media(max-width:767px){
  .detail-main-image{touch-action:pan-y}
  .detail-thumbnails button[aria-current="true"],
  .detail-thumbnails button.is-active{
    border:2px solid var(--red);box-shadow:0 0 0 2px #fff inset;
  }
  .detail-thumbnails button:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
}


/* v3 — typographic consistency and collision prevention.
   ONLY text rhythm, line wrapping, and occupied space inside existing components
   are changed. Visual placement and mobile category-first order stay identical. */
@media(max-width:767px){
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  body{font-family:var(--font-body)}
  :where(.mobile-category-section,.live-products,.latest-arrivals,.product-modal,.detail-page,.order-page)
    :is(h1,h2,h3,p,span,strong,small){overflow-wrap:break-word}
  :where(.mobile-category-section,.live-products,.latest-arrivals,.detail-page,.order-page)
    :is(h1,h2,h3){text-rendering:optimizeLegibility}
  /* Override older !important rules that made the 48px search row render in 40px. */
  .storefront-header-row{
    grid-template-columns:46px minmax(0,1fr) 96px!important;
    grid-template-rows:52px 48px!important;
    gap:8px 4px!important;
    min-height:108px!important;
    align-items:center!important;
  }
  .storefront-header-row .logo{min-width:0!important;max-width:100%!important}
  .storefront-header-row .logo>span{display:block;min-width:0;max-width:100%;line-height:1.05}
  .storefront-header-row .logo strong{
    display:block;font-size:clamp(calc(11px * var(--type-scale)),calc(3.25vw * var(--type-scale)),calc(13px * var(--type-scale)))!important;
    font-weight:850;letter-spacing:.035em!important;line-height:1.08!important
  }
  .storefront-header-row .logo small{
    display:block;font-size:clamp(calc(6px * var(--type-scale)),calc(1.85vw * var(--type-scale)),calc(7.5px * var(--type-scale)))!important;
    letter-spacing:.1em!important;line-height:1.25!important;margin-top:3px!important
  }
  .storefront-header-actions{grid-column:3!important;grid-row:1!important;min-width:0!important}
  .storefront-search-form,.storefront-header-right .storefront-search-form{
    grid-column:1/-1!important;grid-row:2!important;
    width:100%!important;min-width:0!important;max-width:none!important;
    height:48px!important;min-height:48px!important;margin:0!important;
    display:flex!important;align-items:center!important;gap:3px!important
  }
  .storefront-search-form input[type="search"]{
    flex:1 1 0;min-width:0!important;font-size:calc(16px * var(--type-scale))!important;line-height:1.4
  }
  .storefront-search-form .search-tool-button,
  .storefront-search-form .search-submit{flex-shrink:0}
  .storefront-topbar .search-feedback{
    margin:7px 0 0;padding:6px 2px;font-size:calc(12px * var(--type-scale));line-height:1.5;
  }
  /* Category names have exactly two natural lines, even for long types. */
  .mobile-category-heading{align-items:center}
  .mobile-category-eyebrow{font-size:calc(10px * var(--type-scale));line-height:1.45;letter-spacing:.14em}
  .mobile-category-heading h2{
    font-size:clamp(calc(23px * var(--type-scale)),calc(6.3vw * var(--type-scale)),calc(28px * var(--type-scale)));
    line-height:1.2;letter-spacing:-.035em;
  }
  #mobileCategorySeeAll{font-size:calc(12px * var(--type-scale));font-weight:750;line-height:1.25;white-space:nowrap}
  .mobile-category-card{min-width:0;gap:8px;align-content:start}
  .mobile-category-name{
    width:100%;max-width:100%;min-height:2.7em;
    font-size:clamp(calc(11px * var(--type-scale)),calc(3vw * var(--type-scale)),calc(12px * var(--type-scale)))!important;font-weight:700;line-height:1.35;
    letter-spacing:0;word-break:normal;overflow-wrap:break-word;hyphens:auto;
    text-align:center;
  }
  .mobile-category-loading,.mobile-category-empty{font-size:calc(13px * var(--type-scale));line-height:1.5}
  /* Section headings and trailing controls remain in the original positions. */
  .live-products .section-head,.latest-arrivals .section-head{min-width:0}
  .live-products .section-head>div,.latest-arrivals .section-head>div{min-width:0;flex:1 1 auto}
  .live-products .section-head #productHeading,
  .catalog-filter-sidebar #productHeading{
    font-size:clamp(calc(23px * var(--type-scale)),calc(6.2vw * var(--type-scale)),calc(29px * var(--type-scale)))!important;
    line-height:1.22!important;letter-spacing:-.035em!important;
    font-weight:650!important;
    margin:4px 0 0!important;overflow-wrap:break-word;
  }
  .live-products #browseAllProducts,.catalog-filter-sidebar #browseAllProducts{
    flex:0 0 auto;align-self:center;min-height:42px!important;max-width:41%;
    font-size:calc(11px * var(--type-scale))!important;line-height:1.35!important;
    font-weight:750;white-space:normal!important;text-align:center;
    padding:8px 10px!important;
  }
  .product-toolbar,.catalog-filter-sidebar .product-toolbar{
    align-items:center;gap:10px;line-height:1.45;
  }
  .product-status{font-size:calc(12px * var(--type-scale))!important;line-height:1.5!important;max-width:100%}
  .clear-filter{font-size:calc(11px * var(--type-scale));line-height:1.35;white-space:normal;min-height:40px}
  .latest-arrivals .section-head h2{font-size:clamp(calc(23px * var(--type-scale)),calc(6vw * var(--type-scale)),calc(27px * var(--type-scale)))!important;line-height:1.22}
  .latest-item strong{
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
    overflow:hidden;min-height:2.8em;line-height:1.4!important;font-size:calc(13px * var(--type-scale))!important
  }
  .latest-item span{font-size:calc(15px * var(--type-scale))!important;line-height:1.3}
  /* Consistent title > type > price > stock > action stack in every grid card. */
  .catalog-main .product-card,.catalog-layout .product-card{min-width:0;overflow:visible}
  .catalog-main .product-body,.catalog-layout .product-body{min-width:0;text-align:left}
  .catalog-main .product-name,.catalog-layout .product-name{
    display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;
    min-height:2.8em;font-size:clamp(calc(13px * var(--type-scale)),calc(3.55vw * var(--type-scale)),calc(15px * var(--type-scale)))!important;
    line-height:1.4!important;letter-spacing:-.01em!important;
    font-weight:700!important;overflow:hidden;text-overflow:ellipsis;
    margin:0 0 4px!important;word-break:normal;overflow-wrap:break-word;
  }
  .catalog-main .product-type,.catalog-layout .product-type{
    display:block;min-width:0;font-size:calc(11px * var(--type-scale))!important;line-height:1.45!important;
    min-height:1.45em;color:#796f68;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  }
  .catalog-main .product-meta,.catalog-layout .product-meta{
    display:flex!important;flex-direction:column!important;align-items:flex-start!important;
    justify-content:flex-start!important;gap:2px!important;
    margin-top:8px!important;min-width:0!important;
  }
  .catalog-main .product-price,.catalog-layout .product-price{
    display:block;font-size:clamp(calc(15px * var(--type-scale)),calc(4vw * var(--type-scale)),calc(17px * var(--type-scale)))!important;font-weight:800!important;
    line-height:1.35!important;letter-spacing:-.015em!important;white-space:nowrap;
  }
  .catalog-main .product-stock,.catalog-layout .product-stock{
    display:block;min-width:0;font-size:calc(10px * var(--type-scale))!important;line-height:1.4!important;
    letter-spacing:.015em!important;white-space:normal!important;
    text-transform:none;font-weight:750;
  }
  .catalog-main .product-card-actions,.catalog-layout .product-card-actions{
    display:flex;align-items:center;gap:6px;margin-top:8px!important;min-width:0
  }
  .product-card-actions a{
    font-size:calc(12px * var(--type-scale))!important;font-weight:750!important;
    line-height:1.35!important;min-height:36px!important;
  }
  .product-empty{font-size:calc(13px * var(--type-scale));line-height:1.65;padding:28px 18px;border-radius:17px}
  .catalogue-pager #cataloguePageStatus{font-size:calc(12px * var(--type-scale));line-height:1.6}
  /* Drawer remains exactly in place; long jewellery types are no longer cramped. */
  .drawer-section-label{font-size:calc(10px * var(--type-scale))!important;line-height:1.5}
  .drawer-type-grid{gap:9px}
  .drawer-type-link{
    display:grid!important;grid-template-columns:40px minmax(0,1fr);
    align-items:center!important;justify-content:initial!important;
    column-gap:8px;min-height:60px!important;padding:8px!important;
  }
  .drawer-type-link .drawer-type-thumb,
  .drawer-type-link .drawer-type-fallback{width:40px!important;height:40px!important;min-width:0;flex:none!important}
  .drawer-type-link>span:last-child{
    display:block;font-size:calc(12px * var(--type-scale))!important;font-weight:650;line-height:1.4!important;
    word-break:normal;overflow-wrap:break-word;
  }
  .drawer-quicklinks :is(a,button){line-height:1.5!important;font-size:calc(13px * var(--type-scale))!important}
  /* Product modal's text uses the same rhythm as the dedicated detail page. */
  .product-breadcrumb{font-size:calc(11px * var(--type-scale))!important;line-height:1.45;flex-wrap:wrap}
  .product-detail-info h2{font-size:clamp(calc(26px * var(--type-scale)),calc(7vw * var(--type-scale)),calc(33px * var(--type-scale)))!important;line-height:1.18!important}
  .product-detail-info .modal-product-type{font-size:calc(12px * var(--type-scale));line-height:1.5}
  .product-detail-info .modal-price{font-size:calc(25px * var(--type-scale));line-height:1.35}
  .product-detail-info .modal-description{font-size:calc(13px * var(--type-scale))!important;line-height:1.7!important}
  .product-detail-info .variant-picker-label>span{font-size:calc(12px * var(--type-scale));line-height:1.45}
  .product-detail-info .variant-picker-label select{font-size:calc(14px * var(--type-scale));line-height:1.45}
  .product-detail-info .product-quantity-row{font-size:calc(12px * var(--type-scale));line-height:1.4}
  .product-detail-info .product-stock{white-space:normal;line-height:1.35}
  .product-detail-info .product-details-accordion summary{font-size:calc(13px * var(--type-scale));line-height:1.45}
  .product-detail-info .detail-list :is(span,strong){font-size:calc(12px * var(--type-scale));line-height:1.5}
  .product-buy-actions .btn{font-size:calc(13px * var(--type-scale))!important;line-height:1.35}
  .modal-wishlist-button{line-height:1.45}
  .detail-info h1{font-size:clamp(calc(27px * var(--type-scale)),calc(7.3vw * var(--type-scale)),calc(35px * var(--type-scale)))!important;line-height:1.18}
  .detail-info .detail-code{font-size:calc(12px * var(--type-scale));line-height:1.5}
  .detail-info #detailDescription{font-size:calc(14px * var(--type-scale));line-height:1.75}
  .detail-info .detail-picker-label{font-size:calc(13px * var(--type-scale));line-height:1.45}
  .detail-info .detail-specs{line-height:1.55}
  /* Checkout: protect names, payment descriptions and prices from narrow-screen collisions. */
  .order-page .order-head h1{font-size:clamp(calc(30px * var(--type-scale)),calc(8vw * var(--type-scale)),calc(40px * var(--type-scale)))!important;line-height:1.15}
  .order-page .order-head p{font-size:calc(13px * var(--type-scale))!important;line-height:1.65!important}
  .checkout-back{white-space:normal!important;font-size:calc(12px * var(--type-scale))!important;line-height:1.4}
  .checkout-progress{align-items:center}
  .checkout-progress .checkout-step{
    min-width:0;flex:0 1 auto;font-size:calc(10px * var(--type-scale))!important;line-height:1.3!important;
    white-space:normal!important;overflow-wrap:normal;
  }
  .checkout-progress .checkout-step b{flex:none}
  .checkout-layout .order-card h2{font-size:calc(23px * var(--type-scale))!important;line-height:1.25!important}
  .checkout-layout .checkout-subtitle{font-size:calc(13px * var(--type-scale))!important;line-height:1.65!important}
  .checkout-eyebrow{font-size:calc(10px * var(--type-scale))!important;line-height:1.4;letter-spacing:.1em}
  .checkout-layout .order-item{min-width:0}
  .checkout-layout .order-item>div{min-width:0}
  .checkout-layout .order-item h3{font-size:calc(14px * var(--type-scale))!important;line-height:1.45!important;
    margin:0 0 5px;word-break:normal;overflow-wrap:break-word}
  .checkout-layout .order-item small{font-size:calc(12px * var(--type-scale))!important;line-height:1.5!important}
  .checkout-layout .order-price{font-size:calc(15px * var(--type-scale))!important;line-height:1.35}
  .checkout-layout .order-qty{flex-wrap:wrap}
  .checkout-layout .order-qty span{font-size:calc(13px * var(--type-scale));font-variant-numeric:tabular-nums}
  .checkout-layout .order-form label{font-size:calc(13px * var(--type-scale))!important;line-height:1.5!important}
  .payment-choice-body{min-width:0!important}
  .payment-choice-top{align-items:center}
  .payment-choice-top strong{font-size:calc(14px * var(--type-scale))!important;line-height:1.4}
  .payment-choice-description{font-size:calc(12px * var(--type-scale))!important;line-height:1.6!important}
  .payment-choice-note{font-size:calc(11px * var(--type-scale))!important;line-height:1.55!important}
  .checkout-summary-card .order-summary>div{align-items:baseline;line-height:1.5}
  .checkout-summary-card .order-summary>div span{min-width:0}
  .checkout-summary-card .order-summary>div strong{flex:0 0 auto;white-space:nowrap}
  .checkout-summary-card .place-order{line-height:1.35}
  .gateway-status,.checkout-test-notice{line-height:1.6}
  /* Full-width phone navigation is unchanged; only text baselines are unified. */
  .mobile-shop-nav :is(a,button){font-size:calc(11px * var(--type-scale))!important;line-height:1.2!important;font-weight:650;gap:4px}
  .mobile-shop-nav :is(a,button) span:not(.mobile-bag-count){display:block;max-width:100%;white-space:nowrap}
  .mobile-shop-toast:not([hidden]){font-size:calc(13px * var(--type-scale));line-height:1.45}
  .footer{line-height:1.6!important;gap:10px!important}
  .footer :is(a,button,span){font-size:calc(11px * var(--type-scale));line-height:1.5}
}
@media(max-width:355px){
  .storefront-header-row{grid-template-columns:43px minmax(0,1fr) 92px!important}
  .storefront-header-row .logo strong{font-size:calc(11px * var(--type-scale))!important}
  .mobile-category-name{font-size:calc(11px * var(--type-scale))!important}
  .mobile-shop-nav :is(a,button){font-size:calc(10px * var(--type-scale))!important}
  .checkout-progress{padding:11px 8px!important}
  .checkout-progress .checkout-step{font-size:calc(9.5px * var(--type-scale))!important}
}

/* Empty-state feedback never moves the category control or changes the layout. */
@media(max-width:767px){
  #mobileCategorySeeAll:disabled{opacity:.52;cursor:default}
  .mobile-category-loading{margin:11px 0 18px;line-height:1.55}
}


/* Checkout clarity pass · keep the existing arrangement and red/gold identity.
   Compact only on phones, with payment-state, tax and safety information retained. */
@media (max-width:767px){
  /* Preserve the sections' physical order; reduce repetitive captions instead. */
  .order-page .order-head{margin-bottom:12px!important;gap:8px!important}
  .order-page .order-head h1{font-size:clamp(calc(29px * var(--type-scale)),calc(7.7vw * var(--type-scale)),calc(36px * var(--type-scale)))!important;
    margin:4px 0 5px!important;line-height:1.13!important}
  .order-page .order-head p{margin:4px 0 0!important;font-size:calc(12px * var(--type-scale))!important;
    line-height:1.45!important;max-width:30rem}
  .checkout-progress{margin:0 0 15px!important;padding:10px 12px!important;
    border-radius:14px!important}
  .checkout-progress .checkout-step{font-size:calc(11px * var(--type-scale))!important;font-weight:700!important;
    line-height:1.2!important;gap:6px!important}
  .checkout-progress .checkout-step b{width:23px!important;height:23px!important;
    flex:0 0 23px!important;font-size:calc(10px * var(--type-scale))!important}
  .checkout-main{gap:13px!important}
  .checkout-layout{gap:14px!important}
  .checkout-layout .order-card{border-radius:17px!important;padding:17px 16px!important}
  .checkout-layout .order-card h2{font-size:clamp(calc(21px * var(--type-scale)),calc(5.5vw * var(--type-scale)),calc(25px * var(--type-scale)))!important;
    margin:0!important;line-height:1.26!important}
  .checkout-layout .checkout-panel>.checkout-subtitle,
  .checkout-layout .checkout-panel>.checkout-section-title+.checkout-subtitle{
    display:none!important
  }
  .checkout-panel .checkout-eyebrow{display:none!important}
  .checkout-layout .order-card-head{gap:10px;align-items:center!important}
  .checkout-layout .order-card-head button{
    min-height:38px!important;padding:8px 10px!important;
    font-size:calc(11px * var(--type-scale))!important;white-space:nowrap
  }
  .checkout-panel #orderItems{margin-top:11px}
  .checkout-layout .order-form{margin-top:15px;gap:11px!important}
  .checkout-layout .order-form label{display:grid;gap:5px;
    font-size:calc(12px * var(--type-scale))!important;font-weight:700!important}
  .checkout-layout .order-form input,
  .checkout-layout .order-form select,
  .checkout-layout .order-form textarea{
    min-height:46px!important;padding:11px 12px!important;font-size:calc(16px * var(--type-scale))!important;
    line-height:1.4!important;border-radius:12px!important
  }
  .checkout-layout .order-form textarea{min-height:79px!important;resize:vertical}
  .payment-methods{margin:14px 0 9px!important;gap:9px!important}
  .payment-choice{
    display:flex;align-items:center;gap:10px!important;
    padding:13px 12px!important;border-radius:14px!important
  }
  .payment-choice-body{gap:3px!important}
  .payment-choice-top{gap:6px!important;flex-wrap:wrap}
  .payment-choice-top strong{font-size:calc(13px * var(--type-scale))!important;font-weight:800;line-height:1.35!important}
  .payment-choice-description{font-size:calc(12px * var(--type-scale))!important;line-height:1.4!important}
  .payment-choice-note{font-size:calc(11px * var(--type-scale))!important;line-height:1.35!important}
  .checkout-mode,.manual-label{font-size:calc(9px * var(--type-scale))!important;padding:4px 6px!important;
    letter-spacing:.035em!important;line-height:1.15!important}
  .payment-choice-dot{width:18px;height:18px;flex-basis:18px}
  /* One TEST warning near the bottom is enough; keep manual UPI's pending status. */
  #razorpayChoice .payment-choice-note{display:none!important}
  .gateway-connection{
    margin:9px 0!important;gap:7px!important;padding:9px 11px!important;
    border-radius:11px!important
  }
  .gateway-connection.is-online{display:none!important}
  .gateway-connection .gateway-status{font-size:calc(11px * var(--type-scale))!important;line-height:1.4!important;
    min-width:0!important}
  .payment-method-detail{border:none!important;box-shadow:none!important;
    border-radius:0!important;padding:3px 0 0!important;margin:6px 0 0!important;
    background:transparent!important}
  .payment-method-detail>strong{display:none!important}
  #razorpayDetails .payment-safety{display:none!important}
  .payment-method-detail>p{margin:5px 0!important;font-size:calc(12px * var(--type-scale))!important;
    line-height:1.45!important}
  #manualPaymentDetails #qrUnavailable{margin:4px 0 9px!important;
    font-size:calc(11px * var(--type-scale))!important;line-height:1.45!important}
  #checkoutQR{margin:8px 0 10px!important;padding:12px!important;
    border:1px solid #eee0d5!important;border-radius:13px!important;background:#fffdf9}
  #checkoutQR img{display:block;max-width:150px!important;max-height:150px!important;
    width:min(39vw,150px)!important;height:auto!important;aspect-ratio:1!important}
  #checkoutQR>div{min-width:0}
  #checkoutQR strong{font-size:calc(13px * var(--type-scale))!important;line-height:1.4}
  #checkoutQR p{margin:5px 0!important;font-size:calc(11px * var(--type-scale))!important;line-height:1.45!important}
  #checkoutQR .payment-total{margin:9px 0 0!important;font-size:calc(12px * var(--type-scale))!important}
  #checkoutQR .payment-total b{margin-top:1px!important;font-size:calc(22px * var(--type-scale))!important;
    line-height:1.25!important;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
  .payment-reference-label{margin:12px 0 0!important;gap:7px!important;
    font-size:calc(12px * var(--type-scale))!important;font-weight:750!important;line-height:1.4!important}
  .payment-reference-label input{font-size:calc(16px * var(--type-scale))!important;min-height:48px!important;
    border-radius:12px!important;padding:11px 12px!important}
  .checkout-whatsapp-consent{padding:11px!important;margin-top:10px!important;
    font-size:calc(11px * var(--type-scale))!important;line-height:1.5!important;border-radius:12px!important}
  .checkout-whatsapp-consent input{width:19px!important;height:19px!important;
    margin:1px 0 0!important;flex:0 0 19px}
  .checkout-summary-card>.checkout-eyebrow{display:none!important}
  .checkout-summary-card>.checkout-subtitle{margin:5px 0 0!important;
    font-size:calc(12px * var(--type-scale))!important;line-height:1.4!important}
  .checkout-summary-card .order-summary{margin-top:13px!important;padding-top:12px!important}
  .checkout-summary-card .order-summary>div{gap:10px!important;
    padding-block:5px!important;font-size:calc(12px * var(--type-scale))!important}
  .checkout-summary-card .order-summary>div strong{
    text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;
  }
  .checkout-summary-card .order-summary .grand{margin-top:5px!important;
    padding-top:13px!important}
  .checkout-summary-card .order-summary .grand span{font-size:calc(14px * var(--type-scale))!important;
    font-weight:750!important}
  .checkout-summary-card .order-summary .grand strong{font-size:calc(23px * var(--type-scale))!important}
  .checkout-summary-card .place-order{margin-top:14px!important;
    min-height:52px!important;font-size:calc(14px * var(--type-scale))!important;line-height:1.35!important;
    letter-spacing:0;padding:12px!important;white-space:normal}
  .checkout-summary-card .order-msg:empty{display:none!important}
  .checkout-summary-card .order-msg:not(:empty){margin:10px 0 0!important;
    font-size:calc(12px * var(--type-scale))!important;line-height:1.5!important}
  .checkout-test-notice{
    margin:13px 0 0!important;padding:10px 12px!important;
    font-size:calc(11px * var(--type-scale))!important;line-height:1.5!important;border-radius:10px!important
  }
  .checkout-test-notice strong{font-weight:800}
  .checkout-assurance{display:none!important}
  .order-success{padding:21px 17px!important}
  .order-success h2{font-size:clamp(calc(23px * var(--type-scale)),calc(6vw * var(--type-scale)),calc(29px * var(--type-scale)))!important}
  .order-success p{font-size:calc(13px * var(--type-scale))!important;line-height:1.6!important}
  .order-success .btn{min-height:44px;line-height:1.4}
}
@media(max-width:355px){
  .payment-choice{padding:12px 10px!important;gap:8px!important}
  .checkout-mode,.manual-label{font-size:calc(8px * var(--type-scale))!important}
  .checkout-layout .order-card{padding:15px 13px!important}
}
