/* =====================================================================
   INAARA MINIMALL - Storefront stylesheet
   Brand: green #168A18 | dark green #086B12 | orange #FF8500 | red #EF303F
   ===================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #168A18;
  --brand-dark: #086B12;
  --brand-deep: #064f0d;
  --brand-soft: #EAF5E7;
  --orange: #FF8500;
  --orange-dark: #E67600;
  --red: #EF303F;
  --ink: #202820;
  --muted: #6C7A6C;
  --line: #E5EDE3;
  --bg: #F7F9F6;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(8, 58, 16, .07);
  --shadow-lg: 0 22px 55px rgba(8, 58, 16, .13);
  --header-h: 76px;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: 0;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
a { color: var(--brand-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand); }
img { max-width: 100%; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid rgba(22, 138, 24, .35); outline-offset: 2px; }

.text-brand { color: var(--brand) !important; }
.text-orange { color: var(--orange) !important; }
.text-muted-2 { color: var(--muted) !important; }
.bg-brand { background: var(--brand) !important; }
.bg-soft { background: var(--bg) !important; }
.fw-800 { font-weight: 800 !important; }
.rounded-4 { border-radius: var(--radius) !important; }

/* ---------------------------------------------------------------------
   Buttons & forms
   ------------------------------------------------------------------ */
.btn {
  border-radius: 10px;
  font-weight: 600;
  padding: .62rem 1.15rem;
  transition: all .2s ease;
  font-size: .94rem;
}
.btn-lg { padding: .8rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: .4rem .8rem; font-size: .82rem; }
.btn-brand {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(22, 138, 24, .2);
}
.btn-brand:hover, .btn-brand:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(8, 107, 18, .26);
}
.btn-outline-brand {
  border: 1.5px solid var(--brand);
  color: var(--brand-dark);
  background: transparent;
}
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn-orange {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 133, 0, .25);
}
.btn-orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn-dark-green { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn-dark-green:hover { background: #033c09; color: #fff; }
.btn-white { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn-white:hover { background: #f2faef; color: var(--brand-deep); }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--brand-dark); }
.btn-wish {
  width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.btn-wish:hover, .btn-wish.active { color: var(--red); border-color: #ffd4d8; background: #fff5f6; }

.form-control, .form-select {
  border-radius: 10px;
  border: 1px solid #dbe6d8;
  padding: .62rem .85rem;
  font-size: .94rem;
  background-color: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(22, 138, 24, .09);
}
.form-label { font-weight: 600; font-size: .86rem; margin-bottom: .35rem; color: #354035; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.input-group .btn { border-radius: 0 10px 10px 0; }
.input-group .form-control { border-radius: 10px 0 0 10px; }
.invalid-feedback { font-size: .8rem; }

/* ---------------------------------------------------------------------
   Announcement bar + header
   ------------------------------------------------------------------ */
.announcement-bar {
  background: linear-gradient(90deg, var(--brand-deep), var(--brand-dark) 55%, var(--brand));
  color: #fff;
  font-size: .8rem;
  padding: .45rem 0;
}
.announcement-bar a { color: #fff; opacity: .92; }
.announcement-bar a:hover { opacity: 1; text-decoration: underline; }
.announcement-bar .announce-item { display: inline-flex; align-items: center; gap: .4rem; }
.announcement-bar .divider { opacity: .35; margin: 0 .75rem; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 22px rgba(8, 58, 16, .08); }
.header-main { padding: .7rem 0; }
.brand-logo { height: 56px; width: auto; display: block; }
.brand-logo-sm { height: 42px; width: auto; display: block; }

.header-search { flex: 1; max-width: 560px; margin: 0 1.5rem; }
.header-search .form-control {
  height: 48px;
  border-radius: 12px 0 0 12px;
  background: #F5F8F3;
  border: 1.5px solid #e0eadd;
  font-size: .93rem;
}
.header-search .form-control:focus { background: #fff; }
.header-search .btn {
  height: 48px;
  width: 58px;
  border-radius: 0 12px 12px 0;
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
}
.header-search .btn:hover { background: var(--brand-dark); }

.header-actions { display: flex; align-items: center; gap: 1.15rem; }
.header-action {
  display: flex; align-items: center; gap: .55rem; color: var(--ink); position: relative;
  font-size: .78rem; line-height: 1.1;
}
.header-action:hover { color: var(--brand); }
.header-action .icon-wrap {
  position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.18rem;
  transition: .2s ease;
}
.header-action:hover .icon-wrap { background: var(--brand-soft); color: var(--brand-dark); }
.header-action .label { display: flex; flex-direction: column; color: var(--muted); font-size: .72rem; }
.header-action .label strong { color: var(--ink); font-size: .82rem; font-weight: 600; }
.header-action:hover .label strong { color: var(--brand-dark); }
.cart-badge {
  position: absolute; top: -3px; right: -4px; min-width: 19px; height: 19px; border-radius: 999px;
  background: var(--orange); color: #fff; font-size: .66rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid #fff;
}
.header-action.active .icon-wrap { background: var(--brand-soft); color: var(--brand-dark); }

.main-nav { background: var(--brand); }
.main-nav .nav-link {
  color: rgba(255,255,255,.94);
  font-weight: 600;
  font-size: .9rem;
  padding: .85rem 1.05rem;
  position: relative;
  display: flex; align-items: center; gap: .4rem;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: #fff; background: rgba(255,255,255,.09); }
.main-nav .nav-link.active::after {
  content: ''; position: absolute; left: 1.05rem; right: 1.05rem; bottom: 4px; height: 2.5px;
  background: var(--orange); border-radius: 2px;
}
.main-nav .dropdown-menu { border: 0; box-shadow: var(--shadow-lg); border-radius: 12px; padding: .5rem; min-width: 250px; }
.main-nav .dropdown-item { border-radius: 8px; padding: .55rem .75rem; font-size: .88rem; display: flex; gap: .6rem; align-items: center; }
.main-nav .dropdown-item:hover { background: var(--brand-soft); color: var(--brand-dark); }
.main-nav .dropdown-item i { color: var(--brand); font-size: 1rem; }
.nav-special { color: #FFE0B8 !important; }

.mobile-search { display: none; padding: .6rem 0 .8rem; }
.mobile-menu { background: #fff; }
.mobile-menu .nav-link { color: var(--ink); font-weight: 600; padding: .8rem .25rem; border-bottom: 1px solid var(--line); }

/* ---------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */
.hero {
  background:
    radial-gradient(900px 420px at 8% 8%, rgba(22, 138, 24, .12), transparent 62%),
    linear-gradient(115deg, #EFF8EC 0%, #F7FBF4 50%, #FDF6EC 100%);
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  margin-top: 1.5rem;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255, 133, 0, .07); top: -170px; right: 22%;
}
.hero-copy { position: relative; z-index: 2; max-width: 540px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem; background: #fff; color: var(--brand-dark);
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .4rem .8rem; border-radius: 999px; box-shadow: 0 4px 14px rgba(8,58,16,.07); margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.3vw, 3.5rem);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -.035em;
}
.hero h1 .highlight {
  color: var(--brand);
  display: inline-block;
  position: relative;
}
.hero h1 .highlight::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .08em; height: 10px;
  background: rgba(255, 133, 0, .28); border-radius: 6px; z-index: -1;
}
.hero p.lead { color: #4d5b4d; font-size: clamp(1rem, 1.5vw, 1.12rem); max-width: 450px; margin-bottom: 1.5rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.6rem; font-size: .8rem; color: #465446; }
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust i { color: var(--brand); }

.hero-visual { position: relative; min-height: 380px; }
.hero-collage { display: grid; grid-template-columns: 1.12fr .88fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 100%; min-height: 380px; }
.hero-collage .collage-img { border-radius: 18px; overflow: hidden; position: relative; box-shadow: var(--shadow); background: #fff; }
.hero-collage .collage-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.hero-collage .collage-img:hover img { transform: scale(1.05); }
.hero-collage .tall { grid-row: span 2; }
.hero-float-card {
  position: absolute; left: -14px; bottom: 22px; background: #fff; border-radius: 14px;
  padding: .7rem .9rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .6rem;
  font-size: .78rem; z-index: 3; max-width: 210px;
}
.hero-float-card .icon { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.hero-float-card strong { display: block; font-size: .82rem; }
.hero-float-card small { color: var(--muted); font-size: .72rem; }
.hero-dots { display: flex; gap: 6px; margin-top: 1.2rem; }
.hero-dots span { width: 7px; height: 7px; border-radius: 50%; background: #c9dcc5; }
.hero-dots span.active { width: 22px; border-radius: 99px; background: var(--orange); }

/* ---------------------------------------------------------------------
   Trust strip
   ------------------------------------------------------------------ */
.trust-strip { margin-top: 1.1rem; }
.trust-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem;
  display: flex; align-items: center; gap: .8rem; height: 100%;
}
.trust-item .icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.trust-item strong { display: block; font-size: .85rem; }
.trust-item small { color: var(--muted); font-size: .74rem; line-height: 1.3; display: block; }

/* ---------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */
.section { padding: clamp(2rem, 4vw, 3.25rem) 0; }
.section-tight { padding: 2rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); margin: 0; font-weight: 800; }
.section-head .eyebrow { color: var(--brand); font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: .25rem; }
.section-head .view-all { font-weight: 600; font-size: .86rem; white-space: nowrap; color: var(--brand-dark); }
.section-head .view-all:hover { color: var(--orange); }
.section-title-bar { display: flex; align-items: center; gap: .6rem; font-weight: 800; }
.section-title-bar::before { content: ''; width: 5px; height: 22px; border-radius: 4px; background: var(--brand); display: inline-block; }

/* Category cards */
.category-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: .75rem .75rem 1rem; text-align: center; height: 100%; color: var(--ink);
  transition: .25s ease; position: relative; overflow: hidden;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3e6cf; color: var(--brand-dark); }
.category-thumb { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; margin-bottom: .7rem; background: var(--bg); }
.category-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-card:hover .category-thumb img { transform: scale(1.06); }
.category-card .cat-name { font-weight: 700; font-size: .85rem; line-height: 1.3; display: block; }
.category-card .cat-count { color: var(--muted); font-size: .72rem; display: block; margin-top: .18rem; }
.category-icon-card {
  display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 1rem .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); height: 100%;
}
.category-icon-card i { font-size: 1.6rem; color: var(--brand); }
.category-icon-card span { font-size: .8rem; font-weight: 600; text-align: center; line-height: 1.3; }
.category-icon-card:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

/* ---------------------------------------------------------------------
   Product cards
   ------------------------------------------------------------------ */
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  height: 100%; display: flex; flex-direction: column; transition: .25s ease; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6e8d2; }
.product-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #F4F7F2; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-media .badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge-discount { background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700; padding: .32rem .55rem; border-radius: 7px; }
.badge-new { background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700; padding: .32rem .55rem; border-radius: 7px; letter-spacing: .03em; }
.badge-out { background: #2b332b; color: #fff; font-size: .68rem; font-weight: 700; padding: .32rem .55rem; border-radius: 7px; }
.product-wish { position: absolute; top: 10px; right: 10px; z-index: 2; }
.product-wish .btn-wish { width: 34px; height: 34px; font-size: .9rem; box-shadow: 0 3px 10px rgba(0,0,0,.07); }
.product-quickadd {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; opacity: 0; transform: translateY(8px);
  transition: .25s ease;
}
.product-card:hover .product-quickadd { opacity: 1; transform: none; }
.product-quickadd .btn { background: rgba(255,255,255,.96); color: var(--brand-dark); border: 0; font-size: .8rem; box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.product-quickadd .btn:hover { background: var(--brand); color: #fff; }
.product-body { padding: .85rem .95rem 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-cat { font-size: .69rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.product-title { font-size: .92rem; font-weight: 700; margin: 0; line-height: 1.35; }
.product-title a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.product-title a:hover { color: var(--brand-dark); }
.product-rating { display: flex; align-items: center; gap: .35rem; font-size: .72rem; color: var(--muted); }
.stars { color: var(--orange); letter-spacing: .5px; font-size: .76rem; }
.product-price { display: flex; align-items: baseline; gap: .45rem; margin-top: auto; flex-wrap: wrap; }
.product-price .now { color: var(--brand-dark); font-weight: 800; font-size: 1.04rem; }
.product-price .was { color: #9aa69a; text-decoration: line-through; font-size: .78rem; }
.product-body .btn-add {
  margin-top: .5rem; width: 100%; background: #fff; border: 1.5px solid var(--brand); color: var(--brand-dark);
  font-size: .82rem; font-weight: 700; padding: .5rem .7rem; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.product-body .btn-add:hover { background: var(--brand); color: #fff; }
.product-body .btn-add:disabled { border-color: #d9e2d7; color: #9aa69a; background: #f7f9f6; cursor: not-allowed; }
.stock-left { font-size: .7rem; color: var(--red); font-weight: 600; }

/* Slim product row (cart / mini lists) */
.mini-product { display: flex; gap: .8rem; align-items: center; }
.mini-product img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #f2f5f0; }
.mini-product .name { font-size: .86rem; font-weight: 600; line-height: 1.35; }
.mini-product .meta { font-size: .76rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   Promo / offers
   ------------------------------------------------------------------ */
.promo-banner {
  background: linear-gradient(100deg, #0B6B14, #168A18 55%, #2FA337);
  border-radius: 22px; color: #fff; overflow: hidden; position: relative;
}
.promo-banner::after {
  content: ''; position: absolute; width: 280px; height: 280px; border: 40px solid rgba(255,255,255,.07);
  border-radius: 50%; right: -60px; top: -100px;
}
.promo-banner .promo-copy { padding: clamp(1.5rem, 3.5vw, 2.6rem); position: relative; z-index: 2; }
.promo-banner h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.15rem); font-weight: 800; margin-bottom: .6rem; }
.promo-banner p { color: rgba(255,255,255,.85); max-width: 420px; font-size: .92rem; }
.promo-badge { display: inline-block; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 800; padding: .35rem .7rem; border-radius: 999px; margin-bottom: .8rem; letter-spacing: .04em; }
.promo-image { height: 100%; min-height: 240px; }
.promo-image img { width: 100%; height: 100%; object-fit: cover; }
.countdown { display: flex; gap: .5rem; margin: 1.1rem 0 1.3rem; }
.countdown div { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: .35rem .55rem; text-align: center; min-width: 54px; }
.countdown strong { display: block; font-size: 1.05rem; line-height: 1.1; }
.countdown small { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }

.offer-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem;
  display: flex; gap: .9rem; align-items: center; height: 100%;
}
.offer-card .icon { width: 52px; height: 52px; border-radius: 14px; background: #FFF3E3; color: var(--orange); font-size: 1.5rem; display: flex; align-items: center; justify-content: center; flex: 0 0 52px; }
.offer-card strong { display: block; font-size: .92rem; }
.offer-card span { color: var(--muted); font-size: .8rem; }

/* ---------------------------------------------------------------------
   Value props / newsletter
   ------------------------------------------------------------------ */
.value-card { text-align: center; padding: 1.4rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; height: 100%; }
.value-card .icon { width: 58px; height: 58px; margin: 0 auto .8rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-size: 1.45rem; display: flex; align-items: center; justify-content: center; }
.value-card h5 { font-size: .95rem; margin-bottom: .3rem; }
.value-card p { font-size: .8rem; color: var(--muted); margin: 0; }

.newsletter {
  background: linear-gradient(110deg, #086B12, #168A18 60%, #24952a);
  color: #fff; border-radius: 22px; padding: clamp(1.5rem, 3.5vw, 2.5rem); position: relative; overflow: hidden;
}
.newsletter::before {
  content: '\F415'; font-family: 'bootstrap-icons'; position: absolute; right: 3%; top: -30px; font-size: 12rem; opacity: .07;
}
.newsletter h3 { color: #fff; font-size: clamp(1.3rem, 2.3vw, 1.8rem); margin-bottom: .4rem; }
.newsletter p { color: rgba(255,255,255,.8); font-size: .88rem; margin-bottom: 0; }
.newsletter .form-control { height: 50px; border: 0; border-radius: 10px; }
.newsletter .btn { height: 50px; padding: 0 1.4rem; }

/* ---------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.site-footer { background: #05470d; color: #cfe3cd; margin-top: 2rem; }
.footer-main { padding: 3.2rem 0 2.2rem; }
.footer-logo-chip { background: #fff; display: inline-block; padding: .55rem .8rem; border-radius: 12px; margin-bottom: 1rem; }
.footer-logo-chip img { height: 44px; width: auto; display: block; }
.site-footer h6 { color: #fff; font-size: .88rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: .02em; }
.site-footer a { color: #cfe3cd; font-size: .84rem; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer p { font-size: .84rem; color: #b9d3b7; }
.footer-contact { display: grid; gap: .6rem; font-size: .84rem; }
.footer-contact div { display: flex; gap: .55rem; align-items: flex-start; }
.footer-contact i { color: #8fc48d; margin-top: .15rem; }
.social-links { display: flex; gap: .5rem; margin-top: 1rem; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: .95rem;
}
.social-links a:hover { background: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0; font-size: .78rem; color: #a9c6a6; }
.payment-chips { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.payment-chip { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: .22rem .5rem; font-size: .66rem; font-weight: 600; color: #e6f1e5; }
.footer-newsletter .form-control { border: 0; }
.footer-newsletter small { font-size: .7rem; color: #a9c6a6; }

/* ---------------------------------------------------------------------
   Mobile bottom nav
   ------------------------------------------------------------------ */
.mobile-bottom-nav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1045;
  background: #fff; border-top: 1px solid var(--line);
  padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(8, 58, 16, .08);
}
.mobile-bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .12rem;
  color: #6b7a6b; font-size: .62rem; font-weight: 600; position: relative; padding: .2rem 0;
}
.mobile-bottom-nav a i { font-size: 1.25rem; }
.mobile-bottom-nav a.active { color: var(--brand); }
.mobile-bottom-nav a.active::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--brand); position: absolute; top: -7px; }
.mobile-bottom-nav .badge { position: absolute; top: -2px; right: 50%; transform: translateX(20px); background: var(--orange); }

/* ---------------------------------------------------------------------
   Page header / breadcrumbs
   ------------------------------------------------------------------ */
.page-hero {
  background: linear-gradient(120deg, #EEF7EA, #F9FBF6 60%, #FFF5E9);
  border-radius: 0 0 24px 24px;
  padding: 2.1rem 0 2.3rem;
  margin-bottom: 2rem;
}
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 .35rem; }
.page-hero p { color: var(--muted); margin: 0; font-size: .92rem; }
.breadcrumb { --bs-breadcrumb-divider: '>'; font-size: .8rem; margin-bottom: .65rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb-item.active { color: var(--brand-dark); font-weight: 600; }

/* ---------------------------------------------------------------------
   Shop / catalogue
   ------------------------------------------------------------------ */
.filter-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem; }
.filter-card + .filter-card { margin-top: 1rem; }
.filter-card h6 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .9rem; color: #354035; }
.filter-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.filter-list a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .48rem .6rem; border-radius: 8px; color: #465446; font-size: .84rem;
}
.filter-list a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.filter-list a.active { background: var(--brand); color: #fff; font-weight: 600; }
.filter-list a.active .count { background: rgba(255,255,255,.2); color: #fff; }
.filter-list a i { color: var(--brand); font-size: .95rem; }
.filter-list a.active i { color: #fff; }
.filter-list .count { background: #F2F6EF; color: var(--muted); border-radius: 999px; font-size: .68rem; padding: .1rem .45rem; }
.price-range-values { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: .5rem; }
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .65rem .9rem; margin-bottom: 1.1rem;
  font-size: .82rem; color: var(--muted);
}
.toolbar select { border: 1px solid var(--line); border-radius: 8px; padding: .35rem 1.8rem .35rem .6rem; font-size: .82rem; color: var(--ink); }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-chip {
  display: inline-flex; align-items: center; gap: .3rem; background: var(--brand-soft); color: var(--brand-dark);
  border-radius: 999px; font-size: .74rem; padding: .25rem .6rem; font-weight: 600;
}
.filter-chip a { color: inherit; opacity: .7; }
.filter-chip a:hover { opacity: 1; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
.product-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-grid .product-card { min-width: 0; }

.empty-state { text-align: center; padding: 3rem 1rem; background: #fff; border: 1px dashed #d7e4d3; border-radius: 18px; }
.empty-state .icon { width: 74px; height: 74px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 1rem; }
.empty-state h4 { font-size: 1.1rem; }
.empty-state p { color: var(--muted); font-size: .88rem; max-width: 420px; margin: 0 auto 1.2rem; }

/* ---------------------------------------------------------------------
   Product detail
   ------------------------------------------------------------------ */
.product-gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.gallery-main {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  aspect-ratio: 1/1; position: relative; cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-main.zoomed img { transform: scale(1.7); cursor: zoom-out; }
.gallery-thumbs { display: flex; gap: .55rem; margin-top: .7rem; flex-wrap: wrap; }
.gallery-thumb {
  width: 74px; height: 74px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #fff;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--brand); }
.product-info .product-cat { font-size: .74rem; }
.product-info h1 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.25; margin: .3rem 0 .5rem; }
.product-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; font-size: .8rem; color: var(--muted); margin-bottom: .8rem; }
.price-block { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; margin: .8rem 0 1rem; }
.price-block .now { font-size: 1.85rem; font-weight: 800; color: var(--brand-dark); letter-spacing: -.02em; }
.price-block .was { color: #98a598; text-decoration: line-through; font-size: 1rem; }
.price-block .save { background: #FFF0DD; color: var(--orange-dark); font-weight: 700; font-size: .75rem; padding: .28rem .6rem; border-radius: 6px; }
.short-desc { color: #51604f; font-size: .92rem; }
.option-label { font-size: .8rem; font-weight: 700; margin-bottom: .45rem; display: block; }
.option-label span { color: var(--muted); font-weight: 500; }
.option-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.option-chip input { position: absolute; opacity: 0; pointer-events: none; }
.option-chip label {
  display: inline-flex; align-items: center; gap: .35rem; border: 1.5px solid #dbe6d8; background: #fff;
  border-radius: 9px; padding: .42rem .8rem; font-size: .82rem; font-weight: 600; cursor: pointer; margin: 0;
}
.option-chip input:checked + label { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid #dbe6d8; border-radius: 10px; overflow: hidden; background: #fff; }
.qty-stepper button { border: 0; background: #fff; width: 38px; height: 42px; font-size: 1rem; color: var(--ink); }
.qty-stepper button:hover { background: var(--brand-soft); color: var(--brand-dark); }
.qty-stepper input { width: 46px; border: 0; text-align: center; font-weight: 700; font-size: .9rem; height: 42px; background: #fff; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row { display: flex; gap: .6rem; align-items: stretch; margin: 1.1rem 0 1rem; flex-wrap: wrap; }
.buy-row .btn-add-lg { flex: 1; min-width: 180px; }
.product-perks { display: grid; gap: .55rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; font-size: .82rem; }
.product-perks div { display: flex; gap: .55rem; align-items: flex-start; color: #4c5b4a; }
.product-perks i { color: var(--brand); font-size: 1rem; margin-top: .1rem; }
.stock-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: .25rem .65rem; }
.stock-pill.in { background: #E8F7E5; color: #157A17; }
.stock-pill.low { background: #FFF0DD; color: #B45E00; }
.stock-pill.out { background: #FDEAEC; color: var(--red); }
.nav-tabs .nav-link { color: var(--muted); font-weight: 600; font-size: .88rem; border: 0; border-bottom: 2px solid transparent; padding: .7rem 1rem; }
.nav-tabs .nav-link.active { color: var(--brand-dark); background: transparent; border-bottom-color: var(--brand); }
.spec-table { width: 100%; font-size: .87rem; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 600; padding: .55rem .75rem; background: #F7F9F6; }
.spec-table td { padding: .55rem .75rem; border-bottom: 1px solid var(--line); }
.review-item { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.review-item:last-child { border-bottom: 0; }
.review-item .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.review-summary { background: #F7F9F6; border-radius: 14px; padding: 1.1rem; text-align: center; }
.review-summary .score { font-size: 2.6rem; font-weight: 800; color: var(--brand-dark); line-height: 1; }
.rating-bar { height: 6px; border-radius: 4px; background: #e6ede4; overflow: hidden; }
.rating-bar span { display: block; height: 100%; background: var(--orange); border-radius: 4px; }

/* ---------------------------------------------------------------------
   Cart
   ------------------------------------------------------------------ */
.cart-table { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cart-table .table { margin: 0; }
.cart-table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #F7F9F6; font-weight: 700; padding: .8rem 1rem; border: 0; }
.cart-table td { padding: 1rem; vertical-align: middle; border-color: var(--line); }
.cart-product { display: flex; gap: .85rem; align-items: center; }
.cart-product img { width: 74px; height: 74px; border-radius: 10px; object-fit: cover; background: var(--bg); }
.cart-product .name { font-weight: 700; font-size: .9rem; margin-bottom: .15rem; display: block; color: var(--ink); }
.cart-product .variant { color: var(--muted); font-size: .76rem; }
.cart-price { font-weight: 700; color: var(--brand-dark); white-space: nowrap; }
.remove-item { color: #a4b0a3; background: none; border: 0; font-size: .95rem; }
.remove-item:hover { color: var(--red); }
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem; }
.summary-card h5 { font-size: 1rem; margin-bottom: 1rem; }
.summary-row { display: flex; justify-content: space-between; font-size: .87rem; padding: .4rem 0; color: #4c5b4a; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .8rem; font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.summary-row.total .value { color: var(--brand-dark); }
.coupon-row { display: flex; gap: .4rem; margin: 1rem 0; }
.coupon-row .form-control { font-size: .82rem; }
.free-ship-progress { background: var(--brand-soft); border-radius: 10px; padding: .65rem .75rem; font-size: .76rem; color: var(--brand-dark); margin-bottom: 1rem; }
.free-ship-progress .bar { height: 6px; background: #d9ead3; border-radius: 4px; overflow: hidden; margin-top: .4rem; }
.free-ship-progress .bar span { display: block; height: 100%; background: var(--brand); border-radius: 4px; }

/* ---------------------------------------------------------------------
   Checkout
   ------------------------------------------------------------------ */
.checkout-steps { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.checkout-step { display: flex; align-items: center; gap: .55rem; font-size: .82rem; color: var(--muted); font-weight: 600; }
.checkout-step .num { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1.5px solid #dbe6d8; display: flex; align-items: center; justify-content: center; font-size: .78rem; }
.checkout-step.active { color: var(--brand-dark); }
.checkout-step.active .num { background: var(--brand); border-color: var(--brand); color: #fff; }
.checkout-step.done .num { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.checkout-step .line { width: 60px; height: 1.5px; background: #dbe6d8; }
.checkout-panel { display: none; }
.checkout-panel.active { display: block; animation: fadeUp .3s ease; }
.checkout-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; }
.checkout-card h5 { font-size: 1.02rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.checkout-card h5 i { color: var(--brand); }
.delivery-option {
  display: flex; gap: .8rem; align-items: flex-start; border: 1.5px solid #e3ebdf; border-radius: 12px;
  padding: .9rem; cursor: pointer; margin-bottom: .6rem; background: #fff;
}
.delivery-option:hover { border-color: #bcd9b6; }
.delivery-option input { margin-top: .25rem; }
.delivery-option.selected { border-color: var(--brand); background: #FBFDF9; }
.delivery-option strong { display: block; font-size: .9rem; }
.delivery-option small { color: var(--muted); font-size: .78rem; }
.delivery-option .price { margin-left: auto; font-weight: 700; color: var(--brand-dark); white-space: nowrap; font-size: .86rem; }
.payment-option {
  display: flex; gap: .8rem; align-items: center; border: 1.5px solid #e3ebdf; border-radius: 12px; padding: .85rem .9rem;
  cursor: pointer; margin-bottom: .55rem; background: #fff;
}
.payment-option.selected { border-color: var(--brand); background: #FBFDF9; }
.payment-option .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex: 0 0 40px; }
.payment-option strong { font-size: .88rem; display: block; }
.payment-option small { font-size: .74rem; color: var(--muted); }
.payment-option input { margin-left: auto; }
.checkout-summary { position: sticky; top: calc(var(--header-h) + 16px); }
.checkout-item { display: flex; gap: .7rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid #f0f4ee; }
.checkout-item img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--bg); }
.checkout-item .name { font-size: .8rem; font-weight: 600; line-height: 1.3; }
.checkout-item .qty { font-size: .72rem; color: var(--muted); }
.checkout-item .amount { margin-left: auto; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.secure-note { font-size: .74rem; color: var(--muted); display: flex; gap: .4rem; align-items: center; justify-content: center; margin-top: .8rem; }

/* ---------------------------------------------------------------------
   Auth
   ------------------------------------------------------------------ */
.auth-wrap { min-height: 70vh; display: flex; align-items: center; padding: 2.5rem 0; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.auth-card h2 { font-size: 1.5rem; margin-bottom: .35rem; }
.auth-card .sub { color: var(--muted); font-size: .86rem; margin-bottom: 1.4rem; }
.auth-side {
  background: linear-gradient(150deg, #0B6B14, #168A18 55%, #2E9F34); border-radius: 20px; color: #fff;
  padding: 2rem; height: 100%; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.auth-side::after { content: '\F5D2'; font-family: 'bootstrap-icons'; position: absolute; font-size: 10rem; opacity: .08; right: -20px; bottom: -30px; }
.auth-side h3 { color: #fff; font-size: 1.5rem; }
.auth-side ul { list-style: none; padding: 0; display: grid; gap: .7rem; font-size: .86rem; margin: 1.2rem 0 0; }
.auth-side li { display: flex; gap: .55rem; align-items: flex-start; color: rgba(255,255,255,.9); }
.auth-side li i { color: #B7F0B4; margin-top: .15rem; }
.divider-or { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .78rem; margin: 1rem 0; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------------------------------------------------------------------
   Account
   ------------------------------------------------------------------ */
.account-sidebar { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.account-user { padding: 1.1rem; background: var(--brand-soft); display: flex; align-items: center; gap: .7rem; }
.account-user .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.account-user strong { display: block; font-size: .88rem; }
.account-user small { color: var(--muted); font-size: .75rem; }
.account-nav { padding: .5rem; display: grid; }
.account-nav a { display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; border-radius: 9px; color: #4c5b4a; font-size: .85rem; font-weight: 500; }
.account-nav a i { width: 18px; color: #7b8a79; }
.account-nav a:hover, .account-nav a.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.account-nav a.active i { color: var(--brand); }
.account-nav a.text-danger-soft { color: var(--red); }
.account-nav a.text-danger-soft i { color: var(--red); }
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; display: flex; align-items: center; gap: .8rem; height: 100%; }
.stat-tile .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.stat-tile .value { font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.stat-tile .label { font-size: .76rem; color: var(--muted); }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: .8rem; }
.order-card .order-top { display: flex; justify-content: space-between; align-items: center; gap: .7rem; flex-wrap: wrap; }
.order-card .order-num { font-weight: 800; font-size: .9rem; }
.order-card .order-date { font-size: .76rem; color: var(--muted); }
.order-thumbs { display: flex; gap: .35rem; margin-top: .6rem; }
.order-thumbs img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.tracking-timeline { display: flex; justify-content: space-between; gap: .3rem; position: relative; margin: 1.5rem 0 .5rem; }
.tracking-timeline::before { content: ''; position: absolute; left: 8%; right: 8%; top: 19px; height: 3px; background: #e3ecdf; z-index: 0; }
.tracking-step { text-align: center; position: relative; z-index: 1; flex: 1; font-size: .72rem; color: var(--muted); }
.tracking-step .dot { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid #dbe6d8; color: #a7b3a5; display: flex; align-items: center; justify-content: center; margin: 0 auto .45rem; font-size: 1rem; }
.tracking-step.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.tracking-step.current .dot { background: #fff; border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px rgba(22, 138, 24, .12); }
.tracking-step.done, .tracking-step.current { color: var(--brand-dark); font-weight: 600; }
.tracking-step strong { display: block; font-size: .74rem; line-height: 1.25; }

/* ---------------------------------------------------------------------
   Content pages
   ------------------------------------------------------------------ */
.content-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.2rem, 3vw, 2.2rem); }
.content-card h2 { font-size: 1.3rem; margin: 1.5rem 0 .6rem; }
.content-card h2:first-child { margin-top: 0; }
.content-card p, .content-card li { color: #4c5b4a; font-size: .92rem; line-height: 1.75; }
.content-card ul { padding-left: 1.2rem; }
.info-page-image { border-radius: 18px; overflow: hidden; height: 100%; min-height: 260px; }
.info-page-image img { width: 100%; height: 100%; object-fit: cover; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem; height: 100%; }
.contact-card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: .7rem; }
.contact-card h6 { margin-bottom: .2rem; }
.contact-card p, .contact-card a { font-size: .85rem; color: var(--muted); margin: 0; }
.map-embed { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); min-height: 260px; background: #EAF1E8; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; }

/* ---------------------------------------------------------------------
   Alerts, toasts, misc
   ------------------------------------------------------------------ */
.alert { border: 0; border-radius: 12px; font-size: .87rem; padding: .85rem 1rem; }
.alert-success { background: #E9F8E6; color: #14661B; }
.alert-danger { background: #FDEBED; color: #A81B27; }
.alert-warning { background: #FFF4E4; color: #935000; }
.alert-info { background: #E9F3FA; color: #175B7A; }
.toast-container { z-index: 1090; }
.app-toast { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .86rem; padding: .8rem 1rem; display: flex; gap: .6rem; align-items: flex-start; }
.app-toast.success i { color: var(--brand); }
.app-toast.danger i { color: var(--red); }
.app-toast.warning i { color: var(--orange); }
.pagination .page-link { border: 1px solid var(--line); color: var(--ink); font-size: .82rem; margin: 0 2px; border-radius: 8px; }
.pagination .page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .page-link:hover { background: var(--brand-soft); color: var(--brand-dark); }
.cursor-pointer { cursor: pointer; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.divider { height: 1px; background: var(--line); margin: 1.2rem 0; }
.loading-spinner { display: inline-block; width: 1rem; height: 1rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1199.98px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-visual { min-height: 330px; }
  .hero-collage { min-height: 330px; }
}

@media (max-width: 991.98px) {
  .announcement-bar .announce-middle { display: none !important; }
  .header-search { max-width: none; margin: 0 1rem; }
  .header-action .label { display: none; }
  .header-actions { gap: .6rem; }
  .brand-logo { height: 46px; }
  .hero { margin-top: 1rem; border-radius: 20px; }
  .hero-visual { margin-top: 1.5rem; min-height: 300px; }
  .hero-collage { min-height: 300px; }
  .hero-float-card { left: 10px; bottom: 10px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-summary { position: static; }
  .product-gallery { position: static; }
}

@media (max-width: 767.98px) {
  body { padding-bottom: 66px; font-size: 14.5px; }
  .mobile-bottom-nav { display: flex; }
  .announcement-bar { font-size: .72rem; }
  .announcement-bar .announce-contact { display: none !important; }
  .header-main { padding: .55rem 0; }
  .brand-logo { height: 42px; }
  .header-search { display: none; }
  .mobile-search { display: block; }
  .main-nav { display: none; }
  .header-action.account-action { display: none; }
  .hero { padding: 1.25rem; }
  .hero h1 { font-size: 2rem; }
  .hero p.lead { font-size: .92rem; }
  .hero-trust { gap: .75rem; margin-top: 1.1rem; }
  .hero-float-card { display: none; }
  .hero-visual { min-height: 260px; margin-top: 1.2rem; }
  .hero-collage { min-height: 260px; }
  .section { padding: 1.8rem 0; }
  .section-head { margin-bottom: 1rem; }
  .section-head h2 { font-size: 1.25rem; }
  .product-grid, .product-grid.cols-3, .product-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .product-body { padding: .65rem .7rem .8rem; }
  .product-title { font-size: .83rem; }
  .product-cat { font-size: .62rem; }
  .product-price .now { font-size: .95rem; }
  .product-body .btn-add { font-size: .76rem; padding: .45rem .4rem; }
  .product-quickadd { display: none; }
  .badge-discount, .badge-new { font-size: .62rem; padding: .25rem .42rem; }
  .trust-item { padding: .75rem; gap: .6rem; }
  .trust-item .icon { width: 36px; height: 36px; flex: 0 0 36px; font-size: 1rem; }
  .trust-item strong { font-size: .78rem; }
  .trust-item small { display: none; }
  .category-card { padding: .5rem .5rem .7rem; border-radius: 12px; }
  .category-card .cat-name { font-size: .74rem; }
  .category-card .cat-count { display: none; }
  .promo-image { min-height: 190px; }
  .newsletter .form-control, .newsletter .btn { height: 46px; }
  .footer-main { padding: 2rem 0 1.4rem; }
  .payment-chips { justify-content: flex-start; margin-top: .5rem; }
  .cart-table td { padding: .7rem .5rem; }
  .cart-table th { padding: .6rem .5rem; }
  .cart-product img { width: 58px; height: 58px; }
  .cart-product .name { font-size: .82rem; }
  .buy-row .btn-add-lg { min-width: 0; }
  .tracking-timeline { overflow-x: auto; padding-bottom: .4rem; }
  .tracking-step { min-width: 74px; }
  .tracking-step strong { font-size: .66rem; }
  .auth-side { display: none; }
  .page-hero { padding: 1.4rem 0 1.5rem; margin-bottom: 1.4rem; }
  .checkout-card { padding: 1rem; }
  .checkout-steps { gap: .3rem; }
  .checkout-step { font-size: .72rem; }
  .checkout-step .line { width: 22px; }
  .gallery-thumb { width: 60px; height: 60px; }
  .stat-tile { padding: .8rem; gap: .6rem; }
  .stat-tile .icon { width: 38px; height: 38px; font-size: 1rem; }
  .stat-tile .value { font-size: 1.15rem; }
}

@media (max-width: 360px) {
  .product-grid, .product-grid.cols-3, .product-grid.cols-2 { gap: .55rem; }
  .product-body .btn-add span { display: none; }
}

/* ---------------------------------------------------------------------
   Page heroes, account extras and page-specific components
   ------------------------------------------------------------------ */
.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.page-hero > div:first-child { min-width: 0; }
.page-hero-icon {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  border-radius: 24px;
  background: #fff;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 26px rgba(8, 107, 18, .10);
  transform: rotate(-4deg);
}
.page-hero-thumb {
  width: 150px;
  height: 112px;
  flex: 0 0 150px;
  border-radius: 18px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 10px 26px rgba(8, 107, 18, .12);
  transform: rotate(2deg);
}
.page-hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .promo-badge { margin-bottom: .55rem; }

.search-hero-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  margin: 0 0 1.6rem;
  box-shadow: 0 8px 24px rgba(8, 107, 18, .05);
}

.category-card .cat-desc {
  display: block;
  font-size: .74rem;
  color: var(--muted);
  margin-top: .25rem;
  line-height: 1.45;
}

.account-logout {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  border: 0;
  background: transparent;
  padding: .6rem .7rem;
  border-radius: 9px;
  color: var(--red);
  font-size: .85rem;
  font-weight: 500;
  text-align: left;
}
.account-logout:hover { background: #FDEAEC; }
.account-logout i { width: 18px; }

.btn-wish-lg {
  width: 52px;
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.btn-wish-lg.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-add-lg { padding: .8rem 1.2rem; font-weight: 700; font-size: .95rem; }

.option-chip .color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .15);
  margin-right: .35rem;
  vertical-align: -1px;
}
.option-chip label small { color: var(--muted); font-size: .68rem; margin-left: .25rem; }

.gallery-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}
.gallery-main { position: relative; }

.success-icon,
.failed-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #E8F7E5;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 0 10px rgba(22, 138, 24, .07);
}
.success-icon.warning { background: #FFF0DD; color: var(--orange-dark); box-shadow: 0 0 0 10px rgba(255, 133, 0, .08); }
.failed-icon { background: #FDEAEC; color: var(--red); box-shadow: 0 0 0 10px rgba(239, 48, 63, .07); }

.error-code {
  font-size: clamp(4.5rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .4rem;
}

.cart-table .form-control { max-width: 90px; }
.product-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem 1.2rem;
  margin-bottom: .35rem;
}

@media (max-width: 767.98px) {
  .page-hero-icon { width: 58px; height: 58px; flex-basis: 58px; border-radius: 18px; font-size: 1.4rem; }
  .page-hero-thumb { width: 96px; height: 76px; flex-basis: 96px; border-width: 3px; }
  .product-meta-row { gap: .4rem .8rem; }
}


/* =====================================================================
   Naara AI Chat
   ===================================================================== */
.ai-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1040;
}

.ai-float-btn .btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand);
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform .2s ease, box-shadow .2s ease;
  background-image: url('../images/naara-ai-icon.png');
  background-size: 32px 32px;
  background-position: center;
  background-repeat: no-repeat;
}

.ai-float-btn .btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ai-float-btn .btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.ai-float-btn .btn:active {
  transform: translateY(2px);
}

.ai-chat-modal {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 420px;
  max-height: 60vh;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--brand);
}

.ai-chat-modal.open { display: flex; }

  /* AI banner styles */
  .ai-banner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--brand);
    margin: 0 auto 8px;
    background: var(--white);
  }
  .ai-banner-text {
    text-align: center;
    margin-top: 4px;
  }
  .ai-banner-text .small {
    color: var(--brand);
    font-weight: 700;
  }
  .ai-chat-modal { width: 90%; right: 5%; bottom: 60px; left: 5%; border-radius: 0; }
}

.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.ai-chat-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.ai-chat-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  border: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.ai-chat-close:hover {
  background: var(--red);
  color: var(--white);
}

.ai-chat-messages {
  flex: 1;
  padding: 1rem 1.2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.ai-message {
  max-width: 85%;
  padding: .7rem .9rem;
  border-radius: 12px;
  font-size: .87rem;
  line-height: 1.4;
  position: relative;
}

.ai-message.ai {
  background: var(--brand-soft);
  color: var(--brand-dark);
  margin-left: auto;
  border-bottom-right-radius: 2px;
}

.ai-message.user {
  background: var(--bg);
  color: var(--ink);
  margin-right: auto;
  border-bottom-left-radius: 2px;
}

.ai-message.ai::after {
  content: '';
  position: absolute;
  top: 1rem;
  left: -8px;
  border: 8px solid;
  border-color: transparent transparent var(--brand-soft) transparent;
}

.ai-message.user::after {
  content: '';
  position: absolute;
  top: 1rem;
  right: -8px;
  border: 8px solid;
  border-color: transparent transparent transparent var(--bg);
}

.ai-input-area {
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: .5rem;
}

.ai-input {
  flex: 1;
  padding: .5rem .8rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: .87rem;
  outline: none;
  transition: border-color .2s;
}

.ai-input:focus {
  border-color: var(--brand);
}

.ai-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  border: none;
  color: var(--white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
}

.ai-send:hover {
  background: var(--brand-dark);
}

.ai-send:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.no-ai { padding: 2rem; text-align: center; color: var(--muted); }

@media (max-width: 575.98px) {
  .ai-chat-modal { width: 100%; right: 0; left: 0; bottom: 80px; margin: 0; border-radius: 0; max-height: 70vh; }
  .ai-float-btn { bottom: 16px; right: 16px; }
}
