/* v13: on phones, long stacked sections become horizontal swipe rails (less scrolling) */
@media (max-width: 760px) {
  .who-grid, .trust-inner, .coll-grid, .review-row {
    display: grid; grid-template-columns: none; grid-auto-flow: column; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scroll-padding-inline: var(--gutter);
  }
  .who-grid::-webkit-scrollbar, .trust-inner::-webkit-scrollbar, .coll-grid::-webkit-scrollbar, .review-row::-webkit-scrollbar { display: none; }
  .who-grid > *, .trust-inner > *, .coll-grid > *, .review-row > * { scroll-snap-align: start; }

  /* "Is it for you?" cards: about 1.4 visible so the next one peeks in */
  .who-grid { grid-auto-columns: 72%; }
  .who-card { padding: 20px 18px; }

  /* promises: compact cards instead of a 2x2 grid */
  .trust-inner { grid-auto-columns: 58%; padding-top: 14px; padding-bottom: 18px; }
  .trust-item { border: 1px solid var(--line) !important; border-radius: 18px; background: #fff; padding: 18px 12px !important; }

  /* shop by collection: big swipeable cards */
  .coll-grid { grid-auto-columns: 80%; }
  .coll-img { aspect-ratio: 4 / 5; }

  /* customer reviews */
  .review-row { grid-auto-columns: 84%; align-items: stretch; }
  .review-card { border-radius: 20px; height: 100%; }
}
@media (max-width: 760px) {
  /* the promises strip is itself the page container, so keep its own side padding */
  .container.trust-inner { margin-inline: 0; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
}

/* phone header: emblem bigger and centred in the pill (menu left, search + bag right) */
@media (max-width: 960px) {
  .hdr--pill .hdr-inner { position: relative; height: 60px; }
  .hdr--pill .hdr-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); justify-self: auto; z-index: 1; }
  .hdr--pill .hdr-mark { height: 40px; }
  .hdr--pill.is-scrolled .hdr-inner { height: 56px; }
  .hdr--pill.is-scrolled .hdr-mark { height: 36px; }
}
@media (max-width: 960px) {
  /* phone header layout: menu + search on the left, emblem centred, wishlist + bag on the right */
  .hdr--pill .hdr-right [data-open="search"] { position: absolute; left: 50px; top: 50%; transform: translateY(-50%); }
  .hdr--pill .hdr-right a[href="/wishlist"] { display: inline-flex; }
}
@media (max-width: 400px) {
  .hdr--pill .icon-btn { width: 38px; height: 38px; }
  .hdr--pill .hdr-right [data-open="search"] { left: 48px; }
  .hdr-bag-pill { height: 38px; padding: 0 4px 0 10px; gap: 6px; }
  .hdr-bag-count { min-width: 24px; height: 24px; }
}
@media (max-width: 340px) { .hdr--pill .hdr-right a[href="/wishlist"] { display: none; } }

/* floating WhatsApp chat button (bottom right, every page) */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; text-decoration: none; animation: wa-in .5s .8s cubic-bezier(.2, .7, .2, 1) both; transition: bottom .5s cubic-bezier(.2, .7, .2, 1); }
.wa-float-btn { width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(20, 18, 15, .22); transition: transform .2s ease, box-shadow .2s ease; }
.wa-float-btn .icon { width: 28px; height: 28px; stroke: #fff; stroke-width: 1.8; fill: none; }
.wa-float-label { background: #fff; color: var(--ink); font-size: .85rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 18px rgba(20, 18, 15, .14); opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; white-space: nowrap; }
.wa-float:hover .wa-float-btn, .wa-float:focus-visible .wa-float-btn { transform: scale(1.06); box-shadow: 0 10px 28px rgba(20, 18, 15, .28); }
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { opacity: 1; transform: none; }
.wa-float:focus-visible { outline: none; }
.wa-float:focus-visible .wa-float-btn { outline: 3px solid var(--ink); outline-offset: 3px; }
/* lift above the product page's sticky add-to-bag bar */
body:has(.sticky-atc.is-visible) .wa-float { bottom: 88px; }
@keyframes wa-in { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .wa-float { right: 16px; bottom: 16px; }
  .wa-float-btn { width: 52px; height: 52px; }
  .wa-float-label { display: none; }
  body:has(.sticky-atc.is-visible) .wa-float { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; transition: none; } .wa-float-btn, .wa-float-label { transition: none; } }
