/* ===== Base ===== */
:root {
  --bg: #fbf9f4;
  --bg-2: #f1ede2;
  --sage: #e8efe5;
  --ink: #1c2620;
  --ink-soft: #5a665d;
  --line: #e3dccf;
  --green: #2d6a4f;
  --green-dark: #1b4332;
  --tomato: #e85d3a;
  --tomato-dark: #c84826;
  --gold: #d4a23a;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(20, 30, 25, 0.06);
  --shadow: 0 14px 40px rgba(20, 30, 25, 0.09);
  --radius: 14px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 14px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.icon-btn {
  background: transparent;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
  padding: 4px;
}

/* ===== Promo bar ===== */
.promo-bar {
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  padding: 10px 0;
  text-align: center;
}
.promo-inner { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.promo-bar .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tomato);
  animation: pulse 2s infinite;
}
.promo-bar strong { color: var(--gold); }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.brand {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--green-dark);
}
.nav { display: flex; gap: 36px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.cart-btn {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.cart-btn:hover { background: var(--green-dark); transform: translateY(-1px); }
.cart-icon { display: flex; }
.cart-count {
  background: var(--tomato);
  color: var(--white);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  min-width: 22px;
  text-align: center;
}

/* ===== Hero ===== */
.hero {
  padding: 70px 0 90px;
  background: linear-gradient(180deg, var(--sage) 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(44px, 6vw, 76px);
  margin-bottom: 22px;
  letter-spacing: -1.5px;
}
.hero h1 em {
  font-style: italic;
  color: var(--green);
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 10px;
  background: var(--gold);
  opacity: 0.35;
  z-index: -1;
  border-radius: 4px;
}
.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}
.hero-stats span {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: 24px; right: 24px;
  background: var(--tomato);
  color: var(--white);
  border-radius: 50%;
  width: 110px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  box-shadow: var(--shadow);
  font-family: 'Fraunces', serif;
}
.hero-badge strong { font-size: 22px; line-height: 1; }
.hero-badge span { font-size: 11px; margin-top: 4px; font-family: 'Inter', sans-serif; text-align: center; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 480px; margin: 0 auto; }
  .hero-stats { gap: 28px; }
  .hero-stats strong { font-size: 24px; }
}

/* ===== Categories strip ===== */
.categories { padding: 30px 0 10px; }
.cat-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 4px;
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-pill {
  background: var(--white);
  border: 1.5px solid var(--line);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-pill:hover { border-color: var(--green); color: var(--green); }
.cat-pill.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.cat-pill .count {
  background: rgba(0,0,0,0.06);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.cat-pill.active .count { background: rgba(255,255,255,0.2); color: var(--white); }

/* ===== Shop ===== */
.shop { padding: 60px 0 100px; }
.section-head { text-align: center; margin-bottom: 56px; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(34px, 4.5vw, 48px); margin-bottom: 12px; }
.section-sub { color: var(--ink-soft); font-size: 16px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--green);
}
.card-img {
  aspect-ratio: 1 / 1;
  background: var(--sage);
  overflow: hidden;
  position: relative;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-img img { transform: scale(1.05); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--tomato);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge.organic { background: var(--green); }
.badge.local { background: var(--gold); color: var(--ink); }

.cat-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--green);
  margin-bottom: 6px;
}
.card-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 18px; margin-bottom: 4px; font-weight: 600; }
.card .size { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; flex: 1; }
.card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card .price-block { display: flex; flex-direction: column; line-height: 1.1; }
.card .price { font-size: 20px; font-weight: 700; color: var(--ink); font-family: 'Fraunces', serif; }
.card .unit { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.card .add {
  background: var(--ink);
  color: var(--white);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
  line-height: 1;
}
.card .add:hover { background: var(--green); transform: scale(1.1); }

/* ===== Trust ===== */
.trust {
  background: var(--sage);
  padding: 70px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.2s ease;
}
.trust-item:hover { transform: translateY(-3px); }
.trust-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.trust-item h3 { font-size: 17px; margin-bottom: 6px; font-weight: 600; }
.trust-item p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ===== About ===== */
.about {
  background: var(--bg);
  padding: 100px 0;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 20px; }
.about > div > p { color: var(--ink-soft); font-size: 16px; margin-bottom: 28px; }
.promise {
  list-style: none;
  display: grid;
  gap: 14px;
}
.promise li {
  background: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-soft);
  border-left: 3px solid var(--green);
  box-shadow: var(--shadow-sm);
}
.promise li strong {
  color: var(--ink);
  margin-right: 6px;
  font-weight: 600;
}
.about-img {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 60px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.site-footer .brand { color: var(--bg); margin-bottom: 12px; display: block; font-size: 22px; }
.footer-line { font-size: 14px; opacity: 0.75; line-height: 1.7; }
.footer-head {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.55;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col { display: flex; flex-direction: column; }
.footer-email {
  font-size: 16px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 8px;
  word-break: break-all;
  transition: opacity 0.2s;
}
.footer-email:hover { opacity: 0.75; }
.muted-small { font-size: 12px !important; opacity: 0.55 !important; margin-top: 4px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; opacity: 0.85; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; color: var(--gold); }
.copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  margin-top: 16px;
  font-size: 13px;
  opacity: 0.55;
}
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .copy { margin-top: 8px; padding-top: 20px; }
}

/* ===== Cart drawer ===== */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 99;
  backdrop-filter: blur(2px);
}
.overlay.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 440px;
  max-width: 100vw;
  background: var(--bg);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.drawer-head h3 { font-size: 22px; font-weight: 600; }
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}
.drawer-foot {
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.drawer-foot .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 16px;
}
.drawer-foot .row strong { font-family: 'Fraunces', serif; font-size: 22px; }
.delivery-note {
  background: var(--sage);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 16px !important;
}
.delivery-note strong { color: var(--green-dark); font-size: 13px !important; font-family: 'Inter', sans-serif !important; }
.delivery-note.qualified { background: var(--green); color: var(--white); }
.delivery-note.qualified strong { color: var(--gold); }

.empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 80px 20px;
  font-size: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img {
  width: 70px;
  height: 80px;
  object-fit: cover;
  background: var(--sage);
  border-radius: var(--radius-sm);
}
.cart-item .name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item .meta { font-size: 12px; color: var(--ink-soft); }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  margin-top: 8px;
}
.qty button {
  width: 26px; height: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.qty button:hover { color: var(--green); }
.qty span { padding: 0 10px; font-size: 13px; min-width: 24px; text-align: center; font-weight: 600; }
.cart-item .line-price { font-size: 15px; font-weight: 700; font-family: 'Fraunces', serif; }
.remove {
  background: none;
  border: none;
  font-size: 11px;
  color: var(--ink-soft);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-top: 6px;
}
.remove:hover { color: var(--tomato); }

/* ===== Modal ===== */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  overflow-y: auto;
}
.modal.show { display: flex; }
.modal-card {
  background: var(--bg);
  border-radius: var(--radius);
  width: 100%;
  max-width: 540px;
  padding: 40px;
  position: relative;
  margin: auto;
  box-shadow: var(--shadow);
}
.modal-card h3 { font-size: 30px; margin-bottom: 8px; }
.modal-close { position: absolute; top: 12px; right: 16px; }
.muted { color: var(--ink-soft); font-size: 14px; margin-bottom: 24px; }

.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--green);
}
.summary {
  background: var(--white);
  padding: 18px;
  margin: 20px 0;
  font-size: 14px;
  border-radius: var(--radius-sm);
}
.summary .sline {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}
.summary .stotal {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 16px;
}
.note {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}
.success { text-align: center; padding: 30px 0; }
.success h3 { margin-bottom: 12px; color: var(--green-dark); }
.success p { color: var(--ink-soft); margin-bottom: 24px; }

/* ===== Responsive ===== */
@media (max-width: 700px) {
  .nav { display: none; }
  .cart-label { display: none; }
  .hero { padding: 50px 0 70px; }
  .shop { padding: 50px 0 80px; }
  .about, .trust { padding: 60px 0; }
  .modal-card { padding: 28px 22px; }
  .hero-stats { gap: 18px; }
  .container { padding: 0 18px; }
}
