/* ========================================
   SHRI GOVIND PHARMACY — categories.css
   Category Page Specific Styles
   ======================================== */

html[data-theme="dark"] {
  --bg-light: #0f1720;
  --card-bg: #1a2330;
  --text-dark: #f1f5f9;
  --text-muted: #94a3b8;
  --border-color: #2a3441;
}

/* ── ACCENT COLORS ── */
:root {
  --saffron: #e67e22;
  --saffron-dark: #d35400;
  --saffron-glow: rgba(230,126,34,0.15);
  --pink: #c2185b;
  --pink-dark: #880e4f;
  --pink-glow: rgba(233,30,99,0.12);
  --blue: #1565c0;
  --blue-dark: #0d47a1;
  --blue-glow: rgba(25,118,210,0.12);
}

/* ═══════════════════════════════════════
   PAGE HERO
═══════════════════════════════════════ */
.cat-page-hero {
  position: relative;
  padding: 70px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a2e10 0%, #1c6b27 50%, #0f3d18 100%);
}

.cat-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(39,174,96,0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(28,129,37,0.2) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M40 0c0 22.09-17.91 40-40 40 22.09 0 40 17.91 40 40 0-22.09 17.91-40 40-40-22.09 0-40-17.91-40-40z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, 80px 80px;
}

.cat-hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cat-hero-content {
  position: relative;
  z-index: 2;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a {
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  text-decoration: none;
}
.breadcrumb a:hover { color: #a8e6b8; }
.breadcrumb i.fa-chevron-right { font-size: 0.65rem; }
.bc-current { color: #a8e6b8; }

.cat-hero-text {
  max-width: 620px;
  margin-bottom: 44px;
}
.cat-hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.4rem;
  color: white;
  line-height: 1.1;
  margin: 14px 0 16px;
}
.cat-hero-text h1 em { font-style: italic; color: #a8e6b8; }
.cat-hero-text p { color: rgba(255,255,255,0.78); font-size: 1rem; line-height: 1.7; max-width: 500px; }

.cat-hero-stats {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.chs-item { text-align: center; }
.chs-item strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: white;
  font-weight: 700;
  line-height: 1;
}
.chs-item span { font-size: 0.75rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }
.chs-div { width: 1px; height: 40px; background: rgba(255,255,255,0.18); }

/* Floating particles */
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* ═══════════════════════════════════════
   STICKY CATEGORY NAV
═══════════════════════════════════════ */
.cat-sticky-nav {
  position: sticky;
  top: 70px; /* below main header */
  z-index: 400;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.cat-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2rem;
  max-width: 1280px;
  margin: 0 auto;
  height: 56px;
}

.csn-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.csn-links::-webkit-scrollbar { display: none; }

.csn-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.csn-link:hover { color: var(--primary); background: var(--primary-glow); }
.csn-link.active { background: var(--primary); color: white; }
.csn-link i { font-size: 0.8rem; }

.csn-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  border: 1.5px solid var(--border-color);
  border-radius: 50px;
  padding: 7px 16px;
  flex-shrink: 0;
  transition: var(--transition);
}
.csn-search:focus-within { border-color: var(--primary); background: var(--card-bg); }
.csn-search i { color: var(--text-muted); font-size: 0.8rem; }
.csn-search input {
  border: none;
  background: transparent;
  outline: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.84rem;
  color: var(--text-dark);
  width: 180px;
}
.csn-search input::placeholder { color: var(--text-muted); }

/* ═══════════════════════════════════════
   CATEGORY SECTIONS
═══════════════════════════════════════ */
.cat-section {
  padding: 80px 0 60px;
  scroll-margin-top: 130px; /* account for sticky nav */
}
.cat-section:nth-child(odd) { background: var(--bg-light); }
.cat-section:nth-child(even) { background: var(--card-bg); }

/* Section Head */
.cat-section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 28px;
}
.cat-section-head.reverse {
  direction: ltr; /* keep normal */
}

.cat-label-wrap {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.cat-icon-lg {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 8px 24px var(--primary-glow);
}
.cat-icon-lg.saffron { background: var(--saffron-glow); color: var(--saffron); box-shadow: 0 8px 24px var(--saffron-glow); }
.cat-icon-lg.pink    { background: var(--pink-glow);    color: var(--pink);    box-shadow: 0 8px 24px var(--pink-glow); }
.cat-icon-lg.blue    { background: var(--blue-glow);    color: var(--blue);    box-shadow: 0 8px 24px var(--blue-glow); }

.csh-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.cat-meta-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cmc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.cmc.green { background: var(--primary-glow); color: var(--primary); border: 1px solid rgba(28,129,37,0.2); }
.cmc.saffron { background: var(--saffron-glow); color: var(--saffron); border: 1px solid rgba(230,126,34,0.2); }
.cmc.pink    { background: var(--pink-glow);    color: var(--pink);    border: 1px solid rgba(233,30,99,0.2); }
.cmc.blue    { background: var(--blue-glow);    color: var(--blue);    border: 1px solid rgba(25,118,210,0.2); }

/* Outline buttons for each theme */
.btn-outline-saffron {
  background: transparent;
  border: 2px solid var(--saffron);
  color: var(--saffron);
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-outline-saffron:hover { background: var(--saffron); color: white; transform: translateY(-2px); }

.btn-outline-pink {
  background: transparent;
  border: 2px solid var(--pink);
  color: var(--pink);
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-outline-pink:hover { background: var(--pink); color: white; transform: translateY(-2px); }

.btn-outline-blue {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-outline-blue:hover { background: var(--blue); color: white; transform: translateY(-2px); }

/* ── CATEGORY FILTER TAGS ── */
.cat-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.ctag {
  padding: 7px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ctag:hover,
.ctag.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.ctag.saffron:hover,
.ctag.saffron.active {
  background: var(--saffron);
  border-color: var(--saffron);
}
.ctag.pink:hover,
.ctag.pink.active {
  background: var(--pink);
  border-color: var(--pink);
}
.ctag.blue:hover,
.ctag.blue.active {
  background: var(--blue);
  border-color: var(--blue);
}

/* ── PRODUCT GRID ── */
.cat-product-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 32px;
}

/* ── LOAD MORE ── */
.cat-load-more {
  text-align: center;
  padding-top: 8px;
}

/* ── SECTION DIVIDERS ── */
.cat-section-divider {
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
  opacity: 0.3;
}
.cat-section-divider.pink { background: linear-gradient(90deg, #880e4f, #e91e63, #880e4f); }
.cat-section-divider.blue { background: linear-gradient(90deg, #0d47a1, #1976d2, #0d47a1); }

/* ═══════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════ */
.cat-cta-banner {
  background: linear-gradient(135deg, #0a2e10, #1c6b27 50%, #0f3d18);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.cat-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M30 0C30 16.57 16.57 30 0 30 16.57 30 30 43.43 30 60 30 43.43 43.43 30 60 30 43.43 30 30 16.57 30 0z'/%3E%3C/g%3E%3C/svg%3E");
}
.cat-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cat-cta-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: white;
  margin-bottom: 8px;
}
.cat-cta-text p { color: rgba(255,255,255,0.75); font-size: 0.95rem; max-width: 480px; }
.cat-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ═══════════════════════════════════════
   NO RESULTS STATE
═══════════════════════════════════════ */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}
.no-results i { font-size: 3rem; color: var(--border-color); margin-bottom: 16px; display: block; }
.no-results h3 { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 8px; }
.no-results p  { font-size: 0.88rem; color: var(--text-muted); }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1132px) {
  .cat-product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-section-head { grid-template-columns: 1fr; }
  .csh-right { align-items: flex-start; }
  .cat-meta-chips { justify-content: flex-start; }
}

@media (max-width: 955px) {
  .cat-page-hero { padding: 50px 0 60px; }
  .cat-hero-text h1 { font-size: 2.2rem; }
  .cat-sticky-nav { top: 60px; }
  .cat-sticky-inner { padding: 0 14px; gap: 10px; }
  .csn-search { display: none; }
  .cat-section { padding: 50px 0 40px; }
  .cat-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-label-wrap { flex-direction: column; gap: 12px; }
  .cat-icon-lg { width: 52px; height: 52px; font-size: 1.3rem; }
  .cat-cta-inner { flex-direction: column; text-align: center; }
  .cat-cta-text p { margin: 0 auto; }
  .cat-cta-actions { justify-content: center; }
  .cat-hero-stats { gap: 20px; }
  .chs-item strong { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .cat-hero-text h1 { font-size: 1.7rem; }
  .csn-link span { display: none; }
  .csn-link { padding: 7px 12px; }
  .cat-section-head { gap: 20px; }
}
