/* ============================================================
   Sivakasi Crackers – Festive E-Commerce Styles
   Built on Bootstrap 5 + Bootstrap Icons
   ============================================================ */

:root {
  --sc-maroon: #7f1d1d;
  --sc-maroon-dark: #5b0f1c;
  --sc-red: #dc2626;
  --sc-gold: #f59e0b;
  --sc-gold-light: #fcd34d;
  --sc-orange: #f97316;
  --sc-cream: #fff8ee;
  --sc-ink: #2a1620;
  --sc-muted: #8a6f66;
  --sc-green: #16a34a;
  --sc-whatsapp: #25d366;
  --sc-shadow: 0 10px 30px rgba(123, 22, 40, 0.14);
  --sc-shadow-sm: 0 4px 14px rgba(123, 22, 40, 0.10);
  --sc-radius: 1rem;
  --sc-radius-sm: .65rem;
  --cart-panel-w: 372px;
  --sc-font: "Poppins", "Segoe UI", system-ui, sans-serif;
  --sc-display: "Baloo 2", "Poppins", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sc-font);
  background: var(--sc-cream);
  color: var(--sc-ink);
  overflow-x: hidden;
}

/* ---------------- Typography ---------------- */
h1, h2, h3, h4, h5, .display-font { font-family: var(--sc-display); }
.font-display { font-family: var(--sc-display); }
.section-title {
  position: relative;
  display: inline-block;
  font-weight: 700;
  color: var(--sc-maroon);
  letter-spacing: .3px;
}
.section-title::after {
  content: "";
  display: block;
  width: 74px;
  height: 5px;
  margin: 10px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sc-gold), var(--sc-red));
}
.section-sub { color: var(--sc-muted); font-size: .95rem; }

/* ---------------- Buttons ---------------- */
.btn { border-radius: .7rem; font-weight: 600; }
.btn-gold {
  background: linear-gradient(135deg, var(--sc-gold), var(--sc-orange));
  color: #fff;
  border: 0;
  box-shadow: 0 6px 18px rgba(245, 158, 11, .4);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-gold:hover, .btn-gold:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(245, 158, 11, .5);
}
.btn-maroon {
  background: linear-gradient(135deg, var(--sc-maroon), var(--sc-maroon-dark));
  color: #fff;
  border: 0;
  box-shadow: 0 6px 18px rgba(127, 29, 29, .3);
}
.btn-maroon:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(127, 29, 29, .42); }
.btn-whatsapp {
  background: linear-gradient(135deg, #28d066, var(--sc-whatsapp));
  color: #fff !important;
  border: 0;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .4);
}
.btn-whatsapp:hover, .btn-whatsapp:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 211, 102, .5); }
.btn-outline-maroon { color: var(--sc-maroon); border: 2px solid var(--sc-maroon); }
.btn-outline-maroon:hover { background: var(--sc-maroon); color: #fff; }
.btn-lg-radius { border-radius: 1rem; }

/* ============================================================
   TOP ANNOUNCEMENT BAR
   ============================================================ */
.announce-bar {
  background: linear-gradient(90deg, var(--sc-maroon-dark), var(--sc-red) 50%, var(--sc-maroon-dark));
  color: #ffe9b8;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .4px;
  padding: .42rem .75rem;
  text-align: center;
  position: relative;
  z-index: 1035;
}
.announce-bar .bi { color: var(--sc-gold-light); margin-right: .35rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.site-nav {
  background: rgba(255, 251, 245, .97);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--sc-gold-light);
  box-shadow: 0 4px 22px rgba(123, 22, 40, .08);
  padding-top: .45rem;
  padding-bottom: .45rem;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: #fff;
  background: radial-gradient(circle at 30% 30%, var(--sc-gold), var(--sc-red) 70%);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.25), 0 6px 14px rgba(220,38,38,.35);
}
.brand-name {
  font-family: var(--sc-display);
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--sc-maroon);
  line-height: 1.05;
}
.brand-sub { font-size: .68rem; color: var(--sc-muted); letter-spacing: 2.2px; text-transform: uppercase; font-weight: 600; }

.nav-link {
  color: var(--sc-ink);
  font-weight: 600;
  margin: 0 .15rem;
  border-radius: .55rem;
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover, .nav-link.active { color: var(--sc-red); background: rgba(245, 158, 11, .12); }

.site-nav .navbar-nav {
  flex-direction: row;
  align-items: center;
}
.site-nav .navbar-nav .nav-link { white-space: nowrap; padding: .35rem .55rem; }

.nav-cta-cart {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, var(--sc-maroon), var(--sc-red));
  box-shadow: 0 6px 16px rgba(127, 29, 29, .35);
  transition: transform .15s ease;
}
.nav-cta-cart:hover { transform: scale(1.08); color: #fff; }
.cart-count-badge {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 21px; height: 21px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--sc-gold);
  color: #5b2000;
  font-size: .72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  line-height: 1;
}
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  70% { transform: scale(.92); }
  100% { transform: scale(1); }
}
.cart-count-badge.bump { animation: bump .45s ease; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(245,158,11,.28), transparent 42%),
    radial-gradient(circle at 12% 78%, rgba(220,38,38,.35), transparent 45%),
    linear-gradient(160deg, #2b0a1a 0%, #581018 45%, #7c1d1d 100%);
  padding: 4.6rem 0 5.2rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(3px 3px at 20% 30%, rgba(255,235,180,.9), transparent),
    radial-gradient(2px 2px at 40% 12%, rgba(255,200,90,.8), transparent),
    radial-gradient(3px 3px at 62% 22%, rgba(255,255,255,.7), transparent),
    radial-gradient(2px 2px at 78% 42%, rgba(255,200,90,.9), transparent),
    radial-gradient(3px 3px at 90% 18%, rgba(255,235,180,.8), transparent),
    radial-gradient(2px 2px at 12% 60%, rgba(255,255,255,.6), transparent),
    radial-gradient(4px 4px at 30% 78%, rgba(255,190,80,.75), transparent),
    radial-gradient(2px 2px at 70% 70%, rgba(255,235,180,.8), transparent),
    radial-gradient(3px 3px at 50% 88%, rgba(255,255,255,.55), transparent);
  background-size: 100% 100%;
  animation: twinkle 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes twinkle {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255, 215, 130, .45);
  color: var(--sc-gold-light);
  padding: .38rem 1rem;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  background: linear-gradient(120deg, #ffedd5, #fcd34d 55%, #ffc300);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}
.hero p.lead { color: #ffe9d6; max-width: 640px; }
.hero-mini {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,255,255,.1);
  border: 1px dashed rgba(255, 205, 120, .5);
  padding: .4rem .9rem;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 600;
}
.hero-dots { display: none; }

/* floating crackers illustration */
.hero-visual {
  position: relative;
  height: 100%;
  min-height: 300px;
  display: grid;
  place-items: center;
}
.hero-rocket {
  font-size: clamp(6rem, 12vw, 9rem);
  filter: drop-shadow(0 0 24px rgba(255, 190, 80, .55));
  animation: floaty 3.6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
}
.hero-burst {
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  opacity: 0;
  animation: burst 3s ease-out infinite;
}
@keyframes burst {
  0% { transform: scale(.2); opacity: .95; }
  70% { transform: scale(1.5); opacity: .35; }
  100% { transform: scale(2); opacity: 0; }
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.cat-card {
  position: relative;
  display: block;
  text-decoration: none;
  background: #fff;
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow-sm);
  border: 1px solid rgba(245, 158, 11, .22);
  padding: 1.15rem .9rem;
  text-align: center;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(245,158,11,.08), rgba(220,38,38,.06));
  opacity: 0;
  transition: opacity .2s ease;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--sc-shadow); }
.cat-card:hover::before { opacity: 1; }
.cat-emoji {
  width: 62px; height: 62px;
  margin: 0 auto .6rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  background: radial-gradient(circle at 30% 30%, #fff5dd, var(--sc-gold-light));
  box-shadow: inset 0 -3px 8px rgba(245, 158, 11, .35);
  position: relative;
  z-index: 1;
}
.cat-name { font-weight: 700; font-size: .92rem; color: var(--sc-ink); position: relative; z-index: 1; }
.cat-count { font-size: .76rem; color: var(--sc-muted); position: relative; z-index: 1; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.toolbar-card {
  background: #fff;
  border-radius: var(--sc-radius);
  border: 1px solid rgba(245,158,11,.25);
  box-shadow: var(--sc-shadow-sm);
  padding: 1rem;
}
.filter-chips {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.chip {
  border: 2px solid rgba(127,29,29,.18);
  background: #fff;
  color: var(--sc-ink);
  border-radius: 99px;
  padding: .38rem .95rem;
  font-size: .82rem;
  font-weight: 600;
  transition: all .15s ease;
  cursor: pointer;
}
.chip:hover { border-color: var(--sc-red); color: var(--sc-red); }
.chip.active {
  background: linear-gradient(135deg, var(--sc-maroon), var(--sc-red));
  color: #fff;
  border-color: var(--sc-maroon);
}

.product-col { margin-bottom: 1.5rem; }
.product-card {
  border: 0;
  border-radius: var(--sc-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sc-shadow-sm);
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--sc-shadow); }
.product-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #2a1620;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .product-img { transform: scale(1.06); }
.bg-discount {
  position: absolute;
  top: 12px; left: 12px;
  background: linear-gradient(135deg, #f43f5e, #dc2626);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  padding: .28rem .7rem;
  border-radius: 99px;
  box-shadow: 0 5px 14px rgba(220,38,38,.45);
  letter-spacing: .5px;
  z-index: 2;
}
.badge-code {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(17, 6, 10, .62);
  color: #ffe9b8;
  font-size: .72rem;
  font-weight: 700;
  padding: .22rem .6rem;
  border-radius: 99px;
  backdrop-filter: blur(3px);
  z-index: 2;
}
.product-body { padding: .95rem 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.product-code {
  font-size: .72rem;
  font-weight: 700;
  color: var(--sc-red);
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: .15rem;
}
.product-name {
  font-size: .98rem;
  font-weight: 700;
  color: var(--sc-ink);
  line-height: 1.3;
  min-height: 2.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .25rem;
}
.product-content {
  font-size: .8rem;
  color: var(--sc-muted);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .55rem;
}
.price-row { display: flex; align-items: baseline; gap: .55rem; margin-bottom: .9rem; }
.old-price { color: var(--sc-muted); text-decoration: line-through; font-size: .9rem; }
.new-price { font-family: var(--sc-display); font-weight: 800; font-size: 1.28rem; color: var(--sc-maroon); }
.save-tag { font-size: .72rem; color: var(--sc-green); font-weight: 700; }

.qty-add-row { display: flex; gap: .55rem; align-items: stretch; margin-top: auto; }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 2px solid rgba(127,29,29,.18);
  border-radius: .7rem;
  overflow: hidden;
  background: #fff;
}
.qty-stepper button {
  width: 34px; height: 42px;
  border: 0;
  background: transparent;
  color: var(--sc-maroon);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  transition: background .15s ease;
}
.qty-stepper button:hover { background: rgba(245,158,11,.15); }
.qty-stepper input {
  width: 34px;
  border: 0;
  text-align: center;
  font-weight: 700;
  color: var(--sc-ink);
  background: transparent;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn-add {
  flex: 1;
  background: linear-gradient(135deg, var(--sc-maroon), #b91c1c);
  color: #fff;
  font-weight: 700;
  border-radius: .7rem;
  font-size: .86rem;
  padding: .55rem .6rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-add:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(127,29,29,.35); }

/* ============================================================
   SHOPPING CART PANEL (DESKTOP)
   ============================================================ */
.cart-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: var(--cart-panel-w);
  max-width: 94vw;
  background: #fff;
  z-index: 1070;
  transform: translateX(105%);
  transition: transform .32s cubic-bezier(.32, .72, .28, 1);
  box-shadow: -14px 0 40px rgba(60, 10, 20, .22);
  display: flex;
  flex-direction: column;
  visibility: hidden;
}
.cart-panel.open { transform: translateX(0); visibility: visible; }

.cart-header {
  background: linear-gradient(135deg, var(--sc-maroon), #9a1c1c);
  color: #fff;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header .bi { font-size: 1.5rem; }
.cart-title { font-weight: 800; font-size: 1.05rem; font-family: var(--sc-display); }
.cart-close {
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  display: grid;
  place-items: center;
}
.cart-close:hover { background: rgba(255,255,255,.3); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1rem .4rem;
  background: #fdf6ec;
}
.cart-item {
  display: flex;
  gap: .6rem;
  background: #fff;
  border-radius: .85rem;
  padding: .7rem;
  margin-bottom: .7rem;
  box-shadow: 0 2px 10px rgba(123,22,40,.08);
  border: 1px solid rgba(245,158,11,.16);
  animation: cartIn .3s ease;
}
@keyframes cartIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
.cart-item-img {
  width: 64px; height: 64px;
  flex: 0 0 64px;
  border-radius: .65rem;
  object-fit: cover;
}
.cart-item-main { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--sc-ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-code { font-size: .66rem; color: var(--sc-red); font-weight: 700; }
.cart-item-unit { font-size: .74rem; color: var(--sc-muted); }
.cart-item-rate { font-size: .78rem; }
.cart-item-rate .old { text-decoration: line-through; color: var(--sc-muted); margin-right: .35rem; }
.cart-item-rate .final { font-weight: 800; color: var(--sc-maroon); }
.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  margin-top: .35rem;
}
.cart-qty button {
  width: 26px; height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(127,29,29,.2);
  background: #fff;
  color: var(--sc-maroon);
  font-weight: 800;
  line-height: 1;
}
.cart-qty button:hover { background: rgba(245,158,11,.14); }
.cart-qty span { min-width: 26px; text-align: center; font-weight: 700; font-size: .85rem; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-item-total { font-size: .92rem; font-weight: 800; color: var(--sc-maroon); font-family: var(--sc-display); }
.cart-remove-btn {
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-size: 1rem;
  padding: .1rem .25rem;
}
.cart-remove-btn:hover { color: var(--sc-red); }

.cart-footer {
  padding: .9rem 1rem 1.05rem;
  background: #fff8ee;
  border-top: 2px solid rgba(245,158,11,.28);
}
.cart-summary-line { display: flex; justify-content: space-between; font-size: .88rem; color: var(--sc-ink); }
.cart-grand { font-family: var(--sc-display); font-weight: 800; font-size: 1.35rem; color: var(--sc-maroon); }
.btn-clear-cart { color: #b91c1c; font-size: .8rem; font-weight: 600; background: transparent; border: 0; }

.cart-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--sc-muted);
}
.cart-empty-state .bi { font-size: 3.4rem; color: #e6c9a8; }
.cart-empty-state p { margin-bottom: 1rem; }

/* ============================================================
   MOBILE CART DRAWER (bottom / off-canvas)
   ============================================================ */
.mobile-cart-veil {
  position: fixed;
  inset: 0;
  background: rgba(30, 8, 12, .55);
  z-index: 1060;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  backdrop-filter: blur(2px);
}
.mobile-cart-veil.show { opacity: 1; visibility: visible; }

.mobile-cart-drawer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1070;
  background: #fff;
  border-radius: 1.4rem 1.4rem 0 0;
  box-shadow: 0 -12px 40px rgba(60, 10, 20, .25);
  transform: translateY(105%);
  transition: transform .32s cubic-bezier(.32, .72, .28, 1);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  visibility: hidden;
}
.mobile-cart-drawer.open { transform: translateY(0); visibility: visible; }
.mobile-drawer-grip {
  width: 52px; height: 5px;
  border-radius: 99px;
  background: #e3c9a6;
  margin: .7rem auto .2rem;
}
.mobile-cart-drawer .cart-items { max-height: 40vh; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-zone {
  position: fixed;
  top: 84px; right: 16px;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.crackle-toast {
  background: #fff;
  border: 0;
  border-radius: .9rem;
  box-shadow: 0 10px 30px rgba(60, 10, 20, .2);
  border-left: 5px solid var(--sc-green);
  min-width: 260px;
  max-width: 340px;
  animation: toastIn .35s cubic-bezier(.32,.72,.28,1);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-14px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.toast-icon-pill {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(37, 211, 102, .15);
  color: var(--sc-green);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

/* ============================================================
   SECTIONS / PAGE HEADERS
   ============================================================ */
.page-hero {
  background:
    radial-gradient(circle at 90% 15%, rgba(245,158,11,.3), transparent 40%),
    linear-gradient(150deg, #2b0a1a, #6d111f);
  color: #fff;
  padding: 2.8rem 0;
}
.page-hero h1 { font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); }
.page-hero .breadcrumb-item a { color: var(--sc-gold-light); text-decoration: none; }
.page-hero .breadcrumb-item.active { color: #ffe9d6; }

.feature-card {
  background: #fff;
  border-radius: var(--sc-radius);
  border: 1px solid rgba(245,158,11,.2);
  box-shadow: var(--sc-shadow-sm);
  height: 100%;
  padding: 1.4rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--sc-shadow); }
.feature-icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, var(--sc-gold), var(--sc-red));
  margin-bottom: .9rem;
}

/* ============================================================
   ABOUT / CONTACT
   ============================================================ */
.brand-story {
  background: radial-gradient(circle at 80% 20%, rgba(245,158,11,.25), transparent 45%), #fff;
  border-radius: var(--sc-radius);
  border: 1px solid rgba(245,158,11,.22);
  box-shadow: var(--sc-shadow-sm);
  padding: 2rem;
}
.contact-card {
  background: #fff;
  border-radius: var(--sc-radius);
  border: 1px solid rgba(245,158,11,.22);
  box-shadow: var(--sc-shadow-sm);
  padding: 1.5rem;
  height: 100%;
}
.contact-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(245,158,11,.15);
  color: var(--sc-maroon);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: .8rem;
}
.wa-float {
  position: fixed;
  left: 18px; bottom: 20px;
  z-index: 1055;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ee06e, #1ebe5d);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .5);
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.1); color: #fff; }

.safety-banner {
  background: linear-gradient(135deg, #fff7e6, #ffecd6);
  border: 2px solid rgba(245,158,11,.35);
  border-radius: var(--sc-radius);
  padding: 1.4rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(160deg, #260a16, #4a0f1a);
  color: #efd9c0;
  margin-top: 3.5rem;
}
.site-footer a { color: #f6c96f; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-title {
  font-family: var(--sc-display);
  color: #ffd98a;
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: .9rem;
  position: relative;
  padding-bottom: .4rem;
}
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 99px; background: var(--sc-gold); }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .5rem; font-size: .9rem; }
.footer-list .bi { margin-right: .4rem; color: var(--sc-gold); }
.footer-bottom { border-top: 1px solid rgba(255, 217, 138, .2); font-size: .82rem; color: #c9a98a; }

/* ============================================================
   WHATSAPP ORDER MODAL
   ============================================================ */
.order-modal .modal-content { border: 0; border-radius: 1.2rem; overflow: hidden; }
.order-modal .modal-header {
  background: linear-gradient(135deg, var(--sc-maroon), #9a1c1c);
  color: #fff;
  border: 0;
}
.order-modal .modal-header .btn-close { filter: invert(1); }
.order-modal .form-control, .order-modal .form-select {
  border-radius: .7rem;
  border: 1.5px solid rgba(127,29,29,.18);
  padding: .65rem .8rem;
  font-size: .92rem;
}
.order-modal .form-control:focus, .order-modal .form-select:focus {
  border-color: var(--sc-gold);
  box-shadow: 0 0 0 .25rem rgba(245,158,11,.18);
}
.order-modal textarea.form-control { min-height: 84px; }
.field-label { font-size: .8rem; font-weight: 700; color: var(--sc-ink); margin-bottom: .3rem; }
.field-label .req { color: var(--sc-red); }

/* ============================================================
   CART PAGE (standalone)
   ============================================================ */
.cart-page-table th, .cart-page-table td { vertical-align: middle; }
.cart-page-table img { width: 56px; height: 56px; object-fit: cover; border-radius: .6rem; }
.order-summary-card {
  background: #fff;
  border-radius: var(--sc-radius);
  border: 1px solid rgba(245,158,11,.25);
  box-shadow: var(--sc-shadow-sm);
  padding: 1.4rem;
  position: sticky;
  top: 92px;
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-body {
  background: #f4efe8;
  padding-top: 4.2rem;
}
.admin-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1040;
  background: #fff;
  border-bottom: 2px solid var(--sc-gold-light);
  box-shadow: 0 4px 20px rgba(123,22,40,.08);
}
.admin-brand { display: flex; align-items: center; gap: .55rem; font-family: var(--sc-display); font-weight: 800; color: var(--sc-maroon); }
.admin-brand .brand-mark { width: 38px; height: 38px; font-size: 1.15rem; }

.admin-sidebar {
  position: fixed;
  top: 66px; left: 0; bottom: 0;
  width: 250px;
  background: linear-gradient(180deg, #3c0c18, #260a16);
  padding: 1rem .9rem;
  overflow-y: auto;
  z-index: 1035;
}
.admin-sidebar .nav-item { margin-bottom: .2rem; }
.admin-sidebar .nav-link {
  color: #eacdaa;
  border-radius: .7rem;
  padding: .62rem .85rem;
  font-size: .9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0;
}
.admin-sidebar .nav-link .bi { font-size: 1.1rem; }
.admin-sidebar .nav-link:hover { color: #fff; background: rgba(245,158,11,.16); }
.admin-sidebar .nav-link.active { color: #fff; background: linear-gradient(135deg, var(--sc-gold), var(--sc-orange)); box-shadow: 0 6px 16px rgba(245,158,11,.4); }
.admin-content {
  margin-left: 250px;
  padding: 1.4rem;
}
@media (max-width: 991.98px) {
  .admin-sidebar {
    position: static;
    width: 100%;
    top: 0;
    display: flex;
    gap: .3rem;
    flex-wrap: wrap;
    height: auto;
    overflow: visible;
    padding: .6rem;
  }
  .admin-sidebar .nav-item { margin: 0; }
  .admin-content { margin-left: 0; padding: 1rem; }
  .admin-body { padding-top: 0; }
}
.admin-topbar .admin-title { font-family: var(--sc-display); font-weight: 700; }

.stat-card {
  background: #fff;
  border-radius: var(--sc-radius);
  border: 1px solid rgba(245,158,11,.2);
  box-shadow: var(--sc-shadow-sm);
  padding: 1.2rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  transition: transform .18s ease;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-icon {
  width: 56px; height: 56px;
  flex: 0 0 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #fff;
}
.stat-value { font-family: var(--sc-display); font-weight: 800; font-size: 1.7rem; color: var(--sc-ink); line-height: 1.1; }
.stat-label { color: var(--sc-muted); font-size: .82rem; font-weight: 600; }

.admin-card {
  background: #fff;
  border-radius: var(--sc-radius);
  border: 1px solid rgba(245,158,11,.2);
  box-shadow: var(--sc-shadow-sm);
}
.admin-card .card-header-custom {
  padding: 1rem 1.25rem;
  border-bottom: 1.5px solid rgba(245,158,11,.18);
  font-family: var(--sc-display);
  font-weight: 700;
  color: var(--sc-maroon);
}
.admin-table { font-size: .86rem; margin: 0; }
.admin-table thead th {
  background: #fff4e0;
  color: var(--sc-maroon);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  white-space: nowrap;
}
.admin-table td { vertical-align: middle; }

.badge-status {
  font-size: .72rem;
  font-weight: 700;
  border-radius: 99px;
  white-space: nowrap;
}
.order-row { transition: background .15s ease; }
.order-row:hover { background: #fff6e6; }

.admin-img-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: .55rem; }

.pill-cat { background: rgba(127,29,29,.08); color: var(--sc-maroon); border-radius: 99px; padding: .2rem .7rem; font-size: .76rem; font-weight: 700; }

.status-picker {
  border: 1.5px solid rgba(127,29,29,.2);
  border-radius: .55rem;
  padding: .25rem .5rem;
  font-size: .78rem;
  font-weight: 600;
}

.chat-bubble {
  background: #e7ffec;
  border: 1.5px solid rgba(37,211,102,.3);
  border-radius: 1rem;
  padding: 1rem;
  font-size: .84rem;
  white-space: pre-wrap;
  line-height: 1.55;
}

.count-bar { height: 10px; border-radius: 99px; }

/* ---- Admin login ---- */
.login-page {
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 20% 10%, #3c0c18 0%, #260a16 55%, #1a0509 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem 2rem 1.6rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  border: 1px solid rgba(245, 158, 11, .3);
}
.login-mark {
  width: 60px; height: 60px;
  font-size: 1.8rem;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sc-maroon), var(--sc-red));
  color: #fff;
  box-shadow: 0 10px 24px rgba(127, 29, 29, .4);
}
.demo-hint {
  background: #fff6e6;
  border: 1px dashed rgba(245, 158, 11, .5);
  color: var(--sc-muted);
}
.demo-hint code { color: var(--sc-maroon); background: #ffe9c4; }
@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}
.login-card.shake { animation: loginShake .45s ease; }

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (min-width: 992px) {
  .mobile-cart-drawer, .mobile-cart-veil { display: none !important; }
}
@media (max-width: 991.98px) {
  .cart-panel { display: none !important; }
  .slide-content-right { padding-right: 0 !important; }
  .toast-zone { top: 70px; left: 12px; right: 12px; }
  .product-name { min-height: 0; }
  .product-col { margin-bottom: .9rem; }
  .qty-add-row { flex-wrap: wrap; }
  .btn-add { flex: 1 1 100%; }
  .page-hero { text-align: center; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 1.02rem; }
  .brand-sub { letter-spacing: 1.4px; }
  .new-price { font-size: 1.12rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}

/* ============================================================
   HOME QUICK-ORDER SHOP (sidebar + centre grid + side cart)
   ============================================================ */
.shop-wrap { align-items: flex-start; }

/* ---- Left category sidebar ---- */
.cat-sidebar .cat-sidebar-card {
  position: sticky;
  top: 82px;
  background: #fff;
  border-radius: var(--sc-radius);
  border: 1.5px solid rgba(245,158,11,.22);
  box-shadow: var(--sc-shadow-sm);
  overflow: hidden;
}
.cat-sidebar-head {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .9rem 1rem .65rem;
  font-family: var(--sc-display);
  font-weight: 700;
  color: var(--sc-maroon);
  border-bottom: 1.5px solid rgba(245,158,11,.16);
}
.cat-sidebar-head .bi { color: var(--sc-orange); }
.cat-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: .6rem .6rem .75rem;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}
.cat-sidebar .chip {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  text-align: left;
  border-radius: .8rem;
  padding: .48rem .7rem;
  font-size: .82rem;
  font-weight: 600;
  border: 1.5px solid rgba(127,29,29,.16);
  line-height: 1.3;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.cat-sidebar .chip:hover { transform: translateX(3px); border-color: var(--sc-red); color: var(--sc-red); }
.cat-sidebar .chip.active:hover { transform: none; color: #fff; }
.cat-sidebar .chip .chip-emoji { font-size: 1.05rem; }
.cat-sidebar .chip .chip-name { flex: 1; min-width: 0; }
.cat-sidebar .chip .chip-count {
  flex: 0 0 auto;
  font-size: .66rem;
  font-weight: 700;
  color: var(--sc-maroon);
  background: rgba(127,29,29,.08);
  border-radius: 99px;
  padding: .12rem .5rem;
}
.cat-sidebar .chip.active .chip-count { background: rgba(255,255,255,.28); color: #fff; }

/* ---- Centre product grid: compact cards, more columns, shorter page ---- */
.shop-center .product-col { width: 50%; margin-bottom: .85rem; }
@media (min-width: 768px) and (max-width: 991.98px) {
  .shop-center .product-col { width: 33.3333%; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .shop-center .product-col { width: 33.3333%; }
}
@media (min-width: 1200px) {
  .shop-center .product-col { width: 25%; }
}

/* ---- Right side cart ---- */
.cart-side .cart-side-card {
  position: sticky;
  top: 82px;
  background: #fff;
  border-radius: var(--sc-radius);
  border: 1.5px solid rgba(245,158,11,.3);
  box-shadow: var(--sc-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cart-side .cart-items {
  max-height: calc(100vh - 420px);
  min-height: 190px;
  flex: 1 1 auto;
  overflow-y: auto;
}
.cart-side .cart-footer { padding: .8rem .9rem .95rem; }

/* ---- Mobile: sidebar becomes horizontal chip scroller, side cart hidden ---- */
@media (max-width: 991.98px) {
  .cat-sidebar .cat-sidebar-card { position: static; box-shadow: none; border-radius: .9rem; }
  .cat-sidebar-list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding: .5rem .6rem .7rem;
  }
  .cat-sidebar .chip {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: .4rem .85rem;
  }
  .cat-sidebar .chip:hover { transform: none; }
}

/* ---- Compact home cards (smaller images + tighter spacing) ---- */
.shop-center .product-img-wrap { aspect-ratio: 1 / 1; }
@media (max-width: 767.98px) {
  .shop-center .product-img-wrap { aspect-ratio: 4 / 3; }
}
.shop-center .product-card { border-radius: calc(var(--sc-radius) - 4px); }
.shop-center .product-card:hover { transform: translateY(-3px); }
.shop-center .bg-discount { top: 8px; left: 8px; font-size: .66rem; padding: .2rem .55rem; }
.shop-center .badge-code { bottom: 8px; right: 8px; font-size: .62rem; padding: .16rem .5rem; }
.shop-center .product-body { padding: .55rem .6rem .6rem; }
.shop-center .product-code { font-size: .64rem; margin-bottom: .1rem; }
.shop-center .product-name {
  font-size: .84rem;
  line-height: 1.25;
  min-height: 2.1rem;
  margin-bottom: .15rem;
}
.shop-center .product-content { font-size: .7rem; margin-bottom: .3rem; }
.shop-center .price-row { gap: .35rem; margin-bottom: .5rem; }
.shop-center .old-price { font-size: .74rem; }
.shop-center .new-price { font-size: 1.02rem; }
.shop-center .save-tag { font-size: .64rem; }
.shop-center .qty-add-row { gap: .4rem; }
.shop-center .qty-stepper { border-radius: .55rem; }
.shop-center .qty-stepper button { width: 26px; height: 32px; font-size: .95rem; }
.shop-center .qty-stepper input { width: 26px; }
.shop-center .btn-add { font-size: .74rem; padding: .4rem .45rem; border-radius: .55rem; }

/* ---- View toggle + list rows (home) ---- */
.view-toggle .btn-group .btn.active {
  background: var(--sc-maroon);
  color: #fff;
  border-color: var(--sc-maroon);
}
.view-toggle .btn-group .btn { border-width: 2px; }

.list-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: #fff;
  border: 1.5px solid rgba(127,29,29,.1);
  border-radius: calc(var(--sc-radius) - 4px);
  box-shadow: var(--sc-shadow-sm);
  padding: .45rem .6rem .45rem .45rem;
  margin-bottom: .5rem;
  transition: box-shadow .15s ease, transform .15s ease;
}
.list-row:hover { box-shadow: var(--sc-shadow); transform: translateY(-1px); }
.lr-thumb {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 48px;
  border-radius: .5rem;
  overflow: hidden;
  background: #2a1620;
}
.lr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lr-thumb .bg-discount { top: 4px; left: 4px; font-size: .6rem; padding: .13rem .38rem; }
.lr-main { flex: 1; min-width: 0; }
.lr-code {
  font-size: .64rem;
  font-weight: 700;
  color: var(--sc-red);
  letter-spacing: .6px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lr-name {
  font-size: .85rem;
  font-weight: 700;
  color: var(--sc-ink);
  line-height: 1.25;
  margin: .05rem 0 .12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lr-prices { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.lr-actions { display: flex; align-items: center; gap: .45rem; flex: 0 0 auto; }
.list-row .qty-stepper { border-radius: .55rem; }
.list-row .qty-stepper button { width: 26px; height: 32px; font-size: .95rem; }
.list-row .qty-stepper input { width: 26px; }
.list-row .btn-add {
  flex: 0 0 auto;
  font-size: .76rem;
  padding: .4rem .6rem;
  border-radius: .55rem;
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .list-row { flex-wrap: wrap; gap: .45rem .6rem; }
  .lr-actions { width: 100%; justify-content: flex-end; padding-left: calc(64px + .6rem); }
}

/* ============================================================
   PHONE-SIZE POLISH (nav fit, touch targets, order sheet)
   ============================================================ */
@media (max-width: 575.98px) {
  .site-nav .container { flex-wrap: nowrap; padding-right: .6rem; padding-left: .6rem; gap: .3rem; }
  .site-nav .brand-sub { display: none; }
  .site-nav .brand-name { font-size: 1rem; white-space: nowrap; }
  .brand-mark { width: 38px; height: 38px; font-size: 1.2rem; border-radius: 10px; }
  .site-nav .navbar-nav { gap: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .site-nav .navbar-nav::-webkit-scrollbar { display: none; }
  .site-nav .navbar-nav .nav-link { padding: .34rem .42rem; font-size: .88rem; margin: 0; }
  .site-nav .nav-cta-cart { width: 40px; height: 40px; font-size: 1.1rem; flex: 0 0 auto; }

  .shop-center .qty-stepper button,
  .list-row .qty-stepper button { width: 30px; height: 40px; font-size: .95rem; }
  .shop-center .qty-stepper input,
  .list-row .qty-stepper input { width: 30px; font-size: .9rem; }
  .shop-center .btn-add,
  .list-row .btn-add { min-height: 40px; }

  .shop-center .toolbar-card .badge { display: none; }

  .order-modal .modal-dialog { align-items: flex-end; margin: 0; }
  .order-modal .modal-content { border-radius: 1.25rem 1.25rem 0 0; }
  .order-modal .modal-body { max-height: 62vh; overflow-y: auto; }
}