/* ── Phone & small-tablet polish (loaded last) ──────────────────────────────── */

/* 1. Phone menu: drops down from the header and is truly hidden when closed.
      (The header's blur effect made the old "fixed" menu peek out above it.) */
@media (max-width: 860px) {
  .site-nav { position: absolute; inset: 100% 0 auto 0; max-height: calc(100dvh - var(--header-h) - 1rem); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity .2s, transform .2s, visibility 0s linear .2s; }
  .menu-open .site-nav { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .2s, transform .2s; }
  .site-nav .btn { width: 100%; justify-content: center; padding: 1rem; font-size: .85rem; }
  .menu-open { overflow: hidden; }
}

@media (max-width: 640px) {
  /* 2. Less clutter above the content: slim top bar, compact header and festival strip */
  :root { --header-h: 62px; }
  .topbar { padding: .35rem 0; }
  .topbar-inner > span { display: none; }               /* the wholesale line is repeated in the hero */
  .topbar-inner { justify-content: center; }
  .topbar-download { font-size: .74rem; padding: .3rem .8rem; }
  .logo img { height: 42px; }
  .quote-link { min-width: 44px; min-height: 44px; justify-content: center; }
  .promo-inner { padding-top: .45rem; padding-bottom: .45rem; gap: .15rem .6rem; font-size: .82rem; line-height: 1.35; }
  .promo-eyebrow { display: none; }

  /* 3. Comfortable reading sizes */
  body { font-size: 1rem; }
  .eyebrow { font-size: .72rem; letter-spacing: .16em; }
  .badge { font-size: .68rem; padding: .35rem .65rem; }
  .breadcrumbs { font-size: .88rem; line-height: 2; }
  .lede { font-size: 1.05rem; }
  .size-word { font-size: .72rem; }
  .wb-label, .specs dt { font-size: .74rem; }
  .qb-card-body small { font-size: .74rem; }
  .section { padding-top: 3.25rem; padding-bottom: 3.25rem; }
  .section-head { margin-bottom: 1.75rem; }
  h2 { font-size: clamp(1.9rem, 7.5vw, 2.3rem); }

  /* 4. Finger-sized buttons and links (44px is the comfortable minimum) */
  .btn { min-height: 46px; }
  .btn-sm { min-height: 42px; font-size: .78rem; }
  .quote-add-sm { min-height: 40px; padding: .55rem .9rem; font-size: .76rem; }
  .breadcrumbs a { display: inline-block; padding: .2rem 0; }
  .footer-links a, .socials a { display: inline-block; padding: .4rem 0; }
  .footer-links, .socials { gap: .1rem; }
  .sc-pick, .size-chip, .qb-cats button { min-height: 42px; }
  .promo-link { display: inline-block; padding: .25rem 0; }
  .link-arrow { display: inline-block; padding: .35rem 0; }

  /* 5. No zoom-in when tapping a form field on iPhone (needs 16px text) */
  input, select, textarea { font-size: 16px !important; }

  /* 6. Hero: shorter, buttons full width */
  .hero { min-height: 0; }
  .hero-content { padding-top: 5.5rem; padding-bottom: 2.75rem; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .btn { width: 100%; justify-content: center; }
  .hero-download { width: 100%; }

  /* 7. Catalogue tab becomes a small round button above WhatsApp (does not cover the page) */
  .side-download, .side-download.is-left { top: auto; bottom: calc(1rem + 58px + .7rem); right: 1rem; left: auto; transform: none;
    width: 50px; height: 50px; padding: 0; border-radius: 50%; justify-content: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
  .side-download span { display: none; }
  .side-download:hover, .side-download.is-left:hover { padding: 0; }
  .has-mobile-bar .side-download { bottom: calc(80px + env(safe-area-inset-bottom)); }

  /* 8. Swipe rows instead of very long stacks on the homepage */
  #craft .craft-steps, #products .product-grid {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%;
    gap: .9rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: -1rem; padding: 0 1rem .9rem; scroll-padding-inline: 1rem; scrollbar-width: none; }
  #products .product-grid { grid-auto-columns: 62%; }
  #craft .craft-steps::-webkit-scrollbar, #products .product-grid::-webkit-scrollbar { display: none; }
  #craft .craft-steps > *, #products .product-grid > * { scroll-snap-align: start; }
  #craft .craft-img { aspect-ratio: 4 / 4.4; }
  .swipe-hint { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: -.2rem 0 1.2rem; font-size: .8rem; opacity: .7; }

  /* order process: compact numbered list */
  .process { display: grid; grid-template-columns: 1fr; gap: .6rem; }
  .process li { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: start; text-align: left; padding: 1rem; }
  .process li .process-icon { grid-row: span 3; margin: 0; }
  .process li h3 { margin: 0; font-size: 1.25rem; }
  .process li p { margin: .2rem 0 0; }
  .process li .process-no { font-size: .7rem; }

  /* categories: smaller tiles, two per row */
  .category-grid { gap: .9rem .7rem; }
  .category-card .category-img { aspect-ratio: 5 / 4; margin-bottom: .55rem; }
  .category-card h3 { font-size: 1.15rem; margin-bottom: .15rem; }
  .category-card .meta { font-size: .78rem; }

  /* product cards in 2 columns: tidy text */
  .product-grid { gap: 1.1rem .75rem; }
  .product-card h3 { font-size: 1.12rem; }

  /* quote page */
  .qb-more-wrap { text-align: center; margin: 1.25rem 0 0; }
  .qb-more { width: 100%; }
}

@media (min-width: 641px) { .swipe-hint { display: none; } .qb-more-wrap { text-align: center; margin-top: 1.5rem; } }

/* very small phones (e.g. 320–360px wide) */
@media (max-width: 360px) {
  .container { padding-inline: .85rem; }
  #products .product-grid { grid-auto-columns: 72%; }
  .hero h1 { font-size: 2.3rem; }
}

/* small-phone fixes found in testing */
@media (max-width: 640px) {
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-list li { min-width: 0; overflow-wrap: anywhere; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* always two per row on phones */
  .occasion-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar-download { min-height: 34px; }
}
@media (max-width: 360px) {
  .trust-list li { padding-inline: .5rem; gap: .5rem; }
  .trust-list strong { font-size: .85rem; }
  .product-card .quote-add-sm { padding-inline: .6rem; font-size: .7rem; letter-spacing: .03em; }
}
@media (max-width: 640px) {
  /* banner slider dots: same slim look, bigger area to tap */
  .dots { gap: .2rem; }
  .dots button { height: 32px; width: 34px; background: none !important; position: relative; }
  .dots button::before { content: ""; position: absolute; left: 6px; right: 6px; top: 14px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .45); transition: background .2s; }
  .dots button[aria-current="true"] { width: 48px; }
  .dots button[aria-current="true"]::before { background: var(--brass-light); }
}
