/* =========================================================
   YUG SHAKTI GENERAL STORES — "Saffron Dawn" theme
   ========================================================= */

:root {
  --primary: #C8102E;
  --primary-dark: #9C0B23;
  --primary-soft: #FDECEF;
  --accent: #F4B400;
  --accent-dark: #D89A00;
  --secondary: #1F2937;
  --secondary-soft: #374151;
  --bg: #FFF8F1;
  --surface: #FFFFFF;
  --muted: #6B7280;
  --line: #EFE7DC;
  --success: #16A34A;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 14px rgba(31,41,55,.06);
  --shadow-md: 0 12px 32px rgba(31,41,55,.10);
  --shadow-lg: 0 24px 60px rgba(200,16,46,.18);
}

* { box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .display-1, .display-2, .display-3 {
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--secondary);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.text-accent { color: var(--accent) !important; }
.text-brand  { color: var(--primary) !important; }
.bg-brand    { background: var(--primary) !important; }
.bg-soft     { background: var(--primary-soft) !important; }

/* ===== Top utility bar ===== */
.top-bar {
  background: var(--secondary);
  color: #fff;
  padding: 8px 0;
  font-size: 13px;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--accent); }
.top-contact i { color: var(--accent); margin-right: 4px; }
.top-ticker { overflow: hidden; flex: 1; max-width: 540px; text-align: right; }
.top-ticker .ticker-item { display: inline-block; margin-left: 18px; opacity: 0; animation: tickerFade 12s infinite; }
.top-ticker .ticker-item:nth-child(1) { animation-delay: 0s; }
.top-ticker .ticker-item:nth-child(2) { animation-delay: 4s; }
.top-ticker .ticker-item:nth-child(3) { animation-delay: 8s; }
.top-ticker .ticker-item i { color: var(--accent); margin-right: 6px; }
@keyframes tickerFade {
  0%, 25% { opacity: 1; transform: translateY(0); }
  30%, 100% { opacity: 0; transform: translateY(-6px); }
}
@media (max-width: 768px) { .top-ticker { display: none; } }

/* ===== Navbar (glass on top, opaque on scroll) ===== */
.main-nav {
  background: rgba(255, 248, 241, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(31,41,55,.06);
  padding: .75rem 0;
  transition: background .25s, box-shadow .25s, padding .25s;
}
.main-nav.scrolled {
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: .5rem 0;
}
.brand-logo { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 1.25rem;
  box-shadow: 0 6px 16px rgba(200,16,46,.25);
}
.brand-text { line-height: 1.05; font-size: 1.05rem; font-family: 'Fraunces', serif; }
.brand-text small { font-weight: 500; font-size: .68rem; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; font-family: 'Plus Jakarta Sans', sans-serif; }
.brand-accent { color: var(--primary); }

.main-nav .nav-link {
  color: var(--secondary);
  font-weight: 600;
  padding: .5rem 1rem !important;
  border-radius: 999px;
  position: relative;
  transition: color .2s, background .2s;
}
.main-nav .nav-link:hover { color: var(--primary); }
.main-nav .nav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
}

/* ===== Buttons ===== */
.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: .625rem 1.5rem;
  transition: transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-brand {
  background: var(--primary); color: #fff; border: 0;
  box-shadow: 0 8px 18px rgba(200,16,46,.28);
}
.btn-brand:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 12px 24px rgba(200,16,46,.34); }
.btn-accent {
  background: var(--accent); color: var(--secondary); border: 0; font-weight: 700;
  box-shadow: 0 8px 18px rgba(244,180,0,.32);
}
.btn-accent:hover { background: var(--accent-dark); color: var(--secondary); }
.btn-outline-light-brand {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6);
}
.btn-outline-light-brand:hover { background: #fff; color: var(--primary); border-color: #fff; }
.btn-ghost {
  background: #fff; color: var(--secondary); border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(244,180,0,.18), transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(200,16,46,.12), transparent 45%),
    linear-gradient(135deg, #2A1115 0%, #4A1620 55%, #7A1E2C 100%);
  color: #fff;
  padding: 90px 0 140px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.06'/></svg>");
  opacity: .6; pointer-events: none;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  font-weight: 700;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent), #FFE17A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { color: rgba(255,255,255,.82); max-width: 540px; }
.hero .hero-badges span { color: rgba(255,255,255,.85); }
.hero .hero-badges i { color: var(--accent); }
.hero-illust {
  position: relative;
  width: 100%; max-width: 420px; margin: 0 auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(244,180,0,.35), transparent 60%),
              rgba(255,255,255,.05);
  display: grid; place-items: center;
  animation: float 6s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,.12);
}
.hero-illust i { font-size: 14rem; color: var(--accent); filter: drop-shadow(0 16px 40px rgba(244,180,0,.4)); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; display: block; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-title .eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--primary);
  background: var(--primary-soft); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 14px;
}
.section-title h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 12px; }
.section-title p  { color: var(--muted); margin: 0; }

/* ===== Category cards (circular icon style) ===== */
.category-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--secondary);
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  height: 100%;
}
.category-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
  color: var(--secondary);
}
.cat-icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--primary-soft), #FFF3E0);
  color: var(--primary);
  font-size: 2rem;
  position: relative;
  transition: transform .3s;
}
.cat-icon::after {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  opacity: 0; transform: scale(.85);
  transition: opacity .3s, transform .3s;
}
.category-card:hover .cat-icon { transform: scale(1.05); }
.category-card:hover .cat-icon::after { opacity: 1; transform: scale(1); }
.category-card h5 { margin-bottom: 6px; font-family: 'Fraunces', serif; }
.category-card p  { color: var(--muted); font-size: .88rem; margin: 0; }

/* ===== Product cards ===== */
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  height: 100%;
  display: flex; flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.product-img {
  position: relative;
  aspect-ratio: 1;
  background: #FAF6EF;
  overflow: hidden;
  display: grid; place-items: center;
}
.product-img img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 14px;
  transition: transform .35s;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: var(--secondary);
  font-size: .7rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: .5px; text-transform: uppercase;
}
.product-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(31,41,55,.78) 100%);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px;
  opacity: 0; transition: opacity .25s;
}
.product-card:hover .product-overlay { opacity: 1; }
.product-overlay .btn { background: var(--accent); color: var(--secondary); font-weight: 700; }
.product-body {
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.product-body h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  margin: 0;
  font-size: .98rem;
  line-height: 1.35;
  flex: 1;
}
.product-body .badge { font-weight: 600; font-size: .68rem; padding: 4px 10px; }
.btn-cart {
  background: var(--primary-soft); color: var(--primary);
  border: 0; font-weight: 600; font-size: .85rem;
  padding: .5rem 1rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-cart:hover { background: var(--primary); color: #fff; }

/* ===== Stats band ===== */
.stats-band {
  background: linear-gradient(135deg, var(--secondary) 0%, #2D3950 100%);
  color: #fff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,180,0,.25), transparent 60%);
}
.stat-item { text-align: center; }
.stat-item .stat-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-item .stat-label {
  font-size: .9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-top: 8px;
}

/* ===== Testimonials ===== */
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  height: 100%;
  position: relative;
}
.testimonial-card::before {
  content: "\201C";
  position: absolute; top: -10px; left: 24px;
  font-family: 'Fraunces', serif;
  font-size: 5rem; line-height: 1;
  color: var(--primary-soft);
  font-weight: 700;
}
.testimonial-card p { color: var(--secondary); font-style: italic; margin-bottom: 18px; position: relative; }
.testimonial-meta { display: flex; align-items: center; gap: 12px; }
.testimonial-meta .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: grid; place-items: center; font-weight: 700;
}
.testimonial-meta strong { display: block; }
.testimonial-meta small { color: var(--muted); }

/* ===== CTA banner ===== */
.cta-banner {
  background:
    radial-gradient(circle at 80% 30%, rgba(244,180,0,.25), transparent 50%),
    linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  border-radius: var(--radius);
  margin: 60px auto;
  max-width: 1140px;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cta-banner p { color: rgba(255,255,255,.85); }

/* ===== Page header ===== */
.page-header {
  background:
    radial-gradient(circle at 90% 50%, rgba(244,180,0,.15), transparent 50%),
    linear-gradient(135deg, var(--secondary) 0%, #2D3950 100%);
  color: #fff;
  padding: 70px 0 60px;
  text-align: center;
}
.page-header h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.page-header .breadcrumb { justify-content: center; margin: 0; background: transparent; }
.page-header .breadcrumb-item, .page-header .breadcrumb-item a { color: rgba(255,255,255,.7); }
.page-header .breadcrumb-item.active { color: var(--accent); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ===== Filter pills (products page) ===== */
.filter-pills {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 30px;
}
.filter-pills .pill {
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--secondary);
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  transition: all .2s;
}
.filter-pills .pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pills .pill.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(200,16,46,.25);
}
.filter-pills .pill i { margin-right: 6px; }

/* ===== Search box ===== */
.search-wrap {
  max-width: 480px; margin: 0 auto 30px;
  position: relative;
}
.search-wrap input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.search-wrap input:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(200,16,46,.12);
}
.search-wrap i {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--muted);
}

/* ===== Contact page ===== */
.contact-info-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px; margin-bottom: 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  transition: border-color .2s;
}
.contact-info-item:hover { border-color: var(--primary); }
.contact-info-item .icon {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.1rem;
}
.contact-info-item h6 { margin-bottom: 4px; }
.contact-form {
  background: var(--surface);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.contact-form .form-control {
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(200,16,46,.12);
}
.contact-form .form-label { font-weight: 600; font-size: .9rem; color: var(--secondary); }

/* ===== About page extras ===== */
.mission-vision { background: var(--primary-soft); }
.mission-vision .card-inner {
  background: #fff; border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-sm);
  height: 100%;
}
.feature-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.feature-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.feature-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-box .feature-icon { margin: 0 auto 16px; }

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(180deg, var(--secondary) 0%, #161e2a 100%);
  color: #fff;
  position: relative;
}
.footer-brand { color: #fff; font-family: 'Fraunces', serif; }
.footer-brand i { color: var(--accent); }
.site-footer h6 { color: #fff; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul li a { color: rgba(255,255,255,.65); transition: color .2s; }
.site-footer ul li a:hover { color: var(--accent); }
.site-footer .text-accent, .site-footer .text-warning { color: var(--accent) !important; }
.footer-divider { border-color: rgba(255,255,255,.1); }
.social-icons a {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #fff;
  margin-right: 8px;
  transition: background .2s, color .2s, transform .2s;
}
.social-icons a:hover {
  background: var(--accent); color: var(--secondary); transform: translateY(-2px);
}

/* ===== Floating buttons ===== */
.fab-whatsapp, .fab-top {
  position: fixed; right: 20px; z-index: 999;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  font-size: 1.4rem;
  box-shadow: var(--shadow-md);
  transition: transform .2s, box-shadow .2s;
}
.fab-whatsapp { bottom: 24px; background: #25D366; color: #fff; }
.fab-whatsapp:hover { transform: scale(1.08); color: #fff; }
.fab-top {
  bottom: 86px; background: var(--primary); color: #fff;
  opacity: 0; pointer-events: none;
}
.fab-top.show { opacity: 1; pointer-events: auto; }
.fab-top:hover { transform: translateY(-2px); }

/* ===== Misc ===== */
.bg-primary-subtle { background: var(--primary-soft) !important; }
.text-primary { color: var(--primary) !important; }
img { max-width: 100%; }

/* ===== Responsive tweaks ===== */
@media (max-width: 991px) {
  .main-nav .navbar-nav { padding: 16px 0; gap: 4px; }
  .main-nav .nav-link { padding: .5rem .75rem !important; }
  .hero { padding: 60px 0 100px; }
  .section { padding: 56px 0; }
  .cta-banner { margin: 40px 16px; padding: 56px 20px; }
}
@media (max-width: 575px) {
  .top-bar { font-size: 12px; }
  .brand-text { font-size: .95rem; }
  .brand-text small { font-size: .6rem; }
  .contact-form { padding: 24px; }
}
