@charset "UTF-8";

/* ==========================================================================
   Ingubo Textiles — storefront stylesheet
   --------------------------------------------------------------------------
   One stylesheet. The audit found the legacy site loading Bootstrap 5.0.0-alpha1,
   three separate Swiper builds, two icon fonts and four hand-written CSS files
   with conflicting resets — roughly 1.1 MB of CSS to render a product grid.
   This replaces all of it.

   Mobile-first: base rules target 320px and widen at 600 / 768 / 1024 / 1280.
   No CSS framework, no build step, no preprocessor. Custom properties give us
   the theming a preprocessor would, at runtime, with no toolchain.

   Section index
     01  Design tokens
     02  Reset and base elements
     03  Utilities
     04  Buttons
     05  Badges, pills, dots, prices
     06  Alerts and flash messages
     07  Header and navigation
     08  Footer and newsletter
     09  Hero and home sections
     10  Product card and image placeholder
     11  Page head and breadcrumbs
     12  Shop layout, filters, pagination
     13  Product detail
     14  Cart
     15  Checkout
     16  Order confirmation
     17  Content pages
     18  Empty states
     19  WhatsApp float
     20  Wide-viewport layout
     21  Motion, print, forced colours
   ========================================================================== */


/* ==========================================================================
   01  Design tokens
   ========================================================================== */

:root {
  /* Palette. Warm neutrals and the deep charcoal/scarlet that actually appear in
     the blankets, rather than the stock template's cool greys. */
  --ink:            #1c1917;
  --ink-soft:       #44403c;
  --ink-muted:      #78716c;
  --ink-faint:      #a8a29e;

  --paper:          #ffffff;
  --paper-warm:     #faf8f5;
  --paper-warm-2:   #f4f0ea;
  --line:           #e7e2da;
  --line-strong:    #d6cfc4;

  --scarlet:        #9b2c2c;
  --scarlet-dark:   #7c2323;
  --ochre:          #b45309;
  --emerald:        #166534;
  --emerald-soft:   #dcfce7;
  --amber-soft:     #fef3c7;
  --amber-line:     #f59e0b;
  --rose-soft:      #fee2e2;
  --rose-line:      #dc2626;
  --info-soft:      #e0f2fe;
  --info-line:      #0284c7;

  --whatsapp:       #25d366;
  --whatsapp-dark:  #1da851;

  /* Typography. Both families are loaded once in the base layout.
     Display: Quicksand — a soft, rounded geometric sans. Warm and approachable for the
     brand wordmark and headings without reading as childish; body stays Inter so long
     passages remain comfortable to read. */
  --font-display: "Quicksand", "Trebuchet MS", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, sans-serif;
  /* Brand wordmark only ("Ingubo Textiles" in the header/footer). Baloo 2 is rounder and
     more characterful than Quicksand — right for the name, kept off the page headings so
     the rest stays clean. */
  --font-brand:   "Baloo 2", "Quicksand", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type scale, bumped up a step across the board so headings read larger. */
  --step--1: clamp(0.80rem, 0.77rem + 0.12vw, 0.86rem);
  --step-0:  clamp(0.98rem, 0.94rem + 0.18vw, 1.06rem);
  --step-1:  clamp(1.15rem, 1.06rem + 0.4vw,  1.38rem);
  --step-2:  clamp(1.45rem, 1.28rem + 0.75vw, 1.85rem);
  --step-3:  clamp(1.85rem, 1.55rem + 1.3vw,  2.6rem);
  --step-4:  clamp(2.3rem,  1.85rem + 2.1vw,  3.5rem);
  --step-5:  clamp(2.9rem,  2.1rem + 3.6vw,   5rem);

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(28 25 23 / 0.06);
  --shadow:    0 2px 8px rgb(28 25 23 / 0.08);
  --shadow-lg: 0 12px 32px rgb(28 25 23 / 0.14);

  --container: 1280px;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  --header-h: 112px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 180ms;

  --focus: 0 0 0 3px rgb(155 44 44 / 0.35);
}


/* ==========================================================================
   02  Reset and base elements
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  /* 100% rather than a px value: never override the user's font size preference. */
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

/* Locks background scroll while the mobile nav is open. */
body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-display);
  /* Quicksand carries headings best at its bold weight with near-neutral tracking;
     the negative letter-spacing that suited the old serif makes it look cramped. */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration-color: var(--ink-faint);
  text-underline-offset: 0.18em;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}

a:hover { text-decoration-color: currentColor; }

img, svg, video { display: block; max-width: 100%; height: auto; }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li { margin-bottom: var(--sp-1); }

figure { margin: 0; }
address { font-style: normal; }
s { text-decoration-thickness: 1px; }
small { font-size: var(--step--1); }
strong { font-weight: 600; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--sp-6) 0;
}

fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; }

/* Form controls inherit type by default in far too few browsers. */
input, select, textarea, button {
  font: inherit;
  color: inherit;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  /* 16px minimum stops iOS Safari zooming the viewport on focus. */
  font-size: max(1rem, var(--step-0));
}

textarea { resize: vertical; min-height: 5rem; }

select {
  appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2378716c' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 1.15rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: var(--focus);
}

input::placeholder, textarea::placeholder { color: var(--ink-faint); }

/* A visible focus ring for keyboard users on every interactive element. The legacy
   CSS set `outline: none` globally, which removed keyboard navigation entirely. */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--ink); color: var(--paper); }


/* ==========================================================================
   03  Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Screen-reader-only, but still focusable and still measurable. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); }

.link-more,
.link-back {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  white-space: nowrap;
}

.link-more:hover,
.link-back:hover { color: var(--ink); border-bottom-color: var(--ink); }

.link-back { display: inline-block; margin-top: var(--sp-4); }

/* A button that reads as a link. Used for destructive cart actions, which must be
   real form submissions rather than anchors. */
.link-button {
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-muted);
  font-size: var(--step--1);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.link-button:hover { color: var(--scarlet); border-bottom-color: var(--scarlet); }

.section {
  padding-block: var(--sp-7);
}

.section--muted { background: var(--paper-warm); }

.section-title {
  font-size: var(--step-3);
  margin-bottom: var(--sp-3);
}

.section-lead {
  max-width: 56ch;
  color: var(--ink-soft);
  margin-bottom: var(--sp-6);
}

/* A centred section intro, for standalone heading+lead blocks (no "View all" link) that
   should echo the centred hero. Used on the collections intro and the heritage panel so
   the top of the page reads as one composition; product-grid sections keep their
   left-aligned heads with the action link on the right. */
.section-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--sp-6);
}
.section-intro .section-title { margin-bottom: var(--sp-2); }
.section-intro .section-lead { margin-bottom: 0; max-width: 60ch; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.section-head .section-title { margin-bottom: 0; }


/* ==========================================================================
   04  Buttons
   ========================================================================== */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--line-strong);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  /* 44px minimum touch target. */
  min-height: 44px;
  padding: 0.625rem 1.25rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--dark {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-border: var(--ink);
}

.btn--dark:hover { --btn-bg: #000; --btn-border: #000; }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--ink);
}

.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink-soft);
  --btn-border: var(--line);
}

.btn--ghost:hover { --btn-bg: var(--paper-warm-2); --btn-fg: var(--ink); }

.btn--whatsapp {
  --btn-bg: var(--whatsapp);
  --btn-fg: #06281a;
  --btn-border: var(--whatsapp);
}

.btn--whatsapp:hover { --btn-bg: var(--whatsapp-dark); --btn-border: var(--whatsapp-dark); }

.btn--lg {
  min-height: 52px;
  padding: 0.875rem 1.75rem;
  font-size: var(--step-1);
}

.btn--sm {
  min-height: 38px;
  padding: 0.375rem 0.75rem;
  font-size: var(--step--1);
}

.btn--block { display: flex; width: 100%; }

/* Checkout is blocked while the cart has unresolved problems. The anchor keeps its
   href so the state is recoverable, but pointer events and focus are removed. */
.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* Stacked buttons in a row get spacing without a wrapper class. */
.btn + .btn { margin-top: var(--sp-3); }
.btn--block + .btn--block { margin-top: var(--sp-3); }


/* ==========================================================================
   05  Badges, pills, dots, prices
   ========================================================================== */

.badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 2;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--sale { background: var(--scarlet); }
.badge--new  { background: var(--emerald); }

.badge--soldout {
  top: auto;
  bottom: var(--sp-3);
  left: var(--sp-3);
  background: rgb(28 25 23 / 0.85);
}

.status-pill {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--step--1);
  font-weight: 600;
}

.status-pill--muted {
  background: var(--paper-warm-2);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.dot {
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: 0.05em;
}

.dot--in  { background: var(--emerald); }
.dot--out { background: var(--ink-faint); }

.price {
  font-family: var(--font-body);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price--lg { font-size: var(--step-3); }
.price--sale { color: var(--scarlet); }

.price--was {
  color: var(--ink-muted);
  font-weight: 400;
  font-size: 0.9em;
  margin-left: var(--sp-2);
}

.free { color: var(--emerald); font-weight: 600; }


/* ==========================================================================
   06  Alerts and flash messages
   ========================================================================== */

.flash-stack {
  margin-top: var(--sp-4);
  display: grid;
  gap: var(--sp-2);
}

.flash {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius);
  border-left: 4px solid var(--ink);
  background: var(--paper-warm-2);
  font-size: var(--step--1);
}

.flash--success { background: var(--emerald-soft); border-left-color: var(--emerald); }
.flash--error   { background: var(--rose-soft);    border-left-color: var(--rose-line); }
.flash--warning { background: var(--amber-soft);   border-left-color: var(--amber-line); }
.flash--info    { background: var(--info-soft);    border-left-color: var(--info-line); }

.alert {
  padding: var(--sp-4);
  margin-bottom: var(--sp-5);
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--paper-warm);
  font-size: var(--step-0);
}

.alert p:last-child { margin-bottom: 0; }
.alert ul { margin-bottom: 0; }

.alert--info    { background: var(--info-soft);  border-color: var(--info-line); }
.alert--warning { background: var(--amber-soft); border-color: var(--amber-line); }
.alert--error   { background: var(--rose-soft);  border-color: var(--rose-line); }


/* ==========================================================================
   07  Header and navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--header-h);
}

/* -- Brand ------------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-right: auto;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__mark {
  width: 88px; height: 88px;
  border-radius: var(--radius);
  object-fit: contain;
  /* White brand mark (logo-white.png) on a black chip — the app-icon look, and strong
     presence against the cream header. */
  background: #000;
  padding: 8px;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }

.brand__name {
  font-family: var(--font-brand);
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: 0;
}

.brand__tagline {
  font-size: 0.74rem;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* -- Toggle ------------------------------------------------------------ */

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
  order: 3;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -- Navigation -------------------------------------------------------- */

/* Without JavaScript the nav is a plain stacked list and stays usable. The
   collapsed mobile treatment is applied only when the inline head script has
   added `.js` to <html>, so a no-JS visitor is never locked out of navigation.
   The legacy site's nav was display:none until a Bootstrap JS bundle loaded. */
.site-nav {
  order: 5;
  flex-basis: 100%;
  padding-block: var(--sp-2) var(--sp-4);
}

/* The collapse is scoped to html.js, set by a one-line inline script in <head>.
   With JS off the nav renders as a stacked list and every page stays reachable. */
html.js .site-nav { display: none; }
html.js .site-nav.is-open { display: block; }

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-nav__list li { margin: 0; }

.site-nav__list a,
.submenu-toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  min-height: 44px;
  padding: var(--sp-2) var(--sp-3);
  background: none;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: var(--step-0);
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.site-nav__list a:hover,
.submenu-toggle:hover { background: var(--paper-warm-2); color: var(--ink); }

.site-nav__list a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  background: var(--paper-warm-2);
}

.submenu-toggle svg { transition: transform var(--dur) var(--ease); flex-shrink: 0; }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.submenu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--sp-4);
  display: none;
}

.has-submenu .submenu-toggle[aria-expanded="true"] + .submenu { display: block; }

/* No-JS: the submenu toggle cannot fire, so show collections outright. */
html:not(.js) .submenu { display: block; }
html:not(.js) .submenu-toggle { pointer-events: none; }

.submenu a { font-size: var(--step--1); color: var(--ink-muted); }

/* -- Header actions ---------------------------------------------------- */

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  order: 2;
}

.header-search { display: none; }

.header-search input[type="search"] {
  width: 100%;
  padding-block: 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--paper-warm);
}

.header-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--ink-soft);
  cursor: pointer;
}

.header-search button:hover { background: var(--paper-warm-2); color: var(--ink); }

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
}

.cart-link:hover { background: var(--paper-warm-2); }

.cart-link__count {
  position: absolute;
  top: 2px; right: 0;
  min-width: 19px;
  padding: 0 5px;
  background: var(--scarlet);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* An empty cart shouldn't shout. JS keeps this in sync after each mutation. */
.cart-link__count[data-count="0"] { display: none; }


/* ==========================================================================
   08  Footer and newsletter
   ========================================================================== */

.site-footer {
  margin-top: var(--sp-8);
  padding-top: var(--sp-7);
  background: var(--ink);
  color: #d6d3d1;
  font-size: var(--step--1);
}

.site-footer__grid {
  display: grid;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
}

.site-footer a { color: #e7e5e4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.site-footer__brand .brand__name { color: #fff; display: block; margin-bottom: var(--sp-3); }
.site-footer__brand p { max-width: 40ch; }

.site-footer__heading {
  margin-bottom: var(--sp-3);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-1);
}

.site-footer__links li { margin: 0; }

.site-footer__links a,
.site-footer__contact li {
  display: inline-block;
  padding-block: 0.3rem;
}

.site-footer__contact li { color: #a8a29e; }

.social {
  list-style: none;
  margin: var(--sp-4) 0 0;
  padding: 0;
  display: flex;
  gap: var(--sp-2);
}

.social li { margin: 0; }

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid #44403c;
  border-radius: 50%;
  color: #e7e5e4;
}

.social a:hover { background: #292524; border-color: #78716c; }

.newsletter { margin-top: var(--sp-5); }

.newsletter > label {
  display: block;
  margin-bottom: var(--sp-2);
  color: #fff;
  font-weight: 500;
}

.newsletter__row { display: flex; gap: var(--sp-2); }

.newsletter__row input[type="email"] {
  background: #292524;
  border-color: #44403c;
  color: #fff;
  border-radius: var(--radius);
}

.newsletter__row input[type="email"]::placeholder { color: #78716c; }

.newsletter__row input[type="email"]:focus {
  border-color: #a8a29e;
  box-shadow: 0 0 0 3px rgb(168 162 158 / 0.25);
}

.newsletter__row button {
  flex-shrink: 0;
  min-height: 44px;
  padding-inline: var(--sp-4);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper);
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

.newsletter__row button:hover { background: var(--paper-warm-2); }

.newsletter__response {
  margin: var(--sp-2) 0 0;
  min-height: 1.25rem;
  font-size: var(--step--1);
}

.newsletter__response.is-success { color: #86efac; }
.newsletter__response.is-error   { color: #fca5a5; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2);
  padding-block: var(--sp-4);
  border-top: 1px solid #44403c;
  color: #a8a29e;
  font-size: 0.78rem;
}

.site-footer__bottom p { margin: 0; }

/* Attribution for the original template. Present on every page by construction,
   because it lives in the one footer partial. */
.site-footer__credit a { text-decoration: underline; }


/* ==========================================================================
   09  Hero and home sections
   ========================================================================== */

.hero {
  padding-block: var(--sp-7);
  /* A soft radial glow centred at the top now that the content is centred, rather than
     pulled to the left as it was for the old left-aligned column. */
  background:
    radial-gradient(90% 130% at 50% -10%, rgb(155 44 44 / 0.08), transparent 60%),
    var(--paper-warm);
  border-bottom: 1px solid var(--line);
}

/* Centred, composed hero: it uses the page width through generous spacing and a large
   title, while every line of text keeps a comfortable reading measure. Centring is what
   makes the full width read as intentional rather than stretched. */
.hero__inner {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__eyebrow {
  margin-bottom: var(--sp-3);
  color: var(--scarlet);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__title {
  /* A touch smaller than the top of the scale (step-5) — Quicksand bold reads large,
     and the centred layout no longer needs the maximum size to hold the page. */
  font-size: var(--step-4);
  margin-bottom: var(--sp-4);
  /* Hold the headline to a balanced measure so it wraps gracefully on wide screens
     instead of running one long line across the whole page. */
  max-width: 20ch;
}

.hero__lead {
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: var(--step-1);
  margin-bottom: var(--sp-6);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  justify-content: center;
}
.hero__actions .btn + .btn { margin-top: 0; }

/* -- Collections ------------------------------------------------------- */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: var(--sp-4);
}

.collection-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  text-decoration: none;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}

.collection-card:hover { box-shadow: var(--shadow-lg); }

.collection-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 400ms var(--ease), opacity var(--dur) var(--ease);
}

.collection-card:hover .collection-card__image { transform: scale(1.04); opacity: 0.62; }

.collection-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #292524, #57534e);
  color: rgb(255 255 255 / 0.5);
  font-family: var(--font-display);
  font-size: 4rem;
  opacity: 1;
}

.collection-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  background: linear-gradient(transparent, rgb(0 0 0 / 0.75));
  color: #fff;
}

.collection-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
}

.collection-card__count {
  display: block;
  font-size: var(--step--1);
  color: rgb(255 255 255 / 0.8);
}

/* -- Heritage panel ---------------------------------------------------- */

.heritage {
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-warm);
}

.heritage__text {
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
}
.heritage__text p { color: var(--ink-soft); }
.heritage__text .btn { margin-top: var(--sp-4); }

/* -- Trust row --------------------------------------------------------- */

.trust-grid {
  display: grid;
  gap: var(--sp-5);
}

.trust { text-align: center; }

.trust h3 {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.trust h3::before {
  content: "";
  display: block;
  width: 28px;
  border-top: 2px solid var(--scarlet);
  margin: 0 auto var(--sp-3);
}

.trust p { color: var(--ink-muted); font-size: var(--step--1); }


/* ==========================================================================
   10  Product card and image placeholder
   ========================================================================== */

.product-grid {
  display: grid;
  /* Two columns even at 320px: shoppers scan a grid, not a list. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 158px), 1fr));
  gap: var(--sp-4);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.product-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--paper-warm-2);
  overflow: hidden;
  /* Establishes the query container the placeholder mark sizes against, so the
     fallback tile scales with the card rather than the viewport. */
  container-type: inline-size;
}

.product-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}

.product-card:hover .product-card__image { transform: scale(1.03); }

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3);
  flex: 1;
}

.product-card__collection {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.35;
}

.product-card__title a { text-decoration: none; }
.product-card__title a:hover { color: var(--scarlet); }

.product-card__price { margin: 0; }

.product-card__stock { margin: 0; font-size: var(--step--1); }
.product-card__stock--out { color: var(--ink-muted); }

/* Push the action to the bottom so cards in a row line up. */
.product-card__body > .add-to-cart,
.product-card__body > .btn { margin-top: auto; }

.add-to-cart { margin: 0; }

/* -- Honest non-photographic placeholder ------------------------------- */

/* Rendered by ProductImage when no legitimate photograph exists. It must never
   read as a photo: no image, visible texture, explicit note. */
.product-image--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  width: 100%; height: 100%;
  padding: var(--sp-4);
  text-align: center;
  background:
    repeating-linear-gradient(
      45deg,
      var(--paper-warm-2) 0 10px,
      var(--paper-warm) 10px 20px
    );
  color: var(--ink-muted);
}

.product-image__placeholder-mark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 12cqi, 3.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink-faint);
}

.product-image__placeholder-label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
  text-wrap: balance;
}

.product-image__placeholder-note {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}


/* --------------------------------------------------- social proof gallery */

/* The business's own photographs of people wearing the blankets. Square crops so a
   mixture of portrait and landscape originals still forms a tidy row. */
.social-gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

.social-gallery li { margin: 0; }

.social-gallery a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-warm-2);
  aspect-ratio: 1;
}

.social-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease), opacity var(--dur) var(--ease);
}

.social-gallery a:hover .social-gallery__image { transform: scale(1.05); opacity: 0.92; }

/* ----------------------------------------------------------- founders */

.founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--sp-5);
  max-width: 46rem;
}

.founder { margin: 0; }

.founder__image {
  width: 100%;
  /* Portrait crop: these are standing environmental portraits, not headshots. */
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  background: var(--paper-warm-2);
}

.founder__caption {
  display: block;
  padding-top: var(--sp-3);
}

.founder__name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
}

.founder__role {
  display: block;
  font-size: var(--step--1);
  color: var(--ink-muted);
}


/* ==========================================================================
   11  Page head and breadcrumbs
   ========================================================================== */

.page-head {
  padding-block: var(--sp-6) var(--sp-5);
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
}

.page-head h1 { margin-bottom: var(--sp-2); }

.page-head__count,
.page-head__lead {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--step--1);
}

.page-head__lead {
  max-width: 62ch;
  font-size: var(--step-0);
  color: var(--ink-soft);
  margin-bottom: var(--sp-2);
}

.page-head--collection { padding-block: var(--sp-7) var(--sp-6); }

.breadcrumbs {
  padding-block: var(--sp-3);
  font-size: var(--step--1);
  border-bottom: 1px solid var(--line);
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}

.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: var(--sp-2); }

.breadcrumbs li + li::before {
  content: "/";
  color: var(--ink-faint);
}

.breadcrumbs a { color: var(--ink-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 500; }


/* ==========================================================================
   12  Shop layout, filters, pagination
   ========================================================================== */

.shop-layout { padding-block: var(--sp-5) var(--sp-8); }

.filters-toggle {
  width: 100%;
  margin-bottom: var(--sp-4);
}

/* Collapsed on small screens, always visible from 1024px up (section 20). */
.shop-filters {
  display: none;
  margin-bottom: var(--sp-5);
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-warm);
}

.shop-filters.is-open { display: block; }

/* No-JS: the toggle cannot fire, so filters are shown and the toggle hidden. */
html:not(.js) .shop-filters { display: block; }
html:not(.js) .filters-toggle { display: none; }

.filter-group {
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.filter-group:last-of-type { border-bottom: 0; margin-bottom: var(--sp-3); }

.filter-group legend {
  margin-bottom: var(--sp-3);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
}

.filter-list li { margin: 0; }

.filter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 38px;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--step-0);
}

.filter-list a:hover { background: var(--paper-warm-2); color: var(--ink); }

.filter-list a.is-active {
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.filter-list--wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.filter-count {
  color: var(--ink-faint);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}

.filter-list a.is-active .filter-count { color: rgb(255 255 255 / 0.65); }

.chip {
  min-height: 36px;
  padding: 0.3rem 0.7rem !important;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--paper);
  font-size: var(--step--1) !important;
}

.chip.is-active { border-color: var(--ink); }

.price-inputs {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.price-inputs label { flex: 1; min-width: 0; }

.filter-hint {
  margin: var(--sp-2) 0 0;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  min-height: 38px;
  padding-block: var(--sp-1);
  cursor: pointer;
  font-size: var(--step-0);
}

.checkbox input[type="checkbox"] {
  width: 1.15rem; height: 1.15rem;
  margin: 0.18rem 0 0;
  flex-shrink: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.filter-actions { display: grid; gap: var(--sp-2); margin-top: var(--sp-4); }
.filter-actions .btn + .btn { margin-top: 0; }

.shop-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--sp-4);
}

.sort-form {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--step--1);
}

.sort-form label { color: var(--ink-muted); white-space: nowrap; }
.sort-form select { width: auto; min-width: 11rem; padding-block: 0.45rem; }

/* -- Pagination -------------------------------------------------------- */

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-7);
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: var(--sp-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: var(--step-0);
  font-weight: 500;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.pagination__link:hover { border-color: var(--ink); color: var(--ink); }

.pagination__link.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-weight: 600;
}


/* ==========================================================================
   13  Product detail
   ========================================================================== */

.product-detail { padding-block: var(--sp-5) var(--sp-8); }

.product-detail__grid { display: grid; gap: var(--sp-6); }

/* -- Gallery ----------------------------------------------------------- */

.product-gallery__main {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-warm-2);
  container-type: inline-size;
}

.product-gallery__image {
  width: 100%; height: 100%;
  object-fit: cover;
}

.product-gallery__thumbs {
  list-style: none;
  margin: var(--sp-3) 0 0;
  padding: 0;
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.product-gallery__thumbs li { margin: 0; flex-shrink: 0; }

.product-gallery__thumb {
  width: 66px; height: 82px;
  padding: 0;
  overflow: hidden;
  background: var(--paper-warm-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumb:hover { border-color: var(--line-strong); }

.product-gallery__thumb.is-active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.product-gallery__note {
  margin: var(--sp-3) 0 0;
  padding: var(--sp-3);
  border-left: 3px solid var(--amber-line);
  background: var(--amber-soft);
  border-radius: var(--radius);
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* -- Info -------------------------------------------------------------- */

/* min-width:0 on both grid children: without it a long unbroken SKU or product
   name forces the track wider than the viewport and the whole page scrolls
   sideways on a 320px screen. */
.product-gallery,
.product-info { min-width: 0; }

.product-info__collection {
  margin-bottom: var(--sp-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-info__collection a { color: var(--scarlet); text-decoration: none; }
.product-info__collection a:hover { text-decoration: underline; }

.product-info__title { margin-bottom: var(--sp-2); font-size: var(--step-4); }

.product-info__sku {
  margin-bottom: var(--sp-4);
  color: var(--ink-muted);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}

.product-info__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.product-info__specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-2) var(--sp-4);
  margin: 0 0 var(--sp-4);
  font-size: var(--step-0);
}

.product-info__specs dt { color: var(--ink-muted); }
.product-info__specs dd { margin: 0; font-weight: 500; }

.product-info__availability {
  display: flex;
  align-items: center;
  margin-bottom: var(--sp-4);
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.product-buy { margin-bottom: var(--sp-3); }

.product-buy__row {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.product-buy__row .btn { flex: 1; }

.qty { flex-shrink: 0; width: 5.5rem; }

.qty input[type="number"] {
  height: 100%;
  min-height: 52px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.product-info__description,
.product-info__delivery {
  padding-top: var(--sp-5);
  margin-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

.product-info__description h2,
.product-info__delivery h2 {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-3);
}

.product-info__description p,
.product-info__delivery p { color: var(--ink-soft); }

.related {
  padding-top: var(--sp-7);
  margin-top: var(--sp-8);
  border-top: 1px solid var(--line);
}


/* ==========================================================================
   14  Cart
   ========================================================================== */

.cart-page { padding-block: var(--sp-6) var(--sp-8); }

.cart-layout { display: grid; gap: var(--sp-6); }

.cart-lines { display: grid; gap: var(--sp-4); }

.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: var(--sp-3) var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.cart-line--unavailable { opacity: 0.7; }

.cart-line__media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-warm-2);
  container-type: inline-size;
}

.cart-line__image { width: 100%; height: 100%; object-fit: cover; }

.cart-line__body { min-width: 0; }

.cart-line__title {
  margin: 0 0 var(--sp-1);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.35;
}

.cart-line__title a { text-decoration: none; }
.cart-line__title a:hover { color: var(--scarlet); }

.cart-line__meta,
.cart-line__unit {
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.cart-line__unit { margin-top: var(--sp-1); }

.cart-line__warning {
  margin: var(--sp-2) 0 0;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--scarlet);
}

.cart-line__controls {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}

.qty-form {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
}

.qty-form input[type="number"] {
  width: 4.5rem;
  padding-block: 0.4rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cart-line__subtotal {
  margin: 0;
  margin-left: auto;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cart-lines__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-2);
}

.cart-lines__actions form { margin: 0; }

/* -- Summary ----------------------------------------------------------- */

.cart-summary,
.checkout-summary {
  align-self: start;
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-warm);
}

.cart-summary h2,
.checkout-summary h2 {
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 600;
  margin-bottom: var(--sp-4);
}

.totals { margin: 0 0 var(--sp-4); }

.totals__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-2);
  font-size: var(--step-0);
}

.totals__row dt { color: var(--ink-soft); }

.totals__row dd {
  margin: 0;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.totals__row--total {
  margin-top: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line-strong);
  font-size: var(--step-1);
}

.totals__row--total dt { color: var(--ink); font-weight: 600; }
.totals__row--total dd { font-weight: 700; }

.cart-summary__nudge {
  margin: 0 0 var(--sp-4);
  padding: var(--sp-3);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  font-size: var(--step--1);
  color: var(--ink-soft);
  text-align: center;
}

.cart-summary__secure,
.checkout-summary__note {
  margin: var(--sp-3) 0;
  font-size: var(--step--1);
  color: var(--ink-muted);
  text-align: center;
}

.checkout-summary__note { text-align: left; }


/* ==========================================================================
   15  Checkout
   ========================================================================== */

.checkout-page { padding-block: var(--sp-6) var(--sp-8); }

.checkout-layout { display: grid; gap: var(--sp-6); }

.checkout-fields { display: grid; gap: var(--sp-5); min-width: 0; }

.checkout-section {
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.checkout-section h2 {
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 600;
  margin-bottom: var(--sp-4);
}

.field { display: block; margin-bottom: var(--sp-4); }
.field:last-child { margin-bottom: 0; }

.field__label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
}

.field__label em {
  color: var(--scarlet);
  font-style: normal;
  margin-left: 0.1rem;
}

.field__optional {
  color: var(--ink-faint);
  font-weight: 400;
  text-transform: none;
}

.field__hint {
  display: block;
  margin-top: var(--sp-1);
  font-size: var(--step--1);
  color: var(--ink-muted);
}

/* Server-side validation marks fields; there is no client-only validation. */
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--rose-line); }

.field-row { display: grid; gap: var(--sp-4); }

.checkout-lines {
  list-style: none;
  margin: 0 0 var(--sp-4);
  padding: 0 0 var(--sp-4);
  border-bottom: 1px solid var(--line-strong);
  display: grid;
  gap: var(--sp-3);
}

.checkout-lines li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-3);
  align-items: start;
  margin: 0;
  font-size: var(--step--1);
}

.checkout-lines__qty {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.checkout-lines__name { min-width: 0; font-weight: 500; }

.checkout-lines__name small {
  display: block;
  color: var(--ink-muted);
  font-weight: 400;
}

.checkout-lines__total {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}


/* ==========================================================================
   16  Order confirmation
   ========================================================================== */

.confirmation {
  max-width: 56rem;
  padding-block: var(--sp-7) var(--sp-8);
}

.confirmation__head { text-align: center; margin-bottom: var(--sp-6); }

.confirmation__tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  margin-bottom: var(--sp-4);
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 2rem;
  line-height: 1;
}

.confirmation__lead {
  color: var(--ink-soft);
  font-size: var(--step-1);
  margin-bottom: var(--sp-4);
}

.confirmation__number {
  display: inline-block;
  margin-bottom: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-warm);
  font-size: var(--step-1);
}

.confirmation__number strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.confirmation__hint {
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.confirmation__grid {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

.confirmation__panel {
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.confirmation__panel h2 {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-3);
}

.confirmation__panel h2:not(:first-child) { margin-top: var(--sp-5); }
.confirmation__panel address,
.confirmation__panel p { color: var(--ink-soft); font-size: var(--step--1); }
.confirmation__panel .status-pill { margin-right: var(--sp-2); }

.confirmation__footer { margin-top: var(--sp-6); text-align: center; }


/* ==========================================================================
   17  Content pages (about, services, faqs, contact, legal, track order)
   ========================================================================== */

.content-page { padding-block: var(--sp-6) var(--sp-8); }

/* Comfortable measure for long-form legacy copy. */
.prose { max-width: 68ch; }

.prose h2 {
  font-size: var(--step-2);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
}

.prose p,
.prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.35rem; margin-bottom: var(--sp-4); }
.prose li { margin-bottom: var(--sp-2); }

.prose a { color: var(--scarlet); text-decoration-color: currentColor; }

/* A button inside prose is a button, not a prose link — keep its own foreground so a
   .btn--dark stays white-on-dark rather than inheriting the scarlet link colour. */
.prose a.btn { color: var(--btn-fg); text-decoration: none; }

.prose__updated {
  font-size: var(--step--1);
  color: var(--ink-muted);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}

/* -- FAQs -------------------------------------------------------------- */

.faq-list { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }

/* <details> gives us an accordion with keyboard support and no JavaScript. */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
}

.faq[open] { background: var(--paper-warm); border-color: var(--line-strong); }

.faq > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 52px;
  padding: var(--sp-3) var(--sp-4);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq > summary::-webkit-details-marker { display: none; }

.faq > summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: var(--step-2);
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1;
}

.faq[open] > summary::after { content: "−"; }

.faq__body { padding: 0 var(--sp-4) var(--sp-4); }
.faq__body p { color: var(--ink-soft); font-size: var(--step-0); }
.faq__body p:last-child { margin-bottom: 0; }

/* -- Contact / track order -------------------------------------------- */

.contact-layout,
.track-layout { display: grid; gap: var(--sp-6); }

.contact-panel {
  align-self: start;
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-warm);
}

.contact-panel h2 {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  margin-bottom: var(--sp-3);
}

.contact-panel h2:not(:first-child) { margin-top: var(--sp-5); }
.contact-panel p,
.contact-panel address { font-size: var(--step--1); color: var(--ink-soft); }

.contact-form { min-width: 0; }

.contact-form__response {
  margin: var(--sp-3) 0 0;
  min-height: 1.25rem;
  font-size: var(--step--1);
}

.contact-form__response.is-success { color: var(--emerald); font-weight: 500; }
.contact-form__response.is-error   { color: var(--scarlet); font-weight: 500; }

.track-form {
  max-width: 32rem;
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-warm);
}

.track-result {
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.track-result__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.track-result__number {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Order status timeline. */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }

.timeline li {
  position: relative;
  margin: 0;
  padding: 0 0 var(--sp-4) var(--sp-6);
  border-left: 2px solid var(--line);
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px; top: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line-strong);
}

.timeline li.is-done { color: var(--ink-soft); }
.timeline li.is-done::before { background: var(--emerald); border-color: var(--emerald); }

.timeline li.is-current { color: var(--ink); font-weight: 600; }
.timeline li.is-current::before { background: var(--ink); border-color: var(--ink); }

.timeline__when { display: block; font-weight: 400; color: var(--ink-faint); }


/* ==========================================================================
   18  Empty states
   ========================================================================== */

.empty-state {
  max-width: 40rem;
  margin-inline: auto;
  padding: var(--sp-7) var(--sp-4);
  text-align: center;
}

.empty-state h1,
.empty-state h2 { margin-bottom: var(--sp-3); }
.empty-state p { color: var(--ink-soft); margin-bottom: var(--sp-5); }

.empty-state .btn { margin-inline: auto; min-width: 14rem; }

.empty-state--page { padding-block: var(--sp-9); }

.empty-state__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.empty-state__actions .btn + .btn { margin-top: 0; }


/* ==========================================================================
   19  WhatsApp float
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #06281a;
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.whatsapp-float:hover { background: var(--whatsapp-dark); transform: scale(1.06); }

/* Keep clear of the sticky checkout button on small screens. */
@media (max-width: 599px) {
  .whatsapp-float { width: 48px; height: 48px; }
  .whatsapp-float svg { width: 22px; height: 22px; }
}


/* ==========================================================================
   20  Wide-viewport layout
   --------------------------------------------------------------------------
   Verified at 320, 375, 390, 430, 768, 1024, 1280 and 1440 CSS pixels.
   ========================================================================== */

/* -- 600px: two-up grids, side-by-side fields ------------------------- */
@media (min-width: 600px) {
  .hero__actions { flex-direction: row; }
  .hero__actions .btn { flex: 0 1 auto; }

  .field-row { grid-template-columns: 1fr 1fr; }

  .trust-grid { grid-template-columns: repeat(3, 1fr); }

  .cart-line {
    grid-template-columns: 104px 1fr auto;
    align-items: start;
  }

  .cart-line__controls {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--sp-2);
    min-width: 12rem;
  }

  .cart-line__subtotal { margin-left: 0; font-size: var(--step-1); }

  .empty-state__actions { flex-direction: row; justify-content: center; }
  .empty-state .btn { min-width: 0; }

  .confirmation__grid { grid-template-columns: 1fr 1fr; }

  .product-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }

  .social-gallery { grid-template-columns: repeat(4, 1fr); }
}

/* -- 768px: header search appears, product detail splits -------------- */
@media (min-width: 768px) {
  :root { --header-h: 120px; }

  .hero { padding-block: var(--sp-6); }

  .section { padding-block: var(--sp-8); }

  .header-search {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    width: clamp(9rem, 18vw, 15rem);
  }

  .product-detail__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--sp-7);
    align-items: start;
  }

  /* The gallery follows the page; the info column is the one that scrolls past. */
  .product-gallery { position: sticky; top: calc(var(--header-h) + var(--sp-4)); }

  .cart-layout,
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
    gap: var(--sp-7);
    align-items: start;
  }

  .cart-summary,
  .checkout-summary { position: sticky; top: calc(var(--header-h) + var(--sp-4)); }

  .site-footer__grid { grid-template-columns: 1fr 1fr; }

  .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem); }
  .track-layout { grid-template-columns: minmax(0, 1fr); }

  .heritage { padding: var(--sp-7); }
}

/* -- 1024px: full desktop nav, persistent filter rail ----------------- */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }

  .site-nav {
    order: 1;
    flex-basis: auto;
    padding: 0;
    /* Undo the mobile collapse unconditionally at this width. */
    display: block !important;
    height: auto !important;
    margin-left: var(--sp-5);
  }

  .brand { margin-right: 0; }
  .site-header__actions { order: 3; margin-left: auto; }

  .site-nav__list { flex-direction: row; align-items: center; gap: var(--sp-1); }

  .site-nav__list a,
  .submenu-toggle {
    width: auto;
    min-height: 40px;
    padding: var(--sp-2) var(--sp-3);
    white-space: nowrap;
  }

  .has-submenu { position: relative; }

  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 110;
    min-width: 13rem;
    padding: var(--sp-2);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }

  /* Hover opens it for mice; the button's aria-expanded opens it for keyboards
     and touch. Both paths work, and neither is required. */
  .has-submenu:hover .submenu,
  .has-submenu:focus-within .submenu { display: block; }

  html:not(.js) .submenu { display: none; }
  html:not(.js) .has-submenu:hover .submenu,
  html:not(.js) .has-submenu:focus-within .submenu { display: block; }
  html:not(.js) .submenu-toggle { pointer-events: auto; }

  .submenu a { border-radius: var(--radius-sm); }

  .shop-layout {
    display: grid;
    grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
    gap: var(--sp-7);
    align-items: start;
    padding-block: var(--sp-6) var(--sp-9);
  }

  .filters-toggle { display: none; }

  .shop-filters {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + var(--sp-4));
    margin-bottom: 0;
    max-height: calc(100vh - var(--header-h) - var(--sp-6));
    overflow-y: auto;
  }

  .shop-results { min-width: 0; }

  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--sp-7); }

  .heritage__text { max-width: 68ch; }

  .whatsapp-float { right: var(--sp-6); bottom: var(--sp-6); width: 56px; height: 56px; }
}

/* -- 1280px: generous product grid ----------------------------------- */
@media (min-width: 1280px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--sp-5); }
  .product-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
  .collection-grid { gap: var(--sp-5); }
  .hero { padding-block: var(--sp-7); }
}


/* ==========================================================================
   21  Motion, print, forced colours
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .whatsapp-float:hover,
  .product-card:hover .product-card__image,
  .collection-card:hover .collection-card__image { transform: none; }
}

/* Respect a forced-colours preference: keep our own borders out of the way and
   let the platform draw them. */
@media (forced-colors: active) {
  .btn,
  .product-card,
  .pagination__link,
  .chip { border: 1px solid ButtonBorder; }

  .badge,
  .status-pill { border: 1px solid CanvasText; }
}

@media print {
  .site-header,
  .site-footer,
  .whatsapp-float,
  .skip-link,
  .nav-toggle,
  .filters-toggle,
  .shop-filters,
  .add-to-cart,
  .product-buy,
  .cart-line__controls,
  .flash-stack { display: none !important; }

  body { background: #fff; color: #000; font-size: 11pt; }

  a { text-decoration: underline; }

  /* An order confirmation is the one page customers actually print. */
  .confirmation,
  .confirmation__panel,
  .checkout-summary { border: 0; padding: 0; background: none; }

  .confirmation__grid { grid-template-columns: 1fr 1fr; }

  .product-card,
  .confirmation__panel { break-inside: avoid; }
}
