@import url('fonts.css');

:root {
  --accent: oklch(42% 0.14 18);
  --bg: oklch(98% 0.008 60);
  --text: oklch(24% 0.01 30);
  --text-soft: oklch(38% 0.01 40);
  --text-softer: oklch(42% 0.01 40);
  --text-muted: oklch(45% 0.01 40);
  --card-bg: oklch(96% 0.015 50);
  --card-bg-2: oklch(96% 0.015 30);
  --panel-bg: oklch(95% 0.02 20);
  --border: oklch(88% 0.01 60);
  --border-soft: oklch(85% 0.01 60);
  --border-soft-2: oklch(85% 0.01 40);
  --input-bg: oklch(99% 0.005 60);
  --footer-bg: oklch(22% 0.015 30);
  --footer-text: oklch(92% 0.01 50);
  --heading: oklch(22% 0.02 20);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: inherit; }

button { font-family: inherit; }

@keyframes berivia-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-enter { animation: berivia-fade 0.4s ease; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(98% 0.008 60 / 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(24px, 3vw, 30px);
  color: var(--accent);
  letter-spacing: 0.5px;
  padding: 4px 0;
  text-decoration: none;
  display: inline-block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}

.nav-link {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nav-link.active {
  font-weight: 700;
  color: var(--accent);
}

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

.icon-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--input-bg);
  cursor: pointer;
  font-size: 15px;
  color: oklch(30% 0.01 30);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.contact-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.cart-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: oklch(99% 0.005 60);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: oklch(24% 0.01 30);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cart-count[hidden] { display: none; }

.search-panel {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 16px;
  display: none;
}
.search-panel.open { display: block; }

.search-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  font-size: 15px;
  font-family: inherit;
  background: var(--input-bg);
}

.search-results {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
}
.search-results:empty { display: none; }

.search-result-item {
  text-align: left;
  background: var(--card-bg);
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  display: block;
}
.search-result-item span { opacity: 0.6; font-size: 12px; }

/* ---------- Main / sections ---------- */
main { flex: 1; }

.section { max-width: 1240px; margin: 0 auto; padding: 20px 20px 60px; }
.section-narrow { max-width: 1100px; margin: 0 auto; padding: 48px 20px 70px; }
.section-narrower { max-width: 900px; margin: 0 auto; padding: 48px 20px 70px; }
.section-narrowest { max-width: 800px; margin: 0 auto; padding: 48px 20px 70px; }
.section-wide { max-width: 1160px; margin: 0 auto; padding: 48px 20px 70px; }

.crumb { font-size: 13px; color: oklch(50% 0.01 40); margin: 0 0 10px; }

.page-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(30px, 4vw, 42px);
  margin: 0 0 16px;
  color: var(--heading);
}

.lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 680px;
  margin: 0;
}

.link-chip {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: oklch(96% 0.015 40);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.link-chips {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 14px;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(36px, 5.5vw, 58px);
  line-height: 1.08;
  margin: 0 0 20px;
  color: var(--heading);
}

.hero-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 0 28px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-secondary {
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid oklch(70% 0.01 40);
  background: none;
  color: oklch(28% 0.01 30);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.hero-media {
  width: 100%;
  aspect-ratio: 5/4;
  border-radius: 18px;
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Section titles ---------- */
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 24px;
}

/* ---------- Grids / cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid-3-wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.grid-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.grid-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }

.card {
  text-align: left;
  border: none;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--text); }
.card p { margin: 0; font-size: 14px; color: var(--text-softer); line-height: 1.5; }

.card-flat {
  background: var(--card-bg-2);
  border-radius: 14px;
  padding: 18px;
}
.card-flat h3 { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--accent); }
.card-flat ol { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; color: oklch(32% 0.01 30); }

.card-media {
  text-align: left;
  border: none;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}
.card-media .card-img-wide {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.card-media .card-img-4-3 {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .card-body { padding: 16px; }
.card-media h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.card-media p { margin: 0; font-size: 14px; color: var(--text-softer); line-height: 1.5; }

.eyebrow-sm {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Chips ---------- */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip-row-sm { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-soft-2);
  background: var(--input-bg);
  color: oklch(30% 0.01 30);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.chip.active {
  border: none;
  background: var(--accent);
  color: #fff;
}

/* ---------- Detail panels ---------- */
.detail-panel {
  margin-top: 32px;
  background: var(--card-bg-2);
  border-radius: 18px;
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.detail-panel .detail-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
}
.detail-panel .detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-panel h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--accent);
}
.detail-panel p { margin: 0 0 8px; font-size: 15px; line-height: 1.6; }
.detail-panel h3 { margin: 18px 0 8px; font-size: 15px; font-weight: 700; }
.detail-panel ol { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; }

.taste-panel {
  margin-top: 28px;
  background: var(--card-bg-2);
  border-radius: 18px;
  padding: 28px;
}
.taste-panel h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--accent);
}
.taste-panel p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; }

/* ---------- Recipe / article modal ---------- */
.modal-panel {
  margin-top: 36px;
  background: var(--panel-bg);
  border-radius: 20px;
  padding: 30px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: oklch(40% 0.01 30);
}
.modal-panel h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 18px;
}
.modal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.modal-grid h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.modal-grid ul, .modal-grid ol { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.8; }

.article-body { margin: 0; font-size: 15px; line-height: 1.8; color: oklch(30% 0.01 30); max-width: 720px; }

/* ---------- Seasons / process ---------- */
.season-card { background: var(--card-bg-2); border-radius: 16px; padding: 22px; }
.season-card h3 {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
}
.season-card p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; }
.season-card p:last-child { margin: 0; font-size: 13px; color: var(--text-muted); }

.summer-panel {
  margin-top: 34px;
  background: var(--panel-bg);
  border-radius: 16px;
  padding: 26px;
}
.summer-panel h3 {
  margin: 0 0 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
}
.summer-panel p { margin: 0; font-size: 15px; line-height: 1.7; color: oklch(32% 0.01 30); }

.step-card { background: var(--card-bg-2); border-radius: 14px; padding: 18px; text-align: center; }
.step-card .step-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}
.step-card .step-name { font-size: 14px; font-weight: 700; }

/* ---------- Legal / info panels ---------- */
.info-panel { background: var(--card-bg-2); border-radius: 16px; padding: 26px; }
.info-panel h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.info-panel p { margin: 0; font-size: 14px; line-height: 1.9; color: oklch(28% 0.01 30); }

.legal-body { font-size: 14px; line-height: 1.9; color: oklch(30% 0.01 30); white-space: pre-line; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.faq-item { background: var(--card-bg-2); border-radius: 12px; overflow: hidden; }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 18px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.faq-answer {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  display: none;
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon::before { content: '\2212'; }
.faq-icon::before { content: '\002B'; }

/* ---------- Shop ---------- */
.product-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-img { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { margin: 0; font-size: 15px; font-weight: 700; }
.product-body p { margin: 0; font-size: 13px; color: var(--text-softer); }
.product-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-price { font-size: 15px; font-weight: 700; color: var(--accent); }
.add-cart-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: oklch(20% 0.01 30 / 0.4);
  z-index: 90;
  display: none;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(380px, 100%);
  background: var(--input-bg);
  z-index: 91;
  box-shadow: -10px 0 30px oklch(20% 0.01 30 / 0.15);
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: auto;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
body.cart-open .cart-overlay { display: block; }
body.cart-open .cart-drawer { transform: translateX(0); }

.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.cart-header h3 { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; }
.cart-close { background: none; border: none; font-size: 20px; cursor: pointer; }

.cart-items { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.cart-item { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid oklch(90% 0.01 50); padding-bottom: 12px; }
.cart-item-info { flex: 1; }
.cart-item-info p:first-child { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.cart-item-info p:last-child { margin: 0; font-size: 12px; color: var(--text-muted); }
.qty-btn { width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--border-soft-2); background: none; cursor: pointer; }
.qty-val { min-width: 18px; text-align: center; font-size: 14px; }

.cart-summary { margin-top: 20px; padding-top: 16px; border-top: 1px solid oklch(88% 0.01 50); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.checkout-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: not-allowed;
  opacity: 0.85;
}
.checkout-note { margin: 10px 0 0; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.cart-empty { font-size: 14px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 50px 20px 30px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 10px;
  color: oklch(95% 0.01 40);
}
.footer-tag { font-size: 14px; line-height: 1.6; opacity: 0.8; margin: 0; }
.footer-heading {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
  margin: 0 0 12px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  background: none;
  border: none;
  text-align: left;
  color: oklch(90% 0.01 50);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  opacity: 0.85;
  text-decoration: none;
  display: block;
}
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-ops { font-size: 13px; line-height: 1.8; opacity: 0.8; margin: 0; }
.footer-bottom { max-width: 1240px; margin: 30px auto 0; font-size: 12px; opacity: 0.5; }

/* ---------- Contact form ---------- */
.contact-form { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; font-weight: 700; color: var(--text); }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  font-size: 15px;
  font-family: inherit;
  background: var(--input-bg);
  color: var(--text);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-hp { position: absolute; left: -9999px; top: -9999px; }
.form-note { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.form-status {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  display: none;
}
.form-status.success { display: block; background: oklch(94% 0.05 145); color: oklch(30% 0.08 145); }
.form-status.error { display: block; background: oklch(94% 0.05 25); color: oklch(35% 0.1 25); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  background: var(--footer-bg);
  color: var(--footer-text);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 10px 30px oklch(20% 0.01 30 / 0.25);
  max-width: 720px;
  margin: 0 auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 13px; line-height: 1.6; flex: 1; min-width: 220px; }
.cookie-banner a { color: oklch(88% 0.05 40); text-decoration: underline; }
.cookie-banner button {
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .main-nav { justify-content: flex-start; overflow-x: auto; }
  .hero { padding-top: 32px; }
}
