:root {
  --shop-bg: #ebe6df;
  --shop-bg-deep: #e0d8ce;
  --shop-ink: #1c1a17;
  --shop-muted: #5c564e;
  --shop-accent: #2f6f64;
  --shop-accent-deep: #245750;
  --shop-surface: rgba(255, 252, 247, 0.72);
  --shop-line: rgba(28, 26, 23, 0.12);
  --shop-radius: 2px;
  --shop-font: "Source Sans 3", "Segoe UI", sans-serif;
  --shop-display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--shop-font);
  color: var(--shop-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 111, 100, 0.12), transparent 55%),
    linear-gradient(180deg, var(--shop-bg) 0%, var(--shop-bg-deep) 100%);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.shop-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(10px);
  background: rgba(235, 230, 223, 0.82);
  border-bottom: 1px solid var(--shop-line);
}

.shop-brand {
  font-family: var(--shop-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.shop-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-weight: 500;
}

.shop-cart-link { position: relative; }

.shop-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--shop-accent);
  color: #fff;
  font-size: 0.75rem;
}

.shop-main { padding: 0 0 4rem; }

.shop-footer {
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--shop-line);
  text-align: center;
  color: var(--shop-muted);
}

.shop-footer-brand {
  font-family: var(--shop-display);
  font-size: 1.25rem;
  color: var(--shop-ink);
  margin-bottom: 0.35rem;
}

.shop-flash-wrap {
  max-width: 720px;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
}

.shop-flash {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--shop-line);
  background: var(--shop-surface);
}

.shop-flash-error,
.shop-flash-toast-error { border-color: #a33; color: #7a1f1f; }

.shop-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.shop-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(28, 26, 23, 0.55) 0%, rgba(28, 26, 23, 0.15) 45%, rgba(28, 26, 23, 0.35) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%233a4a45'/%3E%3Cstop offset='1' stop-color='%238a7a68'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1600' height='900' fill='url(%23g)'/%3E%3Ccircle cx='1180' cy='320' r='260' fill='%23cbb89f' opacity='.35'/%3E%3Ccircle cx='420' cy='620' r='320' fill='%232f6f64' opacity='.28'/%3E%3C/svg%3E")
    center / cover no-repeat;
  transform: scale(1.04);
  animation: shopHeroZoom 8s ease-out forwards;
}

.shop-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 4.5rem 1.5rem 3.5rem;
  color: #f7f3ec;
  animation: shopRise 0.9s ease-out both;
}

.shop-brand-mark {
  font-family: var(--shop-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.shop-hero-title {
  font-family: var(--shop-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  font-weight: 700;
  margin: 0 0 0.85rem;
  max-width: 12ch;
}

.shop-hero-sub {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 34ch;
}

.shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--shop-radius);
  padding: 0.8rem 1.35rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.shop-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.shop-btn-primary {
  background: var(--shop-accent);
  color: #fff;
}

.shop-btn-primary:hover:not(:disabled) {
  background: var(--shop-accent-deep);
  transform: translateY(-1px);
}

.shop-btn-ghost {
  background: transparent;
  border-color: var(--shop-line);
  color: var(--shop-ink);
  padding: 0.45rem 0.8rem;
}

.shop-btn-block { width: 100%; }

.shop-collection,
.shop-cart-page,
.shop-pdp,
.shop-status-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 0;
}

.shop-section-head h1,
.shop-section-head h2 {
  font-family: var(--shop-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.4rem;
}

.shop-section-head p,
.shop-muted,
.shop-fineprint {
  color: var(--shop-muted);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.75rem 1.25rem;
  margin-top: 2rem;
}

.shop-product {
  display: block;
  animation: shopRise 0.7s ease both;
}

.shop-product:nth-child(2) { animation-delay: 0.06s; }
.shop-product:nth-child(3) { animation-delay: 0.12s; }
.shop-product:nth-child(4) { animation-delay: 0.18s; }

.shop-product-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d7cfc4;
  margin-bottom: 0.85rem;
}

.shop-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.shop-product:hover .shop-product-media img {
  transform: scale(1.04);
}

.shop-product-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background:
    linear-gradient(145deg, #cfc4b6, #9aa79f 55%, #6d857c);
}

.shop-product-meta h3 {
  font-family: var(--shop-display);
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.shop-price {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.shop-price-lg { font-size: 1.5rem; margin: 0.5rem 0 1rem; }

.shop-stock-out {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #8a3b2c;
}

.shop-empty { color: var(--shop-muted); margin-top: 2rem; }

.shop-pdp {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
  padding-top: 2.5rem;
}

.shop-pdp-media {
  background: #d7cfc4;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.shop-pdp-media img,
.shop-pdp-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-pdp-info h1 {
  font-family: var(--shop-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  margin: 0;
}

.shop-blurb {
  color: var(--shop-muted);
  line-height: 1.55;
  max-width: 38ch;
}

.shop-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.shop-variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.shop-variant-btn {
  border: 1px solid var(--shop-line);
  background: transparent;
  padding: 0.45rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

.shop-variant-btn.is-active {
  border-color: var(--shop-accent);
  background: rgba(47, 111, 100, 0.12);
}

.shop-stock { color: var(--shop-muted); margin: 0 0 1.25rem; }

.shop-add-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}

.shop-qty-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.shop-qty-field input,
.shop-checkout-form input,
.shop-inline-form input {
  border: 1px solid var(--shop-line);
  background: rgba(255, 252, 247, 0.9);
  padding: 0.65rem 0.75rem;
  font: inherit;
  min-width: 0;
}

.shop-cart-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: start;
}

.shop-cart-line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--shop-line);
}

.shop-cart-thumb {
  width: 96px;
  height: 120px;
  overflow: hidden;
  background: #d7cfc4;
}

.shop-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-cart-line-info h2 {
  font-family: var(--shop-display);
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
}

.shop-inline-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.65rem;
}

.shop-checkout-panel {
  padding: 1.25rem;
  background: var(--shop-surface);
  border: 1px solid var(--shop-line);
  position: sticky;
  top: 5rem;
}

.shop-checkout-panel h2 {
  font-family: var(--shop-display);
  margin: 0 0 0.5rem;
}

.shop-total { margin: 0 0 1rem; }

.shop-checkout-form {
  display: grid;
  gap: 0.75rem;
}

.shop-checkout-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.shop-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.shop-status-page {
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 3rem;
  animation: shopRise 0.7s ease both;
}

.shop-status-page h1 {
  font-family: var(--shop-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.25rem 0 0.75rem;
}

@keyframes shopRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shopHeroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@media (max-width: 860px) {
  .shop-pdp,
  .shop-cart-layout {
    grid-template-columns: 1fr;
  }

  .shop-checkout-panel { position: static; }

  .shop-hero-copy { padding-bottom: 2.5rem; }
}
