/* ==========================================================================
   SASHTI CRACKERS — RESPONSIVE STYLESHEET
   Breakpoints: 1400 / 1200 / 992 / 768 / 576 / 375
   ========================================================================== */

/* --------------------------------------------------------------------------
   <= 1400px (large desktops)
   -------------------------------------------------------------------------- */
@media (max-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

/* --------------------------------------------------------------------------
   <= 1200px (small desktops / laptops)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.75rem; }
  .main-menu { gap: 20px; }
  .order-summary-panel { position: static; }
}

/* --------------------------------------------------------------------------
   <= 992px (tablets landscape)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  :root {
    --header-height: 118px;
  }

  section { padding: 44px 0; }

  .main-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    transform: translateX(-100%);
    transition: var(--transition-base);
    z-index: 1020;
    overflow-y: auto;
  }
  .main-menu.is-open {
    transform: translateX(0);
  }
  .main-menu a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-actions {
    gap: 12px;
  }

  .cart-total-pill {
    padding: 5px 10px;
    font-size: 0.82rem;
  }

  .checkout-stepper {
    padding: 16px 14px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .step-item .step-label {
    display: none;
  }
  .step-connector {
    margin: 0 6px;
  }

  .qs-summary-sticky {
    top: calc(var(--header-height) - 10px);
  }
}

/* --------------------------------------------------------------------------
   <= 768px (tablets portrait)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --header-height: 104px;
  }

  body {
    font-size: 14px;
    padding-bottom: 70px; /* room for mobile fixed bar on relevant pages */
  }

  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .page-hero { padding: 32px 0; }
  .page-hero .hero-decor { opacity: 0.35; }

  .brand-logo { font-size: 1.1rem; }
  .brand-logo img { height: 36px; }

  .feature-strip .feature-item {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
  }

  .order-summary-panel {
    position: static;
    margin-top: 24px;
  }

  .mobile-fixed-bar.qs-mobile-bar {
    display: flex;
  }

  .table-cart thead {
    display: none;
  }
  .table-cart tbody tr {
    display: grid;
     
    grid-template-areas:
      "img name"
      "img price"
      "img qty"
      "img sub";
    gap: 4px 12px;
    padding: 12px;
    border-bottom: 8px solid var(--color-bg);
  }
  .table-cart tbody td {
    border-bottom: none;
    padding: 2px 0;
  }
  .table-cart td[data-label="image"] { grid-area: img; }
  .table-cart td[data-label="product"] { grid-area: name; font-weight: var(--fw-semibold); }
  .table-cart td[data-label="price"] { grid-area: price; }
  .table-cart td[data-label="qty"] { grid-area: qty; }
  .table-cart td[data-label="subtotal"] { grid-area: sub; font-weight: var(--fw-semibold); }
  .table-cart td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--color-muted);
    font-weight: var(--fw-regular);
    text-transform: capitalize;
    font-size: 0.75rem;
    display: none;
  }

  .otp-box {
    width: 42px;
    height: 50px;
    font-size: 1.2rem;
  }

  .scroll-top-btn {
    right: 16px;
    bottom: 80px;
    width: 42px;
    height: 42px;
  }
}

/* --------------------------------------------------------------------------
   <= 576px (large phones)
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
  :root {
    --header-height: 96px;
  }

  section { padding: 32px 0; }

  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.3rem; }

  .topbar {
    font-size: 0.72rem;
  }
  .topbar .topbar-contact span {
    display: none;
  }

  .checkout-stepper {
    padding: 12px;
  }
  .step-item .step-circle {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .login-card { padding: 20px; }
  .why-login-card { padding: 18px; }

  .otp-inputs { gap: 6px; }
  .otp-box {
    width: 38px;
    height: 46px;
    font-size: 1.1rem;
  }
  .summary-copy{text-align: center;    padding: 1% 8%;}
  .summary-card {    background-color: #edffd4 !important; }
  .summary-card .summary-value { font-size: 1.05rem; }
  .summary-card .summary-icon { width: 36px; height: 36px; font-size: 1rem; }

  .mobile-fixed-bar {
    padding: 10px 12px;
  }
  .mobile-fixed-bar .grand-total-value {
    font-size: 1rem;
  }
}

/* --------------------------------------------------------------------------
   <= 375px (small phones)
   -------------------------------------------------------------------------- */
@media (max-width: 375px) {
  .brand-logo span { display: none; }
  .header-actions { gap: 8px; }
  .cart-total-pill { display: none; }
  .category-icon-card .icon-wrap {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }
  .product-card .product-body { padding: 12px; }
  .brand-card { padding: 12px 8px; }
  .brand-img-wrap { width: 72px; height: 72px; }
  .brand-name { font-size: 0.8rem; }
  .otp-box {
    width: 34px;
    height: 42px;
    font-size: 1rem;
  }
  .qty-selector button { width: 30px; height: 30px; }
  .qty-selector input { width: 34px; }
}

/* --------------------------------------------------------------------------
   Print (utility)
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .scroll-top-btn, .mobile-fixed-bar { display: none !important; }
}
