/* =====================================================
   DIGIBAZARS — RESPONSIVE STYLES
   Mobile-first breakpoint overrides
   ===================================================== */

/* ════════════════════════════════════════
   EXTRA SMALL — 320px – 575px
   ════════════════════════════════════════ */
@media (max-width: 575.98px) {

  :root {
    --section-py: 3.5rem;
  }

  /* Hero */
  #hero {
    padding-top: 70px;
    min-height: auto;
    padding-bottom: var(--space-10);
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: var(--fs-base);
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-trust {
    flex-direction: column;
    gap: var(--space-2);
  }

  .hero-stat-card {
    display: none;
  }

  .hero-visual {
    margin-top: var(--space-8);
  }

  /* Stats bar */
  .stats-bar-divider { display: none; }

  /* Category cards */
  .category-card {
    padding: var(--space-4);
  }

  /* Promotional banner */
  .promo-banner {
    padding: var(--space-5);
  }

  /* Section header */
  .section-header {
    margin-bottom: var(--space-8);
  }

  .section-title {
    font-size: 1.6rem;
  }

  /* Offer card */
  .offer-price-card {
    padding: var(--space-5);
  }

  /* Footer */
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }

  .footer-trust-badges {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
  }

  /* Policy page responsive */
  .db-policy-hero {
    padding: 100px 0 36px;
  }

  .db-policy-nav {
    flex-direction: column;
  }

  .db-policy-nav-link {
    width: 100%;
    justify-content: center;
  }

  /* Included items: stack number + icon vertically */
  .included-item {
    flex-direction: column;
  }

  /* Product actions: full width buy button */
  .product-actions {
    flex-direction: column;
  }

  .product-view-btn {
    width: 100%;
    height: auto;
    padding: var(--space-2);
  }
}

/* ════════════════════════════════════════
   SMALL — 576px – 767px
   ════════════════════════════════════════ */
@media (min-width: 576px) and (max-width: 767.98px) {

  :root {
    --section-py: 4rem;
  }

  #hero {
    padding-top: 75px;
    min-height: auto;
    padding-bottom: var(--space-12);
  }

  .hero-headline {
    font-size: 2.4rem;
  }

  .hero-stat-card {
    display: none;
  }

  .hero-visual {
    margin-top: var(--space-8);
  }

  .promo-banner {
    padding: var(--space-6);
  }
}

/* ════════════════════════════════════════
   MEDIUM — 768px – 991px (Tablet)
   ════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {

  .hero-stat-card-1 { left: -10px; }
  .hero-stat-card-2 { right: -10px; }

  .steps-wrapper::before {
    left: calc(8.333% + 30px);
    right: calc(8.333% + 30px);
  }
}

/* ════════════════════════════════════════
   ALL MOBILE (< 992px) shared
   ════════════════════════════════════════ */
@media (max-width: 991.98px) {

  /* Hero: stack vertically */
  #hero > .container > .row {
    flex-direction: column;
  }

  #hero > .container > .row > [class*="col-"] {
    width: 100%;
  }

  /* Showcase: stack vertically */
  #product-showcase .showcase-row {
    flex-direction: column !important;
  }

  /* Offer section: stack */
  #special-offer .offer-row {
    flex-direction: column !important;
  }

  /* Problem-solution: stack */
  #problem-solution .ps-row {
    flex-direction: column !important;
  }

  /* Footer columns */
  #site-footer .footer-brand {
    margin-bottom: var(--space-8);
  }
}

/* ════════════════════════════════════════
   LARGE — 992px – 1199px
   ════════════════════════════════════════ */
@media (min-width: 992px) and (max-width: 1199.98px) {

  .hero-headline {
    font-size: 3rem;
  }

  .hero-stat-card-1 { left: -20px; }
  .hero-stat-card-2 { right: -15px; }
}

/* ════════════════════════════════════════
   EXTRA LARGE — 1200px+
   ════════════════════════════════════════ */
@media (min-width: 1200px) {

  .hero-stat-card-1 { left: -30px; }
  .hero-stat-card-2 { right: -25px; }
}

/* ════════════════════════════════════════
   ULTRA WIDE — 1920px+
   ════════════════════════════════════════ */
@media (min-width: 1920px) {
  :root {
    --section-py: 7rem;
  }

  .hero-headline {
    font-size: 4.5rem;
  }
}

/* ════════════════════════════════════════
   PRINT
   ════════════════════════════════════════ */
@media print {
  #main-navbar,
  .hero-stat-card,
  #stats-bar,
  #promo-banner,
  #final-cta,
  .hero-bg-blob,
  .hero-pattern {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .product-card {
    break-inside: avoid;
  }
}

/* ════════════════════════════════════════
   DARK MODE SUPPORT (respects OS preference)
   — Minimal adjustments; brand stays consistent
   ════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  /* 
     NOTE: Dark mode is intentionally minimal for now.
     The DigiBazars brand uses a white/light design.
     Full dark mode can be added later as a theme toggle.
  */
}

/* ════════════════════════════════════════
   HIGH CONTRAST
   ════════════════════════════════════════ */
@media (forced-colors: active) {
  .btn-db-orange,
  .btn-db-blue,
  .navbar-cta {
    forced-color-adjust: none;
  }
}
