/* ==========================================================================
   THP FOODS - Responsive Layouts (Mobile, Tablet, Desktop)
   ========================================================================== */

/* Tablet & Mobile shared overrides */
@media (width <=1023px) {
  .nav-desktop {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 2.5rem;
  }

  .hero-subtext {
    max-width: 100%;
  }

  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .modal-content-grid {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }

  .ledger-row {
    grid-template-columns: 60px 1fr auto;
    gap: 0.75rem;
  }

  .ledger-desc {
    display: none;
  }
}

/* Tablet (<= 768px) */
@media (width <=768px) {
  :root {
    --header-height: 60px;
  }

  .section-spacing {
    padding-block: 2.25rem;
  }

  .products-poster-grid,
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .why-facts-grid {
    grid-template-columns: 1fr;
  }

  .bulk-b2b-banner {
    padding-block: 3.5rem;
  }

  .bulk-b2b-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .bulk-b2b-title {
    font-size: 1.85rem;
  }

  .bulk-b2b-sub {
    font-size: 1rem;
  }

  .bulk-b2b-actions {
    width: 100%;
  }

  .bulk-b2b-actions .btn {
    width: 100%;
  }

  .site-footer {
    padding-top: 2.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 1.25rem;
  }

  .footer-bottom,
  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-legal-links {
    justify-content: center;
  }

  .footer-bottom-bar {
    margin-top: 1.5rem;
    padding-block: 1rem;
  }

  .hero-showcase-photo {
    min-height: 240px;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
}

/* Mobile Small to Medium (<= 540px) */
@media (width <=540px) {
  .site-header {
    height: 60px;
  }

  .brand-logo-img {
    height: 36px;
    width: auto;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .btn-whatsapp-nav {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0.45rem;
    justify-content: center;
    border-radius: var(--radius-round);
  }

  .btn-whatsapp-nav span {
    display: none;
  }

  #btn-toggle-cart-drawer {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0.45rem;
    justify-content: center;
    border-radius: var(--radius-round);
  }

  .mobile-nav-toggle {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .hero-headline {
    font-size: clamp(1.75rem, 6.2vw, 2.25rem);
    line-height: 1.15;
  }

  .hero-subtext {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .hero-stamp-badge {
    font-size: 0.68rem;
    padding: 4px 8px;
    max-width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-cta-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    width: 100%;
  }

  .hero-cta-group .btn {
    min-height: 44px;
    padding: 0.75rem 0.85rem;
    font-size: 0.88rem;
    justify-content: center;
  }

  .hero-cta-group .btn:first-child {
    grid-column: 1 / -1;
  }

  .hero-stat-card {
    padding: 0.55rem 0.65rem;
  }

  .hero-stat-val {
    font-size: 1.2rem;
  }

  .hero-stat-lbl {
    font-size: 0.68rem;
  }

  .story-ring-wrap {
    width: 64px;
    height: 64px;
  }

  .story-bar-scroll {
    gap: 1.15rem;
    padding: 0.5rem 0.25rem 0.85rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .story-bubble {
    scroll-snap-align: start;
  }

  .story-bubble span {
    font-size: 0.72rem;
  }

  .filter-tabs-nav {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .filter-tab-btn {
    font-size: 0.82rem;
    scroll-snap-align: start;
  }

  .stamps-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-block: 2rem;
  }

  .rubber-stamp {
    width: 100%;
    padding: 1rem 1.25rem;
  }

  .footer-grid {
    gap: 1.25rem;
  }

  .footer-col-heading {
    margin-bottom: 0.65rem;
  }

  .footer-address {
    margin-bottom: 0.75rem;
  }

  .footer-address p {
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
  }

  .footer-social-strip {
    margin-top: 0.35rem;
    gap: 0.5rem;
  }

  .footer-social-icon {
    width: 38px;
    height: 38px;
  }

  .footer-bottom-bar {
    margin-top: 1.25rem;
    padding-block: 0.85rem;
  }
}

/* Extra Small (<= 400px) */
@media (width <=400px) {
  .container {
    padding-inline: 0.85rem;
  }

  .section-spacing {
    padding-block: 1.75rem;
  }

  .hero-cta-group {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
  }

  .filter-tab-btn {
    font-size: 0.78rem;
    padding-bottom: 0.35rem;
  }
}