/* Mobile shopping is the primary experience. Desktop retains Glass Studio. */
.mobile-shop-nav { display:none; }
html[data-edition="studio"] body:has(dialog[open]) { overflow:hidden; }
.address-paste-panel { padding:15px; border:1px solid var(--control-line); border-radius:16px; background:#96969614; }
.address-paste-panel .field { font-size:14px; font-weight:500; }
.address-paste-panel textarea { min-height:132px; line-height:1.65; font-weight:400; }
.address-paste-panel textarea::placeholder { font-size:13px; color:var(--muted); }
.address-paste-panel p { font-size:12px; color:var(--muted); margin-top:10px; line-height:1.8; }
.address-review-heading { font-size:13px; color:var(--muted); margin-top:2px; }

@media (max-width:649px) {
  html[data-edition="studio"] { scroll-padding-top:82px; scroll-padding-bottom:110px; }
  html[data-edition="studio"] body {
    padding-bottom:calc(92px + env(safe-area-inset-bottom,0px));
    padding-left:env(safe-area-inset-left,0px);
    padding-right:env(safe-area-inset-right,0px);
  }
  html[data-edition="studio"] .page-width { width:calc(100% - 24px); }
  html[data-edition="studio"] .prototype-banner { font-size:9px; padding:4px 12px; }
  html[data-edition="studio"] .site-header {
    width:calc(100% - 24px); min-height:58px;
    top:calc(6px + env(safe-area-inset-top,0px)); padding:6px 10px;
    border-radius:17px; backdrop-filter:blur(16px) saturate(0); -webkit-backdrop-filter:blur(16px) saturate(0);
  }
  html[data-edition="studio"] .menu-trigger { min-height:44px; }
  html[data-edition="studio"] body[data-view="shop"] .site-header .cart-trigger { display:none; }

  /* A brief brand moment, with a direct shopping shortcut always within reach. */
  html[data-edition="studio"] .studio-hero { gap:0; padding-top:20px; padding-bottom:12px; }
  html[data-edition="studio"] .studio-hero-copy .eyebrow { display:none; }
  html[data-edition="studio"] .studio-hero h1 { font-size:33px; margin-top:0; line-height:1.2; }
  html[data-edition="studio"] .studio-subtitle { margin-top:8px; font-size:12px; }
  html[data-edition="studio"] .studio-showcase { padding-top:8px; }
  html[data-edition="studio"] .studio-scene { height:188px; }
  html[data-edition="studio"] .studio-scene::before { height:150px; top:20px; filter:blur(32px); }
  html[data-edition="studio"] .studio-stage-line { bottom:0; height:40px; }
  html[data-edition="studio"] .studio-photo-card.is-front { width:51%; left:24.5%; top:5px; height:176px; border-radius:19px; }
  html[data-edition="studio"] .studio-photo-card.is-left { width:40%; left:5%; top:20px; height:150px; border-radius:17px; }
  html[data-edition="studio"] .studio-photo-card.is-right { width:40%; left:55%; top:16px; height:150px; border-radius:17px; }
  html[data-edition="studio"] .studio-photo-number { width:24px; height:24px; left:9px; top:9px; font-size:9px; }
  html[data-edition="studio"] .studio-glass-label { padding:7px 8px; border-radius:12px; }
  html[data-edition="studio"] .studio-photo-title { font-size:11px; }
  html[data-edition="studio"] .studio-photo-price { font-size:10px; margin-top:2px; }
  html[data-edition="studio"] .studio-round-arrow { width:27px; height:27px; }
  html[data-edition="studio"] .studio-side-label { font-size:9px; bottom:12px; }
  html[data-edition="studio"] .studio-deck-controls { margin-top:0; gap:8px; }
  html[data-edition="studio"] .studio-deck-controls button { border:0; box-shadow:none; background:none; }

  html[data-edition="studio"] .shop { padding-top:14px; padding-bottom:28px; }
  html[data-edition="studio"] .catalog-toolbar { gap:12px; }
  html[data-edition="studio"] .shop-heading h2 { font-family:var(--body); font-size:20px; letter-spacing:-.035em; }
  html[data-edition="studio"] .catalog-count { margin-left:8px; font-size:10px; }
  html[data-edition="studio"] .results-row { top:11px; }
  html[data-edition="studio"] .results-row select { width:88px; max-width:88px; font-size:12px; padding-left:2px; }
  html[data-edition="studio"] .search-row { gap:6px; }
  html[data-edition="studio"] .search-field input { padding-right:44px; }
  html[data-edition="studio"] .search-field input::placeholder { font-size:14px; }
  html[data-edition="studio"] .filter-toggle::before { inset:4px; }
  html[data-edition="studio"] .collection-nav { margin-top:8px; gap:24px; }
  html[data-edition="studio"] .collection-nav button { min-height:44px; font-size:13px; }
  html[data-edition="studio"] .category-nav { margin-top:8px; gap:2px; }
  html[data-edition="studio"] .category-nav button { min-height:44px; padding:9px 10px; font-size:12px; white-space:nowrap; }
  html[data-edition="studio"] .catalog-navigation { padding-bottom:8px; }
  html[data-edition="studio"] .product-grid { gap:12px 10px; perspective:none; }
  html[data-edition="studio"] .product-card { padding:3px; border-radius:18px; box-shadow:inset 0 1px #fff2,0 7px 16px #0003; }
  html[data-edition="studio"] .product-photo { border-radius:14px; }
  html[data-edition="studio"] .product-card-body { padding:8px 1px 5px 5px; min-height:66px; }
  html[data-edition="studio"] .product-card h3 { font-size:13px; line-height:1.4; overflow-wrap:anywhere; }
  html[data-edition="studio"] .product-card .product-price { font-size:16px; }
  html[data-edition="studio"] .product-photo .alternate-photo { display:none; }
  html[data-edition="studio"] .catalog-pagination .button { min-height:48px; width:min(100%,240px); }
  html[data-edition="studio"] .delivery-card { padding:12px; }

  /* The compact glass dock is reserved in layout and respects the home indicator. */
  html[data-edition="studio"] body:is([data-view="shop"],[data-view="order"]) .mobile-shop-nav {
    position:fixed; z-index:8; display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
    left:max(12px,env(safe-area-inset-left,0px)); right:max(12px,env(safe-area-inset-right,0px));
    bottom:calc(8px + env(safe-area-inset-bottom,0px)); gap:4px; padding:5px;
    border:1px solid #c6c6c64d; border-radius:21px;
    background:linear-gradient(120deg,#3a3a3aed,#191919f5);
    backdrop-filter:blur(16px) saturate(0); -webkit-backdrop-filter:blur(16px) saturate(0);
    box-shadow:inset 0 1px #fff2,0 8px 30px #0009;
  }
  html[data-edition="studio"] .mobile-shop-nav button {
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
    min-height:52px; padding:5px 4px; border-radius:15px; background:none; color:#bebebe; font-size:11px;
  }
  html[data-edition="studio"] .mobile-shop-nav button[aria-pressed="true"] { background:#d7d7d71a; color:#fff; }
  html[data-edition="studio"] .mobile-shop-nav svg { width:19px; height:19px; }
  .mobile-cart-icon { position:relative; display:flex; }
  [data-mobile-cart-count] { position:absolute; left:15px; top:-4px; min-width:15px; padding:0 3px; border-radius:6px; font:500 9px/15px var(--modern); background:#e9e9e9; color:#1a1a1a; }
  html[data-edition="studio"] body:has(#search:focus) .mobile-shop-nav { display:none; }
  html[data-edition="studio"] .toast { bottom:calc(84px + env(safe-area-inset-bottom,0px)); left:12px; right:12px; font-size:12px; }
  html[data-edition="studio"] .toast>span { min-width:0; }
  html[data-edition="studio"] .toast .toast-close { width:44px; flex:none; }

  /* Product photos can be swiped; the purchase controls stay near the thumb. */
  html[data-edition="studio"] body[data-view="product"] { padding-bottom:calc(122px + env(safe-area-inset-bottom,0px)); }
  html[data-edition="studio"] .product-page { padding-top:8px; }
  html[data-edition="studio"] .breadcrumb { margin-bottom:8px; }
  html[data-edition="studio"] .product-layout { gap:18px; }
  html[data-edition="studio"] .gallery-track { border-radius:19px; overscroll-behavior-x:contain; }
  html[data-edition="studio"] .gallery-slide { aspect-ratio:1; }
  html[data-edition="studio"] .gallery-slide img { object-fit:contain; }
  html[data-edition="studio"] .gallery-thumbs { overflow-x:auto; padding:3px; margin-top:7px; }
  html[data-edition="studio"] .gallery-thumbs button { flex:0 0 48px; width:48px; height:48px; border-radius:10px; }
  html[data-edition="studio"] .gallery-caption { font-size:11px; margin-top:5px; }
  html[data-edition="studio"] .product-info { padding:18px 16px; border-radius:20px; }
  html[data-edition="studio"] .product-info h1 { font-size:27px; line-height:1.15; }
  html[data-edition="studio"] .product-thai-name { font-size:13px; }
  html[data-edition="studio"] .product-info .product-price { font-size:26px; margin-top:12px; }
  html[data-edition="studio"] .variant-button { min-height:44px; font-size:14px; }
  html[data-edition="studio"] .product-details summary { min-height:48px; font-size:14px; }
  html[data-edition="studio"] .product-details details p { font-size:13px; }
  html[data-edition="studio"] .product-buy {
    position:fixed; z-index:8; left:max(12px,env(safe-area-inset-left,0px)); right:max(12px,env(safe-area-inset-right,0px));
    bottom:calc(8px + env(safe-area-inset-bottom,0px)); margin:0; max-width:none; padding:9px 10px;
    border:1px solid #cbcbcb4d; border-radius:20px; background:linear-gradient(120deg,#3a3a3af5,#191919fa);
    backdrop-filter:blur(16px) saturate(0); -webkit-backdrop-filter:blur(16px) saturate(0); box-shadow:inset 0 1px #fff2,0 8px 30px #0009;
  }
  html[data-edition="studio"] .quantity-field { gap:3px; font-size:11px; flex-basis:62px; }
  html[data-edition="studio"] .quantity-field input { min-height:46px; font-size:16px; padding:8px; }
  html[data-edition="studio"] .product-buy .button { min-height:46px; font-size:14px; }
  html[data-edition="studio"] body[data-view="product"] .toast { bottom:calc(112px + env(safe-area-inset-bottom,0px)); }

  /* Bottom sheets use their own scroll area; actions remain reachable. */
  html[data-edition="studio"] .cart-drawer,
  html[data-edition="studio"] .filter-drawer,
  html[data-edition="studio"] .menu-drawer {
    inset:auto 0 0; margin:0; width:100%; max-width:100%; height:auto;
    max-height:calc(100dvh - 20px - env(safe-area-inset-top,0px));
    padding-bottom:env(safe-area-inset-bottom,0px); border-radius:24px 24px 0 0;
    overscroll-behavior-y:contain;
  }
  html[data-edition="studio"] .cart-drawer { height:calc(92dvh - env(safe-area-inset-top,0px)); }
  html[data-edition="studio"] .cart-drawer .dialog-heading { flex:none; }
  html[data-edition="studio"] #cart-content { min-height:0; overflow-y:auto; overscroll-behavior-y:contain; }
  html[data-edition="studio"] .cart-bottom { position:sticky; bottom:0; background:#1f1f1f; padding:12px 18px; }
  html[data-edition="studio"] .cart-bottom .secondary { display:none; }
  html[data-edition="studio"] .cart-bottom .button { min-height:48px; font-size:14px; }
  html[data-edition="studio"] .cart-bottom p { margin-top:8px; font-size:10px; }
  html[data-edition="studio"] .cart-item select,
  html[data-edition="studio"] .cart-quantity input,
  html[data-edition="studio"] #filter-form select,
  html[data-edition="studio"] .field input,
  html[data-edition="studio"] .field textarea { font-size:16px; }
  html[data-edition="studio"] .cart-item h3 { font-size:13px; }
  html[data-edition="studio"] .checkout-form { padding:16px; }
  html[data-edition="studio"] .field-pair { grid-template-columns:1fr; }
  html[data-edition="studio"] .checkout-page h1 { font-size:27px; }
  html[data-edition="studio"] .site-footer { margin-top:20px; }
  html[data-edition="studio"] body[data-view="checkout"] { padding-bottom:24px; }
}

@media (max-width:359px) {
  html[data-edition="studio"] .studio-hero h1 { font-size:29px; }
  html[data-edition="studio"] .shop-heading h2 { font-size:18px; }
  html[data-edition="studio"] .category-nav button { font-size:11px; padding-inline:8px; }
  html[data-edition="studio"] .product-card h3 { font-size:12px; }
  html[data-edition="studio"] .product-card-body { padding-left:3px; }
}
