/* ============================================================
   1. DESIGN TOKENS
   Every color, font and spacing value the site uses is declared
   once here as a CSS custom property (variable), then referenced
   everywhere else with var(--name). Change a value here and it
   updates the whole site — that's the entire point of tokens.
   ============================================================ */
:root {
  /* Color */
  --stone:      #EDE8DE;  /* page background — warm linen, not pure white */
  --panel:      #F7F4EC;  /* card / surface background, a shade lighter */
  --ink:        #23221D;  /* primary text — warm near-black, not #000 */
  --ink-soft:   #5B584C;  /* secondary text — captions, meta lines */
  --moss:       #3F4A37;  /* primary accent — deep green, buttons/links */
  --moss-dark:  #2E3629;
  --brass:      #AD8A4D;  /* secondary accent — hovers, small highlights */
  --rule:       #D8D1C0;  /* hairline borders/dividers */
  --cream-on-dark: #F4EFE3;
  --dark-brass: #9A7943; /* /

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --gutter: clamp(20px, 4vw, 64px);
  --header-height: 84px;
  --header-height-scrolled: 64px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   2. RESET
   Browsers ship with inconsistent default spacing/sizing. This
   block flattens those differences so our own rules are the
   only source of truth.
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
input { font: inherit; }

body {
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Respect users who've asked their OS to reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   3. UTILITIES
   Small reusable pieces used by more than one section, so they
   live here instead of being duplicated.
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dark-brass);
  color: var(--cream-on-dark);
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; } /* only visible once tabbed to */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Visible keyboard focus everywhere — required for accessibility,
   and deliberately more visible than the default browser outline */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--cream-on-dark); opacity: 0.85; }

.text-link {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}
.text-link--light { color: var(--cream-on-dark); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--ink); }
.hero h1 { color: var(--cream-on-dark); }

/* Section heading pair used by Categories + Featured */
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }

/* ============================================================
   4. SCROLL-REVEAL
   Elements start slightly lower + transparent. script.js adds
   "is-visible" via IntersectionObserver when they scroll into
   view, which triggers this transition.
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   5. OVERLAY + DRAWER
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 15, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  z-index: 90;
}
.overlay.is-active { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; left: 0;
  height: 100%;
  width: min(340px, 86vw);
  background: var(--panel);
  z-index: 100;
  padding: 28px clamp(24px, 5vw, 36px);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
  box-shadow: 12px 0 40px rgba(0,0,0,0.12);
}
.drawer.is-open { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.drawer__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
}
.drawer__close { padding: 4px; }

.drawer__list a {
  display: block;
  padding: 12px 0;
  font-size: 17px;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.drawer__list a:hover,
.drawer__list a:focus-visible { color: var(--dark-brass); padding-left: 6px; }

.drawer__list--secondary { margin-top: 24px; }
.drawer__list--secondary a { font-size: 14px; color: var(--ink-soft); border-bottom: none; padding: 8px 0; }

/* ============================================================
   6. HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  /* Higher than .overlay (90) on purpose: when a drawer is open,
     the header stays visible and clickable ABOVE the dimmed
     backdrop -- e.g. the bag icon itself needs to stay reachable
     to re-open the cart, and addToCart() auto-opens the cart
     drawer, so this matters on the very first "Add to bag" click. */
  z-index: 95;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
  padding: 0 var(--gutter);
  background: var(--stone);
  border-bottom: 1px solid var(--rule);
  transition: height 0.25s var(--ease);
}
/* Compact state, toggled by script.js once the user scrolls */
.site-header.is-scrolled { height: var(--header-height-scrolled); }

.site-header__side { display: flex; align-items: center; gap: 22px; }
.site-header__side--right { justify-content: flex-end; }

.icon-text-btn { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.icon-btn { display: flex; align-items: center; justify-content: center; position: relative; }
.icon-text-btn:hover, .icon-btn:hover { color: var(--dark-brass); }

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
}

.bag-count {
  position: absolute;
  top: -6px; right: -10px;
  background: var(--dark-brass);
  color: var(--cream-on-dark);
  font-size: 10px;
  font-weight: 600;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Hide the less-essential icons on narrow screens; the hamburger
   menu remains the one entry point to everything */
@media (max-width: 640px) {
  .icon-text-btn--hide-mobile { display: none; }
}

.search-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 55;
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
  padding: 14px var(--gutter);
}
.search-bar form { display: flex; align-items: center; gap: 12px; max-width: var(--max-width); margin: 0 auto; }
.search-bar input { flex: 1; background: none; border: none; font-size: 16px; }
.search-bar input:focus { outline: none; }

/* ============================================================
   7. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__scene { position: absolute; inset: 0; z-index: 0; }
.hero__house { width: 100%; height: 100%; }

/* gentle pulsing glow on the illustrated windows */
.hero__windows { animation: glow 5s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter) 72px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero__content h1 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  margin: 6px 0 26px;
  max-width: 14ch;
}

/* ============================================================
   8. INTRO
   ============================================================ */
.intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px var(--gutter) 72px;
  text-align: center;
}
.intro h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 20px; }
.intro__body { color: var(--ink-soft); font-size: 17px; }

/* ============================================================
   9. CATEGORIES
   ============================================================ */
.categories { padding: 40px var(--gutter) 96px; }
.category-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-tile {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  background: linear-gradient(155deg, var(--tile), color-mix(in srgb, var(--tile) 55%, black));
  color: var(--cream-on-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.category-tile:hover, .category-tile:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(0,0,0,0.18);
}
.category-tile__icon { color: var(--cream-on-dark); }
.category-tile__label { font-family: var(--font-display); font-size: 18px; }

/* ============================================================
   10. FEATURED PRODUCTS
   ============================================================ */
.featured { padding: 40px var(--gutter) 96px; background: var(--panel); }
.product-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card { display: flex; flex-direction: column; }
.product-card__image {
  aspect-ratio: 6 / 5;
  border-radius: 4px;
  background: linear-gradient(155deg, var(--from), var(--to));
  display: flex; align-items: center; justify-content: center;
  padding: 20%;
  margin-bottom: 18px;
}
.product-card__image svg { width: 100%; height: 100%; }
.product-card h3 { font-size: 18px; margin-bottom: 6px; }
.product-card__meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }
.product-card__row { display: flex; align-items: center; justify-content: space-between; }
.product-card__price { font-family: var(--font-display); font-size: 17px; }
.product-card__add {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.product-card__add:hover { background: var(--ink); color: var(--panel); }
.product-card__add.is-added { background: var(--dark-brass); border-color: var(--dark-brass); color: var(--cream-on-dark); }

/* ============================================================
   11. MATERIALS (signature interactive section)
   ============================================================ */
.materials { padding: 96px var(--gutter); }
.material-picker {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.material-preview {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--panel);
  border-radius: 6px;
  padding: 32px;
}
.material-preview__swatch {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--swatch, var(--moss));
  transition: background 0.4s var(--ease);
}
.material-preview__text h3 { font-size: 22px; margin-bottom: 10px; }
.material-preview__text p { color: var(--ink-soft); font-size: 15px; }

.material-list { display: flex; flex-direction: column; gap: 10px; }
.material-btn {
  text-align: left;
  padding: 16px 20px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 15px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.material-btn:hover { border-color: var(--brass); }
.material-btn.is-active { border-color: var(--moss); background: var(--panel); font-weight: 600; }

/* ============================================================
   12. QUOTE
   ============================================================ */
.quote {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
  text-align: center;
}
.quote p:first-child {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
}
.quote__attr { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }

/* ============================================================
   13. ABOUT
   ============================================================ */
.about {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
  text-align: center;
}
.about h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 20px; }
.about p:last-child { color: var(--ink-soft); font-size: 16px; }

/* ============================================================
   14. NEWSLETTER
   ============================================================ */
.newsletter {
  background: var(--dark-brass);
  color: var(--cream-on-dark);
  text-align: center;
  padding: 88px var(--gutter);
}
.newsletter h2 { color: var(--cream-on-dark); font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 12px; }
.newsletter p { opacity: 0.85; margin-bottom: 32px; }
.newsletter__form {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(244,239,227,0.5);
}
.newsletter__form input {
  flex: 1;
  background: none;
  border: none;
  color: var(--cream-on-dark);
  padding: 12px 4px;
}
.newsletter__form input::placeholder { color: rgba(244,239,227,0.55); }
.newsletter__form input:focus { outline: none; }
.newsletter__form button {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 6px;
  border-bottom: 2px solid var(--brass);
}
.newsletter__status { margin-top: 16px; font-size: 14px; min-height: 20px; }

/* ============================================================
   15. FOOTER
   ============================================================ */
.site-footer { padding: 72px var(--gutter) 32px; }
.site-footer__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.wordmark--footer { display: block; font-size: 24px; margin-bottom: 12px; }
.site-footer__brand p { color: var(--ink-soft); font-size: 14px; max-width: 32ch; }
.site-footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: 16px; }
.site-footer__col li { margin-bottom: 10px; font-size: 14px; }
.site-footer__col a:hover { color: var(--dark-brass); }

.site-footer__legal {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   16. PRODUCTS PAGE (products.html)
   ============================================================ */
.products-page { max-width: var(--max-width); margin: 0 auto; padding: 48px var(--gutter) 96px; }
.products-page__head { text-align: center; margin-bottom: 32px; }
.breadcrumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
.products-page__head h1 { font-size: clamp(28px, 4vw, 42px); }

/* Filter pills: a horizontally-wrapping row of toggle buttons.
   Only one carries .is-active at a time — script.js enforces that. */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}
.filter-pill {
  padding: 9px 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.filter-pill:hover { border-color: var(--brass); color: var(--ink); }
.filter-pill.is-active { background: var(--dark-brass); border-color: var(--dark-brass); color: var(--ink); }

.products-count { text-align: center; font-size: 13px; color: var(--ink-soft); margin: 20px 0 32px; }

.empty-state { text-align: center; padding: 64px 0; color: var(--ink-soft); font-size: 15px; }

/* ============================================================
   17. AUTH PAGE (account.html)
   ============================================================ */
.auth-page {
  max-width: 460px;
  margin: 0 auto;
  padding: 72px var(--gutter) 120px;
}
.auth-card {
  background: var(--panel);
  border-radius: 6px;
  padding: 40px clamp(24px, 5vw, 40px);
}

.auth-tabs {
  display: flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 32px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.auth-tab.is-active { background: var(--moss); color: var(--cream-on-dark); }

.auth-field {
  display: block;
  margin-bottom: 18px;
}
.auth-field span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.auth-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--stone);
  font-size: 15px;
}
.auth-field input:focus { outline: none; border-color: var(--brass); }

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px;
}
.auth-checkbox { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.auth-checkbox input { width: 15px; height: 15px; accent-color: var(--moss); }
.auth-forgot { color: var(--brass); }
.auth-forgot:hover { text-decoration: underline; }

.auth-hint { font-size: 12px; color: var(--ink-soft); margin: -8px 0 20px; }

.auth-submit {
  width: 100%;
  padding: 13px 0;
  background: var(--moss);
  color: var(--cream-on-dark);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s var(--ease);
}
.auth-submit:hover { background: var(--moss-dark); }

.auth-status { margin-top: 18px; font-size: 14px; text-align: center; min-height: 20px; color: var(--ink-soft); }
.auth-status.is-error { color: #a3432f; }
.auth-status.is-success { color: var(--moss); }

/* ============================================================
   18. RESPONSIVE — tablet and mobile
   ============================================================ */
@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .material-picker { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .material-preview { grid-template-columns: 1fr; text-align: center; }
  .material-preview__swatch { width: 96px; height: 96px; margin: 0 auto; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .newsletter__form { flex-direction: column; border-bottom: none; gap: 12px; }
  .newsletter__form button { border: 1px solid var(--brass); border-radius: 2px; }
}

/* The product grid + product card rules already defined for the
   homepage (#9/#10 above) are reused as-is on this page — that's
   the benefit of one shared stylesheet across multiple pages. */

/* ============================================================
   17. RESPONSIVE — tablet and mobile
   ============================================================ */
@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .material-picker { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .material-preview { grid-template-columns: 1fr; text-align: center; }
  .material-preview__swatch { width: 96px; height: 96px; margin: 0 auto; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .newsletter__form { flex-direction: column; border-bottom: none; gap: 12px; }
  .newsletter__form button { border: 1px solid var(--brass); border-radius: 2px; }
}

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--color-bg, #f7f6f2);
  color: var(--color-text, #1c1d1a);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border, #e2dfd7);
}

.cart-drawer__title {
  font-family: 'Fraunces', serif;
  font-size: 1.125rem;
  font-weight: 500;
}

.cart-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin: -0.5rem;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.cart-drawer__close:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cart-empty {
  margin: auto 0;
  text-align: center;
  color: #666;
  font-size: 0.95rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border, #e2dfd7);
}

.cart-item__details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cart-item__name {
  font-weight: 500;
  font-size: 0.95rem;
}

.cart-item__price {
  font-size: 0.875rem;
  color: #555;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cart-qty-btn {
  background: none;
  border: 1px solid var(--color-border, #ccc);
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-qty-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.cart-item__qty {
  font-size: 0.875rem;
  min-width: 18px;
  text-align: center;
}

.cart-item__remove {
  background: none;
  border: none;
  color: #888;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 0.5rem;
  padding: 0;
}

.cart-item__remove:hover {
  color: #cc0000;
}

.cart-drawer__footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border, #e2dfd7);
  background-color: var(--color-bg, #f7f6f2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.05rem;
}

.cart-drawer__note {
  font-size: 0.775rem;
  color: #666;
}

.cart-drawer__checkout-btn {
  width: 100%;
  padding: 0.875rem;
  background-color: #2c3324;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.cart-drawer__checkout-btn:hover:not(:disabled) {
  background-color: #1f261a;
}

.cart-drawer__checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   19. CHECKOUT PAGE (checkout.html)
   Reuses .auth-field / .auth-submit / .auth-hint / .auth-status
   from the account page wholesale (every form input here IS one
   of those, just inside a different wrapper) — only the layout
   classes below are new.
   ============================================================ */
.checkout-page { max-width: var(--max-width); margin: 0 auto; padding: 48px var(--gutter) 96px; }

.checkout-empty { text-align: center; padding: 64px 0; color: var(--ink-soft); }
.checkout-empty p { margin-bottom: 16px; font-size: 15px; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.checkout-main { display: flex; flex-direction: column; gap: 36px; }

.checkout-section { padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.checkout-section:last-of-type { border-bottom: none; padding-bottom: 0; }
.checkout-section__title { font-size: 20px; margin-bottom: 20px; }

.checkout-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.checkout-submit { margin-top: 4px; }

/* position:sticky keeps the summary in view while the (longer)
   form scrolls past it on desktop — same idea as .site-header,
   just scoped to this one column instead of the whole viewport. */
.order-summary {
  background: var(--panel);
  border-radius: 6px;
  padding: 32px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}
.order-summary__items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.order-summary__item { display: flex; justify-content: space-between; font-size: 14px; gap: 12px; }
.order-summary__item-qty { color: var(--ink-soft); }

.order-summary__row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.order-summary__row--total {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.checkout-success { text-align: center; max-width: 480px; margin: 0 auto; padding: 64px 0; }
.checkout-success h2 { font-size: 28px; margin-bottom: 16px; }
.checkout-success p { color: var(--ink-soft); margin-bottom: 20px; }

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}
@media (max-width: 560px) {
  .checkout-field-row { grid-template-columns: 1fr; }
}
