/* Mobile storefront refinements; desktop rules remain in styles.css. */
.mobile-announcement { display: none; }

@media (max-width: 1080px) {
  .header-main-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .header-logo-center { justify-content: flex-start; height: 64px; }
  .central-brand-link, .central-brand-link:hover { position: static; transform: none; }
  .main-central-logo { width: 150px; height: 64px; max-width: 100%; border-radius: 0; }
  .nav-cluster-right { grid-column: 2; gap: 0; }
  .header-actions-group { gap: 8px; }
  .header-mobile-toggle { width: 44px; height: 44px; align-items: center; justify-content: center; padding: 8px; }
  .header-mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .header-mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .header-mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .mobile-nav-panel { top: var(--mobile-header-bottom, 80px); left: 12px; right: 12px; gap: 2px; padding: 12px; max-height: calc(100vh - 110px); max-height: calc(100dvh - var(--mobile-header-bottom, 80px) - 16px); overflow-y: auto; overscroll-behavior: contain; }
  .mobile-nav-panel .header-nav-link { display: flex; align-items: center; min-height: 48px; padding: 12px 14px; font-size: .9rem; }
  .mobile-nav-panel .header-nav-link.active::after { display: none; }
  .mobile-nav-panel .header-nav-link.active { background: var(--mm-green-50); }
}

@media (max-width: 768px) {
  .container { padding-inline: 20px; min-width: 0; }
  .container > *, .mobile-stack > *, .footer-grid > * { min-width: 0; }
  .mobile-stack { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; }
  .mobile-content-section { padding-block: 44px !important; }
  .mobile-page-intro { padding-block: 32px !important; }
  .mobile-page-intro p { font-size: .88rem !important; line-height: 1.65 !important; }
  .mobile-page-intro h1 { font-size: clamp(2rem, 8vw, 2.7rem) !important; line-height: 1.12; }
  h1, h2, h3 { text-wrap: balance; }
  .mobile-button-row { flex-direction: column; }
  .mobile-button-row button { width: 100%; height: auto !important; min-height: 52px; padding: 12px 16px; font-size: .85rem; }
  .mobile-breadcrumbs { flex-wrap: wrap; gap: 5px 8px !important; font-size: .75rem !important; padding-block: 12px !important; }
  .mobile-breadcrumbs > span { overflow-wrap: anywhere; }

  /* A compact, readable header with the full logo inside the viewport. */
  .header-main-bar { padding: 6px 16px; }
  .header-logo-center { height: 60px; }
  .main-central-logo { width: 142px; height: 60px; }
  .mobile-announcement { display: block; padding: 7px 16px; background: var(--mm-green-900); color: #f3e9d8; text-align: center; font-size: .65rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
  .site-header-full { padding-top: env(safe-area-inset-top); box-shadow: 0 3px 16px rgba(22,53,39,.06); }

  /* Product photography leads the mobile home page. */
  .hero-mountains-split { display: flex; flex-direction: column; min-height: 0; }
  .hero-split-right { order: -1; height: 280px; min-height: 0; }
  .hero-split-img { object-position: center 48%; }
  .hero-circular-stamp, .hero-split-footer-left { display: none; }
  .hero-split-footer-right { left: 16px; top: 16px; bottom: auto; padding: 8px 12px; max-width: 54%; }
  .hero-split-footer-right span { font-size: .6rem; }
  .hero-split-footer-right strong { font-size: .85rem; }
  .hero-visual-controls { right: 12px; bottom: 16px; gap: 3px; padding: 4px; }
  .hero-visual-controls button { width: 44px; height: 44px; min-width: 44px; }
  .hero-visual-dots { gap: 0; }
  .hero-visual-controls .hero-visual-dot { width: 44px; min-width: 44px; }
  .hero-visual-controls .hero-visual-autoplay { width: 44px; min-width: 44px; }
  .hero-split-left { padding: 28px 20px 24px; }
  .hero-split-kicker { font-size: .6rem; letter-spacing: .1em; margin-bottom: 14px; }
  .hero-split-title { font-size: clamp(2.6rem, 10.2vw, 3.7rem); line-height: 1.02; margin-bottom: 16px; }
  .hero-split-lead { font-size: .88rem; line-height: 1.65; margin-bottom: 20px; max-width: 34rem; }
  .hero-split-actions { gap: 14px; align-items: center; }
  .hero-split-actions > a:first-child { padding: 14px 18px; min-height: 48px; font-size: .7rem; }
  .hero-split-actions > a:last-child { font-size: .65rem; }
  .hero-assurance { margin-top: 22px; padding-top: 16px; gap: 8px 14px; font-size: .6rem; }
  .source-split-visual { height: 300px; min-height: 0; }
  .source-split-editorial { padding: 36px 20px; }
  .work-together-section, .brand-pillars-editorial { padding-block: 44px; }
  .green-assurance-inner { align-items: stretch; gap: 16px; }
  .green-assurance-inner > * { min-width: 0; }
  .green-assurance-inner > div:last-child { width: 100%; flex-wrap: wrap; }
  .green-assurance-inner a { flex: 1; text-align: center; }

  /* Cards fit the screen; horizontal swiping is contained to the home carousel. */
  .products-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-item-card { min-width: 0; padding: 12px; border-radius: 16px; }
  .card-media-wrap { margin-bottom: 12px; border-radius: 10px; }
  .card-tag-pill { top: 6px; left: 6px; padding: 4px 7px; font-size: .55rem; letter-spacing: .02em; }
  .card-meta-line { flex-wrap: wrap; gap: 3px; font-size: .6rem; }
  .card-meta-line > span:last-child { font-size: .6rem !important; }
  .card-item-title { display: block; font-size: 1.1rem; line-height: 1.2; overflow: visible; min-height: 0; margin-bottom: 8px; }
  .card-item-desc { font-size: .72rem; line-height: 1.45; margin-bottom: 12px; }
  .card-variants-row { gap: 5px; margin-bottom: 12px; }
  .card-variants-row .variant-chip { flex: 1 1 auto; min-height: 40px; padding: 7px 8px; font-size: .68rem; }
  .card-price-action-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .card-live-price { font-size: 1.08rem; }
  .btn-card-add-bag { width: 100%; min-height: 44px; padding: 10px 8px; font-size: .75rem; }
  .products-slider-track { min-width: 0; width: 100%; gap: 14px; padding-bottom: 16px; scroll-snap-type: x proximity; }
  .products-slider-track .product-item-card { flex: 0 0 min(78vw, 290px); min-width: 0; max-width: 290px; padding: 16px; scroll-snap-align: start; }
  .products-slider-track .card-item-title { font-size: 1.35rem; }
  .products-slider-track .card-meta-line { font-size: .75rem; }
  .shop-controls-panel { padding: 14px; margin-bottom: 24px; }
  .shop-filter-tabs-row { gap: 8px; flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 28px); margin-inline: -14px; padding: 0 14px 12px; scrollbar-width: thin; }
  .shop-filter-pill { flex: 0 0 auto; }
  .shop-filter-pill { min-height: 44px; padding: 9px 12px; font-size: .72rem; }
  .shop-counter-tag { font-size: .65rem; letter-spacing: .06em; }
  .shop-sort-box { width: 100%; min-width: 0; }
  .shop-sort-box select { min-width: 0; width: 0; flex: 1; }
  .shop-search-box input, .shop-sort-box select { min-height: 48px; font-size: 1rem; }

  /* Product details and checkout use one comfortable reading column. */
  .pdp-layout { gap: 24px !important; }
  #pdp-main-img { height: auto !important; aspect-ratio: 1; object-fit: cover; }
  .pdp-summary > h1 { font-size: 2.1rem !important; line-height: 1.1 !important; }
  .pdp-rating-row { flex-wrap: wrap; gap: 8px 10px !important; margin-bottom: 18px !important; }
  .pdp-rating-row > span { font-size: .75rem !important; }
  .pdp-purchase-row { flex-wrap: wrap; gap: 12px !important; }
  .pdp-purchase-row > button { flex: 1 1 160px; min-height: 50px; }
  #pdp-chips-wrap { gap: 8px !important; }
  #pdp-chips-wrap .variant-chip { padding: 12px 6px !important; min-height: 96px; }
  #pdp-chips-wrap .variant-chip > span { font-size: .75rem !important; }
  .pdp-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; font-size: .75rem !important; }
  .gold-outline-badge { max-width: 100%; font-size: .65rem; white-space: normal; }
  #pdp-display-savings:empty { display: none; }
  #checkout-active-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 22px !important; }
  #checkout-active-grid > div { padding: 22px 18px !important; position: static !important; }
  .checkout-heading { flex-wrap: wrap; gap: 8px; }
  .checkout-heading h2 { font-size: 1.5rem !important; }
  #order-checkout-form input, #order-checkout-form select, #order-checkout-form textarea,
  .mobile-stack input, .mobile-stack select, .mobile-stack textarea { min-height: 48px; font-size: 1rem !important; max-width: 100%; }
  .checkout-summary-item > img, .cart-item-row > img { flex-shrink: 0; }
  .checkout-summary-item > div { min-width: 0; }
  .checkout-summary-item h5, .cart-item-row h5 { overflow-wrap: anywhere; }
  .checkout-summary-item button, .cart-item-row button, .pdp-purchase-row button { min-width: 40px; min-height: 44px; }
  .checkout-summary-item .cart-item-total, .cart-item-row .cart-item-total { white-space: nowrap; font-size: .88rem !important; }
  .pdp-quantity { flex-shrink: 0; }

  /* Footer links and contact details no longer widen the page. */
  footer { padding: 40px 0 24px !important; }
  footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 20px !important; margin-bottom: 28px !important; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-grid > :first-child { max-width: 340px; }
  .footer-grid p, .footer-grid li { font-size: .85rem !important; overflow-wrap: anywhere; }
  .footer-grid h4 { font-size: .8rem !important; margin-bottom: 12px !important; }
  .footer-grid li a { display: inline-block; padding-block: 4px; }
  .footer-grid > :last-child a { overflow-wrap: anywhere; }
  footer .container:last-child { flex-wrap: wrap; gap: 12px !important; font-size: .72rem !important; }

  /* The bag stays inside the visual viewport, including phone safe areas. */
  .cart-drawer-sidebar { top: 6px; right: 6px; bottom: 6px; width: calc(100% - 12px); max-height: calc(100dvh - 12px); border-radius: 20px; overflow: hidden; }
  .cart-drawer-head { padding: 16px 18px; flex-shrink: 0; }
  .cart-drawer-head h3 { font-size: 1.5rem; }
  .cart-close-trigger { min-width: 44px; min-height: 44px; }
  .cart-drawer-items-list { padding: 8px 18px; min-height: 0; overscroll-behavior: contain; }
  .cart-drawer-foot { flex-shrink: 0; padding: 16px 18px max(16px, env(safe-area-inset-bottom)); }
  .cart-drawer-foot .btn-nav-wa { display: flex; align-items: center; justify-content: center; }
  .cart-drawer-foot a { min-height: 46px; font-size: .8rem !important; }
  .btn-mm-primary, .btn-gold-outline, .btn-work-wholesale { min-height: 46px; }
  button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--mm-gold-600); outline-offset: 3px; }
}

@media (max-width: 420px) {
  .hero-visual-controls .hero-visual-arrow { display: none; }
}

@media (max-width: 359px) {
  .container { padding-inline: 16px; }
  .products-catalog-grid { gap: 10px; }
  .products-catalog-grid .product-item-card { padding: 9px; }
  .products-catalog-grid .card-item-title { font-size: 1rem; }
  .hero-split-right { height: 240px; }
  .hero-split-actions { flex-wrap: wrap; }
  .hero-split-actions > a:first-child { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 1080px) {
  .mobile-nav-panel, .header-mobile-toggle span, .cart-drawer-overlay, .cart-drawer-sidebar { transition: none; }
}
