/* ==========================================================================
   Cedar Jewelry — site stylesheet

   One file, no build step. A quiet portfolio: white page, one sage accent,
   Alegreya Sans for headings and navigation, Roboto for everything else.
   The work is the only colour on the page; the chrome stays out of its way.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --paper: #ffffff;
  --paper-alt: #f6f6f4;
  --paper-mute: #ececea;
  --card: #ffffff;
  --rule: #e7e7e4;
  --rule-strong: #cfcfca;

  --ink: #222222;
  --ink-soft: #555555;
  --ink-dim: #8a8a86;

  /* Dark surface (admin sidebar, error pages) */
  --navy-900: #222222;
  --navy-800: #333333;
  --navy-700: #4a4a4a;
  --on-navy: #ffffff;
  --on-navy-soft: #dddddd;
  --on-navy-dim: #aaaaaa;

  /* Accent — a soft sage. The light tint is decorative (wordmark, footer);
     the dark step is the one used for text and controls on white. */
  --accent: #8abeb2;
  --accent-600: #6fa596;
  --accent-700: #4e8377;
  --accent-bright: #a9d3c9;
  --accent-soft: #eef5f3;
  --accent-line: #cfe3de;
  --accent-glow: rgba(138, 190, 178, .35);
  --accent-100: #f3f8f7; --accent-200: #eef5f3; --accent-300: #cfe3de; --accent-400: #a9d3c9;
  --accent-500: #8abeb2; --accent-800: #3c665c; --accent-900: #2a4841;

  --sage: #8abeb2;
  --sage-100: #f3f8f7; --sage-200: #eef5f3; --sage-300: #cfe3de; --sage-400: #a9d3c9;
  --sage-500: #8abeb2; --sage-600: #6fa596; --sage-700: #4e8377; --sage-800: #3c665c; --sage-900: #2a4841;

  --pass: #4e8377;
  --pass-700: #3c665c;
  --pass-soft: #eef5f3;
  --pass-line: #cfe3de;

  --sand: #f6f6f4;
  --sand-line: #e7e7e4;
  --sand-ink: #555555;

  --neutral-100: #f6f6f4; --neutral-200: #ececea; --neutral-300: #dcdcd9; --neutral-400: #c4c4c0;
  --neutral-500: #a3a39f; --neutral-600: #8a8a86; --neutral-700: #6a6a66; --neutral-800: #444442;

  --warn: #9a6a1a;
  --warn-soft: #fbf4e4;
  --warn-line: #ecd9a8;
  --bad: #b3372d;
  --bad-soft: #fbecea;
  --bad-line: #efc4bf;

  --font-display: 'Alegreya Sans', 'Gill Sans', 'Segoe UI', sans-serif;
  --font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --r-xs: 4px;
  --r-sm: 4px;
  --r: 6px;
  --r-lg: 10px;
  --r-xl: 12px;
  --r-pill: 999px;

  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 1.5rem);
  --section-y: clamp(2rem, 5vw, 3.5rem);
  --grid-gap: 20px;

  --ratio-product: 1 / 1;

  --shadow-sm: none;
  --shadow: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .12);

  --header-h: 0px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 1.5rem 0; }
::selection { background: var(--accent-line); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* --- Type helpers ------------------------------------------------------- */
.eyebrow, .label {
  display: block;
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: .5rem;
}
.lede { font-size: 1.05rem; color: var(--ink-soft); font-weight: 300; }
.muted { color: var(--ink-dim); }
.mono { font-family: var(--font-mono); font-size: .92em; }
.text-center { text-align: center; }
.prose { max-width: 66ch; color: var(--ink-soft); line-height: 1.75; }
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3 { margin: 1.6em 0 .5em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose a:not(.btn) { color: var(--accent-700); border-bottom: 1px solid var(--accent-line); }
.link-arrow {
  display: inline-block;
  font-size: .9rem;
  color: var(--accent-700);
  border-bottom: 1px solid var(--accent-line);
  transition: color .18s, border-color .18s;
}
.link-arrow:hover { color: var(--ink); border-color: var(--ink); }
.link-arrow svg { display: inline; vertical-align: middle; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.hide { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.skip-link {
  position: absolute; left: -9999px; top: 0; padding: .5rem 1rem;
  background: var(--ink); color: #fff; z-index: 100;
}
.skip-link:focus { left: 0; }
.divider { border: 0; border-top: 1px solid var(--rule); margin: 1.5rem 0; }

/* --- Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 720px; }
.section { padding: var(--section-y) 0; }
.section--tight { padding: 1.5rem 0 var(--section-y); }
.section--soft { background: var(--paper-alt); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, .75rem); }
.row--between { justify-content: space-between; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.row-head h2 { margin: 0; }
.grid { display: grid; gap: var(--grid-gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); } }

/* Page heading: centred, short. */
.pagehead { text-align: center; padding: .5rem 0 2.25rem; }
.pagehead h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: .6rem; }
.pagehead p { max-width: 600px; margin: 0 auto; color: var(--ink-soft); font-size: 1.05rem; }
.pagehead .eyebrow { margin-bottom: .75rem; }
.breadcrumb { display: none; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display);
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  min-height: 44px; padding: 0 1.5rem;
  border: 1px solid var(--accent-700); border-radius: var(--r);
  background: var(--accent-700); color: #fff;
  cursor: pointer; white-space: nowrap; line-height: 1.2;
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn:hover { background: var(--accent-800); border-color: var(--accent-800); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.btn--primary { background: var(--accent-700); }
.btn--dark { background: var(--navy-800); border-color: var(--navy-800); }
.btn--dark:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--accent-800); }
.btn--ghost:hover { background: var(--accent-700); color: #fff; border-color: var(--accent-700); }
.btn--danger { background: var(--bad); border-color: var(--bad); }
.btn--danger:hover { background: #8f2a22; border-color: #8f2a22; }
.btn--lg { min-height: 48px; padding: 0 2.2rem; }
.btn--sm { min-height: 34px; padding: 0 .9rem; font-size: .72rem; }
[hidden] { display: none !important; }
.btn--block { display: flex; width: 100%; }
.btn svg { width: 1em; height: 1em; }
.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--accent-700); border-bottom: 1px solid var(--accent-line); font-size: .9rem;
}

/* Filter row: plain text links, the active one underlined. */
.filter, .filterpills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.75rem;
  margin: 0 0 2rem;
}
.filter a, .filterpills .btn--pill {
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-dim); padding: .35rem 0; border: 0; border-bottom: 1px solid transparent;
  border-radius: 0; background: none;
}
.filter a:hover, .filterpills .btn--pill:hover { color: var(--ink); background: none; }
.filter a[aria-current="true"], .filterpills .btn--pill[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* --- Pills / tags ------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-display); font-size: .68rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .28rem .55rem; border-radius: var(--r);
  background: var(--paper-mute); color: var(--ink-soft);
}
.pill--good { background: var(--pass-soft); color: var(--pass-700); }
.pill--bad { background: var(--bad-soft); color: var(--bad); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--info { background: var(--accent-soft); color: var(--accent-800); }
.pill--neutral { background: var(--paper-mute); color: var(--ink-soft); }
.pill--outline { background: transparent; border: 1px solid var(--rule-strong); }
.pill--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* --- Header: centred mark, wordmark, one line of navigation ------------- */
.header { position: relative; text-align: center; padding: 2.25rem 0 1.25rem; }
.header__inner { display: flex; flex-direction: column; align-items: center; }
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: .6rem; color: var(--accent); }
.brand__mark { width: 56px; height: 56px; }
.brand__name { font-family: var(--font-display); font-size: 1.85rem; line-height: 1; color: var(--accent); }
.brand__sub { display: none; }
.nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 1.75rem; }
.nav__link, .cart-pill {
  font-family: var(--font-display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: #9aa0a3; padding: .35rem 0; background: none; border: 0; cursor: pointer; line-height: 1.4;
  transition: color .18s;
}
.nav__link:hover, .cart-pill:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link + .nav__link::before, .nav__link + .cart-pill::before {
  content: ""; display: inline-block; width: 18px; height: 1px;
  background: var(--rule-strong); vertical-align: middle; margin: 0 1.25rem;
}
.cart-pill__count::before { content: "("; } .cart-pill__count::after { content: ")"; }
.cart-pill__count { margin-left: .2rem; }
.header__actions { position: absolute; top: 1.25rem; right: var(--gutter); }
.icon-btn { display: inline-flex; background: none; border: 0; padding: .4rem; cursor: pointer; color: var(--ink); }
.burger { display: none; }
@media (max-width: 800px) {
  .header { padding-top: 1.75rem; }
  .burger { display: inline-flex; }
  .nav { display: none; flex-direction: column; gap: .35rem; margin-top: 1.25rem; }
  .nav[data-open="true"] { display: flex; }
  .nav__link + .nav__link::before, .nav__link + .cart-pill::before { display: none; }
}

/* --- The work grid -------------------------------------------------------
   The portfolio and the shop share it. Square images, a 20px gutter, no
   frames. Titles appear over the image on hover; on touch screens they sit
   beneath it instead. --------------------------------------------------- */
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.work--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .work, .work--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .work, .work--4 { grid-template-columns: minmax(0, 1fr); } }
.work__item { position: relative; display: block; overflow: hidden; background: var(--paper-alt); }
.work__media { aspect-ratio: var(--ratio-product); overflow: hidden; background: var(--paper-alt); }
.work__media img, .work__media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work__item:hover .work__media img { transform: scale(1.03); }
.work__over {
  position: absolute; inset: 0; padding: 1rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: rgba(255, 255, 255, .88); opacity: 0; transition: opacity .3s var(--ease);
}
.work__item:hover .work__over, .work__item:focus-visible .work__over { opacity: 1; }
.work__title { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); line-height: 1.2; }
.work__meta { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); margin-top: .5rem; }
.work__price { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; }
@media (hover: none) {
  .work__over { position: static; opacity: 1; background: none; padding: .8rem 0 .4rem; }
  .work__item { background: none; }
}
.work__cap { text-align: center; padding: .85rem 0 .3rem; }
.work__cap .work__title { font-size: 1.05rem; }
.work__cap .work__price { margin-top: .15rem; font-size: .85rem; color: var(--ink-dim); }
.noimage {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); color: var(--ink-dim); font-size: 1rem; letter-spacing: .04em;
  background: var(--paper-alt); aspect-ratio: var(--ratio-product);
}
.load-more { text-align: center; margin-top: 2.5rem; }

/* Intro block on the home page: portrait, name, one paragraph. */
.intro { text-align: center; max-width: 620px; margin: 0 auto 2.75rem; }
.intro__portrait { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; }
.intro h1 { font-size: 1.7rem; margin-bottom: .4rem; }
.intro p { color: var(--ink-soft); margin: 0; }
.intro__links { margin-top: .9rem; font-size: .85rem; }
.intro__links a { color: var(--accent-700); border-bottom: 1px solid var(--accent-line); margin: 0 .5rem; }

/* About page */
.about { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 3.5rem; align-items: start; }
@media (max-width: 800px) { .about { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }
.about__visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-alt); }
.about__visual figcaption { font-size: .8rem; color: var(--ink-dim); margin-top: .5rem; }
.about__facts { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); margin: 0 0 1.5rem; }
.about__list { margin: 1.75rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--rule); }
.about__list div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1rem; padding: .4rem 0; font-size: .92rem; }
.about__list dt { color: var(--ink-dim); }
.about__list dd { margin: 0; color: var(--ink-soft); }
.about__quote { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--ink-soft); margin: 1.75rem 0 0; }

/* --- Gallery piece page --------------------------------------------------- */
.piece { max-width: 900px; margin: 0 auto; text-align: center; }
.piece__main img, .piece__main .noimage { width: 100%; background: var(--paper-alt); }
.piece__title { font-size: 2rem; margin: 1.75rem 0 .5rem; }
.piece__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.5rem; margin: 0 0 1.5rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.piece__facts div { display: flex; gap: .4rem; }
.piece__facts dt::after { content: ":"; }
.piece__facts dd { margin: 0; color: var(--ink-soft); }
.piece__facts a { color: var(--accent-700); }
.piece .prose { margin: 0 auto; text-align: center; }
.piece__sale { margin-top: 1.5rem; font-size: .95rem; }
.piece__sale a { color: var(--accent-700); border-bottom: 1px solid var(--accent-line); }
.piece__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.piece__nav a { color: var(--ink-dim); }
.piece__nav a:hover { color: var(--ink); }
.piece__nav b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--ink); margin-top: .2rem; }
.pdp__thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .6rem; }
.pdp__thumb { width: 64px; height: 64px; padding: 0; border: 1px solid transparent; border-radius: var(--r-sm); background: var(--paper-alt); cursor: pointer; overflow: hidden; }
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumb[aria-selected="true"] { border-color: var(--ink); }

/* --- Product page --------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 800px) { .pdp { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }
.pdp__main img { width: 100%; aspect-ratio: var(--ratio-product); object-fit: cover; background: var(--paper-alt); }
.pdp__gallery .pdp__thumbs { justify-content: flex-start; }
.pdp__title { font-size: 2rem; margin: 0 0 .4rem; }
.pdp__price { display: flex; align-items: center; gap: .75rem; font-size: 1.15rem; color: var(--ink); margin-bottom: 1rem; }
.pdp__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.pdp__desc { color: var(--ink-soft); margin-bottom: .75rem; }
.pdp__tags { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 1.75rem; }
.pdp__soft { font-size: .88rem; color: var(--accent-700); border-bottom: 1px solid var(--accent-line); }
.pdp__facts, .pdp__assurance { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: .85rem; color: var(--ink-dim); }
.pdp__facts div { margin: .3rem 0; }
.assure-row { display: flex; align-items: center; gap: .5rem; margin: .4rem 0; color: var(--ink-soft); font-size: .88rem; }
.assure-row svg { color: var(--accent-700); flex: none; }
.variants { display: flex; flex-wrap: wrap; gap: .5rem; }
.variant {
  display: inline-flex; align-items: baseline; gap: .5rem;
  padding: .55rem .9rem; border: 1px solid var(--rule-strong); border-radius: var(--r);
  background: #fff; color: var(--ink); font-size: .88rem; cursor: pointer;
}
.variant[aria-checked="true"] { border-color: var(--accent-700); box-shadow: inset 0 0 0 1px var(--accent-700); background: var(--accent-soft); }
.variant:disabled { opacity: .45; cursor: not-allowed; }
.variant__price { font-size: .8rem; color: var(--ink-dim); }
.variant__oos { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bad); }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--rule-strong); border-radius: var(--r); height: 48px; background: #fff; }
.qty button { width: 40px; background: none; border: 0; cursor: pointer; color: var(--ink-soft); font-size: 1.1rem; }
.qty input { width: 48px; text-align: center; border: 0; font: inherit; color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tabs { display: flex; flex-wrap: wrap; gap: 1.75rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.5rem; }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: .75rem 0;
  font-family: var(--font-display); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-dim); cursor: pointer;
}
.tab[aria-selected="true"] { color: var(--accent-800); border-bottom-color: var(--accent-700); }
.spectable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spectable th, .spectable td { text-align: left; vertical-align: top; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.spectable th { width: 35%; font-weight: 400; color: var(--ink-dim); }

/* --- Forms ---------------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field__label {
  display: block; font-family: var(--font-display); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4rem;
}
.field__label .muted { text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.field__hint { font-size: .8rem; color: var(--ink-dim); margin: .35rem 0 0; }
.field__error { font-size: .8rem; color: var(--bad); margin: .35rem 0 0; }
.req { color: var(--bad); }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  padding: .7rem .9rem; border: 1px solid var(--rule-strong); border-radius: var(--r); background: #fff;
  transition: border-color .18s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-700); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--bad); }
.input::placeholder, .textarea::placeholder { color: var(--ink-dim); }
.select {
  appearance: none; padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
.textarea { min-height: 120px; resize: vertical; }
input[type="file"].input { padding: .55rem .9rem; }
.checkbox { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--ink-soft); }
.checkbox input { margin-top: .25rem; }
.searchbar { position: relative; display: flex; align-items: center; }
.searchbar svg { position: absolute; left: .8rem; color: var(--ink-dim); }
.searchbar .input { padding-left: 2.3rem; }
.subscribe { display: flex; gap: .5rem; }
.subscribe input { flex: 1; min-width: 0; font: inherit; font-size: .9rem; padding: .65rem .8rem; border: 1px solid var(--rule-strong); border-radius: var(--r); background: #fff; color: var(--ink); }
.subscribe input:focus { outline: none; border-color: var(--ink); }

/* --- Panels, alerts, tables ----------------------------------------------- */
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 1.5rem; }
.panel__head { margin-bottom: 1rem; }
.panel__head h2 { font-size: 1.3rem; margin: 0; }
.panel--summary { background: var(--paper-alt); border-color: transparent; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: minmax(0, 1fr); } }
.step-label { font-family: var(--font-display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.step-label b { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-700); color: #fff; align-items: center; justify-content: center; font-size: .7rem; font-weight: 500; }
.alert {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .9rem 1.1rem; margin-bottom: 1rem; font-size: .92rem;
  background: var(--paper-alt); border-left: 3px solid var(--ink); border-radius: var(--r);
}
.alert ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.alert--bad { background: var(--bad-soft); border-left-color: var(--bad); }
.alert--warn { background: var(--warn-soft); border-left-color: var(--warn); }
.alert--good { background: var(--pass-soft); border-left-color: var(--pass); }
.alert--info { background: var(--accent-soft); border-left-color: var(--accent-700); }
.flashes { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.messages { margin-bottom: 1rem; }
.totals { margin-top: .5rem; }
.totals__row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .92rem; border-bottom: 1px solid var(--rule); }
.totals__row strong { font-weight: 500; }
.totals__row--grand { border-bottom: 0; padding-top: .8rem; font-size: 1.05rem; }
.empty { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--rule-strong); border-radius: var(--r-lg); }
.empty h3 { margin-bottom: .4rem; }
.empty p { color: var(--ink-dim); }
.empty .btn { margin-top: .5rem; }
.order-row { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.order-row:hover { background: var(--paper-alt); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 1rem 1.25rem; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--rule-strong); }
.timeline li[data-current="true"]::before { background: var(--accent-700); }
.timeline li strong { display: block; font-weight: 500; }
.timeline li span { font-size: .8rem; color: var(--ink-dim); }
.timeline li p { margin: .3rem 0 0; color: var(--ink-soft); }
.ordersteps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.ordersteps li { counter-increment: step; position: relative; padding: .1rem 0 1.1rem 2.5rem; font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }
.ordersteps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-800);
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.ordersteps li::after { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: 4px; width: 1px; background: var(--rule-strong); }
.ordersteps li:last-child { padding-bottom: 0; }
.ordersteps li:last-child::after { display: none; }
.ordersteps strong { color: var(--ink); font-weight: 500; }

/* Timeline of large steps (how to pay, commissions) */
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 680px; }
.step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1.5rem; padding-bottom: 2.5rem; }
.step::before { content: ""; position: absolute; left: 23px; top: 56px; bottom: 8px; width: 2px; background: var(--rule); }
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step__num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-700); color: #fff; box-shadow: 0 0 0 6px var(--accent-soft);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: .6rem 0 .35rem; font-size: 1.35rem; }
.step p { margin: 0; color: var(--ink-soft); }
.step__note { display: inline-block; margin-top: .6rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-700); }
.callout { display: flex; gap: .9rem; align-items: flex-start; background: var(--accent-soft); border-left: 3px solid var(--accent-700); border-radius: var(--r); padding: 1.1rem 1.35rem; color: var(--ink); }
.callout svg { flex: none; color: var(--accent-700); margin-top: .15rem; }
.callout strong { font-family: var(--font-display); font-size: 1.05rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 700px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.fact { border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 1.1rem 1.25rem; }
.fact__label { display: block; font-family: var(--font-display); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-700); margin-bottom: .3rem; }
.fact__value { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.fact p { margin: .25rem 0 0; font-size: .85rem; color: var(--ink-dim); }
.cat-tile { display: block; padding: 1.5rem; border: 1px solid var(--rule); border-radius: var(--r-lg); transition: border-color .18s; }
.cat-tile:hover { border-color: var(--ink); }
.cat-tile h3 { margin: 0 0 .3rem; }
.cat-tile p { margin: 0; color: var(--ink-dim); font-size: .9rem; }
.thanks-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--accent-700); color: #fff; box-shadow: 0 0 0 8px var(--accent-soft); display: inline-flex; align-items: center; justify-content: center; }

/* Accordion (FAQ) */
.accordion__item { border-bottom: 1px solid var(--rule); }
.accordion__item h3 { margin: 0; }
.accordion__trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: none; border: 0; padding: 1rem 0; text-align: left; cursor: pointer;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
.accordion__icon { position: relative; width: 12px; height: 12px; flex: none; }
.accordion__icon::before, .accordion__icon::after { content: ""; position: absolute; background: var(--ink-dim); transition: transform .2s; }
.accordion__icon::before { left: 0; top: 5px; width: 12px; height: 2px; }
.accordion__icon::after { left: 5px; top: 0; width: 2px; height: 12px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: scaleY(0); }
.accordion__panel { display: none; padding: 0 0 1.25rem; color: var(--ink-soft); }
.accordion__panel[data-open="true"] { display: block; }
.accordion__panel p { margin: 0; }

/* --- Cart --------------------------------------------------------------- */
.cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.cart-line__media img, .cart-line__media .noimage { width: 72px; height: 72px; object-fit: cover; aspect-ratio: auto; font-size: .7rem; }
.cart-line__media--sm img { width: 56px; height: 56px; }
.cart-line__name { font-size: .95rem; }
.cart-line__meta { font-size: .8rem; color: var(--ink-dim); }
.cart-line__price { font-size: .95rem; white-space: nowrap; }
.cart-line__foot { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; }
.cart-line__foot .qty { height: 36px; }
.cart-line__foot .qty button { width: 32px; }
.cart-line__foot .qty input { width: 40px; font-size: .9rem; }
.cart-line__remove { background: none; border: 0; padding: 0; cursor: pointer; font-size: .8rem; color: var(--ink-dim); text-decoration: underline; }
.ship-meter { font-size: .85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.ship-meter p { margin: 0; }
.ship-meter__bar { height: 3px; background: var(--rule); margin-top: .5rem; }
.ship-meter__fill { height: 100%; background: var(--accent-700); transition: width .3s; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(34, 34, 34, .45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 60; }
.drawer-backdrop[data-open="true"] { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 61;
  display: flex; flex-direction: column; background: #fff;
  transform: translateX(100%); transition: transform .3s var(--ease);
}
.drawer[data-open="true"] { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--rule); }
.drawer__head h2 { margin: 0; font-size: 1.3rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 0 1.5rem; }
.drawer__foot { padding: 1.25rem 1.5rem; border-top: 1px solid var(--rule); background: var(--paper-alt); }

/* --- Cash App payment card ---------------------------------------------- */
.payblock { border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 1.5rem; background: #fff; }
.payblock__head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.payblock__head h2 { font-size: 1.25rem; margin: 0 0 .25rem; }
.payblock__head p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
/* Cash App's own green — the one third-party colour on the site. */
.payblock__logo { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #00d632; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; }
.payblock dl { margin: 0; }
.paydetail { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--rule); }
.paydetail dt { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.paydetail dd { margin: 0; font-size: 1rem; }
.paydetail--amount dd { font-size: 1.4rem; }
.paydetail--memo dd { font-family: var(--font-mono); }
.copy-btn { flex: none; font-family: var(--font-display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; background: none; border: 1px solid var(--rule-strong); border-radius: var(--r); padding: .4rem .65rem; color: var(--ink-soft); cursor: pointer; }
.copy-btn:hover { border-color: var(--ink); color: var(--ink); }

/* --- Footer --------------------------------------------------------------- */
.footer { margin-top: 4rem; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 2rem; padding: 1.5rem 0; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--ink-dim); }
.footer__top nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer__top nav a { font-family: var(--font-display); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #9aa0a3; }
.footer__top nav a:hover { color: var(--ink); }
.footer__band { background: linear-gradient(to top, #7fb2a6, var(--accent)); color: #fff; padding: 3.25rem 0 2.75rem; }
.footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }
.footer h4 { font-family: var(--font-display); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 0 0 1rem; }
.footer__band p { margin: 0 0 .75rem; font-size: .92rem; color: rgba(255, 255, 255, .92); }
.footer__band a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .45); }
.footer__band a:hover { border-bottom-color: #fff; }
.footer__band ul { list-style: none; margin: 0; padding: 0; }
.footer__band li { margin-bottom: .45rem; font-size: .92rem; }
.footer__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: .75rem; border: 2px solid rgba(255, 255, 255, .7); }
.footer__band .subscribe { margin-top: 1rem; max-width: 360px; }
.footer__band .subscribe input { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .6); color: #fff; }
.footer__band .subscribe input::placeholder { color: rgba(255, 255, 255, .8); }
.footer__band .subscribe .btn { background: #fff; color: var(--accent-800); border-color: #fff; min-height: 42px; }
.footer__band .subscribe .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.footer__bottom { text-align: center; font-size: .78rem; color: rgba(255, 255, 255, .8); margin-top: 2.5rem; }

/* --- Reveal on scroll ----------------------------------------------------- */
.reveal-ready [data-reveal] { opacity: 0; transition: opacity .6s var(--ease); }
.reveal-ready [data-reveal].is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-ready [data-reveal] { opacity: 1; }
}
