/* =====================================================================
   Let's Gift Oxygen – design system
   Palette, type scale, radius and shadow values come from the brand book.
   ===================================================================== */
:root {
  --forest: #0F3D2E;
  --emerald: #166534;
  --natural: #4C956C;
  --sage: #A8D5BA;
  --mint: #E6F2EA;
  --offwhite: #F9FCF8;
  --sand: #D5B36B;
  --lime: #B9D60A;
  --teal: #207A60;
  --leaf: #0C6B33;
  --maroon: #501A18;
  --sky: #3D9CBD;

  --text: var(--forest);
  --text-muted: #3F5F52;
  --border: #D3E6DA;
  --radius-input: 12px;
  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow: 0 6px 20px rgba(15, 61, 46, .10);
  --shadow-lg: 0 18px 44px rgba(15, 61, 46, .16);
  --font-display: "Lora", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --header-h: 76px;

  /* Bootstrap overrides */
  --bs-body-bg: var(--offwhite);
  --bs-body-color: var(--forest);
  --bs-body-font-family: var(--font-body);
  --bs-link-color: var(--emerald);
  --bs-link-hover-color: var(--forest);
  --bs-primary: var(--forest);
  --bs-primary-rgb: 15, 61, 46;
  --bs-success: var(--emerald);
  --bs-success-rgb: 22, 101, 52;
  --bs-border-color: var(--border);
  --bs-border-radius: var(--radius-input);
  --bs-border-radius-lg: var(--radius-card);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--offwhite);
  line-height: 1.625;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .h1, .h2, .h3, .display-1, .display-2, .display-3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--forest);
  letter-spacing: -.01em;
}
h1, .h1 { font-size: clamp(2rem, 4vw, 2.5rem); line-height: 1.2; }
h2, .h2 { font-size: clamp(1.6rem, 3vw, 1.875rem); line-height: 1.27; font-weight: 500; }
h3, .h3 { font-family: var(--font-body); font-size: 1.375rem; line-height: 1.36; font-weight: 600; }
h4, .h4 { font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; }
h5, h6 { font-family: var(--font-body); font-weight: 600; }
.display-hero { font-family: var(--font-display); font-size: clamp(2.25rem, 5.4vw, 3.5rem); line-height: 1.14; font-weight: 600; }
.lead { font-size: 1.125rem; color: var(--text-muted); }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-muted { color: var(--text-muted) !important; }
.text-forest { color: var(--forest) !important; }
.text-emerald { color: var(--emerald) !important; }
.text-natural { color: var(--natural) !important; }
.text-sand { color: var(--sand) !important; }
.bg-mint { background: var(--mint) !important; }
.bg-sage { background: var(--sage) !important; }
.bg-forest { background: var(--forest) !important; color: var(--offwhite); }
.bg-emerald { background: var(--emerald) !important; color: var(--offwhite); }
.bg-offwhite { background: var(--offwhite) !important; }
.bg-gradient-deep { background: linear-gradient(135deg, var(--forest), var(--emerald)); color: var(--offwhite); }
.bg-gradient-fresh { background: linear-gradient(135deg, var(--natural), var(--sage)); }
.bg-gradient-soft { background: linear-gradient(180deg, var(--mint), var(--offwhite)); }

.eyebrow {
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--emerald);
}
.eyebrow.on-dark { color: var(--sage); }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-title { margin-bottom: 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { margin: 0; color: var(--text-muted); max-width: 60ch; }

/* ---------------- focus & buttons ---------------- */
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; box-shadow: 0 0 0 5px var(--sage); border-radius: 6px; }
.btn { border-radius: var(--radius-pill); font-weight: 600; padding: .625rem 1.375rem; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; border-width: 1.5px; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: .4rem 1rem; font-size: .875rem; }
.btn-lg { padding: .85rem 1.75rem; font-size: 1.05rem; }
.btn-primary { background: var(--forest); border-color: var(--forest); color: var(--offwhite); }
.btn-primary:hover, .btn-primary:focus { background: var(--emerald); border-color: var(--emerald); color: var(--offwhite); box-shadow: var(--shadow); }
.btn-secondary { background: var(--mint); border-color: var(--natural); color: var(--forest); }
.btn-secondary:hover { background: var(--sage); border-color: var(--natural); color: var(--forest); }
.btn-outline-primary { border-color: var(--forest); color: var(--forest); }
.btn-outline-primary:hover { background: var(--forest); color: var(--offwhite); }
.btn-outline-light:hover { color: var(--forest); }
.btn-whatsapp { background: #25D366; border-color: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1fb457; border-color: #1fb457; color: #fff; }
.btn-link { color: var(--emerald); font-weight: 600; }
.btn-icon { width: 42px; height: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: transparent; border: 1.5px solid transparent; color: var(--forest); position: relative; }
.btn-icon:hover { background: var(--mint); border-color: var(--sage); transform: none; }
.btn .icon { vertical-align: -4px; }
.btn-check:checked + .btn, .btn.active { background: var(--forest); color: var(--offwhite); border-color: var(--forest); }

/* ---------------- badges ---------------- */
.badge { border-radius: var(--radius-pill); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .68rem; padding: .35em .75em; }
.badge-new { background: var(--emerald); color: var(--offwhite); }
.badge-best { background: var(--sand); color: var(--forest); }
.badge-sale { background: var(--forest); color: var(--offwhite); }
.badge-pet { background: var(--sage); color: var(--forest); }
.badge-low { background: #FBE9D7; color: #8A4B10; }
.badge-soft { background: var(--mint); color: var(--emerald); }

/* ---------------- forms ---------------- */
.form-control, .form-select { border-radius: var(--radius-input); border: 1.5px solid var(--border); padding: .65rem .95rem; background: #fff; color: var(--forest); font-size: .95rem; }
.form-control:focus, .form-select:focus { border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(168, 213, 186, .55); }
.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form-text { color: var(--text-muted); }
.form-check-input:checked { background-color: var(--forest); border-color: var(--forest); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(168, 213, 186, .55); border-color: var(--emerald); }
.invalid-feedback { display: block; }
.form-control.is-invalid, .was-validated .form-control:invalid { border-color: #B42318; }
.input-group .btn { border-radius: var(--radius-input); }
.input-group > .form-control:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .btn:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* ---------------- cards ---------------- */
.card { border: 1px solid var(--border); border-radius: var(--radius-card); background: #fff; box-shadow: none; transition: box-shadow .22s ease, transform .22s ease; }
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-mint { background: var(--mint); border-color: transparent; }
.card-soft { background: #fff; border-color: var(--border); box-shadow: var(--shadow); }
.card-forest { background: var(--forest); color: var(--offwhite); border: none; }
.card-forest h1, .card-forest h2, .card-forest h3, .card-forest h4 { color: var(--offwhite); }
.card-forest a { color: var(--sage); }

/* ---------------- announcement / header ---------------- */
.announcement { background: var(--forest); color: var(--offwhite); font-size: .82rem; text-align: center; padding: 7px 16px; letter-spacing: .01em; }
.announcement a { color: var(--sage); }
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(249, 252, 248, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--border); }
/* One row, never wraps: [menu] brand · nav (centred, fixed) · actions (pinned right).
   Only the search pill flexes, so logged-in vs logged-out widths can't push items onto a 2nd line. */
.site-header .navbar { min-height: var(--header-h); padding: 8px 0; flex-wrap: nowrap; justify-content: flex-start; gap: 12px; }
.site-header .brand { flex: 0 1 auto; min-width: 0; margin: 0; padding: 0; }
.site-header .brand img { height: 48px; width: auto; max-width: 100%; display: block; }
.nav-main { display: flex; gap: 2px; align-items: center; margin: 0 auto; padding: 0; list-style: none; flex: 0 0 auto; white-space: nowrap; }
/* top-level links only (`> li > a`) so the pill style never leaks into dropdown items */
.nav-main > li > a { display: inline-block; padding: 8px 12px; border-radius: var(--radius-pill); font-weight: 500; color: var(--forest); font-size: .95rem; transition: background .18s ease; }
.nav-main > li > a:hover, .nav-main > li > a.active, .nav-main > li > a[aria-expanded="true"] { background: var(--mint); text-decoration: none; color: var(--emerald); }
.nav-main .dropdown-menu { border-radius: var(--radius-card); border: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 10px; min-width: 260px; margin-top: 10px !important; white-space: normal; }
.nav-main .dropdown-item { display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 9px 12px; font-size: .92rem; font-weight: 500; color: var(--forest); white-space: nowrap; }
.nav-main .dropdown-item .icon { flex-shrink: 0; color: var(--emerald); }
.nav-main .dropdown-item:hover, .nav-main .dropdown-item:focus, .nav-main .dropdown-item.active, .nav-main .dropdown-item:active { background: var(--mint); color: var(--emerald); text-decoration: none; }
.nav-main .dropdown-divider, .account-menu .dropdown-divider { margin: 6px 4px; border-color: var(--border); }
.account-menu { margin-top: 10px !important; }
.account-menu { border-radius: var(--radius-card); border: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 10px; min-width: 240px; }
.account-menu .dropdown-item { display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 8px 12px; font-size: .92rem; font-weight: 500; color: var(--forest); }
.account-menu .dropdown-item:hover, .account-menu .dropdown-item:focus { background: var(--mint); color: var(--emerald); text-decoration: none; }
.account-menu form { margin: 0; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-left: auto; flex: 0 1 auto; min-width: 0; }
.header-actions > .btn-icon, .header-account-wrap { flex-shrink: 0; }
.header-actions .count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--emerald); color: var(--offwhite); font-size: .68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.header-search { position: relative; flex: 0 1 230px; min-width: 150px; margin-right: 4px; }
.header-search .form-control { padding-left: 42px; width: 100%; height: 42px; border-radius: var(--radius-pill); background: var(--mint); border-color: transparent; }
.header-search .form-control:focus { background: #fff; border-color: var(--emerald); } /* no width change on focus: nothing shifts */
.header-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--emerald); pointer-events: none; }
@media (min-width: 1200px) and (max-width: 1399.98px) { .nav-main a { padding: 8px 10px; font-size: .93rem; } }
@media (max-width: 575.98px) { .site-header .navbar { gap: 6px; } .site-header .brand img { height: 36px; } .header-actions { gap: 2px; } }

/* mobile menu (offcanvas) */
.offcanvas { border-radius: 0 var(--radius-card) var(--radius-card) 0; }
.offcanvas .nav-link { padding: 12px 8px; border-bottom: 1px solid var(--border); font-weight: 500; color: var(--forest); }
.offcanvas .nav-link:hover { color: var(--emerald); }

/* ---------------- hero ---------------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--mint) 0%, var(--offwhite) 100%); }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -160px; background: radial-gradient(circle, var(--sage) 0%, rgba(168, 213, 186, 0) 70%); opacity: .8; pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 360px; height: 360px; left: -120px; bottom: -160px; background: radial-gradient(circle, var(--sage) 0%, rgba(168, 213, 186, 0) 70%); opacity: .55; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero-inner { min-height: 560px; display: grid; align-items: center; grid-template-columns: 1.1fr .9fr; gap: 40px; padding: 48px 0; }
@media (max-width: 991.98px) { .hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 32px 0; } }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-visual .hero-img { width: 100%; max-width: 520px; border-radius: 28px; box-shadow: var(--shadow-lg); object-fit: cover; aspect-ratio: 1 / 1; }
.hero-emblem { width: min(100%, 420px); filter: drop-shadow(0 18px 40px rgba(15, 61, 46, .18)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--forest); }
.hero-stats span { font-size: .85rem; color: var(--text-muted); }
.leaf-chip { position: absolute; background: #fff; border-radius: var(--radius-pill); padding: 10px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600; }
.leaf-chip .icon { color: var(--emerald); }
.leaf-chip.c1 { top: 8%; left: -6%; animation: float 6s ease-in-out infinite; }
.leaf-chip.c2 { bottom: 14%; right: -4%; animation: float 8s ease-in-out infinite reverse; }
@media (max-width: 575.98px) { .leaf-chip { display: none; } }

/* trust strip */
.trust-strip { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-strip .item { display: flex; align-items: center; gap: 12px; padding: 18px 0; font-size: .9rem; font-weight: 500; }
.trust-strip .icon { color: var(--emerald); flex-shrink: 0; }

/* ---------------- category tiles ---------------- */
.cat-tile { display: block; position: relative; border-radius: var(--radius-card); overflow: hidden; background: var(--mint); aspect-ratio: 4 / 3; color: var(--forest); transition: transform .22s ease, box-shadow .22s ease; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile .label { position: absolute; left: 14px; bottom: 14px; right: 14px; background: rgba(249, 252, 248, .92); border-radius: 12px; padding: 10px 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.cat-tile .label small { color: var(--text-muted); font-weight: 500; }
.cat-icon-tile { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius-card); background: #fff; border: 1px solid var(--border); color: var(--forest); transition: all .2s ease; height: 100%; }
.cat-icon-tile:hover { border-color: var(--natural); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-2px); }
.cat-icon-tile .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--mint); display: grid; place-items: center; color: var(--emerald); flex-shrink: 0; }
.cat-icon-tile strong { display: block; }
.cat-icon-tile small { color: var(--text-muted); }

/* ---------------- product card ---------------- */
.product-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--border); border-radius: var(--radius-card); background: #fff; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sage); }
.product-card .media { position: relative; aspect-ratio: 1 / 1; background: var(--mint); overflow: hidden; display: block; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .media img { transform: scale(1.06); }
.product-card .badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.product-card .wish { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .92); border: none; display: grid; place-items: center; color: var(--forest); transition: all .2s ease; }
.product-card .wish:hover, .product-card .wish.active { color: #C2410C; background: #fff; }
.product-card .wish.active svg { fill: #C2410C; stroke: #C2410C; }
.product-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .cat { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.product-card .name { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; color: var(--forest); line-height: 1.3; }
.product-card .name:hover { color: var(--emerald); text-decoration: none; }
.product-card .meta { font-size: .82rem; color: var(--text-muted); }
.product-card .price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.product-card .price .now { font-weight: 700; font-size: 1.1rem; color: var(--forest); }
.product-card .price .was { color: var(--text-muted); text-decoration: line-through; font-size: .9rem; }
.product-card .price .off { color: var(--emerald); font-weight: 600; font-size: .82rem; }
.product-card .actions { display: flex; gap: 8px; margin-top: 10px; }
.product-card .actions .btn { flex: 1; }
.product-card .stock-out { color: #8A4B10; font-size: .82rem; font-weight: 600; }
.stars { color: var(--sand); letter-spacing: 1px; }

/* product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
@media (max-width: 575.98px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .product-card .body { padding: 12px; } .product-card .actions .btn { font-size: .8rem; padding: .4rem .6rem; } }

/* scroller rows */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--sage) transparent; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 992px) { .scroller.four { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }

/* ---------------- shop filters ---------------- */
.filter-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.filter-panel h6, .filter-panel .filter-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 18px 0 8px; }
.filter-panel h6:first-child, .filter-panel .filter-title:first-child { margin-top: 0; }
.filter-list a { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 8px; color: var(--forest); font-size: .92rem; }
.filter-list a:hover, .filter-list a.active { background: var(--mint); color: var(--emerald); text-decoration: none; }
.filter-list a span { color: var(--text-muted); font-size: .8rem; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--mint); color: var(--emerald); padding: 5px 12px; border-radius: var(--radius-pill); font-size: .82rem; font-weight: 600; }
.chip a { color: inherit; display: inline-flex; }
.empty-state { text-align: center; padding: 60px 20px; border: 1.5px dashed var(--border); border-radius: var(--radius-card); background: #fff; }
.empty-state .icon { color: var(--sage); }

/* ---------------- product detail ---------------- */
.gallery-main { border-radius: var(--radius-card); overflow: hidden; background: var(--mint); aspect-ratio: 1 / 1; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--mint); }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--emerald); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.price-block .now { font-size: 2rem; font-weight: 700; font-family: var(--font-display); }
.price-block .was { text-decoration: line-through; color: var(--text-muted); font-size: 1.1rem; margin-left: 8px; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.spec { background: var(--mint); border-radius: 12px; padding: 12px 14px; }
.spec .icon { color: var(--emerald); }
.spec small { display: block; color: var(--text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.spec strong { font-size: .95rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.qty button { width: 40px; height: 44px; border: none; background: #fff; color: var(--forest); font-size: 1.2rem; }
.qty button:hover { background: var(--mint); }
.qty input { width: 52px; text-align: center; border: none; height: 44px; font-weight: 600; }
.nav-tabs { border-bottom: 1.5px solid var(--border); }
.nav-tabs .nav-link { color: var(--text-muted); border: none; border-bottom: 2.5px solid transparent; font-weight: 600; padding: 12px 18px; }
.nav-tabs .nav-link.active, .nav-tabs .nav-link:hover { color: var(--emerald); border-color: var(--emerald); background: transparent; }
.review { border-bottom: 1px solid var(--border); padding: 18px 0; }
.review:last-child { border-bottom: none; }
.rating-big { font-size: 3rem; font-family: var(--font-display); font-weight: 600; line-height: 1; }
.share-links a { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--mint); color: var(--emerald); margin-right: 6px; }
.share-links a:hover { background: var(--forest); color: var(--offwhite); }

/* ---------------- cart / checkout ---------------- */
.cart-table img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: var(--mint); }
.summary-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px; position: sticky; top: calc(var(--header-h) + 16px); }
.summary-box .row-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: .95rem; }
.summary-box .total { border-top: 1.5px solid var(--border); margin-top: 10px; padding-top: 12px; font-size: 1.2rem; font-weight: 700; }
.free-delivery-bar { height: 8px; background: var(--mint); border-radius: 4px; overflow: hidden; margin: 8px 0; }
.free-delivery-bar span { display: block; height: 100%; background: var(--emerald); border-radius: 4px; transition: width .4s ease; }
.pay-option { border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; cursor: pointer; margin-bottom: 10px; background: #fff; }
.pay-option:has(input:checked) { border-color: var(--emerald); background: var(--mint); }
.steps { display: flex; gap: 0; margin-bottom: 28px; counter-reset: step; }
.steps .step { flex: 1; text-align: center; position: relative; font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.steps .step::before { counter-increment: step; content: counter(step); display: block; width: 32px; height: 32px; margin: 0 auto 6px; border-radius: 50%; background: var(--mint); color: var(--emerald); line-height: 32px; font-weight: 700; }
.steps .step.active { color: var(--forest); }
.steps .step.active::before { background: var(--forest); color: var(--offwhite); }
.steps .step.done::before { background: var(--emerald); color: var(--offwhite); content: "✓"; }

/* order progress */
.order-progress { display: flex; justify-content: space-between; position: relative; margin: 24px 0; }
.order-progress::before { content: ""; position: absolute; top: 14px; left: 20px; right: 20px; height: 3px; background: var(--mint); z-index: 0; }
.order-progress .node { position: relative; z-index: 1; text-align: center; flex: 1; font-size: .78rem; color: var(--text-muted); }
.order-progress .node::before { content: ""; display: block; width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 6px; background: #fff; border: 3px solid var(--sage); }
.order-progress .node.done { color: var(--forest); font-weight: 600; }
.order-progress .node.done::before { background: var(--emerald); border-color: var(--emerald); }
.order-progress .node.terminal::before { background: #B42318; border-color: #B42318; }

/* ---------------- account ---------------- */
.account-nav .list-group-item { border: none; border-radius: 10px !important; margin-bottom: 4px; color: var(--forest); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.account-nav .list-group-item.active, .account-nav .list-group-item:hover { background: var(--mint); color: var(--emerald); }
.auth-card { max-width: 480px; margin: 0 auto; }

/* Sign in with Google + header avatar */
.google-signin-block { margin: 8px 0 4px; }
.g-signin-slot { display: flex; justify-content: center; min-height: 44px; width: 100%; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--bs-secondary-color, #6c757d); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--border, #dee2e6); }
html.g-signin-busy, html.g-signin-busy * { cursor: progress !important; }
.header-account { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 4px; border-radius: 999px; background: transparent; border: 1.5px solid transparent; color: var(--forest); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.header-account-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.header-account-caret { flex-shrink: 0; color: var(--emerald); transition: transform .18s ease; }
.header-account[aria-expanded="true"] .header-account-caret { transform: rotate(180deg); }
@media (min-width: 1400px) { .header-account { padding: 0 12px 0 4px; } }
.header-account:hover, .header-account[aria-expanded="true"] { background: var(--mint); border-color: var(--sage); }
.header-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--mint); }
.header-avatar-initial { display: inline-grid; place-items: center; color: var(--emerald); font-weight: 700; font-size: .95rem; }
.header-avatar-md { width: 44px; height: 44px; }
.header-avatar-lg { width: 64px; height: 64px; }

/* ---------------- vastu ---------------- */
.service-card { border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px; background: #fff; height: 100%; display: flex; flex-direction: column; gap: 10px; transition: all .22s ease; }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--sage); }
.service-card .ic { width: 54px; height: 54px; border-radius: 16px; background: var(--mint); color: var(--emerald); display: grid; place-items: center; }
.service-card .fee { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-top: auto; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; padding: 6px 0; align-items: flex-start; }
.check-list .icon { color: var(--emerald); flex-shrink: 0; margin-top: 4px; }
.process-steps { counter-reset: s; display: grid; gap: 14px; }
.process-steps li { list-style: none; display: flex; gap: 14px; align-items: flex-start; }
.process-steps li::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--forest); color: var(--offwhite); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.disclaimer { background: var(--mint); border-left: 4px solid var(--natural); padding: 14px 18px; border-radius: 10px; font-size: .9rem; color: var(--text-muted); }
.curriculum .module { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.curriculum .module-head { padding: 14px 18px; font-weight: 600; background: var(--mint); display: flex; justify-content: space-between; cursor: pointer; }
.curriculum .lesson { display: flex; justify-content: space-between; padding: 10px 18px; border-top: 1px solid var(--border); font-size: .92rem; }
.curriculum .lesson .icon { color: var(--emerald); margin-right: 8px; vertical-align: -4px; }
.learn-sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.learn-sidebar .module-title { padding: 10px 16px; background: var(--mint); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.learn-sidebar a { display: flex; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--border); color: var(--forest); font-size: .92rem; }
.learn-sidebar a:hover, .learn-sidebar a.active { background: var(--offwhite); color: var(--emerald); text-decoration: none; }
.learn-sidebar a .done { color: var(--emerald); }
.progress { height: 10px; border-radius: 5px; background: var(--mint); }
.progress-bar { background: var(--emerald); }
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius-card); overflow: hidden; background: var(--forest); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.lesson-content { font-size: 1.02rem; line-height: 1.75; }
.lesson-content pre { background: var(--forest); color: var(--offwhite); padding: 16px; border-radius: 12px; overflow-x: auto; }
.lesson-content code { background: var(--mint); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.lesson-content pre code { background: transparent; padding: 0; }
.certificate { border: 10px double var(--sage); padding: 48px; text-align: center; background: #fff; max-width: 860px; margin: 0 auto; }
.certificate h1 { font-size: 2.4rem; }

/* ---------------- blog ---------------- */
.post-card { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: #fff; height: 100%; display: flex; flex-direction: column; transition: all .22s ease; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card .cover { aspect-ratio: 16 / 10; background: var(--mint); overflow: hidden; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .cover img { transform: scale(1.04); }
.post-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--forest); }
.post-meta { font-size: .82rem; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; }
.article { font-size: 1.05rem; line-height: 1.8; max-width: 760px; }
.article img { max-width: 100%; border-radius: var(--radius-card); }
.article h2, .article h3 { margin-top: 1.8em; }
.article blockquote { border-left: 4px solid var(--sage); padding-left: 18px; color: var(--text-muted); font-family: var(--font-display); font-size: 1.15rem; }
.prose p { margin-bottom: 1rem; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .35rem; }
.prose table { width: 100%; max-width: 560px; border-collapse: collapse; margin: .5rem 0 1rem; }
.prose th, .prose td { border: 1px solid var(--sage); padding: .55rem .8rem; text-align: left; }
.prose th { background: var(--mint); }
.prose mark { background: #fff3c4; padding: 0 .15rem; }

/* ---------------- testimonials / faq ---------------- */
.testimonial { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px; height: 100%; position: relative; }
.testimonial::before { content: "“"; font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--sage); position: absolute; top: 10px; right: 20px; }
.testimonial p { font-family: var(--font-display); font-size: 1.05rem; }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.testimonial .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--mint); color: var(--emerald); display: grid; place-items: center; font-weight: 700; overflow: hidden; }
.testimonial .avatar img { width: 100%; height: 100%; object-fit: cover; }
.accordion-item { border: 1px solid var(--border) !important; border-radius: 12px !important; margin-bottom: 10px; overflow: hidden; background: #fff; }
.accordion-button { font-weight: 600; color: var(--forest); background: #fff; box-shadow: none !important; padding: 16px 20px; }
.accordion-button:not(.collapsed) { background: var(--mint); color: var(--emerald); }
.accordion-button::after { filter: hue-rotate(80deg); }
.accordion-body { color: var(--text-muted); }

/* ---------------- CTA bands ---------------- */
.cta-band { border-radius: 24px; padding: 48px; background: linear-gradient(135deg, var(--forest), var(--emerald)); color: var(--offwhite); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -200px; border-radius: 50%; background: rgba(168, 213, 186, .18); }
.cta-band h2 { color: var(--offwhite); }
.cta-band p { color: var(--sage); }
.cta-band .btn-light { color: var(--forest); background: var(--offwhite); border-color: var(--offwhite); }
@media (max-width: 575.98px) { .cta-band { padding: 30px 22px; } }

/* ---------------- footer ---------------- */
.site-footer { background: var(--forest); color: rgba(249, 252, 248, .85); padding: 64px 0 24px; margin-top: 40px; }
.site-footer h5, .site-footer .footer-title { color: var(--offwhite); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.site-footer a { color: rgba(249, 252, 248, .82); }
.site-footer a:hover { color: var(--sage); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: .92rem; }
.site-footer .brand img { height: 56px; width: auto; }
.site-footer .social a { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(168, 213, 186, .4); display: inline-grid; place-items: center; margin-right: 6px; margin-bottom: 6px; color: var(--sage); transition: all .2s ease; }
.site-footer .social a:hover { background: var(--sage); color: var(--forest); text-decoration: none; }
.site-footer .bottom { border-top: 1px solid rgba(168, 213, 186, .22); margin-top: 40px; padding-top: 22px; font-size: .82rem; color: rgba(249, 252, 248, .6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-footer .newsletter .form-control { background: rgba(249, 252, 248, .1); border-color: rgba(168, 213, 186, .35); color: var(--offwhite); }
.site-footer .newsletter .form-control::placeholder { color: rgba(249, 252, 248, .55); }
.site-footer .newsletter .btn { background: var(--sage); color: var(--forest); border-color: var(--sage); }

/* floating whatsapp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 1040; display: flex; align-items: center; gap: 10px; background: #25D366; color: #fff; padding: 12px 18px 12px 14px; border-radius: var(--radius-pill); box-shadow: 0 10px 28px rgba(37, 211, 102, .4); font-weight: 600; font-size: .92rem; transition: transform .2s ease; }
.wa-float:hover { transform: translateY(-2px) scale(1.02); color: #fff; text-decoration: none; }
@media (max-width: 575.98px) { .wa-float span { display: none; } .wa-float { padding: 13px; border-radius: 50%; } }

/* toasts */
.toast-stack { position: fixed; top: 90px; right: 20px; z-index: 1060; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast-lgo { background: var(--forest); color: var(--offwhite); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-lg); font-size: .92rem; display: flex; gap: 10px; align-items: center; animation: slidein .25s ease; }
.toast-lgo.error { background: #B42318; }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* alerts (django messages) */
.alert { border-radius: 12px; border: none; }
.alert-success { background: var(--mint); color: var(--emerald); }
.alert-info { background: #E8F4F8; color: #1F5F7A; }
.alert-warning { background: #FBF1DD; color: #7A4F0D; }
.alert-danger { background: #FBE4E1; color: #8A1C12; }

/* breadcrumb — {% breadcrumbs %} renders nav.lgo-crumbs + matching BreadcrumbList JSON-LD */
.breadcrumb { --bs-breadcrumb-divider: "A"; --bs-breadcrumb-item-padding-x: .55rem; font-size: .85rem; letter-spacing: .01em; margin-bottom: 20px; flex-wrap: nowrap; min-width: 0; }
.breadcrumb-item { white-space: nowrap; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .2s ease; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb-item.active { color: var(--forest); font-weight: 600; min-width: 0; overflow: hidden; }
.breadcrumb-item.active span { display: block; overflow: hidden; text-overflow: ellipsis; max-width: 42ch; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--sage); font-size: 1.05em; line-height: 1; }
.lgo-crumbs .crumb-gap { display: none; color: var(--text-muted); }
@media (max-width: 575.98px) {
  .breadcrumb { font-size: .8rem; --bs-breadcrumb-item-padding-x: .4rem; }
  .lgo-crumbs .crumb-mid { display: none; }
  .lgo-crumbs .crumb-gap { display: list-item; }
  .breadcrumb-item.active span { max-width: 22ch; }
}

/* pagination */
.pagination .page-link { border-radius: 10px !important; margin: 0 3px; border-color: var(--border); color: var(--forest); font-weight: 600; }
.pagination .page-item.active .page-link { background: var(--forest); border-color: var(--forest); color: var(--offwhite); }
.pagination .page-link:hover { background: var(--mint); color: var(--emerald); }

/* page hero (inner pages) */
.page-hero { background: linear-gradient(180deg, var(--mint), var(--offwhite)); padding: 44px 0 30px; }
.page-hero h1 { margin-bottom: 6px; }

/* reveal animations */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* tables (public) */
.table { --bs-table-color: var(--forest); --bs-table-border-color: var(--border); }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; border-bottom-width: 1.5px; }

/* utilities */
.rounded-card { border-radius: var(--radius-card); }
.shadow-brand { box-shadow: var(--shadow); }
.object-cover { object-fit: cover; }
.icon { display: inline-block; vertical-align: middle; }
.w-max { width: max-content; }
.mw-60 { max-width: 60ch; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.print-only { display: none; }
@media print {
  .site-header, .site-footer, .wa-float, .announcement, .no-print, .toast-stack { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; }
}

/* ---------------- AI plant care ---------------- */
.card.border-success { border-color: var(--natural) !important; }
.rating-big .h5 { font-family: var(--font-body); }
@media print { .plantcare-print .card { border: none; box-shadow: none; } }

/* ---------------- category banner (full-bleed image hero) ---------------- */
:root { --gold: #C9A24A; --gold-light: #E8CF8E; --gold-deep: #8C6A1F; }
.page-hero--media { padding: 28px 0 8px; }
.cat-banner { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; min-height: clamp(300px, 34vw, 440px); display: flex; align-items: flex-end; background: var(--forest); box-shadow: var(--shadow-lg); }
.cat-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; transform: scale(1.01); transition: transform 1.2s ease; }
.cat-banner:hover .cat-banner__img { transform: scale(1.04); }
.cat-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 42, 31, .82) 0%, rgba(10, 42, 31, .5) 38%, rgba(10, 42, 31, 0) 66%), linear-gradient(0deg, rgba(10, 42, 31, .35) 0%, rgba(10, 42, 31, 0) 40%); }
.cat-banner__body { padding: clamp(24px, 4vw, 52px); max-width: 640px; color: var(--offwhite); }
.cat-banner .eyebrow { color: var(--sage); }
.cat-banner h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.25rem); margin: 6px 0 10px; }
.cat-banner .lead { color: rgba(249, 252, 248, .88); margin-bottom: 18px; }
.cat-banner__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-banner__meta span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(249, 252, 248, .14); border: 1px solid rgba(249, 252, 248, .22); backdrop-filter: blur(6px); font-size: .82rem; font-weight: 500; }
.cat-banner--festive .eyebrow { color: var(--gold-light); }
.cat-banner--festive h1 { background: linear-gradient(90deg, #fff 0%, var(--gold-light) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cat-banner--festive .cat-banner__meta span { border-color: rgba(232, 207, 142, .45); }
@media (max-width: 767.98px) {
  .cat-banner { min-height: 340px; border-radius: 18px; }
  .cat-banner::before { background: linear-gradient(0deg, rgba(10, 42, 31, .92) 0%, rgba(10, 42, 31, .55) 55%, rgba(10, 42, 31, .15) 100%); }
}

/* ---------------- occasion cards ---------------- */
.occasion-card { display: flex; height: 100%; min-height: 128px; border-radius: var(--radius-card); background: #fff; border: 1px solid var(--border); overflow: hidden; color: var(--forest); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.occasion-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sage); text-decoration: none; color: var(--forest); }
.occasion-card__media { flex: 0 0 38%; position: relative; background: var(--mint); display: grid; place-items: center; overflow: hidden; }
.occasion-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.occasion-card:hover .occasion-card__media img { transform: scale(1.06); }
.occasion-card__media .ic { color: var(--emerald); }
.occasion-card__body { padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.occasion-card__body strong { font-size: 1.02rem; }
.occasion-card__body small { color: var(--text-muted); line-height: 1.45; }
.occasion-card__cta { margin-top: 4px; font-size: .82rem; font-weight: 600; color: var(--emerald); display: inline-flex; align-items: center; gap: 4px; }
.occasion-card--festive { border-color: var(--gold-light); background: linear-gradient(135deg, #fff 55%, #FBF4E2 100%); }
.occasion-card--festive .occasion-card__cta { color: var(--gold-deep); }
.badge-gold { display: inline-block; width: max-content; padding: 2px 9px; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--gold), var(--gold-light)); color: var(--forest); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------------- festive campaign banner ---------------- */
.festive-banner { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; background: radial-gradient(circle at 12% 18%, rgba(201, 162, 74, .28) 0, rgba(201, 162, 74, 0) 38%), linear-gradient(135deg, #0B3326 0%, var(--forest) 55%, #145238 100%); color: var(--offwhite); box-shadow: var(--shadow-lg); }
.festive-banner::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(232, 207, 142, .35); border-radius: 20px; pointer-events: none; z-index: 2; }
.festive-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; background-image: radial-gradient(rgba(232, 207, 142, .55) 1px, transparent 1.5px); background-size: 26px 26px; mask-image: linear-gradient(90deg, #000 0%, transparent 55%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%); }
.festive-banner__body { padding: clamp(32px, 5vw, 64px); align-self: center; }
.festive-banner__eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-light); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.festive-banner__title { font-family: var(--font-display); font-style: italic; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; margin: 12px 0 14px; background: linear-gradient(90deg, #fff 0%, var(--gold-light) 70%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.festive-banner__text { color: rgba(249, 252, 248, .85); font-size: 1.05rem; max-width: 46ch; }
.festive-banner__points { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 8px; }
.festive-banner__points li { display: flex; align-items: center; gap: 10px; color: rgba(249, 252, 248, .92); }
.festive-banner__points .icon { color: var(--gold-light); }
.festive-banner__media { position: relative; min-height: 420px; }
.festive-banner__main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.festive-banner__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15, 61, 46, 1) 0%, rgba(15, 61, 46, 0) 32%); }
.festive-banner__inset { position: absolute; z-index: 3; left: -36px; bottom: 36px; width: clamp(120px, 14vw, 180px); aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; border: 5px solid var(--gold-light); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.btn-gold { background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%); color: var(--forest); border: 0; font-weight: 700; box-shadow: 0 8px 22px rgba(201, 162, 74, .35); }
.btn-gold:hover, .btn-gold:focus { color: var(--forest); filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(201, 162, 74, .45); }
@media (max-width: 991.98px) {
  .festive-banner { grid-template-columns: 1fr; }
  .festive-banner__media { min-height: 260px; order: -1; }
  .festive-banner__media::before { background: linear-gradient(0deg, rgba(15, 61, 46, 1) 0%, rgba(15, 61, 46, 0) 40%); }
  .festive-banner__inset { left: auto; right: 22px; bottom: -28px; width: 110px; }
  .festive-banner__body { padding-top: 40px; }
}
@media (max-width: 575.98px) { .occasion-card__media { flex-basis: 34%; } .festive-banner { border-radius: 20px; } .festive-banner::before { inset: 8px; border-radius: 14px; } }

/* City landing pages (/plant-gifts-<city>/) */
.site-footer .footer-title { font-family: var(--font-body); font-weight: 600; }
.filter-panel .filter-title { font-weight: 600; }
.place-items-center { place-items: center; }
.loc-hero .breadcrumb { font-size: .85rem; }
.loc-hero .hero-inner { min-height: 500px; }
.product-card .blurb { font-size: .85rem; color: var(--text-muted); line-height: 1.45; margin: 2px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.loc-why-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--mint); color: var(--emerald); }
.chip-link { text-decoration: none; transition: background .2s ease, color .2s ease; }
.chip-link:hover { background: var(--emerald); color: #fff; text-decoration: none; }
.card-forest .btn-gold, .card-forest .btn-gold:hover { color: var(--forest); }
.card-forest .check-list .icon { color: var(--gold-light); }
/* city promo banner (Dashboard > Banners, placement "City pages banner") */
.city-banner { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; display: grid; grid-template-columns: 1.1fr .9fr; min-height: 340px; background: radial-gradient(circle at 10% 15%, rgba(201, 162, 74, .25) 0, rgba(201, 162, 74, 0) 40%), linear-gradient(135deg, #0B3326 0%, var(--forest) 60%, #145238 100%); color: var(--offwhite); box-shadow: var(--shadow-lg); }
.city-banner__body { padding: clamp(28px, 4.5vw, 56px); align-self: center; position: relative; z-index: 2; }
.city-banner__eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-light); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.city-banner__title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.15; margin: 10px 0 12px; color: #fff; }
.city-banner__text { color: rgba(249, 252, 248, .85); font-size: 1.05rem; max-width: 48ch; margin-bottom: 22px; }
.city-banner__media { position: relative; min-height: 260px; }
.city-banner__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.city-banner__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15, 61, 46, 1) 0%, rgba(15, 61, 46, 0) 40%); }
@media (max-width: 991.98px) {
  .city-banner { grid-template-columns: 1fr; }
  .city-banner__media { order: -1; min-height: 220px; }
  .city-banner__media::before { background: linear-gradient(0deg, rgba(15, 61, 46, 1) 0%, rgba(15, 61, 46, 0) 45%); }
  .loc-hero .hero-inner { min-height: auto; }
}
@media (max-width: 575.98px) { .city-banner { border-radius: 20px; } }
.site-footer .footer-cities a { color: inherit; }

/* =====================================================================
   UX pass (2026-11-18): form errors, filters, touch targets, cart on phones,
   sticky buy bar, feedback states, WhatsApp contrast.
   ===================================================================== */
/* Anchored targets (error-summary links, tabs) land below the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Form errors: Django sets aria-invalid="true" on fields with errors */
.form-control[aria-invalid="true"], .form-select[aria-invalid="true"] { border-color: #B42318; background-color: #FFFBFA; }
.form-check-input[aria-invalid="true"] { border-color: #B42318; }
.invalid-feedback { color: #B42318; font-weight: 500; font-size: .85rem; margin-top: .3rem; }
.invalid-feedback span { display: block; }
.error-summary ul { font-size: .92rem; }
.error-summary a { color: #8A1C12; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.error-summary:focus { outline: 2px solid #B42318; outline-offset: 2px; box-shadow: none; }
.checkout-terms .form-check { margin-bottom: 0; font-size: .9rem; }

/* Shop filters */
.filter-panel fieldset > .filter-title { margin-top: 18px; }
.filter-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--forest); color: var(--offwhite); font-size: .72rem; font-weight: 700; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -6px 0 18px; }
.chip-remove { transition: background .18s ease, color .18s ease; }
.chip-remove:hover, .chip-remove:focus-visible { background: var(--forest); color: var(--offwhite); text-decoration: none; }

/* Product card feedback */
.btn.is-added { background: var(--emerald); border-color: var(--emerald); color: var(--offwhite); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.header-actions .count.bump { animation: bump .45s ease; }
@media (max-width: 575.98px) { .product-card .actions .btn-view { display: none; } }

/* Toasts: optional action link; full-width on phones */
.toast-action { margin-left: auto; padding-left: 12px; color: var(--sage); font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }
.toast-action:hover { color: #fff; }
@media (max-width: 575.98px) { .toast-stack { left: 12px; right: 12px; top: 72px; max-width: none; } }

/* Touch targets: at least 40-44px on touch screens */
@media (pointer: coarse) {
  .btn-sm { min-height: 40px; }
  .product-card .wish { width: 44px; height: 44px; }
  .filter-list a { padding: 10px 8px; }
  .filter-panel .form-check { min-height: 36px; display: flex; align-items: center; gap: 8px; }
  .filter-panel .form-check .form-check-input { margin-top: 0; }
  .share-links a { width: 44px; height: 44px; }
}

/* Product page */
.rating-link { color: inherit; }
.rating-link:hover { color: var(--emerald); }
.nav-tabs-scroll { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.nav-tabs-scroll::-webkit-scrollbar { display: none; }
.nav-tabs-scroll .nav-link { white-space: nowrap; }
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(15, 61, 46, .12); animation: slideup .2s ease; }
.buy-bar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.buy-bar__name { font-size: .82rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-bar .btn { flex-shrink: 0; }
@keyframes slideup { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 991.98px) {
  body:has(.buy-bar) .site-footer { padding-bottom: 96px; }
  body.has-buy-bar .wa-float { bottom: 88px; }
}
@media (min-width: 992px) { .buy-bar { display: none !important; } }

/* Cart: rows become cards on phones instead of a sideways-scrolling table */
[data-cart-row] { transition: opacity .2s ease; }
[data-cart-row].is-updating { opacity: .55; }
@media (max-width: 575.98px) {
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { position: relative; border: 1px solid var(--border); border-radius: var(--radius-card); background: #fff; padding: 12px 14px 6px; margin-bottom: 12px; }
  .cart-table td { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border: 0; text-align: left !important; background: transparent; box-shadow: none; }
  .cart-table td.cart-product { display: block; padding-right: 44px; }
  .cart-table td[data-label]::before { content: attr(data-label); font-size: .8rem; font-weight: 600; color: var(--text-muted); }
  .cart-table td.cart-remove { position: absolute; top: 6px; right: 6px; width: auto; padding: 0; }
  .cart-table img { width: 60px; height: 60px; }
}

/* WhatsApp green darkened so white text passes WCAG AA (≈5:1; #25D366 was ≈2:1) */
.btn-whatsapp, .wa-float { background: #1A7F45; border-color: #1A7F45; }
.btn-whatsapp:hover, .wa-float:hover { background: #146C3A; border-color: #146C3A; }
.wa-float { box-shadow: 0 10px 28px rgba(26, 127, 69, .35); }

/* =====================================================================
   Cart UX & micro-animations (static/js/cart.js)
   Motion uses transform/opacity only, 150-700ms. The global
   prefers-reduced-motion rule at the top of this file shortens all of it.
   ===================================================================== */
:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;
  --skeleton-base: #E3EFE7;
  --skeleton-shine: rgba(255, 255, 255, .65);
}

/* Press feedback on every button */
.btn:active, .btn-icon:active, .drawer-qty button:active, .qty button:active { transform: scale(.97); transition-duration: var(--dur-fast); }

/* Add-to-cart button states */
.btn.is-loading { cursor: progress; }
.btn[aria-disabled="true"] { pointer-events: none; }
.btn.is-added .added-check { display: inline-block; animation: check-pop var(--dur-slow) var(--ease-spring); }
@keyframes check-pop { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.is-shaking { animation: shake 420ms ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(4px); }
}

/* Fly-to-cart clone (outer moves X, inner moves Y + scales: together they trace an arc) */
.fly-to-cart { position: fixed; z-index: 1070; pointer-events: none; will-change: transform; }
.fly-to-cart__inner { width: 100%; height: 100%; will-change: transform; }
.fly-to-cart img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-lg); border: 3px solid #fff; }

/* Cart icon bounce when the item lands */
.cart-icon.is-bouncing .icon { animation: cart-bounce 500ms var(--ease-spring); }
@keyframes cart-bounce {
  0% { transform: translateY(0) scale(1); } 30% { transform: translateY(-5px) scale(1.12); }
  55% { transform: translateY(0) scale(.95); } 75% { transform: translateY(-2px) scale(1.03); } 100% { transform: none; }
}

/* Product card rating */
.product-card .rating { font-size: .82rem; color: var(--text-muted); }
.product-card .rating__stars { display: inline-flex; align-items: center; gap: 4px; }
.product-card .rating .icon { fill: #D69E2E; stroke: #B7791F; }
.product-card .rating strong { color: var(--forest); }

/* Image skeleton shimmer (class added by main.js until the image loads) */
.skeleton, .is-loading.media, .gallery-main.is-loading { position: relative; overflow: hidden; background: var(--skeleton-base); }
.skeleton::after, .is-loading.media::after, .gallery-main.is-loading::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--skeleton-shine), transparent);
  animation: shimmer 1.2s infinite;
}
.is-loading.media img, .gallery-main.is-loading img { opacity: 0; }
.product-card .media img, .gallery-main img { transition: opacity var(--dur-slow) ease, transform .6s ease; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* Toasts: rich variant + animated exit */
.toast-lgo { transition: opacity var(--dur-base) ease, transform var(--dur-base) ease; animation: slidein var(--dur-base) var(--ease-out); }
.toast-lgo.is-leaving { opacity: 0; transform: translateX(24px); }
.toast-lgo.has-media { padding: 10px 14px 10px 10px; }
.toast-media { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--mint); }
.toast-text { line-height: 1.35; min-width: 0; }
.toast-text strong { display: inline-block; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

/* ---------- Cart drawer ---------- */
.cart-drawer { --bs-offcanvas-width: 420px; background: var(--offwhite); color: var(--forest); max-width: 100vw; }
.cart-drawer .offcanvas-header { border-bottom: 1px solid var(--border); padding: 14px 16px 14px 20px; }
.cart-drawer .offcanvas-header h2 { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; }
.cart-drawer__count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--emerald); color: var(--offwhite); font-size: .75rem; display: inline-grid; place-items: center; }
.cart-drawer__count[hidden] { display: none; }
.cart-drawer__body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; overscroll-behavior: contain; }

.free-ship { padding: 14px 20px; background: var(--mint); border-bottom: 1px solid var(--border); }
.free-ship__text { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .9rem; }
.free-ship__bar { height: 8px; border-radius: 4px; background: #fff; overflow: hidden; border: 1px solid var(--sage); }
.free-ship__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--natural), var(--emerald)); transform-origin: left center; transform: scaleX(0); transition: transform 700ms var(--ease-out); }
.free-ship.is-unlocked .free-ship__text { color: var(--emerald); font-weight: 600; }

.drawer-items { list-style: none; margin: 0; padding: 4px 0; }
/* Row removal: slide out (transform/opacity), then collapse via grid rows 1fr -> 0fr */
.drawer-item { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 250ms ease 150ms, opacity 200ms ease, transform 250ms var(--ease-out); }
.drawer-item__inner { min-height: 0; overflow: hidden; display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); transition: padding 250ms ease 150ms; }
.drawer-item.is-removing { grid-template-rows: 0fr; opacity: 0; transform: translateX(40px); }
.drawer-item.is-removing .drawer-item__inner { padding-top: 0; padding-bottom: 0; border-bottom-width: 0; }
.drawer-item.is-updating .drawer-item__total { opacity: .45; }
.drawer-item__media img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: var(--mint); }
.drawer-item__info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.drawer-item__name { font-weight: 600; color: var(--forest); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drawer-item__meta { font-size: .82rem; color: var(--text-muted); }
.drawer-item__end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.drawer-item__total { font-weight: 700; transition: opacity var(--dur-fast) ease; }
.drawer-item__remove { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--text-muted); display: grid; place-items: center; transition: background var(--dur-fast) ease, color var(--dur-fast) ease; }
.drawer-item__remove:hover { background: #FBE4E1; color: #8A1C12; }

.drawer-qty { display: inline-flex; align-items: center; margin-top: 6px; border: 1.5px solid var(--border); border-radius: var(--radius-pill); background: #fff; width: max-content; }
.drawer-qty button { width: 36px; height: 34px; border: 0; background: transparent; color: var(--forest); display: grid; place-items: center; border-radius: 50%; transition: background var(--dur-fast) ease, transform var(--dur-fast) ease; }
.drawer-qty button:hover { background: var(--mint); }
.drawer-qty button[aria-disabled="true"] { opacity: .35; cursor: not-allowed; }
.drawer-qty output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.drawer-qty output.is-ticking { animation: tick 250ms var(--ease-spring); }
@keyframes tick { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

.drawer-summary { margin-top: auto; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: #fff; position: sticky; bottom: 0; }
.drawer-summary .row-line { display: flex; justify-content: space-between; font-size: .92rem; padding: 3px 0; }
.drawer-summary .row-line.total { font-weight: 700; font-size: 1.08rem; border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 10px; }

.drawer-empty { margin: auto; padding: 40px 28px; text-align: center; }
.drawer-empty__icon { width: 88px; height: 88px; border-radius: 50%; background: var(--mint); color: var(--emerald); display: inline-grid; place-items: center; animation: float 4s ease-in-out infinite; }
.drawer-error { padding: 24px 20px; color: #8A1C12; }

.drawer-skeleton { padding: 14px 20px; }
.drawer-skeleton__row { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 0; }
.drawer-skeleton__lines { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.skeleton--thumb { width: 72px; height: 72px; border-radius: 12px; }
.skeleton--line { height: 12px; border-radius: 6px; }
.skeleton--line.short { width: 55%; }

/* Cart page row removal */
[data-cart-row] { transition: opacity 250ms ease, transform 300ms var(--ease-out); }
[data-cart-row].is-removing { opacity: 0; transform: translateX(40px); }

@media (prefers-reduced-motion: reduce) {
  .skeleton::after, .is-loading.media::after, .gallery-main.is-loading::after, .drawer-empty__icon { animation: none; }
}

/* Keep error toasts clear of the open drawer on tablets/desktops */
@media (min-width: 576px) { body:has(.cart-drawer.show) .toast-stack { right: calc(min(420px, 100vw) + 20px); } }

/* ---------------- plant assistant chat ---------------- */
.ai-fab { position: fixed; right: 20px; bottom: 80px; z-index: 1040; display: flex; align-items: center; gap: 8px; background: var(--forest); color: var(--offwhite); border: 0; padding: 11px 16px 11px 13px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); font-weight: 600; font-size: .9rem; cursor: pointer; transition: transform .2s ease; }
.ai-fab:hover { transform: translateY(-2px); }
.ai-fab:focus-visible, .ai-close:focus-visible, .ai-form button:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
body.ai-open .ai-fab { display: none; }
body.has-buy-bar .ai-fab { bottom: 148px; }
.ai-panel { position: fixed; right: 20px; bottom: 20px; z-index: 1055; width: min(380px, calc(100vw - 24px)); max-height: min(600px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(15, 61, 46, .28); overflow: hidden; }
.ai-panel[hidden] { display: none; }
.ai-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--forest); color: var(--offwhite); padding: 12px 14px; }
.ai-head strong { display: block; font-family: var(--font-heading, inherit); font-size: 1.02rem; }
.ai-head small { opacity: .85; font-size: .78rem; }
.ai-close { background: transparent; border: 0; color: inherit; font-size: 1.6rem; line-height: 1; padding: 0 6px; cursor: pointer; }
.ai-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--offwhite); min-height: 220px; }
.ai-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: .92rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-bot { background: var(--mint); color: var(--forest); align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-user { background: var(--emerald); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-wait { opacity: .7; font-style: italic; }
.ai-links { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; padding: 8px 10px; border: 1px solid var(--sage); border-radius: 12px; background: #fff; align-self: flex-start; max-width: 92%; }
.ai-links span { color: var(--natural); font-weight: 600; font-size: .78rem; }
.ai-links a { color: var(--emerald); font-weight: 600; }
.ai-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--mint); background: #fff; }
.ai-form input { flex: 1; min-width: 0; border: 1px solid var(--sage); border-radius: var(--radius-pill); padding: 9px 14px; font-size: .92rem; }
.ai-form button { background: var(--emerald); color: #fff; border: 0; border-radius: var(--radius-pill); padding: 9px 16px; font-weight: 600; }
.ai-form button:disabled, .ai-form input:disabled { opacity: .55; }
.ai-note { margin: 0; padding: 6px 12px 10px; font-size: .72rem; color: #5b6b63; background: #fff; }
@media (max-width: 575.98px) { .ai-fab span { display: none; } .ai-fab { padding: 12px; border-radius: 50%; bottom: 78px; } .ai-panel { right: 12px; bottom: 12px; } }
@media print { .ai-fab, .ai-panel { display: none !important; } }
