/* =========================================================
   Everfield – Premium Sri Lankan Tea
   Palette taken from the Everfield Tea Book.
   ========================================================= */
:root {
  --ef-green: #0f3d2e;
  --ef-green-2: #17543f;
  --ef-green-soft: #e7efe9;
  --ef-gold: #b8892f;
  --ef-gold-light: #d9b86c;
  --ef-gold-soft: #f6ecd6;
  --ef-cream: #faf6ec;
  --ef-paper: #fffdf7;
  --ef-ink: #1f2a24;
  --ef-muted: #5e6b63;
  --ef-line: #e6dcc4;
  --ef-radius: 14px;
  --ef-shadow: 0 10px 30px rgba(15, 61, 46, .08);
  --bs-body-font-family: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--ef-ink);
  --bs-body-bg: var(--ef-cream);
  --bs-link-color: var(--ef-green-2);
  --bs-link-hover-color: var(--ef-gold);
  --bs-link-color-rgb: 23, 84, 63;
  --bs-link-hover-color-rgb: 184, 137, 47;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--ef-cream); line-height: 1.65; }

h1, h2, h3, h4, .serif { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; color: var(--ef-green); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.caps { font-family: "Cinzel", Georgia, serif; letter-spacing: .08em; text-transform: uppercase; }
.script { font-family: "Great Vibes", cursive; font-weight: 400; color: var(--ef-gold); }
.text-gold { color: var(--ef-gold) !important; }
.text-green { color: var(--ef-green) !important; }
.text-muted { color: var(--ef-muted) !important; }
.bg-green { background: var(--ef-green) !important; color: #f3efe2; }
.bg-paper { background: var(--ef-paper); }
.bg-gold-soft { background: var(--ef-gold-soft); }
a { text-decoration: none; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; padding: .6rem 1.4rem; font-weight: 700; letter-spacing: .02em; }
.btn-sm { padding: .35rem .9rem; }
.btn-ef { background: var(--ef-green); color: #fff; border: 1px solid var(--ef-green); }
.btn-ef:hover, .btn-ef:focus { background: var(--ef-green-2); color: #fff; border-color: var(--ef-green-2); }
.btn-gold { background: linear-gradient(135deg, var(--ef-gold-light), var(--ef-gold)); color: #1f1606; border: 0; }
.btn-gold:hover { filter: brightness(1.06); color: #1f1606; }
.btn-outline-ef { border: 1px solid var(--ef-green); color: var(--ef-green); background: transparent; }
.btn-outline-ef:hover { background: var(--ef-green); color: #fff; }
.btn:focus-visible, .form-control:focus, .form-select:focus, .form-check-input:focus {
  box-shadow: 0 0 0 .2rem rgba(184, 137, 47, .35); border-color: var(--ef-gold);
}

/* ---------- Top bar + navbar ---------- */
.topbar { background: var(--ef-green); color: #e9e2cc; font-size: .85rem; }
.topbar a { color: #e9e2cc; }
.topbar a:hover { color: var(--ef-gold-light); }
.currency-switch .btn { padding: .1rem .6rem; font-size: .75rem; border-color: rgba(255,255,255,.35); color: #e9e2cc; }
.currency-switch .btn.active { background: var(--ef-gold); border-color: var(--ef-gold); color: #1f1606; }

.navbar-ef { background: rgba(255, 253, 247, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--ef-line); }
.navbar-ef .nav-link { color: var(--ef-green); font-weight: 700; font-size: .95rem; padding: .5rem .9rem !important; }
.navbar-ef .nav-link:hover, .navbar-ef .nav-link.active { color: var(--ef-gold); }
.navbar-ef .dropdown-menu { border: 1px solid var(--ef-line); border-radius: var(--ef-radius); box-shadow: var(--ef-shadow); }
.brand-mark { display: flex; align-items: center; gap: .6rem; color: var(--ef-green); }
.brand-mark svg { width: 38px; height: 38px; }
.brand-mark .name { font-family: "Cinzel", serif; font-weight: 700; font-size: 1.35rem; letter-spacing: .06em; line-height: 1; }
.brand-mark .sub { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ef-gold); }
.cart-link { position: relative; }
.cart-badge { position: absolute; top: 0; right: -2px; background: var(--ef-gold); color: #1f1606; font-size: .7rem; border-radius: 999px; min-width: 1.2rem; text-align: center; padding: 0 .3rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(520px, 78vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url('/images/site/hero-cover.jpg') center 60%/cover no-repeat; transform: scale(1.03); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 38, 28, .88) 0%, rgba(9, 38, 28, .55) 55%, rgba(9, 38, 28, .15) 100%); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .lead { color: #ede6d2; max-width: 34rem; }
.hero .script { color: var(--ef-gold-light); font-size: clamp(1.8rem, 3vw, 2.6rem); }

.page-hero { background: linear-gradient(rgba(9, 38, 28, .78), rgba(9, 38, 28, .78)), url('/images/site/landscape-blend.jpg') center/cover; color: #fff; padding: 4.5rem 0 3.5rem; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: .25rem; }
.page-hero .script { color: var(--ef-gold-light); font-size: 1.8rem; }
.page-hero .breadcrumb { justify-content: center; margin: 0; }
.page-hero .breadcrumb a { color: var(--ef-gold-light); }
.page-hero .breadcrumb-item.active, .page-hero .breadcrumb-item + .breadcrumb-item::before { color: #ddd5bd; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title .eyebrow { display: block; }
.divider { display: flex; align-items: center; justify-content: center; gap: .75rem; color: var(--ef-gold); margin: .5rem auto 0; }
.divider::before, .divider::after { content: ""; width: 60px; height: 1px; background: var(--ef-gold); opacity: .6; }
.eyebrow { font-family: "Cinzel", serif; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; color: var(--ef-gold); }

.promise-icon { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--ef-gold); display: grid; place-items: center; color: var(--ef-green); font-size: 1.6rem; flex-shrink: 0; background: var(--ef-paper); }
.bg-green .promise-icon { background: transparent; color: var(--ef-gold-light); }
.feature-card { background: var(--ef-paper); border: 1px solid var(--ef-line); border-radius: var(--ef-radius); padding: 1.75rem; height: 100%; box-shadow: var(--ef-shadow); }

.stat { text-align: center; }
.stat .num { font-family: "Cormorant Garamond", serif; font-size: 2.8rem; font-weight: 700; color: var(--ef-gold-light); line-height: 1; }
.stat .label { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: #d9d2bc; }

/* ---------- Product card ---------- */
.product-card { background: var(--ef-paper); border: 1px solid var(--ef-line); border-radius: var(--ef-radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 61, 46, .14); }
.product-card .img-wrap { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #efe7d3; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .img-wrap img:not(.pack) { transform: scale(1.05); }
.product-card .img-wrap img.pack { position: absolute; height: auto; object-fit: contain; right: .6rem; bottom: .6rem; width: 34%; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.25); background: #fff; }
.product-card .badge-cat { position: absolute; left: .75rem; top: .75rem; background: rgba(15, 61, 46, .88); color: #f3e7c6; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px; }
.product-card .body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 1.45rem; margin: 0; }
.product-card h3 a { color: var(--ef-green); }
.product-card .tagline { font-family: "Great Vibes", cursive; color: var(--ef-gold); font-size: 1.2rem; }
.product-card .price { font-weight: 800; color: var(--ef-green); font-size: 1.1rem; }
.product-card .pack-size { font-size: .8rem; color: var(--ef-muted); }

/* ---------- Product details ---------- */
.product-gallery .main-img { border-radius: var(--ef-radius); overflow: hidden; box-shadow: var(--ef-shadow); background: #efe7d3; }
.product-gallery .main-img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.product-gallery .thumbs button { border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; width: 84px; height: 84px; background: #fff; }
.product-gallery .thumbs button.active { border-color: var(--ef-gold); }
.product-gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-title .tagline { font-family: "Great Vibes", cursive; color: var(--ef-gold); font-size: 2rem; }
.price-lg { font-size: 1.8rem; font-weight: 800; color: var(--ef-green); }
.qty-input { width: 5.5rem; text-align: center; border-radius: 999px; }
.badges-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.badges-row span { border: 1px solid var(--ef-line); background: var(--ef-paper); padding: .3rem .75rem; border-radius: 999px; font-size: .8rem; color: var(--ef-green); }
.brew-guide { background: var(--ef-green); color: #efe8d4; border-radius: var(--ef-radius); padding: 1.75rem; }
.brew-guide h3 { color: var(--ef-gold-light); }
.brew-guide .item { display: flex; gap: .9rem; padding: .7rem 0; border-bottom: 1px solid rgba(217, 184, 108, .25); }
.brew-guide .item:last-child { border: 0; }
.brew-guide i { color: var(--ef-gold-light); font-size: 1.4rem; width: 1.6rem; }
.brew-guide .k { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: #c9c0a5; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: .35rem 0 .35rem 2rem; position: relative; }
.check-list li::before { content: "\F26B"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .3rem; color: var(--ef-gold); font-size: 1.15rem; }

/* ---------- Shop ---------- */
.filter-pills .btn { margin: 0 .25rem .5rem 0; }
.filter-pills .btn.active { background: var(--ef-green); color: #fff; }

/* ---------- Forms / cards ---------- */
.card-ef { background: var(--ef-paper); border: 1px solid var(--ef-line); border-radius: var(--ef-radius); box-shadow: var(--ef-shadow); }
.form-control, .form-select { border-radius: 10px; border-color: #dcd1b7; background-color: #fff; }
.form-label { font-weight: 700; font-size: .9rem; color: var(--ef-green); }
.pay-option { border: 1px solid var(--ef-line); border-radius: 12px; padding: .9rem 1rem; cursor: pointer; background: #fff; display: block; }
.pay-option:has(input:checked) { border-color: var(--ef-gold); background: var(--ef-gold-soft); }
.summary-line { display: flex; justify-content: space-between; padding: .35rem 0; }
.summary-total { font-size: 1.25rem; font-weight: 800; color: var(--ef-green); border-top: 1px solid var(--ef-line); padding-top: .75rem; margin-top: .5rem; }
.cart-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }

/* ---------- Footer ---------- */
.footer { background: #0b2f23; color: #cfc8b2; padding: 4rem 0 1.5rem; }
.footer h5 { font-family: "Cinzel", serif; color: var(--ef-gold-light); font-size: .95rem; letter-spacing: .1em; margin-bottom: 1rem; }
.footer a { color: #cfc8b2; }
.footer a:hover { color: var(--ef-gold-light); }
.footer .brand-mark { color: #f3efe2; }
.footer .social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(217, 184, 108, .4); border-radius: 50%; margin-right: .4rem; }
.footer .bottom { border-top: 1px solid rgba(217, 184, 108, .2); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; }
.trust-strip { background: var(--ef-gold-soft); border-top: 1px solid var(--ef-line); border-bottom: 1px solid var(--ef-line); }
.trust-strip .item { display: flex; align-items: center; gap: .6rem; color: var(--ef-green); font-weight: 700; font-size: .9rem; }
.trust-strip i { color: var(--ef-gold); font-size: 1.4rem; }

.whatsapp-fab { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1030; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.whatsapp-fab:hover { color: #fff; transform: scale(1.06); }

.director-card img { border-radius: var(--ef-radius); box-shadow: var(--ef-shadow); }
.policy h2 { font-size: 1.6rem; margin-top: 2rem; }

.status-pill { font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.status-Pending { background: #fff3cd; color: #7a5b00; }
.status-Processing, .status-Paid { background: #d9efe2; color: #0f5132; }
.status-Shipped { background: #dbe7ff; color: #1d3f8a; }
.status-Delivered { background: #cfe8d6; color: #0b3d22; }
.status-Cancelled, .status-Failed, .status-Refunded { background: #f8d7da; color: #842029; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
