/* Compact storefront composition for phones. Keep the shared Origyn palette. */
.store-mobile-nav { display:none; }
@media(max-width:700px) {
  body.store-page.origyn-brand { padding-bottom:calc(78px + env(safe-area-inset-bottom)); }
  body.store-page.origyn-brand .store-header nav {
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"brand actions" "search search" "links links";
    gap:5px 8px;
    padding:8px 12px 7px;
  }
  body.store-page.origyn-brand .store-header nav>.store-search-top {
    display:grid; justify-self:stretch; width:100%; max-width:none; min-height:44px; height:44px;
    padding-inline:2px; grid-template-columns:38px minmax(0,1fr) 38px;
  }
  body.store-page.origyn-brand .store-header nav>.store-delivery-location { grid-row:3; grid-column:1; justify-self:start; margin-left:0; }
  body.store-page.origyn-brand .store-header nav>.bharatiya-filter-wrap { grid-row:3; grid-column:2; justify-self:end; margin:0; }
  body.store-page.origyn-brand .store-header nav>.store-search-top>span,
  body.store-page.origyn-brand .store-header nav>.store-search-top #clear-search { width:38px; min-width:38px; }
  body.store-page.origyn-brand .store-header .store-nav-links { display:none; }
  body.store-page.origyn-brand .store-nav-actions { gap:2px; }
  /* Orders and the profile menu (sign-in, settings) stay reachable on phones. */
  body.store-page.origyn-brand .store-nav-actions .nav-action { width:40px; min-width:40px; min-height:44px; padding:3px; }
  body.store-page.origyn-brand .store-nav-actions .nav-action span { display:none; }
  body.store-page.origyn-brand .store-nav-actions [data-profile-toggle] { min-width:40px; min-height:44px; }
  body.store-page.origyn-brand .store-nav-actions #cart-open { position:relative; }
  body.store-page.origyn-brand .store-nav-actions #cart-count { position:absolute; top:0; right:0; }
  body.store-page.origyn-brand .store-header nav>.store-delivery-location { min-height:44px; padding:3px 8px; }
  body.store-page.origyn-brand .bharatiya-seasonal-filter { min-height:44px; min-width:44px; padding:4px 9px; }
  body.store-page.origyn-brand .bharatiya-seasonal-filter span { display:none; }
  /* On the narrowest phones Saved lives in the bottom bar so the brand stays readable. */
  @media(max-width:359px) { body.store-page.origyn-brand .store-nav-actions #wishlist-open { display:none; } }

  body.store-page.origyn-brand #discover.catalogue-controls {
    width:100%; margin:0; padding:5px 12px 8px; overflow:hidden;
  }
  body.store-page.origyn-brand #categories.quick-filters {
    display:flex; flex-wrap:nowrap!important; align-items:center; gap:7px; overflow-x:auto; overflow-y:hidden;
    padding:2px 1px 7px; overscroll-behavior-inline:contain; scroll-snap-type:x proximity;
    scrollbar-width:thin; scrollbar-color:var(--ui-accent-strong) var(--ui-soft);
  }
  body.store-page.origyn-brand #categories .filter,
  body.store-page.origyn-brand #categories .category-filter-parent,
  body.store-page.origyn-brand #categories .category-filter-children .filter {
    flex:0 0 auto; width:auto; min-height:44px; padding:0 13px; white-space:nowrap; border-radius:999px; font-size:11px; scroll-snap-align:start;
  }
  body.store-page.origyn-brand #categories .category-filter-group { display:flex; flex:0 0 auto; flex-direction:row; align-items:center; width:auto; gap:6px; }
  body.store-page.origyn-brand #categories .category-filter-children { display:flex; width:auto; flex-wrap:nowrap; gap:6px; }

  .bharatiya-seasonal-banner {
    min-height:220px; margin:6px 12px 14px; padding:16px 14px; overflow:hidden;
    grid-template-columns:minmax(0,1fr); gap:0; border:1px solid color-mix(in srgb,var(--ui-accent) 55%,var(--ui-line));
    border-radius:16px; background:var(--ui-surface); box-shadow:var(--ui-shadow);
  }
  .bharatiya-seasonal-lockup { display:none; }
  .bharatiya-seasonal-art { width:100%; opacity:.62; }
  .bharatiya-seasonal-art img { object-fit:cover; object-position:center; }
  .bharatiya-seasonal-art::after { background:linear-gradient(90deg,color-mix(in srgb,var(--ui-bg) 96%,transparent) 0%,color-mix(in srgb,var(--ui-bg) 82%,transparent) 42%,color-mix(in srgb,var(--ui-bg) 18%,transparent) 100%); }
  .bharatiya-seasonal-copy { align-self:center; width:min(78%,390px); padding:0 4px; }
  .bharatiya-seasonal-copy .bharatiya-seasonal-kicker { margin:0 0 8px; font-size:9px; letter-spacing:.14em; }
  .bharatiya-seasonal-copy h1 { max-width:17ch; font-size:clamp(23px,7vw,30px); line-height:1.05; }
  .bharatiya-seasonal-copy>p:not(.bharatiya-seasonal-kicker) { max-width:30ch; margin:7px 0 10px; font-size:12px; }
  .bharatiya-seasonal-cta { min-height:40px; padding:8px 12px; font-size:11px; }
  .bharatiya-carousel-controls { bottom:7px; }
  /* Keep the slide dots clear of the call-to-action button. */
  .bharatiya-carousel-dots { right:8px; bottom:2px; left:auto; transform:none; }

  .catalogue-shell { width:100%; padding:0 12px 24px; }
  .store-category-showcase { width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0 0 14px; }
  .store-category-card { min-height:94px; padding:10px; border-radius:12px; }
  .store-category-card>span { gap:3px; font-size:13px; }
  .store-category-card small { font-size:9px; }
  .store-category-card>i { width:26px; height:26px; font-size:13px; }

  .recommendations-collection,.product-collection,.all-products-section {
    margin:0 0 12px; padding:13px; border-radius:14px;
  }
  .recommendations-collection .collection-heading { margin-bottom:9px; }
  .recommendations-collection .collection-heading .eyebrow { margin-bottom:4px; font-size:9px; }
  .recommendations-collection .collection-heading.compact h2 { font-size:22px; line-height:1.1; }
  .recommendations-collection #recommendations-note { display:none; }
  #recommendations-grid.store-grid,.product-collection .store-grid,.all-products-section .store-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px;
  }
  #recommendations-grid .product-visual,.product-collection .product-visual,.all-products-section .product-visual {
    height:clamp(118px,39vw,158px)!important;
  }
  #recommendations-grid .product-body,.product-collection .product-body,.all-products-section .product-body { padding:10px!important; }
  #recommendations-grid .product-card h3,.product-collection .product-card h3,.all-products-section .product-card h3 {
    display:-webkit-box; min-height:2.5em; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; font-size:13px!important; line-height:1.25!important;
  }
  #recommendations-grid .product-card p,.product-collection .product-card p,.all-products-section .product-card p { display:none; }
  #recommendations-grid .product-foot,.product-collection .product-foot,.all-products-section .product-foot { display:flex!important; align-items:center!important; flex-wrap:wrap; gap:6px; margin-top:6px; }
  #recommendations-grid .product-price,.product-collection .product-price,.all-products-section .product-price { font-size:14px; }
  #recommendations-grid .product-actions,.product-collection .product-actions,.all-products-section .product-actions { width:100%; gap:5px; }
  #recommendations-grid .product-actions .mini-btn,.product-collection .product-actions .mini-btn,.all-products-section .product-actions .mini-btn { min-height:36px; padding:6px; font-size:10px; }
  .bharatiya-collection .collection-heading h2 { font-size:25px; line-height:1.1; }
  .bharatiya-collection .collection-heading>p:last-child { margin-top:7px; font-size:12px; }
  .all-products-section .collection-heading h2 { font-size:25px; }

  .store-mobile-nav {
    position:fixed; z-index:500; right:10px; bottom:max(8px,env(safe-area-inset-bottom)); left:10px;
    display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); min-height:62px; padding:5px 4px;
    border:1px solid var(--ui-line); border-radius:18px;
    background:color-mix(in srgb,var(--ui-bg) 94%,transparent); color:var(--ui-ink);
    box-shadow:0 8px 28px color-mix(in srgb,var(--ui-bg) 50%,transparent); backdrop-filter:blur(14px);
  }
  .store-mobile-nav :is(a,button) {
    position:relative; display:flex; min-width:0; min-height:50px; flex-direction:column; align-items:center; justify-content:center;
    gap:3px; padding:3px; border:0; border-radius:12px; background:transparent; color:var(--ui-muted);
    font:inherit; font-size:9px; font-weight:700; text-decoration:none; cursor:pointer;
  }
  .store-mobile-nav svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
  .store-mobile-nav [href="#discover"] { color:var(--ui-accent-strong); }
  .store-mobile-nav [data-mobile-cart-open] b { position:absolute; top:0; right:calc(50% - 20px); min-width:15px; height:15px; padding:0 3px; border-radius:999px; background:var(--ui-accent); color:var(--ui-bg); font-size:9px; line-height:15px; }
  .store-mobile-nav [data-mobile-cart-open] b[hidden] { display:none; }
  .store-mobile-nav :is(a,button):focus-visible { outline:2px solid var(--ui-accent); outline-offset:-2px; }
}
@media(prefers-reduced-motion:reduce) { .store-mobile-nav * { scroll-behavior:auto; transition:none; } }
