/* Frivora — Shared Styles */
:root {
  --bg: #0A0A0A;
  --bg-2: #141414;
  --bg-3: #1C1C1C;
  --line: #2A2A2A;
  --text: #FAFAFA;
  --text-2: #A8A8A8;
  --text-3: #6B6B6B;
  --accent: #F4924A;
  --accent-strong: #E07A35;
  --green: #B6D49C;
  --danger: #E57373;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; width: 100%; }
.serif { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}
.logo img { height: 38px; width: auto; display: block; }
.foot-brand .logo { font-size: 26px; }
.foot-brand .logo img { height: 48px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; font-size: 14px; color: var(--text-2); }
.nav-links a { transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.cart-btn {
  position: relative; background: transparent; border: 1px solid var(--line);
  color: var(--text); width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; transition: all .2s; text-decoration: none;
}
.cart-btn:hover { border-color: var(--accent); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: #1A1A1A;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }

/* BUTTONS */
.btn {
  background: var(--accent); color: #1A1A1A;
  border: none; padding: 12px 24px; border-radius: 999px;
  font-family: inherit; font-weight: 500; font-size: 14px;
  cursor: pointer; transition: all .2s;
  text-decoration: none; display: inline-block;
  text-align: center;
}
.btn:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(244,146,74,0.05); }
.btn-block { display: block; width: 100%; padding: 16px 24px; font-size: 15px; }
.btn-large { padding: 16px 32px; font-size: 15px; }

/* EYEBROW */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-size: 12px;
  text-transform: uppercase; letter-spacing: 3px;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--accent);
}

/* HERO */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 60px; align-items: center;
  padding: 100px 0 80px;
}
h1 {
  font-size: 76px; line-height: 1.05; font-weight: 400;
  margin-bottom: 28px; letter-spacing: -1.5px;
}
h1 .serif { color: var(--accent); }
.hero-text { font-size: 16px; color: var(--text-2); max-width: 480px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-visual {
  aspect-ratio: 4/5; border-radius: 24px;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(244,146,74,0.15), transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(182,212,156,0.12), transparent 60%),
    linear-gradient(135deg, #1F1815 0%, #0F0E0C 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
}
.hero-visual::after {
  content: '🥬'; font-size: 220px; opacity: 0.85;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.stat-card {
  position: absolute; bottom: 24px; left: 24px;
  background: rgba(20,20,20,0.85); backdrop-filter: blur(8px);
  padding: 16px 20px; border-radius: 16px;
  border: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.stat-num { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 600; color: var(--accent); }
.stat-text { font-size: 12px; color: var(--text-2); line-height: 1.3; max-width: 140px; }

/* SECTION HEAD */
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 56px; gap: 40px;
}
.section-head h2 { font-size: 56px; line-height: 1.05; font-weight: 400; letter-spacing: -1px; }
.section-head h2 .serif { color: var(--accent); }
.section-link {
  color: var(--text-2); font-size: 14px;
  text-transform: uppercase; letter-spacing: 2px;
  transition: color .2s; white-space: nowrap;
}
.section-link:hover { color: var(--accent); }

/* PAGE HEAD (for inner pages) */
.page-head { padding: 80px 0 40px; text-align: center; }
.page-head h1 { font-size: 64px; margin-bottom: 16px; }
.page-head p { color: var(--text-2); max-width: 540px; margin: 0 auto; }

/* CATEGORY TABS */
.tabs {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 48px;
}
.tab {
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text-2); padding: 10px 20px; border-radius: 999px;
  font-size: 14px; cursor: pointer; transition: all .2s;
  font-family: inherit;
}
.tab:hover { color: var(--text); border-color: var(--accent); }
.tab.active { background: var(--accent); color: #1A1A1A; border-color: var(--accent); font-weight: 500; }

/* PRODUCTS GRID */
.products-section { padding: 60px 0 100px; }
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.product-card {
  background: var(--bg-2); border-radius: 20px;
  padding: 20px; transition: all .3s;
  border: 1px solid var(--line);
  position: relative;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.product-img {
  aspect-ratio: 1; border-radius: 14px;
  background: linear-gradient(135deg, #232323 0%, #161616 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; position: relative; overflow: hidden;
}
.product-img .emoji {
  font-size: 110px; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.4));
}
.badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  color: var(--text); padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  display: flex; align-items: center; gap: 5px;
}
.badge.organic { color: var(--green); }
.heart {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); cursor: pointer; transition: color .2s;
  font-size: 14px; border: none;
}
.heart:hover, .heart.liked { color: var(--accent); }
.product-name { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.product-desc { font-size: 13px; color: var(--text-3); margin-bottom: 16px; flex: 1; }
.product-foot { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; color: var(--accent); }
.product-price small { font-size: 12px; color: var(--text-3); font-weight: 400; }
.add-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #1A1A1A; border: none;
  cursor: pointer; font-size: 18px; font-weight: 600;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.add-btn:hover { background: var(--accent-strong); transform: scale(1.08); }
.add-btn.added { background: var(--green); }

/* STORY */
.story {
  padding: 120px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.story-visual {
  aspect-ratio: 1; border-radius: 24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(182,212,156,0.18), transparent 70%),
    linear-gradient(135deg, #14180F 0%, #0A0A0A 100%);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.story-visual::after { content: '🌾'; font-size: 200px; opacity: 0.85; }
.story-text h2 { font-size: 56px; line-height: 1.05; font-weight: 400; letter-spacing: -1px; margin-bottom: 24px; }
.story-text h2 .serif { color: var(--accent); }
.story-text p { color: var(--text-2); font-size: 16px; margin-bottom: 16px; max-width: 480px; }
.quote {
  margin-top: 32px; padding: 24px; border-left: 2px solid var(--accent);
  background: var(--bg-2); border-radius: 0 12px 12px 0;
}
.quote-text { font-family: 'Fraunces', serif; font-style: italic; font-size: 18px; line-height: 1.5; }
.quote-author { color: var(--text-3); font-size: 13px; margin-top: 12px; letter-spacing: 1px; text-transform: uppercase; }

/* TESTIMONIALS */
.testimonials { padding: 100px 0; border-top: 1px solid var(--line); text-align: center; }
.testimonials-head { font-size: 14px; color: var(--accent); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 16px; }
.testimonials-title { font-size: 48px; font-weight: 400; letter-spacing: -1px; margin-bottom: 64px; }
.testimonials-title .serif { color: var(--accent); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 32px; border-radius: 20px; text-align: left;
}
.stars { color: var(--accent); margin-bottom: 16px; letter-spacing: 2px; }
.testi-text { color: var(--text-2); font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--green));
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: #1A1A1A; font-size: 14px;
}
.author-name { font-size: 14px; font-weight: 500; }
.author-loc { font-size: 12px; color: var(--text-3); }

/* CTA */
.cta-section { padding: 80px 0 120px; }
.cta-card {
  background:
    radial-gradient(circle at 20% 30%, rgba(244,146,74,0.18), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(182,212,156,0.12), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line); border-radius: 28px;
  padding: 64px 48px; text-align: center;
}
.cta-eyebrow { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 16px; }
.cta-card h2 { font-size: 48px; font-weight: 400; letter-spacing: -1px; margin-bottom: 16px; }
.cta-card h2 .serif { color: var(--accent); }
.cta-card p { color: var(--text-2); margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* CART PAGE */
.cart-page { padding: 60px 0 100px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.cart-list { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 80px; height: 80px; border-radius: 12px;
  background: linear-gradient(135deg, #232323 0%, #161616 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; flex-shrink: 0;
}
.cart-item-info h4 { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.cart-item-info p { font-size: 13px; color: var(--text-3); }
.qty-controls { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--text);
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-item-actions { display: flex; flex-direction: column; align-items: end; gap: 8px; }
.cart-item-price { font-family: 'Fraunces', serif; font-size: 18px; color: var(--accent); font-weight: 600; }
.remove-btn { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 12px; }
.remove-btn:hover { color: var(--danger); }
.empty-cart { text-align: center; padding: 60px 20px; color: var(--text-2); }
.empty-cart-emoji { font-size: 80px; margin-bottom: 20px; opacity: 0.5; }

.cart-summary {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px; position: sticky; top: 100px;
}
.cart-summary h3 { font-size: 20px; margin-bottom: 24px; font-weight: 500; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; color: var(--text-2); font-size: 14px; }
.summary-row.total {
  border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px;
  color: var(--text); font-size: 18px; font-weight: 600;
}
.summary-row.total span:last-child { color: var(--accent); font-family: 'Fraunces', serif; font-size: 24px; }

/* CHECKOUT FORM */
.checkout-form { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 28px; margin-top: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line);
  color: var(--text); padding: 14px 16px; border-radius: 12px;
  font-family: inherit; font-size: 14px; transition: border .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.slot-option {
  background: var(--bg-3); border: 1px solid var(--line);
  padding: 14px; border-radius: 12px; cursor: pointer; text-align: center;
  font-size: 13px; transition: all .2s;
}
.slot-option:hover { border-color: var(--accent); }
.slot-option.selected { background: var(--accent); color: #1A1A1A; border-color: var(--accent); font-weight: 500; }

/* AUTH PAGE */
.auth-page {
  padding: 80px 0;
  display: flex; justify-content: center;
}
.auth-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 20px; padding: 40px; max-width: 440px; width: 100%;
}
.auth-card h2 { font-size: 32px; margin-bottom: 8px; font-weight: 400; }
.auth-card .subtitle { color: var(--text-2); margin-bottom: 32px; font-size: 14px; }
.auth-toggle { display: flex; gap: 4px; background: var(--bg-3); border-radius: 12px; padding: 4px; margin-bottom: 28px; }
.auth-toggle button {
  flex: 1; background: transparent; border: none; color: var(--text-2);
  padding: 10px; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 14px;
}
.auth-toggle button.active { background: var(--accent); color: #1A1A1A; font-weight: 500; }

/* ABOUT PAGE */
.about-section { padding: 60px 0 80px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 60px 0; }
.value-card { background: var(--bg-2); border: 1px solid var(--line); padding: 28px; border-radius: 20px; }
.value-icon { font-size: 36px; margin-bottom: 16px; }
.value-card h3 { font-size: 18px; margin-bottom: 8px; }
.value-card p { color: var(--text-2); font-size: 14px; }

/* FOOTER */
footer { padding: 64px 0 32px; border-top: 1px solid var(--line); margin-top: auto; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.foot-grid h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-3); margin-bottom: 18px; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid a { color: var(--text-2); font-size: 14px; transition: color .2s; }
.foot-grid a:hover { color: var(--accent); }
.foot-brand p { color: var(--text-2); font-size: 14px; margin-top: 14px; max-width: 280px; line-height: 1.6; }
.foot-bottom {
  padding-top: 32px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-3); font-size: 13px; flex-wrap: wrap; gap: 16px;
}

/* TOAST */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--bg-2); border: 1px solid var(--accent); color: var(--text);
  padding: 14px 24px; border-radius: 999px; font-size: 14px; z-index: 1000;
  transition: transform .3s; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .hero, .story, .about-grid { grid-template-columns: 1fr; padding: 60px 0; gap: 40px; }
  h1, .page-head h1 { font-size: 44px; }
  .section-head { flex-direction: column; align-items: start; }
  .section-head h2 { font-size: 32px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid, .values-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .cart-page { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .form-row, .slot-grid { grid-template-columns: 1fr; }
  .testimonials-title { font-size: 32px; }
  .cta-card { padding: 40px 24px; }
  .cta-card h2 { font-size: 32px; }
  .nav-actions .btn { display: none; }
}
@media (max-width: 500px) {
  .product-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ===== APPEND THESE TO THE END OF css/styles.css ===== */

/* Phone OTP login at checkout */
.phone-input-wrap {
  display: flex; align-items: stretch;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; transition: border .2s;
}
.phone-input-wrap:focus-within { border-color: var(--accent); }
.phone-prefix {
  padding: 0 16px; background: var(--bg-2); color: var(--text-2);
  font-size: 14px; display: flex; align-items: center;
  border-right: 1px solid var(--line); font-weight: 500;
}
.phone-input-wrap input {
  flex: 1; background: transparent; border: none; color: var(--text);
  padding: 14px 16px; font-family: inherit; font-size: 14px; outline: none;
}
.otp-input {
  font-size: 28px !important;
  letter-spacing: 10px !important;
  text-align: center !important;
  font-family: 'Fraunces', serif !important;
  padding: 18px !important;
  font-weight: 600 !important;
}
.user-banner {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(244,146,74,0.1); border: 1px solid var(--accent);
  padding: 12px 16px; border-radius: 12px; margin-bottom: 24px;
  font-size: 14px; color: var(--text);
}
.logout-btn {
  background: transparent; border: 1px solid var(--line); color: var(--text-2);
  padding: 6px 14px; border-radius: 999px; font-family: inherit;
  font-size: 12px; cursor: pointer; transition: all .2s;
}
.logout-btn:hover { color: var(--accent); border-color: var(--accent); }
#recaptcha-container:empty { display: none; }
#recaptcha-container > div { margin: 0 auto; }
