/* ==========================================================
   SchoolNotes - design tokens
   Notebook / study-binder identity: warm paper background,
   ruled-line texture, binder-tab section nav, index-card products.
   ========================================================== */
:root {
  --navy: #14335c;
  --navy-light: #1e4a82;
  --blue: #1A67C4;
  --paper: #FBF8F2;
  --paper-line: #E5DCC8;
  --ink: #232733;
  --ink-soft: #5C6270;
  --mustard: #E8A93A;
  --mustard-dark: #C9860F;
  --green: #2E7D32;
  --red: #dc2626;
  --card-shadow: 0 2px 10px rgba(20, 51, 92, 0.08);
  --card-shadow-lg: 0 12px 32px rgba(20, 51, 92, 0.14);
  --radius: 10px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  background-image: repeating-linear-gradient(
    to bottom, transparent, transparent 35px, var(--paper-line) 36px
  );
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, .logo-text { font-family: 'Poppins', Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------------- Top announcement bar (animated rotator) ---------------- */
.topbar { background: linear-gradient(120deg, var(--mustard-dark), #B8790A); color: #fff; font-size: 0.78rem; font-weight: 600; overflow: hidden; }
.topbar-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 20px; gap: 10px; }
.topbar-right { opacity: 0.95; white-space: nowrap; flex-shrink: 0; }
.offer-rotator { position: relative; height: 18px; flex: 1; min-width: 0; overflow: hidden; }
.offer-slide {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 6px; white-space: nowrap;
  opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease;
}
.offer-slide.active { opacity: 1; transform: translateY(0); }
.offer-slide strong { text-decoration: underline; text-underline-offset: 2px; }

/* ---------------- Header ---------------- */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 40; transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.header-row { display: flex; align-items: center; gap: 24px; padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  background: var(--mustard); color: var(--navy); font-weight: 800; font-size: 0.95rem;
  width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  transform: rotate(-4deg);
}
.logo-img {
  width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
  background: #fff; padding: 2px; box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.footer-grid .logo-img, .admin-sidebar .brand .logo-img { background: #fff; }
.logo-text { font-weight: 700; font-size: 1.15rem; color: #fff; }
.header-search-wrap { position: relative; flex: 1; max-width: 480px; }
.header-search { display: flex; background: #fff; border-radius: 8px; overflow: hidden; }
.header-search input { flex: 1; border: 0; padding: 10px 14px; font-size: 0.92rem; font-family: inherit; }
.header-search button { border: 0; background: var(--mustard); padding: 0 16px; cursor: pointer; color: var(--navy); }

/* Live search dropdown (shared by desktop header + mobile search bar) */
.mobile-search-wrap { position: relative; }
.live-search-dropdown {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60;
  background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow-lg); border: 1px solid var(--paper-line);
  max-height: 420px; overflow-y: auto; text-align: left;
}
.live-search-dropdown.open { display: block; }
.live-search-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--paper-line); color: var(--ink); }
.live-search-item:last-of-type { border-bottom: none; }
.live-search-item:hover { background: var(--paper); }
.live-search-thumb { width: 48px; height: 40px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.live-search-thumb .cover-photo, .live-search-thumb .cover-icon { width: 100%; height: 100%; }
.live-search-thumb .cover-icon i { font-size: 1.2rem; }
.live-search-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.live-search-name { font-size: 0.85rem; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-search-meta { font-size: 0.72rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-search-rating { font-size: 0.72rem; }
.live-search-rating .stars i { font-size: 0.68rem; color: var(--mustard); }
.live-search-price { text-align: right; flex-shrink: 0; }
.live-search-price .price { display: block; font-weight: 700; color: var(--navy); font-size: 0.85rem; }
.live-search-price .off { display: block; font-size: 0.66rem; color: var(--green); font-weight: 700; }
.live-search-viewall { display: block; text-align: center; padding: 10px; font-size: 0.82rem; font-weight: 700; color: var(--blue); background: var(--paper); }
.live-search-empty { padding: 16px; text-align: center; color: var(--ink-soft); font-size: 0.85rem; }
.header-nav { display: flex; align-items: center; gap: 18px; font-size: 0.92rem; font-weight: 500; flex-shrink: 0; }
.header-nav a { opacity: 0.92; white-space: nowrap; }
.header-nav a:hover { opacity: 1; text-decoration: underline; }
.header-nav i { margin-right: 4px; }
.cart-link span { background: var(--mustard); color: var(--navy); font-weight: 700; border-radius: 999px; padding: 1px 7px; font-size: 0.78rem; margin-left: 2px; }
.btn-ghost-sm { border: 1px solid rgba(255,255,255,0.5); border-radius: 6px; padding: 6px 14px !important; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.3rem; padding: 6px 8px; cursor: pointer; }
.mobile-cart { display: none; color: #fff; position: relative; font-size: 1.2rem; }
.mobile-cart span { position: absolute; top: -6px; right: -10px; background: var(--mustard); color: var(--navy); font-weight: 700; border-radius: 999px; padding: 0 5px; font-size: 0.65rem; }
.mobile-search { display: none; padding: 0 20px 12px; }
.mobile-search { gap: 8px; }
.mobile-search input { flex: 1; border: 0; border-radius: 8px; padding: 10px 14px; font-family: inherit; }
.mobile-search button { border: 0; background: var(--mustard); border-radius: 8px; padding: 0 16px; color: var(--navy); }
.mobile-nav { display: none; flex-direction: column; background: var(--navy); padding: 10px 20px 16px; }
.mobile-nav a { color: #fff; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.12); font-weight: 500; }
.mobile-nav a i { width: 22px; margin-right: 6px; }
.mobile-nav.open { display: flex; }

/* Binder-tab section navigation */
.section-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 10px 20px 0;
  background: var(--paper); border-bottom: 3px solid var(--navy);
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.section-tabs .tab {
  flex: 0 0 auto; background: #fff; border: 1px solid var(--paper-line); border-bottom: none;
  padding: 8px 16px; border-radius: 8px 8px 0 0; font-size: 0.85rem; font-weight: 600;
  color: var(--navy); white-space: nowrap; box-shadow: 0 -2px 4px rgba(0,0,0,0.03);
  transition: background .15s ease;
}
.section-tabs .tab:hover { background: var(--mustard); color: var(--navy); }

/* ---------------- Hero ---------------- */
.hero {
  padding: 60px 0 70px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #EFF4FB 0%, var(--paper) 55%, var(--paper) 100%);
}
.hero-bg-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg-shapes .shape { position: absolute; border-radius: 50%; opacity: 0.10; filter: blur(2px); animation: heroFloat 7s ease-in-out infinite; }
.shape-1 { width: 380px; height: 380px; background: var(--blue); top: -140px; right: -90px; }
.shape-2 { width: 240px; height: 240px; background: var(--mustard); bottom: -90px; left: -60px; animation-delay: 1.2s; }
.shape-3 { width: 150px; height: 150px; background: var(--green); top: 55%; right: 8%; opacity: .08; animation-delay: 2.4s; }
.hero-grid-lines {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(circle, rgba(20,51,92,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero-glow {
  position: absolute; top: -20%; left: 50%; width: 620px; height: 620px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(26,103,196,0.10), transparent 65%); pointer-events: none;
}
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
/* Respect reduced-motion + skip GPU-heavy blur/animation on phones so the
   hero paints fast and doesn't jank on lower-end devices. */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-shapes .shape, .hero-float-badge { animation: none; }
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--paper-line);
  color: var(--mustard-dark); font-weight: 700; font-size: 0.8rem; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 14px; box-shadow: var(--card-shadow);
}
.hero h1 { font-size: 2.75rem; line-height: 1.15; margin: 0 0 10px; color: var(--navy); letter-spacing: -0.01em; }
.hero h1 .accent { color: var(--mustard-dark); position: relative; }
/* Short, punchy tagline replaces the old long sentence-style subtitle */
.hero-tagline { font-size: 1.02rem; color: var(--ink-soft); margin: 0 0 16px; font-weight: 500; }
.hero-chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--paper-line);
  color: var(--navy); font-size: 0.76rem; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  box-shadow: var(--card-shadow);
}
.hero-chip i { color: var(--blue); font-size: 0.75rem; }
.hero-social-proof { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; flex-wrap: wrap; }
.hero-social-proof strong { color: var(--navy); }
.avatar-stack { display: inline-flex; }
.avatar-stack i { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.8rem; font-style: normal; border: 2px solid #fff; margin-left: -10px; box-shadow: 0 2px 4px rgba(0,0,0,0.15); }
.avatar-stack i:first-child { margin-left: 0; }
.hero-stats { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; color: var(--navy); font-family: 'Poppins', sans-serif; }
.hero-stats span { font-size: 0.8rem; color: var(--ink-soft); }
.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,0.88); backdrop-filter: blur(6px); border-radius: var(--radius-lg); box-shadow: var(--card-shadow-lg);
  border: 1px solid rgba(255,255,255,0.6); padding: 28px; position: relative; z-index: 2;
}
.hero-card h3 { margin: 0 0 16px; color: var(--navy); font-size: 1.05rem; }
.filter-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.filter-form select { grid-column: span 1; padding: 11px 12px; border-radius: 7px; border: 1px solid var(--paper-line); font-family: inherit; background: var(--paper); }
.filter-form button { grid-column: span 2; }
.hero-card-trust { display: flex; justify-content: space-between; margin-top: 16px; font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; }
.hero-card-trust i { color: var(--green); margin-right: 4px; }
.hero-float-badge {
  position: absolute; background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 0.78rem; font-weight: 700;
  color: var(--navy); box-shadow: var(--card-shadow-lg); display: flex; align-items: center; gap: 6px; z-index: 3;
  animation: heroFloat 6s ease-in-out infinite;
}
.hero-float-badge i { color: var(--green); }
.badge-top { top: -14px; right: 10px; animation-delay: 0.5s; }
.badge-bottom { bottom: -16px; left: -10px; animation-delay: 1.6s; }
.badge-bottom i { color: var(--mustard-dark); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center; background: var(--blue); color: #fff; font-weight: 600;
  padding: 11px 22px; border-radius: 8px; border: 0; cursor: pointer; font-size: 0.95rem;
  font-family: inherit; transition: transform 0.12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--navy); box-shadow: 0 6px 16px rgba(20,51,92,0.2); }
.btn-mustard { background: var(--mustard); color: var(--navy); }
.btn-mustard:hover { background: var(--mustard-dark); color: #fff; }
.btn-block { width: 100%; text-align: center; }
.btn-outline { background: transparent; border: 1.5px solid var(--blue); color: var(--blue); }
.btn-outline-light { background: rgba(255,255,255,0.5); border: 1.5px solid var(--navy); color: var(--navy); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.buy-btn.added { background: var(--green) !important; color: #fff !important; }

/* ---------------- Promo banners ---------------- */
.promo-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0; }
.promo-banner {
  color: #fff; border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px;
  min-height: 150px; position: relative; overflow: hidden; box-shadow: var(--card-shadow-lg); transition: transform .15s ease;
}
.promo-banner:hover { transform: translateY(-3px); }
.promo-banner i:first-child { font-size: 1.8rem; opacity: 0.9; }
.promo-banner h4 { margin: 0 0 4px; font-size: 1.1rem; }
.promo-banner p { margin: 0; font-size: 0.85rem; opacity: 0.92; }
.promo-btn { margin-top: auto; font-weight: 700; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; }

/* ---------------- Section grid (index-card style) ---------------- */
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 46px 0 18px; flex-wrap: wrap; gap: 8px; }
.section-heading h2 { color: var(--navy); font-size: 1.5rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.section-heading a { color: var(--blue); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 4px; }

.sections-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.section-card {
  background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius-lg);
  padding: 22px 20px; box-shadow: var(--card-shadow); position: relative; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.section-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-lg); }
.section-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: var(--mustard);
}
.section-card-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff;
  font-size: 1.15rem; margin-bottom: 12px; margin-left: 8px;
}
.section-card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--navy); padding-left: 8px; }
.section-card p { margin: 0 0 10px; font-size: 0.86rem; color: var(--ink-soft); padding-left: 8px; min-height: 2.6em; }
.section-card .count { font-size: 0.78rem; color: var(--mustard-dark); font-weight: 700; padding-left: 8px; display: inline-flex; align-items: center; gap: 4px; }

/* ---------------- Product grid / cards ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--card-shadow); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-lg); }
.product-card .thumb { aspect-ratio: 3/2; overflow: hidden; background: var(--navy); position: relative; display: block; }
.product-card .thumb img, .cover-photo { width: 100%; height: 100%; object-fit: cover; }
.cover-icon { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.cover-icon i { font-size: 2.6rem; color: rgba(255,255,255,0.92); }
.pc-badge {
  position: absolute; top: 10px; left: 10px; background: var(--navy); color: #fff; font-size: 0.68rem;
  font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em;
}
.pc-off {
  position: absolute; top: 10px; right: 10px; background: var(--red); color: #fff; font-size: 0.68rem;
  font-weight: 800; padding: 4px 9px; border-radius: 6px; white-space: nowrap; max-width: calc(100% - 20px);
}
.wishlist-heart {
  position: absolute; top: 46px; right: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-soft); font-size: 0.95rem; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform .12s ease, color .12s ease;
}
.wishlist-heart:hover { transform: scale(1.1); }
.wishlist-heart.active, .wishlist-heart.active i { color: #dc2626; }
.wishlist-heart.active { animation: heart-pop .3s ease; }
@keyframes heart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
.product-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .tag { font-size: 0.72rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.02em; }
.product-card h4 { margin: 0; font-size: 0.95rem; line-height: 1.35; color: var(--ink); min-height: 2.6em; }
.product-card h4 a:hover { color: var(--blue); }
.product-card .meta { font-size: 0.8rem; color: var(--ink-soft); }
.pc-rating { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--ink-soft); flex-wrap: wrap; }
.pc-rating .stars i { color: var(--mustard-dark); font-size: 0.78rem; margin-right: 1px; }
.pc-rating-num { font-weight: 700; color: var(--ink); }
/* flex-wrap so "X% off" never gets clipped on narrow cards - it simply
   drops to its own line instead of being cut off or overflowing the card */
.product-card .price-row { display: flex; align-items: center; gap: 6px 8px; margin-top: auto; flex-wrap: wrap; }
.product-card .price { font-weight: 800; color: var(--navy); font-size: 1.05rem; white-space: nowrap; }
.product-card .mrp { text-decoration: line-through; color: var(--ink-soft); font-size: 0.85rem; white-space: nowrap; }
.product-card .price-row .badge { white-space: nowrap; flex-shrink: 0; }
.product-card .buy-btn { margin-top: 0; flex: 1; }
/* Symbolic add-to-cart (icon-only) + full Buy Now, side by side */
.pc-cta-row { display: flex; align-items: stretch; gap: 8px; margin-top: 8px; }
.btn-icon-cart {
  flex-shrink: 0; width: 42px; border: 1.5px solid var(--paper-line); background: #fff; color: var(--blue);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem;
  cursor: pointer; transition: background .15s ease, color .15s ease, transform .12s ease;
}
.btn-icon-cart:hover { background: var(--blue); color: #fff; }
.btn-icon-cart.added { background: var(--green); color: #fff; border-color: var(--green); }
.btn-icon-cart:active { transform: scale(0.92); }
.btn-icon-cart-lg { width: 54px; height: 54px; font-size: 1.25rem; border-radius: 10px; }

/* ---------------- Why choose us ---------------- */
.why-us { margin: 56px 0 20px; padding: 36px; background: linear-gradient(135deg, var(--navy), var(--navy-light)); border-radius: var(--radius-lg); color: #fff; }
.why-us .section-heading h2 { color: #fff; }
.why-us-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.why-card { background: rgba(255,255,255,0.08); border-radius: var(--radius); padding: 20px; text-align: left; }
.why-card i { font-size: 1.6rem; color: var(--mustard); margin-bottom: 10px; }
.why-card h4 { margin: 0 0 6px; font-size: 1rem; }
.why-card p { margin: 0; font-size: 0.85rem; opacity: 0.85; line-height: 1.5; }

/* ---------------- Testimonials ---------------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--card-shadow); }
.testimonial-card .stars i { color: var(--mustard-dark); font-size: 0.85rem; }
.testimonial-card p { font-size: 0.92rem; color: var(--ink); margin: 12px 0 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-author .avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--navy); }
.testimonial-author span { font-size: 0.78rem; }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); margin-bottom: 10px; padding: 4px 20px; }
.faq-item summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { transition: transform .2s ease; color: var(--ink-soft); font-size: 0.85rem; }
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-item p { margin: 0 0 16px; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------------- Newsletter CTA ---------------- */
.newsletter-cta { background: linear-gradient(120deg, var(--mustard-dark), var(--mustard)); margin-top: 60px; padding: 34px 0; }
.newsletter-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.newsletter-row h3 { margin: 0 0 4px; color: var(--navy); font-size: 1.2rem; }
.newsletter-row .muted { color: rgba(20,51,92,0.75); }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input { padding: 12px 16px; border-radius: 8px; border: 0; min-width: 240px; font-family: inherit; }
.newsletter-form .btn-mustard { background: var(--navy); color: #fff; }
.newsletter-form .btn-mustard:hover { background: #0d2340; }

/* ---------------- Filters bar (section/search pages) ---------------- */
.filters-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 14px; }
.filters-bar select, .filters-bar input { padding: 9px 10px; border-radius: 7px; border: 1px solid var(--paper-line); font-family: inherit; }

/* ---------------- Product detail page ---------------- */
.product-detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; margin: 30px 0 60px; }
.product-gallery .cover-icon, .product-gallery img { border-radius: var(--radius-lg); border: 1px solid var(--paper-line); aspect-ratio: 3/2; }
.product-gallery .cover-icon i { font-size: 4rem; }
.product-info h1 { font-size: 1.5rem; color: var(--navy); margin: 0 0 10px; }
.product-info .badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.badge { background: var(--paper); border: 1px solid var(--paper-line); color: var(--navy); font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.product-rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; }
.product-rating-row .stars i { color: var(--mustard-dark); }
.price-block { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.price-block .price { font-size: 2rem; font-weight: 800; color: var(--navy); }
.price-block .mrp { font-size: 1.1rem; text-decoration: line-through; color: var(--ink-soft); }
.price-block .off { color: var(--green); font-weight: 700; font-size: 0.9rem; }
.feature-list { list-style: none; padding: 0; margin: 20px 0; }
.feature-list li { padding-left: 26px; position: relative; margin-bottom: 8px; font-size: 0.93rem; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

/* Sticky mobile buy bar - fixed to viewport, never causes page-jump/reflow */
.sticky-buy-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #fff; border-top: 1px solid var(--paper-line); box-shadow: 0 -6px 20px rgba(20,51,92,0.12);
  padding: 10px 16px; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.sticky-buy-price { display: flex; align-items: baseline; gap: 8px; flex-shrink: 0; }
.sticky-buy-price .price { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.sticky-buy-price .mrp { font-size: 0.8rem; text-decoration: line-through; color: var(--ink-soft); }
.sticky-buy-price .off-pill { font-size: 0.72rem; font-weight: 700; color: var(--green); background: #E8F5E9; padding: 2px 6px; border-radius: 999px; }
.sticky-buy-actions { display: flex; gap: 8px; flex-shrink: 0; }
.sticky-buy-actions .btn { padding: 10px 16px; white-space: nowrap; }
.sticky-buy-actions .btn-outline { padding: 10px 14px; }
.cta-row { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.ask-whatsapp-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 0.85rem; font-weight: 600;
  color: #1a7a3d;
}
.ask-whatsapp-link i { color: #25D366; font-size: 1rem; }
.ask-whatsapp-link:hover { text-decoration: underline; }

/* ---------------- Cart / checkout (advanced redesign) ---------------- */
/* .cart-table is still used by account/index.php (orders list) and order_success.php */
.cart-table { width: 100%; border-collapse: collapse; margin: 20px 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); }
.cart-table th, .cart-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--paper-line); font-size: 0.92rem; }
.page-title { color: var(--navy); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 26px 0 20px; }
.cart-page, .checkout-page { padding-bottom: 60px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-state i { font-size: 2.6rem; color: var(--paper-line); margin-bottom: 14px; }
.empty-state p { margin: 0 0 18px; font-size: 1.05rem; }

.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.cart-items-col { display: flex; flex-direction: column; gap: 10px; }
.cart-item-row {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--paper-line);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--card-shadow);
}
.cart-item-thumb {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 8px; background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { margin: 0 0 3px; font-size: 0.92rem; color: var(--ink); line-height: 1.3; }
.cart-item-price { font-weight: 700; color: var(--navy); font-size: 0.88rem; }
.cart-item-remove {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); flex-shrink: 0; transition: background .12s ease, color .12s ease;
}
.cart-item-remove:hover { background: #FDECEA; color: var(--red); }

.cart-summary { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius-lg); padding: 22px; max-width: 360px; margin-left: auto; box-shadow: var(--card-shadow); }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 10px; gap: 10px; }
.cart-summary .total { font-weight: 800; font-size: 1.15rem; border-top: 1px dashed var(--paper-line); padding-top: 12px; }
.cart-summary .discount { color: var(--green); }
.cart-summary-advanced { position: sticky; top: 90px; }
.cart-summary-title { margin: 0 0 16px; color: var(--navy); font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.cart-trust-row { display: flex; justify-content: space-between; margin-top: 14px; font-size: 0.72rem; color: var(--ink-soft); font-weight: 600; flex-wrap: wrap; gap: 6px; }
.cart-trust-row i { color: var(--green); margin-right: 3px; }

/* Coupon box - visually distinct "promo" styling + live feedback states */
.coupon-box { display: flex; gap: 8px; margin: 0 0 8px; }
.coupon-input-wrap { position: relative; flex: 1; }
.coupon-input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--mustard-dark); font-size: 0.85rem; }
.coupon-box input {
  width: 100%; padding: 10px 12px 10px 32px; border-radius: 7px; border: 1.5px dashed var(--paper-line);
  font-family: inherit; background: #FFFBF0; transition: border-color .15s ease, background .15s ease;
}
.coupon-box input:focus { outline: none; border-color: var(--mustard-dark); background: #fff; }
.coupon-input-ok { border-color: var(--green) !important; background: #F1F8F1 !important; }
.coupon-input-error { animation: shake .35s ease; border-color: var(--red) !important; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.coupon-msg { font-size: 0.8rem; margin: 0 0 10px; min-height: 1.1em; display: flex; align-items: center; gap: 6px; }
.coupon-msg-success { color: var(--green); font-weight: 600; }
.coupon-msg-error { color: #B71C1C; font-weight: 600; }
.coupon-applied-chip {
  display: inline-flex; align-items: center; gap: 6px; background: #E8F5E9; color: #1B5E20; font-size: 0.8rem;
  font-weight: 600; padding: 6px 12px; border-radius: 999px; margin: 0 0 14px;
}
.coupon-applied-chip a { text-decoration: underline; margin-left: 6px; }

/* Checkout: step indicator + two-column layout */
.checkout-steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }
.checkout-step { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.checkout-step.active { color: var(--navy); }
.checkout-step .step-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--paper-line); color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center; font-size: 0.78rem; flex-shrink: 0;
}
.checkout-step.active .step-num { background: var(--mustard); color: var(--navy); }
.checkout-step-line { width: 40px; height: 2px; background: var(--paper-line); }
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.checkout-form-card { max-width: none; margin: 0; }
.checkout-summary-col { position: sticky; top: 90px; max-width: none; margin-left: 0; }
.checkout-trust-strip { display: flex; justify-content: space-between; margin-top: 16px; font-size: 0.76rem; color: var(--ink-soft); font-weight: 600; flex-wrap: wrap; gap: 8px; }
.checkout-trust-strip i { color: var(--green); margin-right: 4px; }

/* ---------------- Forms (auth, contact, admin) ---------------- */
.form-card { max-width: 420px; margin: 50px auto; background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 30px; box-shadow: var(--card-shadow); }
.form-card h1 { font-size: 1.4rem; color: var(--navy); margin-top: 0; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--paper-line); border-radius: 7px; font-family: inherit; font-size: 0.95rem;
}
.alert { padding: 12px 14px; border-radius: 7px; font-size: 0.88rem; margin-bottom: 16px; }
.alert-error { background: #FDECEA; color: #B71C1C; border: 1px solid #F5C6C0; }
.alert-success { background: #E8F5E9; color: #1B5E20; border: 1px solid #C8E6C9; }
.alert-info { background: #E3F2FD; color: #0D47A1; border: 1px solid #BBDEFB; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy); color: #fff; margin-top: 0; padding-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.footer-grid h4 { color: var(--mustard); font-size: 0.9rem; margin: 0 0 12px; }
.footer-grid a { display: block; color: #d8dfeb; font-size: 0.88rem; margin-bottom: 8px; }
.footer-grid .logo-text { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; margin: 0; }
.footer-social a:hover { background: var(--mustard); color: var(--navy); }
.footer-badges { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.footer-badges span { font-size: 0.76rem; color: #b8c2d6; }
.footer-badges i { color: var(--mustard); margin-right: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 16px 20px; text-align: center; font-size: 0.82rem; color: #b8c2d6; }

/* Quick Links strip */
.footer-quicklinks { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 20px 10px; }
.quicklinks-row { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-bottom: 14px; }
.quicklinks-row a { color: #d8dfeb; font-size: 0.82rem; display: inline-flex; align-items: center; gap: 6px; }
.quicklinks-row a:hover { color: var(--mustard); }
.quicklinks-row i { color: var(--mustard); font-size: 0.85rem; }
.app-hint { display: flex; align-items: center; gap: 10px; justify-content: center; text-align: center; color: #9fadc7; font-size: 0.78rem; max-width: 640px; margin: 0 auto 10px; }
.app-hint i { color: var(--mustard); font-size: 1.1rem; flex-shrink: 0; }

.whatsapp-fab {
  position: fixed; bottom: 22px; right: 22px; background: #25D366; color: #fff; width: 54px; height: 54px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25); z-index: 50; animation: pulse-wa 2.4s infinite;
}
@keyframes pulse-wa { 0%,100% { box-shadow: 0 4px 14px rgba(0,0,0,0.25); } 50% { box-shadow: 0 4px 14px rgba(37,211,102,0.5); } }

/* Mobile app-style bottom navigation bar */
.mobile-app-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: #fff; border-top: 1px solid var(--paper-line); box-shadow: 0 -4px 14px rgba(20,51,92,0.1);
  padding: 6px 6px max(6px, env(safe-area-inset-bottom));
  justify-content: space-between;
}
.mobile-app-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px;
  color: var(--ink-soft); font-size: 0.66rem; font-weight: 600; position: relative;
}
.mobile-app-nav a i { font-size: 1.15rem; }
.mobile-app-nav a:hover, .mobile-app-nav a:active { color: var(--blue); }
.mobile-app-nav-cart { position: relative; }
.app-nav-badge {
  position: absolute; top: 0; right: 18%; background: var(--mustard); color: var(--navy); font-weight: 800;
  font-size: 0.6rem; border-radius: 999px; padding: 0 5px; min-width: 15px; text-align: center; line-height: 1.4;
}

/* ---------------- Admin (advanced collapsible sidebar) ---------------- */
.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: var(--paper); }
.admin-sidebar { background: var(--navy); color: #fff; padding: 20px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.admin-sidebar .brand { padding: 0 20px 18px; font-family: Poppins, sans-serif; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.admin-nav-groups { flex: 1; }
.admin-nav-group { border-bottom: 1px solid rgba(255,255,255,0.06); }
.admin-nav-group-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: 0;
  color: rgba(255,255,255,0.75); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700;
  padding: 13px 20px; cursor: pointer; font-family: inherit;
}
.admin-nav-group-toggle:hover { color: #fff; }
.admin-nav-group-toggle .chevron { transition: transform .2s ease; font-size: 0.7rem; }
.admin-nav-group.open .admin-nav-group-toggle .chevron { transform: rotate(180deg); }
.admin-nav-group-items { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.admin-nav-group.open .admin-nav-group-items { max-height: 600px; }
.admin-sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 20px 10px 24px; color: #d8dfeb; font-size: 0.87rem; transition: background .12s ease; }
.admin-sidebar a i { width: 16px; text-align: center; font-size: 0.85rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-sidebar a.active { border-left: 3px solid var(--mustard); padding-left: 21px; }
.admin-sidebar-footer { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 8px; margin-top: 8px; }
.admin-sidebar-footer a { padding: 11px 20px; font-size: 0.87rem; }
.admin-sidebar-toggle { display: none; }
.admin-main { padding: 30px 36px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--card-shadow); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { padding: 10px 14px; border-bottom: 1px solid var(--paper-line); font-size: 0.88rem; text-align: left; }
.admin-table th { background: var(--paper); color: var(--navy); }
.admin-table tr:hover td { background: #FAFAF7; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 26px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--card-shadow); display: flex; align-items: center; gap: 14px; }
.stat-card .stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #fff; flex-shrink: 0; }
.stat-card .num { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.stat-card .label { font-size: 0.8rem; color: var(--ink-soft); }
.admin-card { background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 20px; margin-bottom: 20px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.pill-green { background: #E8F5E9; color: #1B5E20; }
.pill-yellow { background: #FFF8E1; color: #8D6E00; }
.pill-red { background: #FDECEA; color: #B71C1C; }
.pill-gray { background: #EEF0F3; color: #5C6270; }
.badge-input { width: 100%; padding: 6px 8px; border: 1px solid var(--paper-line); border-radius: 6px; font-family: inherit; font-size: 0.85rem; }
.mini-btn { padding: 5px 10px !important; font-size: 0.8rem !important; border-radius: 6px !important; }
.thumb-preview { width: 60px; height: 40px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.9rem; flex-shrink: 0; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.admin-page-head { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.admin-page-head h1 { color: var(--navy); margin: 0 0 6px; display: flex; align-items: center; gap: 10px; width: 100%; }
.admin-page-head p { margin: 0; }
.filters-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters-bar input, .filters-bar select { padding: 9px 12px; border: 1px solid var(--paper-line); border-radius: 7px; font-family: inherit; font-size: 0.88rem; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .promo-banners { grid-template-columns: 1fr; }
  .why-us-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .sections-grid { grid-template-columns: repeat(2,1fr); }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .product-detail { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .header-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-cart { display: flex; align-items: center; }
  .mobile-search { display: flex; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar-toggle {
    display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin: 10px;
    background: var(--navy); color: #fff; border: 0; border-radius: 8px; font-size: 1.1rem; cursor: pointer;
  }
  .admin-sidebar { position: fixed; left: 0; top: 0; height: 100vh; z-index: 70; transform: translateX(-100%); transition: transform .2s ease; width: 260px; }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 0 0 30px rgba(0,0,0,0.4); }
  .admin-main { padding-top: 66px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: repeat(2,1fr); }
  .why-us { padding: 24px; }
  .why-us-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 18px; }
  .hero-float-badge { display: none; }
  .sticky-buy-bar { display: flex; z-index: 60; }
  .desktop-cta { display: none; }
  .mobile-app-nav { display: flex; }
  body { padding-bottom: 60px; }
  /* Product page shows the sticky buy bar instead of the app nav bar - avoid stacking two fixed bars */
  body.has-sticky-bar .mobile-app-nav { display: none; }
  body.has-sticky-bar { padding-bottom: 76px; }
  .whatsapp-fab { bottom: 76px; }
  body.has-sticky-bar .whatsapp-fab { bottom: 88px; }

  /* Cart / checkout collapse to single column, summary un-stickies and
     moves below/above naturally so nothing overlaps the fixed nav bars */
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary-advanced, .checkout-summary-col { position: static; top: auto; order: -1; }
  .checkout-steps { gap: 4px; }
  .checkout-step-line { width: 22px; }
  .checkout-step span:last-child { display: none; }
  .checkout-step .step-num { width: 30px; height: 30px; }

  /* Account dashboard: sidebar becomes a horizontal scroll strip */
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { display: flex; overflow-x: auto; gap: 6px; padding: 10px; position: static; height: auto; -webkit-overflow-scrolling: touch; top: auto; }
  .account-sidebar a { white-space: nowrap; flex-shrink: 0; }
  .account-stat-cards { grid-template-columns: repeat(2,1fr); }

  /* Chatbot widget: full-width sheet on mobile instead of a floating card */
  .chatbot-panel { width: calc(100vw - 24px); max-width: 380px; height: min(72vh, 560px); }
}
@media (max-width: 560px) {
  .sections-grid, .product-grid { grid-template-columns: 1fr 1fr; }
  .filter-form { grid-template-columns: 1fr; }
  .filter-form button { grid-column: span 1; }
  .topbar-row { justify-content: center; text-align: center; font-size: 0.7rem; }
  .topbar-right { display: none; }
  .offer-rotator { flex: 1; text-align: center; }
  .hero { padding: 26px 0 22px; }
  .hero h1 { font-size: 1.55rem; }
  .hero-tagline { font-size: 0.92rem; }
  .hero-chip-row { gap: 6px; }
  .hero-chip { font-size: 0.68rem; padding: 5px 9px; }
  /* Fast-loading on phones: drop the blurred floating shapes, grid-line
     texture and glow gradient (all pure decoration, no content lost) and
     the backdrop-filter blur on the search card - these are the most
     GPU/paint-expensive rules in the hero and skipping them on small
     screens noticeably speeds up first paint + scroll smoothness. */
  .hero-bg-shapes .shape, .hero-grid-lines, .hero-glow { display: none; }
  .hero-card { backdrop-filter: none; background: #fff; }
  .cta-row .btn-lg { padding: 12px 18px; font-size: 0.9rem; flex: 1; justify-content: center; }
  .why-us-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
  .newsletter-row { text-align: center; justify-content: center; }
  .newsletter-form { justify-content: center; width: 100%; }
  .newsletter-form input { flex: 1; min-width: 0; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .cart-summary { max-width: none; }
  .product-card h4 { font-size: 0.88rem; }
  .section-heading h2 { font-size: 1.2rem; }

  /* Cart / checkout on small phones */
  .cart-item-row { padding: 12px; gap: 10px; }
  .cart-item-thumb { width: 38px; height: 38px; font-size: 0.95rem; }
  .coupon-box { flex-direction: column; }
  .coupon-box .btn { width: 100%; justify-content: center; }
  .checkout-form-card { padding: 20px; }

  /* Chatbot fits the smallest screens fully, docked bottom, near-full width */
  .chatbot-panel { width: calc(100vw - 16px); height: min(78vh, 520px); right: -4px; }
  .chatbot-launcher { width: 52px; height: 52px; font-size: 1.3rem; }
}

/* ---------------- Referral box (My Account) ---------------- */
.referral-box {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, #14335c, #1A67C4); color: #fff; border-radius: var(--radius-lg);
  padding: 22px 26px; margin-top: 16px;
}
.referral-box h3 { margin: 0 0 6px; font-size: 1.1rem; }
.referral-box p { color: rgba(255,255,255,0.85); margin: 0 0 12px; font-size: 0.85rem; }
.referral-link-row { display: flex; gap: 8px; }
.referral-link-row input {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); color: #fff;
  border-radius: 8px; padding: 8px 12px; font-size: 0.82rem; min-width: 220px;
}
.referral-stats { display: flex; gap: 24px; text-align: center; flex-shrink: 0; }
.referral-stats strong { display: block; font-size: 1.5rem; }
.referral-stats span { font-size: 0.75rem; color: rgba(255,255,255,0.8); }

/* ---------------- Product reviews ---------------- */
.reviews-section { margin-top: 40px; }
.review-item { border-bottom: 1px solid var(--paper-line); padding: 16px 0; }
.review-item:last-child { border-bottom: none; }
.review-item .review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.review-item .review-name { font-weight: 700; color: var(--navy); }
.review-item .review-date { font-size: 0.75rem; color: var(--ink-soft); }
.review-item p { margin: 6px 0 0; color: var(--ink); }
.review-form { background: var(--paper); border: 1px solid var(--paper-line); border-radius: var(--radius-lg); padding: 22px; margin-top: 20px; }
.review-form h3 { margin-top: 0; color: var(--navy); font-size: 1.05rem; }
.stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin: 8px 0 14px; }
.stars-input input { display: none; }
.stars-input label { font-size: 1.5rem; color: #d8d8d8; cursor: pointer; transition: color .1s ease; }
.stars-input input:checked ~ label,
.stars-input label:hover,
.stars-input label:hover ~ label { color: var(--mustard-dark); }
.review-thanks { background: #E8F5E9; color: #1B5E20; border: 1px solid #A5D6A7; border-radius: 8px; padding: 12px 16px; font-size: 0.88rem; }

@media (max-width: 560px) {
  .referral-box { flex-direction: column; align-items: flex-start; }
  .referral-link-row input { min-width: 0; flex: 1; }
  .referral-stats { width: 100%; justify-content: space-around; }
}


/* ---------------- Rule-based support chatbot widget ---------------- */
.chatbot-launcher {
  position: fixed; bottom: 22px; right: 90px; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #1B5E20); color: #fff; border: none; font-size: 1.4rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25); z-index: 55; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.chatbot-launcher:hover { transform: scale(1.08); }
.chatbot-panel {
  position: fixed; bottom: 90px; right: 22px; width: 340px; height: 480px; max-height: 70vh;
  background: #E7E0D2; border-radius: var(--radius-lg); box-shadow: var(--card-shadow-lg); z-index: 56;
  display: none; flex-direction: column; overflow: hidden; border: 1px solid rgba(0,0,0,0.06);
}
.chatbot-panel.open { display: flex; }
.chatbot-header {
  background: linear-gradient(120deg, var(--green), #1A9E52); color: #fff; padding: 16px; display: flex;
  align-items: center; gap: 12px; flex-shrink: 0;
}
.chatbot-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex;
  align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.chatbot-header div:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.chatbot-header strong { font-size: 0.95rem; }
.chatbot-header span { font-size: 0.72rem; opacity: 0.9; }
.chatbot-close { background: rgba(255,255,255,0.2); border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; flex-shrink: 0; }
.chatbot-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chatbot-bubble { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 0.85rem; line-height: 1.45; }
.chatbot-bubble-bot { background: #fff; color: var(--ink); align-self: flex-start; box-shadow: var(--card-shadow); border-bottom-left-radius: 4px; }
.chatbot-bubble-user { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chatbot-wa-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: #1a7a3d; font-weight: 700; }
.chatbot-wa-link i { color: #25D366; }
.chatbot-quick-wrap { display: flex; flex-direction: column; gap: 8px; }
.chatbot-quick-label { font-size: 0.7rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.04em; margin: 4px 0 2px; }
.chatbot-quick-btn {
  display: flex; align-items: center; justify-content: space-between; background: #fff; border: none;
  border-radius: 10px; padding: 12px 14px; font-size: 0.84rem; font-weight: 600; color: var(--ink); cursor: pointer;
  box-shadow: var(--card-shadow); text-align: left; transition: background .12s ease;
}
.chatbot-quick-btn:hover { background: #F5F2E8; }
.chatbot-quick-btn i:first-child { color: var(--blue); margin-right: 4px; }
.chatbot-quick-btn i:last-child { color: var(--ink-soft); font-size: 0.75rem; }
.chatbot-input-row { display: flex; gap: 8px; padding: 12px; background: #E7E0D2; flex-shrink: 0; }
.chatbot-input-row input {
  flex: 1; border: none; border-radius: 999px; padding: 10px 16px; font-family: inherit; font-size: 0.85rem; background: #fff;
}
.chatbot-input-row input:focus { outline: 2px solid var(--green); }
.chatbot-input-row button { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; border: none; cursor: pointer; flex-shrink: 0; }

/* ---------------- Mini-Cart Drawer (desktop/laptop add-to-cart preview) ---------------- */
.minicart-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.45); z-index: 90; opacity: 0; visibility: hidden;
  transition: opacity .22s ease; backdrop-filter: blur(1px);
}
.minicart-overlay.open { opacity: 1; visibility: visible; }
.minicart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 380px; max-width: 92vw; background: var(--paper, #F7F3E8);
  z-index: 91; box-shadow: -8px 0 24px rgba(0,0,0,0.18); transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column;
}
.minicart-drawer.open { transform: translateX(0); }
.minicart-head {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--navy);
  color: #fff; flex-shrink: 0;
}
.minicart-head strong { font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.minicart-close { background: rgba(255,255,255,0.15); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.minicart-body { flex: 1; padding: 18px; overflow-y: auto; }
.minicart-item { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 10px; padding: 12px; box-shadow: var(--card-shadow); }
.minicart-item-thumb { width: 48px; height: 48px; border-radius: 8px; background: var(--blue-tint, #EAF1FB); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.minicart-item-name { font-weight: 700; font-size: 0.9rem; color: var(--navy); margin-bottom: 4px; }
.minicart-item-price { color: var(--green); font-weight: 700; font-size: 0.95rem; }
.minicart-foot { padding: 16px 18px; border-top: 1px solid var(--paper-line); flex-shrink: 0; background: #fff; }
.minicart-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; margin-bottom: 12px; color: var(--navy); }
.minicart-total-row strong { font-size: 1.15rem; color: var(--green); }
.minicart-proceed { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; text-align: center; }
.minicart-view-cart { display: block; text-align: center; margin-top: 10px; font-size: 0.85rem; color: var(--blue); font-weight: 600; }
@media (max-width: 900px) {
  /* On phones the bottom app-nav Cart tab is the primary path - keep the
     drawer available but full-width if it's ever triggered there too. */
  .minicart-drawer { width: 100%; max-width: 100%; }
}

/* ---------------- Account Dashboard (customer, distinct from admin) ---------------- */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; margin-top: 20px; }
.account-sidebar {
  display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow); padding: 14px; position: sticky; top: 90px;
}
.account-sidebar a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--ink);
  font-weight: 600; font-size: 0.88rem; text-decoration: none; transition: background .12s ease;
}
.account-sidebar a i { width: 18px; text-align: center; color: var(--blue); }
.account-sidebar a:hover, .account-sidebar a.active { background: var(--paper-tint, #F3EFE3); }
.account-sidebar-logout { color: var(--red, #dc2626) !important; }
.account-sidebar-logout i { color: var(--red, #dc2626) !important; }
.account-main section { scroll-margin-top: 90px; }
.account-stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 18px 0 26px; }
.account-stat-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--card-shadow); padding: 16px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.account-stat-card i { color: var(--blue); font-size: 1.2rem; }
.account-stat-card strong { font-size: 1.4rem; color: var(--navy); font-family: 'Poppins', sans-serif; }
.account-stat-card span { font-size: 0.78rem; color: var(--ink-soft); }
.downloads-grid { display: flex; flex-direction: column; gap: 10px; }
.download-row {
  display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 10px; padding: 12px 16px;
  box-shadow: var(--card-shadow);
}
.download-row-icon { width: 42px; height: 42px; border-radius: 8px; background: #FDECEA; color: #C0392B; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.download-row-info { flex: 1; min-width: 0; }
.download-row-name { font-weight: 700; color: var(--navy); font-size: 0.92rem; }
.download-row-meta { font-size: 0.78rem; margin-top: 2px; }
