/* Mobile-only storefront composition. Desktop rules remain authoritative above 760px. */
@media (max-width: 760px) {
  html, body { width: 100%; max-width: 100%; overflow-x: clip; }
  body { min-width: 0; }
  img, svg, video { max-width: 100%; }
  .announcement {
    min-height: 38px;
    padding: 8px max(16px, env(safe-area-inset-left)) 8px max(16px, env(safe-area-inset-right));
    text-align: center;
    overflow-wrap: anywhere;
  }
  header#site-header {
    height: 70px;
    min-height: 70px;
    padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
    gap: 8px;
  }
  header#site-header.scrolled { height: 64px; min-height: 64px; }
  header#site-header .logo { width: 106px; height: 60px; padding: 2px; flex: 0 0 auto; }
  header#site-header .mobile-menu { order: 2; margin: 0 auto 0 0; position: static; }
  header#site-header .header-tools { order: 3; margin-left: auto; gap: 4px; }
  .mobile-nav-ready header#site-header .header-tools > :not(.cart-button):not(.search-button) { display: none !important; }
  header#site-header .search-button {
    display: inline-grid;
    place-items: center;
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 8px;
  }
  header#site-header .search-button .header-icon { width: 19px; height: 19px; }
  header#site-header .cart-button {
    display: inline-flex;
    min-width: 46px;
    min-height: 46px;
    padding: 8px;
    justify-content: center;
  }
  .mobile-menu > summary {
    min-width: 48px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    font-size: 11px;
  }
  .mobile-menu[open] > summary { color: var(--pink); }
  .mobile-menu > div {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: var(--mobile-menu-height, calc(100dvh - 108px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px max(18px, env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom));
    gap: 0;
    box-shadow: 0 18px 35px #0002;
  }
  .mobile-menu > div > a,
  .mobile-category-group > a,
  .mobile-menu-utilities > a,
  .mobile-menu-utilities > button {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font: 12px 'DM Mono';
    letter-spacing: .03em;
  }
  .mobile-audience-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 8px; border-bottom: 1px solid var(--black); }
  .mobile-audience-tabs button { position: relative; min-height: 54px; border: 0; background: var(--white); color: var(--gray); font: 600 14px 'DM Mono'; letter-spacing: .08em; cursor: pointer; }
  .mobile-audience-tabs button.active { color: var(--black); }
  .mobile-audience-tabs button.active::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 3px; background: var(--pink); }
  [data-mobile-category-menu] { display: grid; gap: 0; }
  .mobile-audience-all { min-height: 48px; display: flex; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--black); text-decoration: none; font: 12px 'DM Mono'; }
  .mobile-subcategory-list { gap: 0; padding: 2px 0 6px 14px; }
  .mobile-subcategory-list a { min-height: 38px; display: flex; align-items: center; }
  .mobile-categories-label { margin: 16px 0 5px; }
  .mobile-menu-utilities { display: grid; gap: 0; margin-top: 14px; border-top: 1px solid var(--black); }
  .mobile-menu-utilities > button { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--black); text-align: left; }
  .mobile-menu-selectors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 14px; }
  .mobile-menu-selectors label { display: grid; gap: 6px; color: var(--gray); font: 9px 'DM Mono'; }
  .mobile-menu-selectors select { width: 100%; min-height: 44px; border: 1px solid var(--black); background: var(--white); padding: 8px; font: 12px 'DM Mono'; }

  .hero { min-height: min(680px, calc(100svh - 38px)); height: calc(100svh - 38px); max-height: 760px; }
  .hero-image { inset: 0; }
  .hero-image img { object-position: 58% center; }
  .hero-image::after { background: linear-gradient(0deg, #111 5%, #111b 38%, #1110 75%); }
  .hero-copy { left: 20px; right: 20px; bottom: 66px; max-width: 430px; }
  .hero h1 { font-size: clamp(47px, 15vw, 66px); line-height: .9; overflow-wrap: anywhere; }
  .hero-copy > p:not(.eyebrow) { margin: 18px 0 22px; max-width: 310px; }
  .hero-controls { right: 16px; bottom: 14px; }
  .hero-controls button, .gallery-nav button { width: 44px; height: 44px; }
  .button { min-height: 48px; padding: 14px 16px; }
  .shop-section { padding: 64px 16px; }
  .section-header { gap: 12px; margin-bottom: 24px; }
  .section-header h2 { font-size: clamp(28px, 9vw, 38px); }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
  .product-card { min-width: 0; }
  .product-card > div { padding-top: 10px; }
  .product-card h3 { font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
  .product-card p { font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
  .product-card .text-link { white-space: normal; line-height: 1.5; }
  .collection-banner { display: flex; flex-direction: column; min-height: 0; }
  .collection-banner > div { padding: 62px 20px 48px; }
  .collection-banner h2 { font-size: clamp(43px, 13.5vw, 62px); line-height: .9; overflow-wrap: anywhere; margin-bottom: 26px; }
  .collection-banner img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-position: 65% center; }
  .about { padding: 70px 20px; }
  .about h2 { font-size: clamp(38px, 12vw, 56px); line-height: .92; overflow-wrap: anywhere; }
  footer { grid-template-columns: 1fr; gap: 30px; padding: 46px max(20px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
  footer > div:first-child { grid-column: auto; }
  footer > div:not(:first-child) { gap: 10px; }
  footer a { min-height: 32px; display: flex; align-items: center; width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
  .footer-logo { width: 142px; height: 92px; }
  .newsletter-signup { grid-column: auto; width: 100%; }
  .newsletter-email input { max-width: none; min-height: 44px; font-size: 16px; }
  .newsletter-consent { max-width: none; font-size: 10px; }
  .newsletter-consent input { width: 20px; height: 20px; flex: 0 0 auto; }
  .newsletter-signup button { min-height: 44px; padding: 10px 14px; }

  .drawer { width: 100%; height: 100dvh; padding-bottom: env(safe-area-inset-bottom); }
  .drawer-header { min-height: 64px; padding: 14px 18px; }
  .close-cart { min-width: 44px; min-height: 44px; }
  .cart-items { padding: 12px 16px; }
  .cart-line { grid-template-columns: 68px minmax(0, 1fr) 38px; gap: 10px; }
  .cart-line img { width: 68px; height: 86px; }
  .cart-line > div { min-width: 0; }
  .cart-line h3, .cart-line p { overflow-wrap: anywhere; }
  .cart-line > button { min-width: 38px; min-height: 38px; }
  .cart-line .cart-quantity button { width: 34px; height: 34px; }
  .drawer-bottom { padding: 15px 18px calc(15px + env(safe-area-inset-bottom)); }
  #toast, #buybias-feedback { bottom: calc(14px + env(safe-area-inset-bottom)); width: calc(100% - 28px); text-align: center; }

  .category-page { padding: 26px 16px 64px; }
  .category-heading { gap: 18px; margin-bottom: 30px; }
  .category-heading h1 { font-size: clamp(42px, 14vw, 58px); overflow-wrap: anywhere; }
  .category-heading img { max-height: none; aspect-ratio: 16 / 10; }
  .audience-filters { gap: 7px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .audience-filters button { min-height: 44px; flex: 0 0 auto; }

  .product-page { padding: 20px 16px 64px; }
  .product-gallery { height: auto; aspect-ratio: 4 / 5; min-height: 0; }
  .product-gallery img { display: block; object-position: center; }
  .product-thumbnails { gap: 7px; scroll-snap-type: x proximity; }
  .product-thumbnails button { flex-basis: 64px; min-height: 76px; scroll-snap-align: start; }
  .product-info { padding: 32px 0 0; }
  .product-info h1 { font-size: clamp(39px, 12vw, 52px); overflow-wrap: anywhere; }
  .price { margin: 14px 0 22px; }
  .description { max-width: none; }
  .size-picker { margin: 24px 0; }
  .size-picker #variant-picker { display: flex; flex-wrap: wrap; gap: 7px; }
  .size-picker button { min-width: 46px; height: 44px; margin: 0; }
  .add-product { width: 100%; min-height: 54px; margin-bottom: 24px; }
  .product-meta, .product-info details { max-width: none; }

  .store-search {
    top: var(--mobile-search-top, 70px);
    bottom: 0;
    height: auto;
    max-height: none;
    padding: 14px 16px calc(28px + env(safe-area-inset-bottom));
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease, visibility 0s linear .16s;
  }
  .store-search.open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .store-search-head { gap: 8px; }
  .store-search-head input { min-width: 0; font-size: 24px; }
  .store-search-head button { min-width: 48px; min-height: 48px; }
  .store-search-results { grid-template-columns: 1fr; margin-top: 16px; }
  .store-search-result { grid-template-columns: 58px minmax(0, 1fr); min-height: 78px; }
  .store-search-result img { width: 58px; height: 72px; }

  .content-page { min-height: 58vh; padding: 54px 20px 72px; }
  .content-page h1 { font-size: clamp(44px, 14vw, 64px); margin-bottom: 25px; overflow-wrap: anywhere; }
  .content-page-body { font-size: 15px; }
  .contact-email-block a { font-size: 16px; }
  .success { min-height: calc(100svh - 70px); padding: 40px 20px; }
  .success h1 { font-size: clamp(46px, 15vw, 68px); overflow-wrap: anywhere; }
}

@media (max-width: 480px) {
  .checkout-page { padding: 26px 14px 60px; }
  .checkout-head { margin-bottom: 22px; }
  .checkout-head h1 { font-size: clamp(42px, 14vw, 58px); }
  .checkout-head > .text-link { display: inline-block; margin-top: 16px; white-space: normal; }
  .checkout-grid { gap: 14px; }
  .checkout-panel, .checkout-summary { padding: 17px 14px; min-width: 0; }
  .checkout-fields input, .checkout-fields select { min-height: 46px; font-size: 16px; }
  .choice { min-height: 50px; padding: 12px 10px; }
  .choice input { width: 20px; height: 20px; flex: 0 0 auto; }
  .summary-line { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; }
  .summary-line img { width: 52px; height: 66px; }
  .summary-line > div { min-width: 0; }
  .summary-line h3, .summary-line p { overflow-wrap: anywhere; }
  .summary-totals div { gap: 12px; }
  .summary-totals b { text-align: right; overflow-wrap: anywhere; }
  .checkout-submit { min-height: 54px; }

  .account-page { padding: 26px 14px 56px; }
  .account-heading h1 { font-size: clamp(42px, 14vw, 58px); }
  .account-card, .orders-card { padding: 18px 14px; min-width: 0; }
  .account-card input { min-height: 46px; font-size: 16px; }
  .account-actions { flex-wrap: wrap; align-items: stretch; }
  .account-actions .text-link, .account-actions .account-logout { min-height: 44px; display: flex; align-items: center; justify-content: center; flex: 1 1 120px; }
  .account-order { min-width: 0; }
  .account-order h3, .account-order p { overflow-wrap: anywhere; }
  .account-cart-card { min-height: 124px; }
  .reset-page { padding: 42px 14px 60px !important; }
  .reset-card { padding: 18px 14px !important; }
  .reset-card input { min-height: 46px; font-size: 16px !important; }
}

@media (max-width: 340px) {
  header#site-header .logo { width: 92px; }
  .mobile-menu > summary { min-width: 44px; padding-inline: 5px; }
  .products { gap-inline: 8px; }
  .product-card h3 { font-size: 11px; }
  .section-header .text-link { font-size: 9px; }
  .summary-line { grid-template-columns: 46px minmax(0, 1fr); }
  .summary-line img { width: 46px; height: 60px; }
  .summary-line > b { grid-column: 2; }
}

@media (max-width: 330px) {
  .mobile-menu-selectors { grid-template-columns: 1fr; }
}

@media (min-width: 761px) and (max-width: 900px) {
  header#site-header { height: 76px; min-height: 76px; padding-inline: 24px; gap: 10px; }
  header#site-header .desktop-nav { display: none; }
  header#site-header .logo { width: 116px; height: 68px; padding: 2px; flex: 0 0 auto; }
  header#site-header .mobile-menu { display: block; position: static; order: 2; margin: 0 auto 0 0; border: 0; padding: 0; max-width: none; }
  header#site-header .header-tools { order: 3; margin-left: auto; }
  .mobile-nav-ready header#site-header .header-tools > :not(.cart-button):not(.search-button) { display: none !important; }
  header#site-header .search-button { display: inline-grid; place-items: center; width: 46px; min-width: 46px; min-height: 46px; padding: 8px; }
  .mobile-menu > summary { min-height: 46px; display: inline-flex; align-items: center; padding: 0 12px; list-style: none; font: 11px 'DM Mono'; }
  .mobile-menu > summary::-webkit-details-marker { display: none; }
  .mobile-menu > div { position: absolute; z-index: 19; top: 100%; left: 0; right: 0; width: 100%; max-height: var(--mobile-menu-height, calc(100dvh - 118px)); overflow-y: auto; background: var(--white); border-bottom: 1px solid var(--black); padding: 20px 24px calc(96px + env(safe-area-inset-bottom)); scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); box-shadow: 0 18px 35px #0002; }
  .mobile-menu > div > a, .mobile-menu-utilities > a, .mobile-menu-utilities > button { min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--line); color: var(--black); text-decoration: none; font: 12px 'DM Mono'; }
  [data-mobile-category-menu], .mobile-category-group, .mobile-subcategory-list { display: grid; gap: 8px; }
  .mobile-audience-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 8px; border-bottom: 1px solid var(--black); }
  .mobile-audience-tabs button { position: relative; min-height: 54px; border: 0; background: var(--white); color: var(--gray); font: 600 14px 'DM Mono'; letter-spacing: .08em; }
  .mobile-audience-tabs button.active { color: var(--black); }
  .mobile-audience-tabs button.active::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 3px; background: var(--pink); }
  .mobile-audience-all { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); color: var(--black); text-decoration: none; font: 12px 'DM Mono'; }
  .mobile-category-group > a, .mobile-subcategory-list a { min-height: 38px; display: flex; align-items: center; color: var(--black); text-decoration: none; font: 11px 'DM Mono'; }
  .mobile-subcategory-list { padding-left: 14px; }
  .mobile-categories-label { display: block; margin: 16px 0 7px; color: var(--gray); font: 9px 'DM Mono'; }
  .mobile-menu-utilities { display: grid; margin-top: 14px; border-top: 1px solid var(--black); }
  .mobile-menu-utilities > button { width: 100%; border-width: 0 0 1px; background: none; text-align: left; }
  .mobile-menu-selectors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 14px; }
  .mobile-menu-selectors label { display: grid; gap: 6px; color: var(--gray); font: 9px 'DM Mono'; }
  .mobile-menu-selectors select { min-height: 44px; border: 1px solid var(--black); background: var(--white); padding: 8px; }
}

@keyframes buybias-mobile-menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .mobile-menu[open] > div { animation: buybias-mobile-menu-in .16s ease-out; } }

@media (min-width: 761px) and (max-width: 1050px) {
  header#site-header { padding-inline: 3vw; }
  header#site-header nav { gap: 18px; margin-left: 2vw; }
  header#site-header .header-tools { gap: 8px; }
  .product-detail { gap: 4vw; }
  .checkout-grid { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu > div, .drawer, .store-search { scroll-behavior: auto; }
  .mobile-menu[open] > div { animation: none; }
}
