/* ============================================================
   OBICHAI TEA HOUSE — style.css
   Traditional East Asian aesthetic, soft greens & gold
   ============================================================ */

/* === 1. Custom Properties === */
:root {
  /* Colors — derived from the existing logo palette */
  --color-bg:          #ffffff;
  --color-surface:     #f5f2eb;
  --color-surface-2:   #ede8de;
  --color-primary:     #4a7c59;
  --color-primary-dk:  #2d4a38;
  --color-primary-lt:  #6fa07a;
  --color-accent:      #c9a84c;
  --color-accent-dk:   #a07835;
  --color-text:        #1e2620;
  --color-text-muted:  #5a6b5e;
  --color-border:      #d8e4da;
  --color-tag-bg:      #e8f0ea;
  --color-tag-text:    #2d4a38;

  /* Typography */
  --font-serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --font-sans:  'Noto Sans', system-ui, -apple-system, sans-serif;

  /* Layout */
  --nav-height:      72px;
  --max-width:       1200px;
  --content-width:   860px;

  /* Spacing */
  --sp-xs:  0.25rem;
  --sp-sm:  0.5rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4.5rem;
  --sp-4xl: 6rem;

  /* Radii */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.12);

  --transition: .2s ease;
}

/* === 2. Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dk); text-decoration: underline; }

ul, ol { list-style: none; }

button { cursor: pointer; font: inherit; border: none; background: none; color: inherit; }

input, textarea, select { font: inherit; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -120%;
  left: 1rem;
  padding: .5rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--r-sm);
  transition: top var(--transition);
  z-index: 9999;
}
.skip-link:focus { top: 1rem; }

/* === 3. Typography === */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary-dk);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: var(--sp-md); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* Section heading with gold rule */
.section-heading {
  text-align: center;
  margin-bottom: var(--sp-xl);
}
.section-heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  margin: .5rem auto 0;
}
.section-heading--left { text-align: left; }
.section-heading--left::after { margin-left: 0; }

/* Decorative brush-stroke divider */
.divider {
  width: 100%;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='24' viewBox='0 0 600 24'%3E%3Cpath d='M0 12 Q75 7 150 12 Q225 17 300 12 Q375 7 450 12 Q525 17 600 12' stroke='%23c9a84c' stroke-width='1.5' fill='none' stroke-linecap='round' opacity='.45'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 600px 24px;
  margin: var(--sp-xl) 0;
}

/* === 4. Layout === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-xl);
}
.container--narrow { max-width: var(--content-width); }

main { flex: 1; padding-top: var(--nav-height); }

.section { padding-block: var(--sp-4xl); }
.section--surface  { background: var(--color-surface); }
.section--surface2 { background: var(--color-surface-2); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: start;
}
.two-col--center { align-items: center; }

/* === 5. Navigation === */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--nav-height);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.main-nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  gap: var(--sp-sm);
}
.nav-logo img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.nav-logo-wordmark {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary-dk);
  letter-spacing: .02em;
}
.nav-logo:hover .nav-logo-wordmark { text-decoration: none; }

.nav-spacer { flex: 1; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  display: inline-block;
  padding: .45rem .85rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--r-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-primary);
  background: var(--color-tag-bg);
  text-decoration: none;
}
.nav-links a[aria-current="page"] { color: var(--color-primary-dk); font-weight: 600; }

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: var(--sp-xs);
  padding-left: var(--sp-md);
  border-left: 1px solid var(--color-border);
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: var(--r-sm);
  transition: color var(--transition), background var(--transition);
}
.lang-btn:hover,
.lang-btn[aria-pressed="true"] {
  color: var(--color-primary-dk);
  background: var(--color-tag-bg);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: background var(--transition);
}
.nav-toggle:hover { background: var(--color-tag-bg); }

.hbar {
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .hbar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hbar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hbar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === 6. Hero === */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #050e08;
}
/* Dark gradient overlay — opaque at top (hides PDF content text),
   fades out toward the bottom to reveal the teacup */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(5, 14, 8, 0.45) 0%,
    rgba(5, 14, 8, 0.60) 35%,
    rgba(5, 14, 8, 0.65) 60%,
    rgba(5, 14, 8, 0.30) 82%,
    rgba(5, 14, 8, 0.08) 100%
  );
}
/* Vignette on the sides to frame the leaves */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 120% 100% at 50% 50%,
    transparent 40%,
    rgba(5, 14, 8, 0.55) 100%
  );
  pointer-events: none;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 25% keeps the falling leaves visible at top, cup visible at bottom */
  object-position: center 25%;
  opacity: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: var(--sp-2xl) var(--sp-xl);
  max-width: 680px;
}
.hero-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-md);
}
.hero h1 { color: #fff; margin-bottom: var(--sp-lg); text-shadow: 0 2px 32px rgba(0,0,0,.7); }
.hero .lead { color: rgba(255,255,255,.85); margin-bottom: var(--sp-2xl); text-shadow: 0 1px 12px rgba(0,0,0,.6); }

/* === 7. Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: .75rem 1.75rem;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary-dk);
}
.btn-primary:hover {
  background: var(--color-accent-dk);
  color: var(--color-primary-dk);
  box-shadow: 0 4px 14px rgba(201,168,76,.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-white { background: #fff; color: var(--color-primary-dk); }
.btn-white:hover { background: var(--color-surface); color: var(--color-primary-dk); }

/* === 8. Badges === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: var(--r-full);
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-type-green   { background: #d4edd9; color: #1a5430; }
.badge-type-black   { background: #e5dbd5; color: #3c2010; }
.badge-type-white   { background: #f0e8dc; color: #5c4a38; }
.badge-type-oolong  { background: #f0e4c4; color: #5c3e0a; }
.badge-type-puerh   { background: #e0cfc0; color: #3d2a1a; }
.badge-type-herbal  { background: #d8edcc; color: #1f4816; }
.badge-type-rooibos  { background: #f0d8c8; color: #5c2a14; }
.badge-type-fruit    { background: #fce8d0; color: #6b3010; }
.badge-type-bulgarian{ background: #d4e8c0; color: #1a4010; }
.badge-type-special  { background: #e8d8f0; color: #3a1458; }

.badge-caffeine-none   { background: #e4f0e4; color: #1a4020; }
.badge-caffeine-low    { background: #d4ecd4; color: #174a17; }
.badge-caffeine-medium { background: #f0ead8; color: #5a3c0a; }
.badge-caffeine-high   { background: #f0d8d8; color: #5a1818; }

/* === 9. Tea Cards === */
.tea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-xl);
}

.tea-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.tea-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-lt);
  text-decoration: none;
  color: inherit;
}

.tea-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.tea-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.tea-card:hover .tea-card-img img { transform: scale(1.05); }

/* Color placeholders by type (shows when no image) */
.tea-card-img[data-type="green"]   { background: linear-gradient(135deg, #a8d5b5, #3d6648); }
.tea-card-img[data-type="black"]   { background: linear-gradient(135deg, #b09080, #3c2010); }
.tea-card-img[data-type="white"]   { background: linear-gradient(135deg, #ede0cc, #c4a880); }
.tea-card-img[data-type="oolong"]  { background: linear-gradient(135deg, #d4b870, #8b6c2e); }
.tea-card-img[data-type="puerh"]   { background: linear-gradient(135deg, #a08060, #3d2010); }
.tea-card-img[data-type="herbal"]  { background: linear-gradient(135deg, #b8d4a8, #5a8c4e); }
.tea-card-img[data-type="rooibos"]   { background: linear-gradient(135deg, #d4a888, #8b4c2e); }
.tea-card-img[data-type="fruit"]     { background: linear-gradient(135deg, #f0c090, #c05820); }
.tea-card-img[data-type="bulgarian"] { background: linear-gradient(135deg, #b0d890, #3a7828); }
.tea-card-img[data-type="special"]   { background: linear-gradient(135deg, #d0b8e8, #6838a0); }

.tea-card-body {
  padding: var(--sp-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tea-card-badges { display: flex; flex-wrap: wrap; gap: var(--sp-xs); margin-bottom: var(--sp-sm); }

.tea-card-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-dk);
  margin-bottom: 2px;
  line-height: 1.3;
}
.tea-card-origin { font-size: .78rem; color: var(--color-text-muted); margin-bottom: var(--sp-sm); }
.tea-card-desc {
  font-size: .85rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tea-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--color-border);
}
.tea-card-price { font-weight: 700; color: var(--color-primary-dk); font-size: .9rem; }
.tea-card-arrow { color: var(--color-accent); font-size: 1.1rem; }

/* === 10. Catalog Page === */
.catalog-wrap {
  display: grid;
  grid-template-columns: 256px 1fr;
  gap: var(--sp-2xl);
  align-items: start;
}

/* Filter sidebar */
.filter-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-xl));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: var(--sp-xl);
}

.filter-section { margin-bottom: var(--sp-xl); }
.filter-section:last-child { margin-bottom: 0; }

.filter-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-md);
}

/* Collapsible tags section */
.filter-section--collapsible {
  border: none;
}
.filter-section--collapsible > summary,
.filter-section--collapsible > summary.filter-label {
  list-style: none;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  /* pill button look */
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-sm);
  padding: .35rem .6rem .35rem .75rem;
  margin-bottom: 0;
  transition: background .15s, border-color .15s;
}
.filter-section--collapsible > summary::-webkit-details-marker { display: none; }
.filter-section--collapsible > summary::after {
  content: '+';
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  transition: transform .2s ease;
  flex-shrink: 0;
  margin-left: var(--sp-sm);
}
.filter-section--collapsible[open] > summary::after {
  content: '\2212'; /* minus sign − */
}
.filter-section--collapsible > summary:hover {
  background: var(--color-tag-bg);
  border-color: var(--color-primary);
}
.filter-section--collapsible > summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.filter-section--collapsible > .filter-tags {
  margin-top: var(--sp-md);
}

.search-wrap { position: relative; }
.search-input {
  width: 100%;
  padding: .6rem .85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--color-text);
  font-size: .875rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74,124,89,.15);
  outline: none;
}

.filter-pills { display: flex; flex-wrap: wrap; gap: var(--sp-xs); }
.filter-pill {
  padding: 4px 11px;
  font-size: .78rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: var(--r-full);
  background: #fff;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-pill:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.filter-tags { display: flex; flex-direction: column; gap: var(--sp-xs); }
.filter-tag-label {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: .82rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition);
  text-transform: capitalize;
}
.filter-tag-label:hover { color: var(--color-primary); }
.filter-tag-label input[type="checkbox"] { accent-color: var(--color-primary); width: 14px; height: 14px; }

.catalog-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--color-border);
  gap: var(--sp-md);
  flex-wrap: wrap;
}
.results-count { font-size: .875rem; color: var(--color-text-muted); }

.catalog-actions { display: flex; align-items: center; gap: var(--sp-md); flex-wrap: wrap; }

.sort-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}
.sort-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sort-select {
  font-family: var(--font-sans);
  font-size: .875rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-sm);
  padding: .3rem .6rem .3rem .5rem;
  cursor: pointer;
  outline-offset: 2px;
  transition: border-color .15s;
  /* native arrow is fine; just tighten the appearance */
  -webkit-appearance: auto;
  appearance: auto;
}
.sort-select:hover  { border-color: var(--color-primary); }
.sort-select:focus  { outline: 2px solid var(--color-accent); }

.group-toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  font-size: .82rem;
  color: var(--color-text-muted);
  cursor: pointer;
  border: 1px solid var(--color-border);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  transition: all var(--transition);
}
.group-toggle.active { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-tag-bg); }

.clear-btn {
  font-size: .82rem;
  color: var(--color-primary);
  text-decoration: underline;
  transition: color var(--transition);
}
.clear-btn:hover { color: var(--color-primary-dk); }

.no-results {
  text-align: center;
  padding: var(--sp-4xl) var(--sp-xl);
  color: var(--color-text-muted);
}
.no-results h3 { color: var(--color-text-muted); font-weight: 400; margin-bottom: var(--sp-sm); }

.tea-group { margin-bottom: var(--sp-3xl); }
.tea-group-heading {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  padding-bottom: var(--sp-sm);
  margin-bottom: var(--sp-lg);
  border-bottom: 1px solid var(--color-border);
}

/* Mobile filter toggle button */
.filter-toggle-btn {
  display: none;
  align-items: center;
  gap: var(--sp-sm);
  padding: .55rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--r-sm);
  font-size: .875rem;
  color: var(--color-text-muted);
  background: #fff;
  margin-bottom: var(--sp-lg);
  transition: all var(--transition);
}
.filter-toggle-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* === 11. Tea Detail Page === */
.tea-detail { padding: var(--sp-3xl) 0; }

.tea-detail-hero {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: var(--sp-3xl);
  align-items: start;
  margin-bottom: var(--sp-3xl);
}

.tea-detail-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}
.tea-detail-img img { width: 100%; height: 100%; object-fit: cover; }

/* Color placeholder for tea detail */
.tea-detail-img[data-type="green"]   { background: linear-gradient(135deg, #a8d5b5, #3d6648); }
.tea-detail-img[data-type="black"]   { background: linear-gradient(135deg, #b09080, #3c2010); }
.tea-detail-img[data-type="white"]   { background: linear-gradient(135deg, #ede0cc, #c4a880); }
.tea-detail-img[data-type="oolong"]  { background: linear-gradient(135deg, #d4b870, #8b6c2e); }
.tea-detail-img[data-type="puerh"]   { background: linear-gradient(135deg, #a08060, #3d2010); }
.tea-detail-img[data-type="herbal"]  { background: linear-gradient(135deg, #b8d4a8, #5a8c4e); }
.tea-detail-img[data-type="rooibos"]   { background: linear-gradient(135deg, #d4a888, #8b4c2e); }
.tea-detail-img[data-type="fruit"]     { background: linear-gradient(135deg, #f0c090, #c05820); }
.tea-detail-img[data-type="bulgarian"] { background: linear-gradient(135deg, #b0d890, #3a7828); }
.tea-detail-img[data-type="special"]   { background: linear-gradient(135deg, #d0b8e8, #6838a0); }

.tea-detail-meta { display: flex; flex-direction: column; gap: var(--sp-lg); }
.tea-detail-badges { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }
.tea-detail-name { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0; }

.tea-origin-line { display: flex; align-items: center; gap: var(--sp-sm); }
.tea-origin-line span { font-size: .9rem; color: var(--color-text-muted); }

.tea-price {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary-dk);
}

/* Brewing guide */
.brewing-guide {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: var(--sp-2xl);
  margin-bottom: var(--sp-2xl);
}
.brewing-guide h3 { margin-bottom: var(--sp-xl); }

.brewing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-md);
}
.brewing-step {
  text-align: center;
  padding: var(--sp-lg) var(--sp-md);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--r-sm);
}
.brewing-step-icon { font-size: 1.4rem; display: block; margin-bottom: var(--sp-sm); }
.brewing-step-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 3px;
}
.brewing-step-value {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-dk);
  line-height: 1.2;
}
.brewing-step-sub { font-size: .72rem; color: var(--color-text-muted); margin-top: 2px; }

.brew-notes {
  margin-top: var(--sp-lg);
  font-size: .875rem;
  color: var(--color-text-muted);
  font-style: italic;
  padding: var(--sp-md);
  background: #fff;
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* Tasting notes */
.tasting-notes { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }
.tasting-note {
  padding: 4px 14px;
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  border-radius: var(--r-full);
  font-size: .82rem;
  font-weight: 500;
  text-transform: capitalize;
}

/* Tea detail content sections */
.tea-info-section { margin-bottom: var(--sp-2xl); }
.tea-info-section h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-sm);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--color-border);
}
.tea-info-section p { margin-bottom: 0; }

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  color: var(--color-text-muted);
  font-size: .875rem;
  margin-bottom: var(--sp-2xl);
  transition: color var(--transition);
}
.back-link:hover { color: var(--color-primary); text-decoration: none; }

/* === 12. News Accordion === */
.news-list { max-width: var(--content-width); margin-inline: auto; }

.news-item { border-bottom: 1px solid var(--color-border); }
.news-item:first-child { border-top: 1px solid var(--color-border); }

.news-item summary {
  display: flex;
  align-items: baseline;
  gap: var(--sp-lg);
  padding: var(--sp-xl) 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.news-item summary::-webkit-details-marker { display: none; }
.news-item summary:hover .news-title { color: var(--color-primary); }

.news-date {
  font-size: .75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  min-width: 90px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.news-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  flex: 1;
  color: var(--color-primary-dk);
  transition: color var(--transition);
  line-height: 1.3;
}
.news-chevron {
  color: var(--color-accent);
  flex-shrink: 0;
  font-style: normal;
  font-size: .9rem;
  transition: transform var(--transition);
}
.news-item[open] .news-chevron { transform: rotate(180deg); }

.news-body {
  padding: 0 0 var(--sp-xl) calc(90px + var(--sp-lg));
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* === 13. Home — specific sections === */
.philosophy-block {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.philosophy-block p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.home-feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-xl);
}
.home-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: var(--sp-xl);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.home-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; color: inherit; }
.home-card-icon { font-size: 1.5rem; margin-bottom: var(--sp-md); }
.home-card-title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--color-primary-dk); margin-bottom: var(--sp-sm); }
.home-card-desc { font-size: .875rem; color: var(--color-text-muted); flex: 1; margin-bottom: var(--sp-md); }
.home-card-link { font-size: .85rem; font-weight: 600; color: var(--color-primary); }

/* Visit strip on home */
.visit-strip {
  display: flex;
  gap: var(--sp-3xl);
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}
.visit-item-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-xs);
}
.visit-item-value {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-primary-dk);
}

/* Tea of the Month teaser on home */
.totm-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}
.totm-teaser-img {
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--color-surface-2);
}
.totm-teaser-img img { width: 100%; height: 100%; object-fit: cover; }

/* === 14. About Page === */
.pull-quote {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-primary-dk);
  line-height: 1.65;
  padding-left: var(--sp-xl);
  border-left: 3px solid var(--color-accent);
  margin: var(--sp-2xl) 0;
}

/* === 15. Visit Page === */
.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-sm) var(--sp-xl);
  max-width: 360px;
}
.hours-day { font-weight: 600; }
.hours-time { color: var(--color-text-muted); }

.map-embed {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 360px;
}
.map-embed iframe { width: 100%; height: 100%; border: none; display: block; }

/* Contact form */
.contact-form { max-width: 520px; }
.form-group { margin-bottom: var(--sp-lg); }
.form-label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: var(--sp-xs); }
.form-input,
.form-textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--color-text);
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74,124,89,.15);
  outline: none;
}
.form-textarea { min-height: 140px; resize: vertical; }

/* === 16. Tea of the Month Page === */
.totm-page-hero {
  position: relative;
  padding: var(--sp-4xl) 0;
  background: #050e08;
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.totm-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(5, 14, 8, 0.45) 0%,
    rgba(5, 14, 8, 0.60) 35%,
    rgba(5, 14, 8, 0.65) 60%,
    rgba(5, 14, 8, 0.30) 82%,
    rgba(5, 14, 8, 0.08) 100%
  );
}
.totm-page-hero > .container { position: relative; z-index: 2; }
.totm-page-hero h1 { color: #fff; text-shadow: 0 2px 32px rgba(0,0,0,.7); }
.totm-page-hero .lead { color: rgba(255,255,255,.85); text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.totm-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-md);
  position: relative;
}

/* === 17. Footer === */
.site-footer {
  background: var(--color-primary-dk);
  color: rgba(255,255,255,.78);
  padding-block: var(--sp-3xl);
  margin-top: auto;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--sp-3xl);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-xl);
}
.footer-logo img {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--sp-md);
}
.footer-logo-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: var(--sp-sm);
}
.footer-tagline { font-size: .875rem; font-style: italic; opacity: .6; margin-bottom: 0; }

.footer-nav-heading {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-md);
}
.footer-links { display: flex; flex-direction: column; gap: var(--sp-sm); }
.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: var(--sp-2xl);
  padding-top: var(--sp-lg);
  text-align: center;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-xl);
}
.footer-copyright { font-size: .78rem; opacity: .45; margin-bottom: 0; }

/* === 18. Responsive — Tablet === */
@media (max-width: 960px) {
  :root { --nav-height: 64px; }

  .catalog-wrap { grid-template-columns: 1fr; }

  .filter-sidebar {
    position: static;
    display: none;
    margin-bottom: var(--sp-xl);
  }
  .filter-sidebar.is-open { display: block; }
  .filter-toggle-btn { display: flex; }

  .tea-detail-hero { grid-template-columns: 1fr; }
  .tea-detail-img { aspect-ratio: 16/9; max-height: 380px; border-radius: var(--r-md); }

  .two-col { grid-template-columns: 1fr; gap: var(--sp-2xl); }
  .totm-teaser { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
}

/* === 18. Responsive — Mobile === */
@media (max-width: 600px) {
  :root { --nav-height: 60px; }

  .container { padding-inline: var(--sp-lg); }
  .section { padding-block: var(--sp-3xl); }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    inset-block-start: var(--nav-height);
    inset-inline: 0;
    bottom: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: var(--sp-xl);
    gap: 0;
    transform: translateX(100%);
    transition: transform .25s ease;
    border-top: 1px solid var(--color-border);
    overflow-y: auto;
  }
  .nav-menu.is-open { transform: translateX(0); }

  .nav-spacer { display: none; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-links a {
    font-size: 1.05rem;
    padding: var(--sp-md) 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }

  .lang-switcher {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--color-border);
    padding-top: var(--sp-lg);
    margin-top: var(--sp-lg);
    gap: var(--sp-md);
  }
  .lang-btn { font-size: .9rem; padding: var(--sp-sm) var(--sp-md); }

  .tea-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
  .tea-card-desc { display: none; }

  .hero { min-height: 75vh; }

  .brewing-steps { grid-template-columns: repeat(2, 1fr); }

  .news-date { display: none; }
  .news-body { padding-left: 0; }

  .visit-strip { gap: var(--sp-xl); }

  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-xl); }
}

@media (max-width: 380px) {
  .tea-grid { grid-template-columns: 1fr; }
}

/* === 19. Print === */
@media print {
  .site-header, .site-footer, .filter-sidebar, .nav-toggle { display: none; }
  main { padding-top: 0; }
  .tea-card { break-inside: avoid; }
}

/* ============================================================
   DARK THEME
   Applied via [data-theme="dark"] on <html>.
   1. Re-define all colour tokens.
   2. Override hardcoded badge + card-gradient colours.
   Everything that already uses var(--color-*) updates for free.
   ============================================================ */

[data-theme="dark"] {
  --color-bg:         #0f1a12;
  --color-surface:    #182218;
  --color-surface-2:  #1f2d20;
  --color-primary:    #6fa07a;
  --color-primary-dk: #4a7c59;
  --color-primary-lt: #8db89e;
  --color-accent:     #d4b65a;
  --color-accent-dk:  #c9a84c;
  --color-text:       #e4ede6;
  --color-text-muted: #8da899;
  --color-border:     #2a3d2e;
  --color-tag-bg:     #1e3023;
  --color-tag-text:   #a8c8b0;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.35);
  --shadow-md: 0 4px 16px rgba(0,0,0,.50);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.55);
}

/* — Badges — */
[data-theme="dark"] .badge-type-green    { background: #1a3d25; color: #7dcc98; }
[data-theme="dark"] .badge-type-black    { background: #2e1f18; color: #c4a090; }
[data-theme="dark"] .badge-type-white    { background: #2e2418; color: #d4c4a8; }
[data-theme="dark"] .badge-type-oolong   { background: #2e2410; color: #d4b870; }
[data-theme="dark"] .badge-type-puerh    { background: #2a1a10; color: #c09070; }
[data-theme="dark"] .badge-type-herbal   { background: #183018; color: #90cc80; }
[data-theme="dark"] .badge-type-rooibos  { background: #2e1a10; color: #d49870; }
[data-theme="dark"] .badge-type-fruit    { background: #301e0c; color: #d4a870; }
[data-theme="dark"] .badge-type-bulgarian{ background: #1a2e10; color: #90c870; }
[data-theme="dark"] .badge-type-special  { background: #20103a; color: #c098e8; }
[data-theme="dark"] .badge-caffeine-none   { background: #102a18; color: #80c890; }
[data-theme="dark"] .badge-caffeine-low    { background: #142814; color: #78c078; }
[data-theme="dark"] .badge-caffeine-medium { background: #2a2010; color: #d4a870; }
[data-theme="dark"] .badge-caffeine-high   { background: #2a1010; color: #d08080; }

/* — Tea card / detail placeholder gradients (darker versions) — */
[data-theme="dark"] .tea-card-img[data-type="green"],
[data-theme="dark"] .tea-detail-img[data-type="green"]    { background: linear-gradient(135deg, #2a5c3a, #1a3028); }
[data-theme="dark"] .tea-card-img[data-type="black"],
[data-theme="dark"] .tea-detail-img[data-type="black"]    { background: linear-gradient(135deg, #3c2820, #1a1008); }
[data-theme="dark"] .tea-card-img[data-type="white"],
[data-theme="dark"] .tea-detail-img[data-type="white"]    { background: linear-gradient(135deg, #3c3020, #261e12); }
[data-theme="dark"] .tea-card-img[data-type="oolong"],
[data-theme="dark"] .tea-detail-img[data-type="oolong"]   { background: linear-gradient(135deg, #3c3010, #201808); }
[data-theme="dark"] .tea-card-img[data-type="puerh"],
[data-theme="dark"] .tea-detail-img[data-type="puerh"]    { background: linear-gradient(135deg, #302018, #180c08); }
[data-theme="dark"] .tea-card-img[data-type="herbal"],
[data-theme="dark"] .tea-detail-img[data-type="herbal"]   { background: linear-gradient(135deg, #283c20, #141e10); }
[data-theme="dark"] .tea-card-img[data-type="rooibos"],
[data-theme="dark"] .tea-detail-img[data-type="rooibos"]  { background: linear-gradient(135deg, #3c2818, #1e1008); }
[data-theme="dark"] .tea-card-img[data-type="fruit"],
[data-theme="dark"] .tea-detail-img[data-type="fruit"]    { background: linear-gradient(135deg, #3c2c10, #1e1008); }
[data-theme="dark"] .tea-card-img[data-type="bulgarian"],
[data-theme="dark"] .tea-detail-img[data-type="bulgarian"]{ background: linear-gradient(135deg, #243818, #101a08); }
[data-theme="dark"] .tea-card-img[data-type="special"],
[data-theme="dark"] .tea-detail-img[data-type="special"]  { background: linear-gradient(135deg, #281838, #100820); }

/* — Collapsible filter section — */
[data-theme="dark"] .filter-section--collapsible > summary,
[data-theme="dark"] .filter-section--collapsible > summary.filter-label {
  background: var(--color-surface);
  border-color: var(--color-border);
}

/* — Theme switcher button (same look as lang-btn) — */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
}
.theme-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: .8rem;
  padding: .2rem .4rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.theme-btn[aria-pressed="true"] {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.theme-btn:hover { color: var(--color-primary); }
.theme-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ============================================================
   ACCESSORIES + BOXED — category/material badges, gradients
   ============================================================ */

/* — Category badges (accessories) — */
.badge-cat-teapot  { background: #d9e8e0; color: #1e4a3a; }
.badge-cat-cup     { background: #e0e4ec; color: #2a3450; }
.badge-cat-infuser { background: #e6e0d4; color: #4a3c1e; }
.badge-cat-storage { background: #e4ddd0; color: #4a3820; }
.badge-cat-giftset { background: #efdce4; color: #5a1e3a; }

/* — Material badges (accessories) — */
.badge-material-glass     { background: #dde8ec; color: #1e3e4a; }
.badge-material-ceramic   { background: #e8e0d8; color: #4a3424; }
.badge-material-porcelain { background: #ece8e4; color: #3a3430; }
.badge-material-cast-iron { background: #d8dcd8; color: #24302a; }
.badge-material-stainless { background: #dee2e6; color: #2a3238; }
.badge-material-bamboo    { background: #e2e8d0; color: #3a4818; }

/* — Accessory card / detail placeholder gradients — */
.tea-card-img[data-cat="teapot"],
.tea-detail-img[data-cat="teapot"]   { background: linear-gradient(135deg, #8fc4ac, #3d6c58); }
.tea-card-img[data-cat="cup"],
.tea-detail-img[data-cat="cup"]      { background: linear-gradient(135deg, #a8b4cc, #485874); }
.tea-card-img[data-cat="infuser"],
.tea-detail-img[data-cat="infuser"]  { background: linear-gradient(135deg, #ccbf9c, #7a6438); }
.tea-card-img[data-cat="storage"],
.tea-detail-img[data-cat="storage"]  { background: linear-gradient(135deg, #c8b89c, #6e5430); }
.tea-card-img[data-cat="giftset"],
.tea-detail-img[data-cat="giftset"]  { background: linear-gradient(135deg, #d6a8be, #7a3858); }

/* — Box meta caption (boxed teas) — */
.box-meta {
  font-size: .8rem;
  color: var(--color-accent-dk);
  font-weight: 600;
  margin: var(--sp-xs) 0;
}

/* — Dark theme overrides — */
[data-theme="dark"] .badge-cat-teapot  { background: #16302a; color: #80c4a8; }
[data-theme="dark"] .badge-cat-cup     { background: #1a2038; color: #9aa8d0; }
[data-theme="dark"] .badge-cat-infuser { background: #2a2410; color: #ccb890; }
[data-theme="dark"] .badge-cat-storage { background: #2a2012; color: #ccab80; }
[data-theme="dark"] .badge-cat-giftset { background: #2e1424; color: #d894b4; }

[data-theme="dark"] .badge-material-glass     { background: #122a30; color: #88c0d0; }
[data-theme="dark"] .badge-material-ceramic   { background: #281e14; color: #ccae90; }
[data-theme="dark"] .badge-material-porcelain { background: #242018; color: #c8bcae; }
[data-theme="dark"] .badge-material-cast-iron { background: #1a201c; color: #a8b4ac; }
[data-theme="dark"] .badge-material-stainless { background: #1a2024; color: #a8b4bc; }
[data-theme="dark"] .badge-material-bamboo    { background: #1e2810; color: #a8c078; }

[data-theme="dark"] .tea-card-img[data-cat="teapot"],
[data-theme="dark"] .tea-detail-img[data-cat="teapot"]   { background: linear-gradient(135deg, #2a4a3c, #14201a); }
[data-theme="dark"] .tea-card-img[data-cat="cup"],
[data-theme="dark"] .tea-detail-img[data-cat="cup"]      { background: linear-gradient(135deg, #2a3450, #141828); }
[data-theme="dark"] .tea-card-img[data-cat="infuser"],
[data-theme="dark"] .tea-detail-img[data-cat="infuser"]  { background: linear-gradient(135deg, #3a3018, #1c160a); }
[data-theme="dark"] .tea-card-img[data-cat="storage"],
[data-theme="dark"] .tea-detail-img[data-cat="storage"]  { background: linear-gradient(135deg, #382c18, #1c1408); }
[data-theme="dark"] .tea-card-img[data-cat="giftset"],
[data-theme="dark"] .tea-detail-img[data-cat="giftset"]  { background: linear-gradient(135deg, #3a1e2e, #1c0e16); }
