/* ================================================================
   IndiaDigiStore — main stylesheet
   Design tokens + shop components. Landing pages use landing.css
   on top of this for their distraction-free layout overrides.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color tokens */
  --ink: #10193A;
  --charcoal: #262B3D;
  --marigold: #E8A33D;
  --marigold-dark: #C9821F;
  --teal: #0F5C5C;
  --mist: #F5F7FA;
  --mist-deep: #EAEDF3;
  --white: #FFFFFF;
  --signal: #D6482B;
  --border: #DCE1EA;
  --muted: #6B7280;

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius: 10px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--mist);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--marigold);
  color: var(--ink);
}
.btn-primary:hover { background: var(--marigold-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 32px; font-size: 18px; }

/* ---------- Site header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  white-space: nowrap;
}
.logo span { color: var(--marigold-dark); }
.main-nav {
  display: flex;
  gap: 28px;
  font-weight: 500;
  font-size: 15px;
}
.main-nav a:hover { color: var(--marigold-dark); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; line-height: 1; }

@media (max-width: 860px) {
  .site-header-inner { position: relative; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    box-shadow: 0 12px 24px -12px rgba(16,25,58,0.15);
  }
  .main-nav.mobile-open { display: flex; }
  .main-nav a { padding: 12px 20px; border-bottom: 1px solid var(--mist-deep); }
  .mobile-toggle { display: block; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--ink);
  color: var(--white);
}
.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 500;
}
.trust-strip-inner span { display: flex; align-items: center; gap: 6px; opacity: 0.92; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow-free h1 {
  font-size: 44px;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-fan {
  position: relative;
  height: 380px;
  overflow: hidden;
}
.hero-fan-card {
  position: absolute;
  width: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px -18px rgba(16, 25, 58, 0.35);
  background: var(--white);
}
.hero-fan-card img { width: 100%; height: 260px; object-fit: cover; }
.hero-fan-card .tag {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
}
.hero-fan-card:nth-child(1) { left: 0; top: 50px; transform: rotate(-8deg); z-index: 1; }
.hero-fan-card:nth-child(2) { left: 130px; top: 0; transform: rotate(3deg); z-index: 2; }
.hero-fan-card:nth-child(3) { left: 260px; top: 60px; transform: rotate(-3deg); z-index: 3; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-eyebrow-free h1 { font-size: 32px; }
  .hero-fan { height: 220px; margin-top: 10px; }
  .hero-fan-card { width: 110px; }
  .hero-fan-card img { height: 140px; }
  .hero-fan-card:nth-child(1) { left: 4%; top: 40px; }
  .hero-fan-card:nth-child(2) { left: 36%; top: 0; }
  .hero-fan-card:nth-child(3) { left: 68%; top: 40px; }
}

/* ---------- Category pills ---------- */
.category-rail {
  padding: 8px 0 36px;
}
.category-rail-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.category-pill {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.category-pill.active,
.category-pill:hover { border-color: var(--marigold); background: #FFF7EA; }
.category-pill .icon { font-size: 18px; }

/* ---------- Section heading ---------- */
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-heading h2 { font-size: 26px; margin: 0; }
.section-heading a { font-weight: 600; color: var(--marigold-dark); font-size: 14px; }

/* ---------- Product grid & cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.15s ease;
}
.product-card:hover { border-color: var(--marigold); }
.product-card .thumb {
  aspect-ratio: 4/3;
  background: var(--mist-deep);
  overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--signal);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 5px;
  letter-spacing: 0.3px;
}
.product-card .body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.product-card .cat { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.product-card h3 { font-size: 16px; margin-bottom: 6px; }
.product-card .tagline { font-size: 13px; color: var(--muted); margin-bottom: 10px; flex: 1; }
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; row-gap: 2px; }
.product-card .price { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); white-space: nowrap; }
.product-card .compare { font-size: 13px; color: var(--muted); text-decoration: line-through; white-space: nowrap; }
.product-card .rating { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }

/* ---------- How it works ---------- */
.how-it-works { padding: 44px 0; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr 1fr; } }
.how-step { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.how-step .num { font-family: var(--font-display); font-weight: 700; color: var(--marigold-dark); font-size: 22px; margin-bottom: 8px; }
.how-step h4 { font-size: 16px; margin-bottom: 6px; }
.how-step p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C7CCE0; padding: 48px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h5 { color: var(--white); font-family: var(--font-display); font-size: 14px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; }
.footer-grid a:hover { color: var(--marigold); }
.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--white); margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 13px; color: #8891B0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.payment-icons { display: flex; gap: 10px; align-items: center; font-size: 13px; }

/* ---------- Product detail page ---------- */
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 36px 0 56px; }
@media (max-width: 900px) { .pdp-grid { grid-template-columns: 1fr; gap: 28px; } }
.pdp-gallery img { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; }
.pdp-info .cat-link { font-size: 13px; font-weight: 600; color: var(--marigold-dark); }
.pdp-info h1 { font-size: 30px; margin: 6px 0 8px; }
.pdp-info .tagline { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.pdp-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14px; flex-wrap: wrap; }
.stars { color: var(--marigold); letter-spacing: 1px; }
.pdp-price-box {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 20px;
}
.pdp-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.pdp-price { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--ink); }
.pdp-compare { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.pdp-discount { color: var(--signal); font-weight: 700; font-size: 14px; }
.pdp-price-note { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.countdown-box {
  display: flex; align-items: center; gap: 10px; background: #FFF3E0; border: 1px solid #F3D9A8;
  border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px; font-size: 13.5px; font-weight: 600; color: var(--marigold-dark);
}
.feature-list { list-style: none; padding: 0; margin: 20px 0; }
.feature-list li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 15px; align-items: flex-start; }
.feature-list li .tick { color: var(--teal); flex-shrink: 0; font-weight: 700; }

.section-block { padding: 20px 0; border-top: 1px solid var(--border); margin-top: 20px; }
.section-block h2 { font-size: 22px; }

.review-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px; background: var(--white); }
.review-card .stars { display: block; margin-bottom: 6px; }
.review-card .name { font-weight: 700; font-size: 14px; margin-top: 8px; }
.no-reviews-yet {
  border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 20px;
  text-align: center; color: var(--muted); font-size: 14px;
}

.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--marigold-dark); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Checkout ---------- */
.checkout-wrap { max-width: 520px; margin: 40px auto; }
.checkout-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.checkout-summary { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.checkout-summary img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-group input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: var(--font-body);
}
.form-group input:focus { outline: 2px solid var(--marigold); border-color: var(--marigold); }
.form-error { color: var(--signal); font-size: 13px; margin-top: 4px; }

/* ---------- Utility ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; }
.alert-success { background: #E5F5EE; color: #106847; border: 1px solid #B7E4CD; }
.alert-error { background: #FDECEA; color: #A32E1B; border: 1px solid #F3C1B5; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}