/* ===== ORGANIC CABANA — DESIGN TOKENS & SHARED STYLES ===== */

:root {
  --green: #5A9E2F;
  --green-deep: #2D5A16;
  --green-soft: #72B848;
  --green-tint: #EEF5E4;
  --green-tint-2: #D4E9BF;
  --red: #C0272D;
  --red-deep: #96181D;
  --red-soft: #D94A50;
  --red-tint: #FBEAEA;
  --cream: #F7F2E8;
  --cream-warm: #EDE5D0;
  --white: #FFFFFF;
  --ink: #2C1F0F;
  --ink-soft: #6B5744;
  --rule: rgba(44, 31, 15, .09);
  --rule-strong: rgba(44, 31, 15, .16);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100% }
a { color: inherit; text-decoration: none }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit }
input, select { font-family: inherit; font-size: 15px; color: var(--ink) }
svg { display: block }

/* ===== LAYOUT ===== */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, .serif { font-family: 'Lora', serif; font-weight: 600; letter-spacing: .01em; color: var(--ink) }
.eyebrow { font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--green) }

/* ===== HEADER ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: saturate(160%) blur(12px); border-bottom: 2px solid var(--green-tint) }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 80px; gap: 24px }
.brand img { height: 52px; width: auto }
.nav { display: flex; gap: 36px; justify-content: center }
.nav a { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: .02em; position: relative; padding: 6px 0 }
.nav a.active::after, .nav a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2.5px; background: var(--red); border-radius: 2px }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 16px }
.icon-btn { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: var(--ink); transition: background .2s }
.icon-btn:hover { background: var(--green-tint) }
.cart { position: relative }
.cart-badge { position: absolute; top: 4px; right: 4px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 3px }
.login { font-size: 13px; font-weight: 700; color: var(--green-deep) }
.login:hover { color: var(--red) }

/* ===== HAMBURGER & MOBILE NAV ===== */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; cursor: pointer; border: 0; background: none; border-radius: 8px }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.hamburger.open span:nth-child(2) { opacity: 0 }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }
.mobile-nav { display: none; position: fixed; inset: 0; top: 80px; background: rgba(247,242,232,.98); backdrop-filter: blur(12px); z-index: 40; flex-direction: column; padding: 32px 24px; gap: 0; overflow-y: auto }
.mobile-nav.open { display: flex }
.mobile-nav a.nav-link { font-family: 'Lora', serif; font-size: 26px; font-weight: 600; color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center }
.mobile-nav a.nav-link::after { content: "\2192"; font-family: 'Nunito', sans-serif; font-size: 16px; color: var(--green) }
.mobile-nav .m-actions { display: flex; gap: 12px; margin-top: 32px }
.mobile-nav .m-actions a { font-size: 14px; font-weight: 800; padding: 14px 20px; border-radius: 8px; flex: 1; text-align: center; letter-spacing: .08em; text-transform: uppercase }
.m-red { background: var(--red); color: #fff }
.m-outline { border: 2px solid var(--green-deep); color: var(--green-deep) }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 8px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; transition: transform .15s, background .2s, box-shadow .2s }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 4px 18px -6px rgba(192,39,45,.5) }
.btn-red:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 10px 28px -8px rgba(192,39,45,.55) }
.btn-green { background: var(--green-deep); color: #fff; box-shadow: 0 4px 18px -6px rgba(45,90,22,.4) }
.btn-green:hover { background: #1E3D0E; transform: translateY(-2px) }
.btn .arrow { transition: transform .2s }
.btn:hover .arrow { transform: translateX(3px) }

/* ===== PRODUCT CARDS (shared across Homepage, Shop, Account) ===== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px }
.product { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s }
.product:hover { transform: translateY(-5px); box-shadow: 0 20px 48px -18px rgba(44,31,15,.2) }
.product .pic { position: relative; aspect-ratio: 1/1.05; background: var(--cream-warm); overflow: hidden }
.product .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s }
.product:hover .pic img { transform: scale(1.05) }
.tag { position: absolute; top: 12px; left: 12px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; padding: 5px 10px; border-radius: 6px; line-height: 1 }
.tag.organic { background: var(--green); color: #fff }
.tag.usda { background: var(--red); color: #fff }
.tag.gf { background: var(--green-deep); color: #fff }
.tag.new, .tag.super { background: #F59E0B; color: #fff }
.heart { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--red); transition: background .15s }
.heart:hover { background: #fff }
.product .body { padding: 20px; display: flex; flex-direction: column; gap: 7px; flex: 1 }
.product .cat { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--green); font-weight: 800 }
.product h3 { font-size: 19px; line-height: 1.2; font-weight: 600 }
.product .desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; flex: 1; font-weight: 500 }
.product .stars { display: flex; gap: 2px; align-items: center; font-size: 12px; color: var(--green); margin-top: 4px }
.product .stars span { color: var(--ink-soft); margin-left: 6px; font-weight: 600 }
.product .row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--rule) }
.price .now { font-family: 'Lora', serif; font-size: 22px; color: var(--red); font-weight: 700 }
.price .was { font-size: 13px; color: var(--ink-soft); text-decoration: line-through; margin-left: 6px; font-weight: 600 }
.add { display: inline-flex; align-items: center; gap: 7px; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transition: background .15s, transform .15s }
.add:hover { background: var(--green-deep); transform: translateY(-1px) }

/* ===== FORM FIELDS (shared across Checkout, Login, Account, Tracking) ===== */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px }
.field label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--green-deep); font-weight: 800 }
.input { width: 100%; background: var(--cream-warm); border: 1.5px solid var(--rule); border-radius: 8px; padding: 13px 15px; font-size: 15px; color: var(--ink); transition: border-color .15s, background .15s, box-shadow .15s; outline: none; font-family: 'Nunito', sans-serif }
.input:hover { border-color: var(--rule-strong) }
.input:focus { border-color: var(--green); background: var(--white); box-shadow: 0 0 0 4px rgba(90,158,47,.12) }
.input::placeholder { color: #9A8B7A }

/* ===== SECTION HELPERS ===== */
section.pad { padding: 100px 0 }
.section-head { text-align: center; margin-bottom: 56px }
.section-head h2 { font-size: 48px; line-height: 1.08; margin: 14px 0 14px }
.section-head p { color: var(--ink-soft); font-size: 16px; max-width: 560px; margin: 0 auto; font-weight: 500 }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px }
.ornament .line { width: 36px; height: 1.5px; background: var(--green) }

/* ===== FOOTER ===== */
footer { background: #1A0F07; color: rgba(247,242,232,.7); padding: 80px 0 0 }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 56px }
.foot-brand img { height: 52px; background: var(--cream); padding: 6px 10px; border-radius: 8px }
.foot-brand p { margin-top: 18px; font-size: 13px; line-height: 1.7; max-width: 270px; color: rgba(247,242,232,.7); font-weight: 500 }
.socials { display: flex; gap: 10px; margin-top: 22px }
.socials a { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(247,242,232,.18); display: grid; place-items: center; color: rgba(247,242,232,.7); transition: background .15s, color .15s, border-color .15s }
.socials a:hover { background: var(--green); color: #fff; border-color: var(--green) }
.foot-col h4 { font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--green-soft); margin-bottom: 20px }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px }
.foot-col a { font-size: 13px; color: rgba(247,242,232,.7); font-weight: 500 }
.foot-col a:hover { color: #FFF8E7 }
.copy { border-top: 1px solid rgba(247,242,232,.10); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(247,242,232,.45); font-weight: 600 }
.copy a:hover { color: #FFF8E7 }
.copy .certs { display: flex; gap: 10px; align-items: center }
.copy .certs span { padding: 4px 10px; border: 1px solid rgba(247,242,232,.16); border-radius: 5px; font-size: 10px; letter-spacing: .12em; font-weight: 800 }

/* ===== MINI FOOTER (Checkout, Login, Account) ===== */
footer.mini { background: #1A0F07; color: rgba(247,242,232,.55); padding: 22px 0 }
.mini-inner { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600 }
.mini-inner .links { display: flex; gap: 20px }
.mini-inner a:hover { color: #FFF8E7 }

/* ===== RESPONSIVE — SHARED ===== */
@media (max-width: 900px) {
  .wrap { padding: 0 28px }
  section.pad { padding: 72px 0 }
  .header-inner { grid-template-columns: 1fr auto; height: 72px }
  .nav, .login { display: none }
  .hamburger { display: flex }
  .mobile-nav { top: 72px }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 18px }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px }
  .foot-brand { grid-column: 1 / -1 }
  .copy { flex-direction: column; gap: 10px; text-align: center }
  .mini-inner { flex-direction: column; gap: 10px; text-align: center }
  .section-head h2 { font-size: 36px }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px }
  section.pad { padding: 52px 0 }
  .header-inner { height: 64px }
  .brand img { height: 44px }
  .mobile-nav { top: 64px }
  .product-grid { grid-template-columns: 1fr; gap: 14px }
  .foot-grid { grid-template-columns: 1fr; gap: 28px }
  .foot-brand { grid-column: auto }
  .section-head { margin-bottom: 36px }
  .section-head h2 { font-size: 26px }
  .section-head p { font-size: 14px }
}
