/* =====================================================================
   Shree Bihari — Design System
   ===================================================================== */
:root {
  --ink: #211a12;
  --ink-soft: #362a1c;
  --muted: #7c6f5f;
  --muted-soft: #ab9f8e;
  --border: #e7e7e7;
  --surface: #f7f7f6;
  --surface-2: #f0f0ee;
  --card-bg: #ffffff;

  --primary: #145c3c;
  --primary-dark: #0c3d28;
  --primary-light: #e6f2ea;
  --primary-rgb: 20, 92, 60;

  --accent: #d9860a;
  --accent-dark: #a8620a;
  --accent-light: #fdf0da;

  --success: #16a34a;
  --danger: #b3311a;

  --radius-sm: .5rem;
  --radius: .9rem;
  --radius-lg: 1.4rem;

  --shadow-sm: 0 2px 8px rgba(33, 26, 18, .07);
  --shadow: 0 10px 30px rgba(33, 26, 18, .09);
  --shadow-lg: 0 20px 50px rgba(33, 26, 18, .16);

  --gradient-brand: linear-gradient(135deg, #0c3d28 0%, #1c7a4d 55%, #d9860a 100%);
  --gradient-warm: linear-gradient(135deg, #e8790f 0%, #b3311a 100%);

  --bs-danger: var(--danger);
  --bs-link-color: var(--ink);
  --bs-link-hover-color: var(--primary);
  --bs-body-color: var(--ink);
}

* { scrollbar-width: thin; scrollbar-color: var(--primary-light) transparent; }

body {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--card-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-weight: 800; letter-spacing: -.02em; }

/* Blazor sets focus on the page <h1> after navigation for accessibility.
   Suppress the default browser outline box completely. */
h1:focus { outline: none; }
a { text-decoration: none; transition: color .15s ease; }
::selection { background: var(--primary-light); color: var(--primary-dark); }

.container, .container-fluid { max-width: 1320px; }

/* ============ Scroll reveal ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,.8,.28,1), transform .7s cubic-bezier(.16,.8,.28,1); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============ Topbar ============ */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.82);
  font-size: .8rem;
  font-weight: 500;
  padding: .5rem 0;
  letter-spacing: .2px;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar a { color: rgba(255,255,255,.82); }
.topbar a:hover { color: #fff; }
.topbar .topbar-trust { display: flex; align-items: center; gap: 1.5rem; }
.topbar .topbar-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar .topbar-trust i { color: var(--accent); }

/* ============ Navbar (header) ============ */
.navbar {
  position: sticky; top: 0; z-index: 1030;
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
  transition: box-shadow .25s ease, padding .25s ease, background .25s ease;
}
.navbar.scrolled {
  box-shadow: 0 8px 24px rgba(12, 61, 40, .28);
  padding-top: .65rem;
  padding-bottom: .65rem;
  border-bottom-color: rgba(217, 134, 10, .35);
}
.navbar-brand {
  font-weight: 800;
  font-size: 1.28rem;
  color: #fff !important;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.navbar-brand .brand-mark {
  height: 42px; width: auto; border-radius: 8px;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  flex: none;
  object-fit: contain;
}
.navbar-brand span.accent {
  color: var(--accent);
  font-weight: 800;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,.86);
  font-weight: 600;
  font-size: .95rem;
  padding: .6rem 1.25rem !important;
  position: relative;
  letter-spacing: .2px;
  transition: color .2s ease;
}
.navbar-nav .nav-link:hover { color: #fff; }
.navbar-nav .nav-link::after {
  content: ""; position: absolute; left: 1.25rem; right: 1.25rem; bottom: .15rem; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-nav .nav-link.active { color: #fff; }

.navbar .nav-icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.06); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
  transition: all .2s ease; flex: none;
}
.navbar .nav-icon-btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); transform: translateY(-2px); }

.navbar .search-form {
  position: relative; display: flex; align-items: center;
  max-width: 0; overflow: hidden; opacity: 0;
  transition: max-width .3s ease, opacity .25s ease, margin .3s ease;
}
.navbar .search-form.open { max-width: 240px; opacity: 1; margin-right: .5rem; }
.navbar .search-form input {
  width: 100%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1);
  color: #fff; border-radius: 50px; padding: .5rem 1rem; font-size: .88rem;
}
.navbar .search-form input::placeholder { color: rgba(255,255,255,.65); }
.navbar .search-form input:focus { outline: none; background: rgba(255,255,255,.16); border-color: #fff; }

.navbar .btn-cart {
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-weight: 600;
  background: rgba(255,255,255,.08);
  border-radius: 50px;
  padding: .55rem 1.3rem;
  display: inline-flex; align-items: center; gap: .55rem;
  transition: all .2s ease;
}
.navbar .btn-cart:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.cart-badge {
  font-size: .62rem;
  position: relative;
  top: -8px;
  left: -4px;
  background: var(--accent) !important;
  color: var(--ink) !important;
}
.cart-badge.bump { animation: cartBump .35s ease; }
@keyframes cartBump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

.navbar-toggler {
  border: 1px solid rgba(255,255,255,.35) !important;
  padding: .4rem .55rem !important;
}
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(255,255,255,.25) !important; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--primary-dark);
    margin-top: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius);
  }
  .navbar-nav .nav-link::after { display: none; }
  .navbar-nav .nav-link { padding: .7rem .5rem !important; border-bottom: 1px solid rgba(255,255,255,.08); }
  .navbar .search-form { max-width: 100%; opacity: 1; margin: 0 0 1rem; }
  .navbar .btn-cart { margin-top: .75rem; justify-content: center; }
}

/* ============ Buttons ============ */
.btn {
  border-radius: 50px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1.2;
}
.btn-brand {
  background: var(--gradient-brand);
  border: none;
  color: #fff;
  padding: .75rem 1.9rem;
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-brand:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(var(--primary-rgb), .42); color: #fff; }
.btn-dark {
  background: var(--ink); border-color: var(--ink); font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-dark:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-outline-dark { border-radius: 50px; font-weight: 600; }
.btn-outline-danger {
  --bs-btn-color: var(--ink);
  --bs-btn-border-color: var(--border);
  --bs-btn-hover-bg: var(--ink);
  --bs-btn-hover-border-color: var(--ink);
  --bs-btn-active-bg: var(--ink);
  --bs-btn-active-border-color: var(--ink);
  font-weight: 600;
  border-radius: 50px;
}
.btn-danger {
  --bs-btn-bg: var(--ink);
  --bs-btn-border-color: var(--ink);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  font-weight: 600;
  border-radius: 50px;
}
.btn-icon {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: #fff; color: var(--ink);
  transition: all .2s ease;
}
.btn-icon:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.btn-icon.active { background: var(--gradient-brand); color: #fff; border-color: transparent; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 2.5rem 0 4rem;
  background: #ffffff;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .16; z-index: 0;
}
.hero::before {
  width: 480px; height: 480px; background: var(--primary);
  top: -220px; right: -160px; animation: float1 12s ease-in-out infinite;
}
.hero::after {
  width: 340px; height: 340px; background: var(--accent);
  bottom: -180px; left: -120px; animation: float2 14s ease-in-out infinite;
}
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 30px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, -20px); } }

.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--primary-light); color: var(--primary-dark);
  font-weight: 700; font-size: .8rem; letter-spacing: .3px;
  padding: .45rem 1rem; border-radius: 50px; margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  color: var(--ink);
}
.hero h1 .grad {
  background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: var(--muted); font-size: 1.15rem; max-width: 460px; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.5rem; }
.hero-stats .stat-num { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.hero-stats .stat-label { font-size: .82rem; color: var(--muted); font-weight: 600; }

.hero-visual { text-align: center; }
.hero-visual-frame { position: relative; display: inline-block; max-width: 100%; }
.hero-visual img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 440px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: floatSlow 6s ease-in-out infinite;
}
@media (max-width: 991px) {
  .hero-visual img { max-height: 340px; }
}
@keyframes floatSlow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---- Verified-seal badge floating on the hero image ---- */
.hero-badge-card {
  position: absolute; bottom: -1.5rem; left: -1.5rem; max-width: calc(100% - 1rem);
  background: #fff; border-radius: var(--radius-lg); padding: .9rem 1.3rem .9rem 1rem;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .85rem;
  border: 1px solid rgba(var(--primary-rgb), .08);
  animation: floatSlow 6s ease-in-out infinite; animation-delay: .5s;
}
.hero-badge-card .icon-circle {
  position: relative;
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.25rem;
  box-shadow: 0 0 0 4px var(--primary-light);
}
.hero-badge-card .icon-circle .verified-tick {
  position: absolute; bottom: -3px; right: -3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: .6rem;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.hero-badge-card .title { font-weight: 800; font-size: .92rem; color: var(--ink); line-height: 1.25; }
.hero-badge-card .sub { font-size: .74rem; color: var(--muted); line-height: 1.3; }

/* ---- Certification / trust strip ---- */
.assurance-heading { text-align: center; margin-bottom: 1.1rem; }
.assurance-item {
  background: #fff; border: 1px solid var(--border); border-radius: 50px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem 1.4rem .85rem .85rem;
  height: 100%;
  transition: transform .25s cubic-bezier(.16,.8,.28,1), box-shadow .25s ease, border-color .25s ease;
}
.assurance-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
@media (max-width: 575px) {
  .assurance-item { border-radius: var(--radius); padding: .9rem 1rem; }
}
.assurance-icon {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  box-shadow: 0 6px 14px rgba(var(--primary-rgb), .25);
}
.assurance-icon.warm {
  background: var(--gradient-warm);
  box-shadow: 0 6px 14px rgba(179, 49, 26, .25);
}
.assurance-title { font-weight: 700; font-size: .88rem; color: var(--ink); }
.assurance-sub { font-size: .75rem; color: var(--muted); }

/* Fixed-size card; only the text inside scrolls, like a ticker. */
.assurance-text {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; width: max-content;
  animation: assuranceTicker 9s linear infinite;
}
.marquee-track span { white-space: nowrap; padding-right: 2.5rem; }
@keyframes assuranceTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Indian "green dot" vegetarian mark, drawn in CSS rather than an icon font
   so it matches the real regulatory symbol shoppers recognize. */
.veg-mark {
  width: 20px; height: 20px; flex: none; border: 2px solid var(--success);
  border-radius: 3px; display: flex; align-items: center; justify-content: center;
}
.veg-mark::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--success);
}
.assurance-icon.veg { background: #fff; box-shadow: 0 6px 14px rgba(33, 26, 18, .08); }
.assurance-icon.veg { background: #eafaf0; }

/* ============ Category cards ============ */
.category-pill {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 50px;
  padding: .55rem 1.2rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  transition: all .2s ease;
}
.category-pill.active,
.category-pill:hover {
  border-color: transparent;
  background: var(--gradient-brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(var(--primary-rgb), .3);
}

.category-tile {
  display: block; border-radius: var(--radius); padding: 1.6rem 1.2rem;
  background: var(--surface); border: 1px solid var(--border);
  text-align: center; transition: all .25s ease; height: 100%;
}
.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  background: #fff;
  border-color: transparent;
}
.category-tile .cat-icon {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto .9rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-brand); color: #fff; font-size: 1.4rem;
}
.category-tile .cat-name { font-weight: 700; font-size: .92rem; color: var(--ink); }
.category-tile .cat-count { font-size: .76rem; color: var(--muted); }

/* ============ Section headers ============ */
.section-title { font-weight: 800; color: var(--ink); font-size: 1.7rem; letter-spacing: -.02em; }
.section-sub { color: var(--muted); font-size: .98rem; }
.section-kicker {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--primary); margin-bottom: .4rem;
}

/* ============ View switcher ============ */
.view-switcher { display: inline-flex; gap: .4rem; background: var(--surface); padding: .35rem; border-radius: 50px; border: 1px solid var(--border); }
.view-switcher button {
  border: none; background: transparent; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
  transition: all .2s ease; font-size: 1rem;
}
.view-switcher button:hover { color: var(--ink); }
.view-switcher button.active { background: var(--gradient-brand); color: #fff; box-shadow: 0 6px 14px rgba(var(--primary-rgb), .3); }

/* ============ Product Grid card ============ */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .25s cubic-bezier(.16,.8,.28,1), box-shadow .25s ease, border-color .25s ease;
  height: 100%;
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-card .img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface);
  position: relative;
}
.product-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.16,.8,.28,1);
}
.product-card:hover .img-wrap img { transform: scale(1.08) rotate(.3deg); }

.badge-corner {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  font-weight: 700; font-size: .66rem; letter-spacing: .4px;
  padding: .35rem .7rem; border-radius: 50px; color: #fff !important;
  background: var(--gradient-warm) !important; border: none !important;
  text-transform: uppercase;
}
.badge-corner.badge-new { background: var(--gradient-brand) !important; }

.quick-actions {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  display: flex; flex-direction: column; gap: .45rem;
  opacity: 0; transform: translateX(8px);
  transition: all .25s ease;
}
.product-card:hover .quick-actions { opacity: 1; transform: translateX(0); }
.quick-actions button {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
  transition: all .2s ease;
}
.quick-actions button:hover { background: var(--ink); color: #fff; }
.quick-actions button.wishlisted { color: var(--danger); }
.quick-actions button.wishlisted i::before { content: "\f415"; }

.product-card .body { padding: 1.1rem 1.1rem 1.3rem; }
.category-label {
  color: var(--primary); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
}
.product-card .p-name {
  font-weight: 700; color: var(--ink); display: block; margin: .3rem 0 .4rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.price-old { text-decoration: line-through; color: var(--muted-soft); font-size: .85rem; margin-left: .4rem; }
.price-new { font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.rating .bi-star-fill, .rating .bi-star-half { color: var(--accent); }
.rating .bi-star { color: #e3e4ee; }

.add-cart-btn {
  width: 100%; border: none; border-radius: 50px; padding: .6rem 1rem;
  font-weight: 700; font-size: .85rem; background: var(--surface-2); color: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  transition: all .25s ease;
}
.add-cart-btn:hover { background: var(--gradient-brand); color: #fff; box-shadow: 0 8px 18px rgba(var(--primary-rgb), .3); }

/* ============ List view ============ */
.product-list-item {
  display: flex; gap: 1.4rem; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; transition: all .25s ease; align-items: center;
}
.product-list-item:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }
.product-list-item .img-wrap {
  width: 140px; height: 140px; flex: none; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface); position: relative;
}
.product-list-item .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-list-item:hover .img-wrap img { transform: scale(1.06); }
.product-list-item .info { flex: 1; min-width: 0; }
.product-list-item .desc-clip {
  color: var(--muted); font-size: .88rem; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: .4rem 0 .6rem;
}
.product-list-item .actions { flex: none; display: flex; flex-direction: column; gap: .6rem; align-items: stretch; min-width: 150px; }

/* ============ Card (large feature) view ============ */
.product-feature-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all .3s ease; height: 100%; display: flex; flex-direction: column;
}
.product-feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: transparent; }
.product-feature-card .img-wrap { aspect-ratio: 4/3; overflow: hidden; background: var(--surface); position: relative; }
.product-feature-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-feature-card:hover .img-wrap img { transform: scale(1.06); }
.product-feature-card .body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.product-feature-card .desc-clip { color: var(--muted); font-size: .9rem; margin: .5rem 0 1rem; flex: 1; }

/* ============ Carousel view ============ */
.carousel-track-wrap { position: relative; }
.carousel-track {
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem .25rem 1.5rem; scroll-behavior: smooth;
}
.carousel-track::-webkit-scrollbar { height: 8px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
.carousel-track > * { scroll-snap-align: start; flex: 0 0 auto; width: 270px; }
.carousel-nav {
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.carousel-nav:hover { background: var(--ink); color: #fff; }
.carousel-nav.prev { left: -6px; }
.carousel-nav.next { right: -6px; }

/* ============ Filters / sidebar ============ */
.filter-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.filter-card h6 { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 1rem; }
.form-control, .form-select {
  border-radius: 50px; border-color: var(--border); padding: .6rem 1.1rem;
}
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(var(--primary-rgb), .12); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

/* ============ Perks strip ============ */
.perk-band { background: var(--ink); }
.perk { display: flex; align-items: flex-start; gap: .9rem; color: #fff; }
.perk .icon-circle {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: var(--accent);
}
.perk .perk-title { font-weight: 700; font-size: .95rem; }
.perk .perk-sub { color: rgba(255,255,255,.6); font-size: .82rem; }

/* ============ Why Choose Us (premium feature grid) ============ */
.why-choose-band { background: var(--ink); position: relative; overflow: hidden; }
/* Scattered grain-like dots — a nod to rice/wheat, kept subtle and low-opacity */
.grain-texture {
  position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image:
    radial-gradient(ellipse 3px 6px at 8% 22%, #fff, transparent 70%),
    radial-gradient(ellipse 3px 6px at 82% 12%, #fff, transparent 70%),
    radial-gradient(ellipse 3px 6px at 32% 68%, #fff, transparent 70%),
    radial-gradient(ellipse 3px 6px at 64% 52%, #fff, transparent 70%),
    radial-gradient(ellipse 3px 6px at 92% 78%, #fff, transparent 70%),
    radial-gradient(ellipse 3px 6px at 46% 32%, #fff, transparent 70%),
    radial-gradient(ellipse 3px 6px at 14% 86%, #fff, transparent 70%);
  background-size: 240px 240px;
}
.why-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  height: 100%;
  text-align: center;
  transition: transform .3s cubic-bezier(.16,.8,.28,1), box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.why-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,.07);
  border-color: rgba(217,134,10,.4);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.why-blob {
  width: 84px; height: 84px; margin: 0 auto 1.3rem;
  border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: transform .3s ease, border-radius .3s ease;
}
.why-card:hover .why-blob {
  transform: scale(1.08) rotate(-4deg);
  border-radius: 58% 42% 35% 65% / 55% 55% 45% 45%;
}
.why-blob.blob-green { background: var(--gradient-brand); box-shadow: 0 10px 24px rgba(var(--primary-rgb), .4); }
.why-blob.blob-gold { background: var(--gradient-warm); box-shadow: 0 10px 24px rgba(179, 49, 26, .4); }
.why-icon { width: 34px; height: 34px; }
.why-title { color: #fff; font-weight: 800; font-size: 1.02rem; margin-bottom: .5rem; }
.why-sub { color: rgba(255,255,255,.62); font-size: .88rem; margin: 0; }

/* ============ Testimonials ============ */
.testimonial-card {
  background: var(--surface); border-radius: var(--radius); padding: 1.6rem; height: 100%;
  border: 1px solid var(--border); transition: all .25s ease;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: #fff; }
.testimonial-card .quote { font-size: .95rem; color: var(--ink-soft); margin: 1rem 0; }
.testimonial-card .who { font-weight: 700; font-size: .88rem; }
.testimonial-card .role { color: var(--muted); font-size: .78rem; }
.avatar-circle {
  width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-brand);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700;
}

/* ============ Newsletter / promo bands ============ */
.newsletter-band {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #0f4a30 100%);
  border-radius: var(--radius-lg); padding: 3.5rem;
  color: #fff; position: relative; overflow: hidden;
}
/* Faint dotted texture + two soft brand-color blobs, for depth without noise */
.newsletter-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.09) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.newsletter-band::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.06); top: -140px; right: -90px; pointer-events: none;
}
.newsletter-decor {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,134,10,.4), transparent 70%);
  bottom: -130px; left: -90px; pointer-events: none;
}
.newsletter-band > .row { position: relative; z-index: 1; }

.newsletter-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(217,134,10,.18); color: var(--accent-light);
  border: 1px solid rgba(217,134,10,.45);
  font-weight: 700; font-size: .78rem; letter-spacing: .3px;
  padding: .4rem .95rem; border-radius: 50px; margin-bottom: 1rem;
}
.newsletter-title { color: #fff; font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .7rem; letter-spacing: -.02em; }
.newsletter-lead { color: rgba(255,255,255,.82); margin-bottom: 1.4rem; }
.newsletter-benefits { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .65rem; }
.newsletter-benefits li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: rgba(255,255,255,.94); font-weight: 500; }
.newsletter-benefits i { color: var(--accent); font-size: 1.1rem; flex: none; }

.newsletter-card { background: #fff; border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-lg); }
.newsletter-label { display: block; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .5rem; }
.newsletter-form .form-control { border: 1px solid var(--border); padding: .85rem 1.2rem; }
.newsletter-form .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(var(--primary-rgb), .12); }
.newsletter-form .btn-gold {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff; border: none; font-weight: 700; padding: .85rem 1.6rem;
  box-shadow: 0 10px 24px rgba(217,134,10,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.newsletter-form .btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(217,134,10,.42); color: #fff; }
.newsletter-form .btn-gold i { transition: transform .2s ease; }
.newsletter-form .btn-gold:hover i { transform: translateX(3px); }

.newsletter-trust { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted); margin-top: .9rem; }
.newsletter-trust i { color: var(--success); }

.newsletter-social-proof {
  display: flex; align-items: center; gap: .7rem;
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--ink-soft); font-weight: 600;
}
.avatar-stack { display: flex; flex: none; }
.avatar-stack .avatar-circle.small { width: 30px; height: 30px; font-size: .7rem; border: 2px solid #fff; margin-left: -10px; }
.avatar-stack .avatar-circle.small:first-child { margin-left: 0; }

@media (max-width: 767px) {
  .newsletter-benefits li, .newsletter-social-proof { justify-content: center; }
}

.promo-band {
  background: linear-gradient(120deg, var(--accent-dark) 0%, var(--accent) 100%);
  border-radius: var(--radius-lg); padding: 2.5rem 3rem;
  color: #fff; position: relative; overflow: hidden;
}
.promo-band::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,.08); bottom: -140px; left: -60px;
}
.promo-band .btn {
  background: var(--ink); color: #fff; border: none; padding: .85rem 1.8rem; font-weight: 700;
}
.promo-band .btn:hover { background: var(--primary-dark); }

/* ============ Promotional banner (homepage deal, premium) ============ */
.deal-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 60%, #c76f0d 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.deal-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.12) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: .5;
}
.deal-grain { position: absolute; border-radius: 50%; pointer-events: none; }
.deal-grain-1 { width: 240px; height: 240px; background: rgba(255,255,255,.08); top: -100px; right: 8%; }
.deal-grain-2 { width: 180px; height: 180px; background: rgba(20,92,60,.2); bottom: -80px; left: -40px; }
.deal-banner > .row { position: relative; z-index: 1; }

.deal-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(0,0,0,.18); color: #fff;
  font-weight: 700; font-size: .78rem; letter-spacing: .3px;
  padding: .45rem 1rem; border-radius: 50px; margin-bottom: 1rem;
}
.deal-badge i { color: #ffd873; }

.deal-discount { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .3rem; }
.deal-discount-num { font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.deal-discount-num small { font-size: 1.6rem; font-weight: 700; }
.deal-discount-label { font-size: 1.15rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; opacity: .9; }

.deal-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; margin-bottom: .6rem; color: #fff; }
.deal-sub { color: rgba(255,255,255,.9); max-width: 460px; margin-bottom: 1.6rem; }

.deal-cta {
  background: var(--ink); color: #fff; border: none; font-weight: 700;
  padding: .9rem 1.9rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.deal-cta:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 16px 30px rgba(0,0,0,.3); color: #fff; }
.deal-cta i { transition: transform .2s ease; }
.deal-cta:hover i { transform: translateX(3px); }

.deal-urgency { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: rgba(255,255,255,.85); font-weight: 600; }

.deal-visual { position: relative; display: inline-block; }
.deal-visual-ring {
  position: absolute; inset: -14px; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.4);
  animation: spinSlow 22s linear infinite;
}
.deal-product-img {
  width: 220px; height: 220px; object-fit: cover; border-radius: 50%;
  border: 6px solid rgba(255,255,255,.9);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  animation: floatSlow 6s ease-in-out infinite;
}
.deal-tag {
  position: absolute; top: -6px; right: -6px;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.3);
  transform: rotate(12deg);
  animation: floatSlow 6s ease-in-out infinite; animation-delay: .3s;
}
.deal-tag-num { font-weight: 800; font-size: .95rem; line-height: 1; }
.deal-tag-text { font-size: .55rem; font-weight: 700; letter-spacing: 1px; }

@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (max-width: 991px) {
  .deal-banner { padding: 2.2rem 1.6rem; text-align: center; }
  .deal-discount, .deal-badge, .deal-urgency { justify-content: center; }
  .deal-sub { margin-left: auto; margin-right: auto; }
  .deal-visual { margin-top: 2rem; }
}

/* ============ Footer ============ */
footer { background: var(--ink); color: rgba(255,255,255,.65); }
footer a { color: rgba(255,255,255,.85); }
footer a:hover { color: var(--accent); }
footer h6 { color: #fff; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }
footer .navbar-brand { color: #fff !important; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center; color: #fff !important;
  transition: all .2s ease;
}
.social-btn:hover { background: var(--gradient-brand); transform: translateY(-3px); }

/* ============ Toast ============ */
.toast { border-radius: var(--radius-sm) !important; }

/* ============ Cart ============ */
.cart-item {
  transition: background .2s ease;
}
.cart-item img {
  width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.surface-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.summary-sticky { position: sticky; top: 100px; }

/* ============ Breadcrumb ============ */
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--primary); }

/* ============ Product detail ============ */
.gallery-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); aspect-ratio: 1/1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .7rem; margin-top: .8rem; }
.gallery-thumbs button {
  width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--border);
  padding: 0; background: var(--surface); transition: border-color .2s ease;
}
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 50px; overflow: hidden; }
.qty-control button { width: 40px; height: 40px; border: none; background: #fff; font-weight: 700; }
.qty-control button:hover { background: var(--surface); }
.qty-control input { width: 50px; border: none; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.nav-tabs-modern { border-bottom: 1px solid var(--border); gap: 1.5rem; }
.nav-tabs-modern .nav-link {
  border: none; color: var(--muted); font-weight: 700; padding: .8rem 0; background: transparent;
  border-bottom: 2px solid transparent; border-radius: 0;
}
.nav-tabs-modern .nav-link.active { color: var(--ink); border-bottom-color: var(--primary); }

/* ============ Skeleton loading ============ */
.skeleton { position: relative; overflow: hidden; background: var(--surface); }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ============ Responsive ============ */
@media (max-width: 991px) {
  .hero { padding: 2.5rem 0; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 2.5rem; }
  .summary-sticky { position: static; }
}
@media (max-width: 767px) {
  .product-list-item { flex-wrap: wrap; }
  .product-list-item .img-wrap { width: 100%; height: 200px; }
  .product-list-item .actions { min-width: 100%; flex-direction: row; }
  .carousel-track > * { width: 220px; }
  .newsletter-band { padding: 2rem 1.4rem; text-align: center; }
  .promo-band { padding: 2rem 1.4rem; text-align: center; justify-content: center !important; }

  /* Cart rows: stack image+name, then qty/price/remove, instead of
     squeezing everything into one unwrapped flex row. */
  .cart-item { flex-wrap: wrap; row-gap: .75rem; }
  .cart-item img { width: 64px; height: 64px; }
  .cart-item > .flex-grow-1 { flex-basis: calc(100% - 64px - 1rem); }
  .cart-item > .qty-control { margin-left: calc(64px + 1rem) !important; margin-right: 0 !important; }
  .cart-item > .fw-bold { margin-left: auto !important; margin-right: 0 !important; width: auto !important; }
}
@media (max-width: 576px) {
  .hero { padding: 2rem 0; }
  .hero-badge-card { left: 0; right: 0; margin: 0 auto; width: fit-content; }
  .gallery-thumbs { flex-wrap: wrap; }
  .filter-card { padding: 1.1rem; }
}
