/* The A2Z Stores - steelware for the AGA kitchen
   Palette: enamel green ground, linen surface, cast iron ink, copper accent */

:root {
  --green: #1e3b32;
  --green-deep: #162d26;
  --linen: #efece4;
  --card: #fbf9f4;
  --ink: #1c1a17;
  --copper: #a96a38;
  --copper-dark: #8c5127;
  --hair: #d8d2c4;
  --white: #fbf9f4;
  --rail: #2e2b26;
  --max: 1080px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --slab: "Besley", "Iowan Old Style", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--copper-dark); }
a:hover { color: var(--copper); }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- header ---------- */

.site-head {
  background: var(--green);
  color: var(--white);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand { text-decoration: none; color: var(--white); line-height: 1.15; }
.brand b {
  font-family: var(--slab);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
}
.brand span { font-size: 0.78rem; opacity: 0.75; letter-spacing: 0.02em; }
.head-nav { display: flex; align-items: center; gap: 1.25rem; }
.head-nav a { color: var(--white); text-decoration: none; font-size: 0.9rem; opacity: 0.9; }
.head-nav a:hover { opacity: 1; color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

.cart-btn {
  background: none;
  border: 1px solid rgba(251, 249, 244, 0.4);
  color: var(--white);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  min-height: 44px;
}
.cart-btn:hover { border-color: var(--white); }
.cart-btn .count { font-weight: 700; }

/* ---------- hero ---------- */

.hero { background: var(--green); color: var(--white); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}
.eyebrow {
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #d9a06b; }
.hero h1 {
  font-family: var(--slab);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  margin: 0.6rem 0 1rem;
}
.hero p { max-width: 44ch; opacity: 0.9; margin-bottom: 1.6rem; }
/* Ambient crossfade. No controls: it is atmosphere, not navigation, so
   there is nothing to miss if you never look at it. */
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(251, 249, 244, 0.18);
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 24s infinite;
}
.hero-photo img:nth-child(1) { animation-delay: 0s; }
.hero-photo img:nth-child(2) { animation-delay: 6s; }
.hero-photo img:nth-child(3) { animation-delay: 12s; }
.hero-photo img:nth-child(4) { animation-delay: 18s; }
@keyframes heroFade {
  0%      { opacity: 0; }
  3%, 25% { opacity: 1; }
  28%     { opacity: 0; }
  100%    { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo img { animation: none; opacity: 0; }
  .hero-photo img:first-child { opacity: 1; }
}
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  min-height: 44px;
}
.btn:hover { background: #000; color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(251, 249, 244, 0.5); }
.btn-ghost:hover { background: transparent; border-color: var(--white); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- the rail ---------- */

.rail-line {
  border: 0;
  height: 5px;
  background: var(--rail);
  margin: 0;
}

/* ---------- range grid ---------- */

.range { padding: 3rem 0 4rem; }
.range-alt { background: var(--card); border-top: 1px solid var(--hair); padding-top: 3rem; }
.section-head { margin-bottom: 2.2rem; }
.section-head h2 {
  font-family: var(--slab);
  font-weight: 700;
  font-size: 1.7rem;
  margin-top: 0.4rem;
}
.section-lede { margin-top: 0.6rem; max-width: 56ch; color: #4c473e; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hair);
  border-top: 4px solid var(--rail);
  padding: 1.8rem 1.4rem 1.4rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
/* hanging hooks */
.card::before,
.card::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 8px;
  height: 14px;
  border: 2px solid var(--rail);
  border-top: 0;
  border-radius: 0 0 6px 6px;
}
.card::before { left: 22%; }
.card::after { right: 22%; }
.card .art { color: var(--green); margin: 0 auto 1rem; display: flex; align-items: center; min-height: 150px; }
.card .art svg { display: block; }
.card .photo { display: block; margin: -0.4rem 0 1rem; }
.card .photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border: 1px solid var(--hair); }
.card:hover .art { color: var(--copper-dark); }
.card h3 { font-family: var(--slab); font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.card .card-colour {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6558;
}
.card .price { margin-top: auto; }
.price {
  font-family: var(--slab);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
}
.card .view { font-size: 0.85rem; color: var(--copper-dark); }
.card:hover h3 { color: var(--copper-dark); }

/* ---------- plain strip ---------- */

.strip { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--card); }
.strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.strip h3 { font-family: var(--slab); font-size: 1rem; margin-bottom: 0.3rem; }
.strip p { font-size: 0.9rem; color: #4c473e; }

/* ---------- wholesale band ---------- */

.band { background: var(--green); color: var(--white); }
.band .wrap {
  padding-top: 2.6rem;
  padding-bottom: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.band h2 { font-family: var(--slab); font-size: 1.4rem; font-weight: 700; }
.band p { opacity: 0.85; max-width: 52ch; }

/* ---------- product page ---------- */

.crumbs { padding: 1.2rem 0 0; font-size: 0.85rem; }
.crumbs a { text-decoration: none; }
.pp { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; padding: 2rem 0 4rem; align-items: start; }
/* The photo column runs long, so the buy panel stays with the reader. */
.pp-info { position: sticky; top: 1.5rem; }
.pp-art {
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  min-height: 380px;
}
.pp-art svg { max-width: min(300px, 65vw); height: auto; }

.pp-gallery { display: flex; flex-direction: column; gap: 0.9rem; }
.pp-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--hair);
  background: var(--card);
}
.pp-info h1 { font-family: var(--slab); font-weight: 800; font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1.2; margin: 0.4rem 0 0.8rem; }
.pp-info .price { font-size: 1.5rem; }
.vat-note { font-size: 0.82rem; color: #6b6558; margin-top: 0.15rem; }
.pp-info .summary { margin: 1.1rem 0 1.4rem; max-width: 52ch; }
.pp-bullets { list-style: none; margin-bottom: 1.6rem; }
.pp-bullets li { padding-left: 1.2rem; position: relative; margin-bottom: 0.35rem; font-size: 0.95rem; }
.pp-bullets li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.55rem; height: 2px; background: var(--copper); }

.vh {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.colour-pick { margin-bottom: 1.5rem; }
.colour-label { display: block; font-size: 0.88rem; color: #4c473e; margin-bottom: 0.5rem; }
.colour-label b { color: var(--ink); }
.swatches { display: flex; gap: 0.6rem; }
.swatch {
  width: 44px; height: 44px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  position: relative;
  box-shadow: inset 0 0 0 3px var(--card);
}
.swatches-text { gap: 0.5rem; }
.swatch-text {
  width: auto;
  min-width: 72px;
  height: 44px;
  border-radius: 0;
  box-shadow: none;
  background: var(--card);
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 0 1rem;
}
.swatch-text.on { background: var(--ink); color: var(--white); border-color: var(--ink); }

.swatch-black { background: #24211d; }
.swatch-light-grey { background: #cbcfd1; }
.swatch:hover { border-color: var(--copper); }
.swatch.on { border-color: var(--ink); border-width: 2px; }

.fits-note {
  background: var(--card);
  border-left: 3px solid var(--copper);
  padding: 0.8rem 1rem;
  margin-bottom: 1.4rem;
  font-size: 0.92rem;
  max-width: 52ch;
}
.fits-note b { display: block; }

.buy-row { display: flex; gap: 0.8rem; align-items: stretch; flex-wrap: wrap; margin-bottom: 0.8rem; }
.qty {
  width: 4.2rem;
  font: inherit;
  font-size: 1rem;
  text-align: center;
  border: 1px solid var(--hair);
  background: var(--card);
  min-height: 44px;
}
.delivery-line { font-size: 0.88rem; color: #4c473e; margin-bottom: 1.6rem; }
.reassure {
  list-style: none;
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
}
.reassure li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.4rem;
  color: #4c473e;
}
.reassure li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.45em;
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.reassure b { color: var(--ink); }

/* long-form policy pages */
.prose { max-width: 68ch; padding-bottom: 4rem; }
.prose h2 {
  font-family: var(--slab);
  font-size: 1.25rem;
  margin: 2.2rem 0 0.6rem;
}
.prose p, .prose ul { margin-bottom: 0.9rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }
.model-form {
  border-left: 3px solid var(--hair);
  background: var(--card);
  padding: 1rem 1.2rem;
  margin: 0.5rem 0 1rem;
}
.model-form p { margin-bottom: 0.7rem; }

.amazon-line {
  border-top: 1px solid var(--hair);
  padding-top: 1.1rem;
  margin-top: 0.2rem;
}
.amazon-note { font-size: 0.85rem; color: #6b6558; margin-bottom: 0.55rem; }
.amazon-badge { display: inline-block; line-height: 0; }
.amazon-badge img { width: 160px; height: auto; display: block; }
.amazon-badge:hover { opacity: 0.75; }

.spec-table { border-collapse: collapse; width: 100%; max-width: 26rem; margin-top: 1.8rem; font-size: 0.92rem; }
.spec-table caption { text-align: left; font-family: var(--slab); font-weight: 700; padding-bottom: 0.5rem; }
.spec-table td { border-top: 1px solid var(--hair); padding: 0.5rem 0; }
.spec-table td:first-child { color: #6b6558; padding-right: 2rem; white-space: nowrap; }

/* ---------- wholesale / forms ---------- */

.page-head { padding: 2.5rem 0 0.5rem; }
.page-head h1 { font-family: var(--slab); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.4rem); margin-top: 0.4rem; }
.form-wrap { padding: 1.5rem 0 4rem; max-width: 560px; }
.form-wrap p.lede { margin-bottom: 1.8rem; max-width: 56ch; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--hair);
  background: var(--card);
  min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.form-msg { margin-top: 1rem; font-size: 0.92rem; }
.form-msg.ok { color: var(--green); font-weight: 600; }
.form-msg.err { color: #8c2f24; font-weight: 600; }

/* ---------- cart drawer ---------- */

.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(28, 26, 23, 0.45);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--card);
  border-left: 1px solid var(--hair);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 50;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 4px solid var(--rail);
}
.drawer-head h2 { font-family: var(--slab); font-size: 1.1rem; }
.drawer-close { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); padding: 0.4rem; min-height: 44px; min-width: 44px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.cart-line { display: flex; justify-content: space-between; gap: 0.8rem; align-items: baseline; padding: 0.8rem 0; border-bottom: 1px solid var(--hair); }
.cart-line .n { font-weight: 600; font-size: 0.95rem; }
.cart-line .qty-ctl { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.25rem; }
.qty-ctl button {
  background: var(--linen); border: 1px solid var(--hair);
  font: inherit; width: 30px; height: 30px; cursor: pointer; line-height: 1;
}
.cart-line .rm { background: none; border: 0; color: #8c2f24; font: inherit; font-size: 0.8rem; cursor: pointer; text-decoration: underline; padding: 0.2rem 0; }
.cart-empty { color: #6b6558; padding: 2rem 0; text-align: center; }
.drawer-foot { border-top: 1px solid var(--hair); padding: 1.1rem 1.25rem 1.4rem; }
.subtotal { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 0.35rem; }
.drawer-foot .note { font-size: 0.8rem; color: #6b6558; margin-bottom: 0.9rem; }
.drawer-foot .btn { width: 100%; }
.checkout-msg { font-size: 0.88rem; margin-top: 0.8rem; }
.checkout-msg ul { margin: 0.4rem 0 0 1.1rem; }

/* ---------- footer ---------- */

.site-foot { background: var(--green-deep); color: rgba(251, 249, 244, 0.75); margin-top: 0; }
.site-foot .wrap {
  padding-top: 2.2rem; padding-bottom: 2.5rem;
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  font-size: 0.85rem;
}
.site-foot a { color: rgba(251, 249, 244, 0.9); }
.site-foot .fine { max-width: 46ch; }
.site-foot .legal {
  flex-basis: 100%;
  border-top: 1px solid rgba(251, 249, 244, 0.15);
  padding-top: 1.1rem;
  font-size: 0.75rem;
  opacity: 0.65;
  line-height: 1.7;
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .hero-photo { order: -1; aspect-ratio: 3 / 2; }
  .strip .wrap { grid-template-columns: 1fr; }
  .pp { grid-template-columns: 1fr; gap: 1.5rem; }
  .pp-info { position: static; }
  .pp-art { min-height: 280px; padding: 2rem 1.5rem; }
  .head-nav .nav-link { display: none; }
  .band .wrap { flex-direction: column; align-items: flex-start; }
}
