:root {
  --ink: #f4ead8;
  --muted: #bcae97;
  --faint: #82745e;
  --paper: #060907;
  --paper-2: #0b110d;
  --surface: #101711;
  --surface-2: #151d16;
  --surface-3: #1b2119;
  --line: rgba(202, 164, 101, .28);
  --line-strong: rgba(218, 178, 109, .5);
  --gold: #c79a5a;
  --gold-2: #e3bf7c;
  --amber: #9f5d24;
  --green: #163326;
  --green-2: #224a35;
  --bad: #ff8d74;
  --ok: #7cc992;
  --shadow: 0 24px 70px rgba(0, 0, 0, .42);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(199, 154, 90, .12), transparent 28rem),
    linear-gradient(180deg, #050807 0%, #07100c 34%, #060907 100%);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(199, 154, 90, .22);
  background: rgba(5, 8, 7, .88);
  backdrop-filter: blur(18px);
}

.shipping-strip {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-bottom: 1px solid rgba(199, 154, 90, .16);
  color: var(--gold-2);
  font-size: 13px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr auto;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  max-width: 1480px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-name {
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1;
  text-transform: uppercase;
}

.brand-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 42px);
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
}

.main-nav a,
.footer a,
.text-link {
  transition: color .18s ease, opacity .18s ease;
}

.main-nav a:hover,
.footer a:hover,
.text-link:hover {
  color: #fff1cc;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.icon-link,
.cart-button,
.icon-btn,
.admin-nav button {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold-2);
  background: rgba(13, 18, 14, .72);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.icon-link:hover,
.cart-button:hover,
.icon-btn:hover,
.admin-nav button:hover {
  transform: translateY(-1px);
  border-color: var(--gold-2);
  background: rgba(199, 154, 90, .12);
}

.cart-button {
  position: relative;
  grid-auto-flow: column;
  gap: 6px;
  padding: 0 10px;
}

.cart-glyph {
  font-size: 16px;
  line-height: 1;
}

.cart-button span:last-child {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  color: #191008;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero {
  min-height: min(760px, calc(100vh - 98px));
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 96px) clamp(16px, 4vw, 56px) clamp(32px, 4vw, 48px);
  background:
    linear-gradient(90deg, rgba(5, 8, 7, .96) 0%, rgba(5, 8, 7, .72) 39%, rgba(5, 8, 7, .16) 72%),
    linear-gradient(180deg, rgba(5, 8, 7, .14), rgba(5, 8, 7, .88)),
    url("/images/hero-tea-luxury.png") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hero-inner,
.section-inner {
  width: min(100%, 1380px);
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  gap: 26px;
}

.eyebrow {
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #e9c98c;
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 96px);
  font-weight: 400;
  line-height: .96;
  text-transform: uppercase;
}

.hero p {
  max-width: 520px;
  margin: 0;
  color: #d7c7aa;
  font-size: clamp(17px, 1.8vw, 21px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 660px;
  margin-top: 12px;
}

.hero-stat {
  min-width: 132px;
  padding: 13px 16px;
  border: 1px solid rgba(199, 154, 90, .24);
  border-radius: 8px;
  background: rgba(8, 13, 10, .72);
}

.hero-stat strong {
  display: block;
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.hero-stat span {
  color: var(--muted);
  font-size: 12px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.primary {
  color: #1a1108;
  background: linear-gradient(135deg, #e8c386, var(--gold));
}

.secondary {
  color: var(--gold-2);
  background: rgba(10, 15, 11, .72);
  border-color: var(--line);
}

.primary:hover,
.secondary:hover {
  transform: translateY(-1px);
}

.secondary:hover {
  border-color: var(--gold-2);
  background: rgba(199, 154, 90, .12);
}

.full { width: 100%; }

.section {
  padding: clamp(42px, 7vw, 88px) clamp(16px, 4vw, 56px);
}

.section.compact {
  padding-top: clamp(28px, 5vw, 56px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section h2,
.page-title {
  margin: 0;
  color: #e0bc7b;
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 400;
  line-height: 1;
}

.page-lead {
  max-width: 760px;
  margin: 14px 0 24px;
  color: var(--muted);
  font-size: 17px;
}

.muted { color: var(--muted); }

.grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
  gap: 16px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-tile,
.product-card,
.article-card,
.info-block,
.checkout-panel,
.admin-card,
.review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(21, 31, 23, .92), rgba(8, 12, 9, .94));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .18);
}

.category-tile {
  min-height: 144px;
  position: relative;
  display: grid;
  align-content: end;
  overflow: hidden;
  padding: 18px;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .32;
  background:
    linear-gradient(90deg, rgba(6, 9, 7, .94), rgba(6, 9, 7, .35)),
    var(--tile-image, url("/images/tea-1.svg")) center right / cover no-repeat;
  transform: scale(1.02);
  transition: transform .22s ease, opacity .22s ease;
}

.category-tile:hover::before {
  opacity: .52;
  transform: scale(1.08);
}

.category-tile > * {
  position: relative;
}

.category-kicker {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-2);
  font-family: var(--serif);
}

.category-tile strong {
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
}

.category-tile span:last-child {
  display: block;
  max-width: 220px;
  margin-top: 8px;
  font-size: 13px;
}

.product-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  transition: transform .18s ease, border-color .18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.product-image-link,
.product-media {
  display: block;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(199, 154, 90, .18), transparent 38%),
    #0d120e;
}

.product-card img,
.product-media img {
  width: 100%;
  aspect-ratio: 1.12;
  object-fit: cover;
  display: block;
  filter: saturate(.85) contrast(1.08) brightness(.78);
  mix-blend-mode: screen;
}

.product-card-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.product-card h3,
.article-card h3,
.info-block h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.18;
}

.product-card p {
  margin: 0;
  min-height: 46px;
  font-size: 14px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.price {
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.filters {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(150px, 220px));
  gap: 12px;
  margin: 24px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 18, 13, .82);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090d0a;
  padding: 12px 13px;
  color: var(--ink);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(199, 154, 90, .12);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

.product-page {
  display: grid;
  grid-template-columns: minmax(280px, 560px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.product-media {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-media img {
  aspect-ratio: 1;
  border-radius: 8px;
}

.product-info {
  display: grid;
  gap: 18px;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 13px;
}

.variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-list button {
  min-width: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(14, 20, 15, .9);
  padding: 11px 12px;
}

.variant-list button.active {
  border-color: var(--gold-2);
  box-shadow: inset 0 0 0 1px rgba(227, 191, 124, .38);
}

.variant-list button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
  gap: 10px;
}

.specs div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 20, 15, .7);
}

.specs span {
  color: var(--faint);
  font-size: 12px;
}

.story-band {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) 1.1fr minmax(260px, .8fr);
  gap: 24px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 17, 13, .76);
}

.story-image {
  min-height: 280px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 8, 7, .1), rgba(5, 8, 7, .62)),
    url("/images/hero-tea-luxury.png") center / cover no-repeat;
}

.story-copy {
  align-self: center;
  padding: clamp(10px, 2vw, 24px);
}

.story-copy p {
  color: var(--muted);
}

.benefit-list {
  display: grid;
  gap: 12px;
  align-content: center;
}

.benefit {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 12, 9, .66);
}

.benefit-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-2);
}

.benefit strong {
  display: block;
  color: var(--ink);
}

.benefit span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 48, 35, .86), rgba(8, 13, 10, .92)),
    radial-gradient(circle at 100% 0, rgba(227, 191, 124, .16), transparent 34%);
}

.newsletter h2 {
  margin-bottom: 8px;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.cart-drawer {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  width: min(450px, 100vw);
  height: 100vh;
  padding: 22px;
  background: #0a0f0b;
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .22s ease;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 16px;
  box-shadow: -24px 0 80px rgba(0, 0, 0, .44);
}

.cart-drawer.open { transform: translateX(0); }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(0, 0, 0, .58);
  display: none;
}

.scrim.open { display: block; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-head h2 {
  margin: 4px 0 0;
  color: var(--gold-2);
  font-family: var(--serif);
  font-weight: 400;
}

.cart-line {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-2);
  filter: brightness(.82) saturate(.9);
}

.qty {
  display: inline-grid;
  grid-template-columns: 32px 42px 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  width: max-content;
  margin-top: 8px;
}

.qty button {
  border: 0;
  color: var(--gold-2);
  background: rgba(199, 154, 90, .1);
  min-height: 32px;
}

.qty span { text-align: center; }

.cart-total {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.cart-total div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 20px;
}

.checkout-panel {
  padding: 20px;
}

.stack {
  display: grid;
  gap: 14px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  background: rgba(199, 154, 90, .08);
  padding: 14px;
  border-radius: 8px;
  color: var(--muted);
}

.article-card,
.info-block,
.review-card {
  padding: 18px;
}

.review-card {
  display: grid;
  gap: 12px;
}

.stars {
  color: var(--gold-2);
  letter-spacing: .12em;
}

.footer {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(160px, 1fr));
  gap: 28px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 42px clamp(16px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer h3 {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
}

.footer p {
  margin: 14px 0 0;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-brand .brand {
  margin-bottom: 18px;
}

.admin-body {
  background: #f1ece4;
  color: #221c17;
  color-scheme: light;
}

.hidden { display: none !important; }

.admin-shell {
  min-height: 100vh;
}

.login-panel {
  max-width: 420px;
  margin: 9vh auto;
  padding: 24px;
  color: #221c17;
  background: #fffaf2;
  border: 1px solid #dfd3c3;
  border-radius: 8px;
}

.admin-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}

.admin-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-right: 1px solid #dfd3c3;
  background: #fffaf2;
}

.admin-nav .brand-name { color: #221c17; }
.admin-nav .brand-subtitle { color: #6d6258; }

.admin-nav button {
  justify-content: start;
  width: 100%;
  color: #221c17;
  background: #fffaf2;
  border-color: #dfd3c3;
  text-align: left;
}

.admin-content {
  padding: 24px;
  min-width: 0;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #dfd3c3;
  border-radius: 8px;
  background: #fffaf2;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid #dfd3c3;
  text-align: left;
  vertical-align: top;
}

th {
  background: #efe4d5;
}

.admin-card {
  padding: 16px;
  margin-bottom: 16px;
  color: #221c17;
  background: #fffaf2;
  border-color: #dfd3c3;
}

.admin-card input,
.admin-card select,
.admin-card textarea,
.login-panel input {
  color: #221c17;
  background: white;
  border-color: #dfd3c3;
}

.badge {
  display: inline-block;
  width: max-content;
  padding: 4px 9px;
  border: 1px solid rgba(124, 201, 146, .34);
  border-radius: 999px;
  color: #cfe8d4;
  background: rgba(39, 117, 72, .22);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.error { color: var(--bad); }
.ok { color: var(--ok); }

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-band,
  .newsletter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .shipping-strip {
    font-size: 12px;
  }

  .topbar {
    gap: 12px;
  }

  .brand-subtitle {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .icon-link {
    display: none;
  }

  .hero {
    min-height: 640px;
    align-items: end;
    background:
      linear-gradient(180deg, rgba(5, 8, 7, .4) 0%, rgba(5, 8, 7, .9) 55%, #060907 100%),
      url("/images/hero-tea-luxury.png") center / cover no-repeat;
  }

  .filters,
  .product-page,
  .checkout-layout,
  .two,
  .admin-app {
    grid-template-columns: 1fr;
  }

  .admin-nav {
    position: static;
    height: auto;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

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

@media (max-width: 620px) {
  .topbar {
    padding-inline: 14px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 19px;
  }

  .main-nav {
    gap: 16px;
    font-size: 12px;
  }

  .hero {
    min-height: 610px;
    padding-top: 44px;
  }

  .hero h1 {
    font-size: clamp(42px, 15vw, 66px);
  }

  .category-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .cart-line {
    grid-template-columns: 60px 1fr;
  }

  .cart-line > button {
    grid-column: 2;
    width: max-content;
  }
}
