/* ==========================================================================
   AMZ Supplies - Responsive Styles
   Loaded globally via includes/header.php — all current and future pages
   inherit these breakpoints automatically when using the shared layout.
   ========================================================================== */

/* Mobile nav toggle (hidden on desktop) */
.mobile-nav-toggle { display: none; }

/* --------------------------------------------------------------------------
   Large tablets / small desktops (≤1199px)
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .section-title { font-size: 30px; line-height: 38px; }
  .promo-band h2 { font-size: 30px; }
  .promo-band p { font-size: 20px; }
  .listing-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Tablets (≤991px)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  /* Top bar & header */
  .top-bar { display: none !important; }
  .header-phone { display: none !important; }
  .site-header .logo img { max-height: 44px; }

  /* Mobile navigation */
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    border: 0;
    padding: 12px 18px;
    font-weight: 600;
    text-transform: uppercase;
    width: 100%;
    justify-content: center;
  }
  .main-nav .nav-list { display: none; flex-direction: column; }
  .main-nav .nav-list.open { display: flex; }
  .main-nav .nav-list > .nav-item > a {
    padding: 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    white-space: normal;
  }
  .dropdown-menu-dme,
  .submenu-dme {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: #f3f7fa;
    padding: 0;
    display: none;
    min-width: 0;
  }
  .main-nav .nav-item.mobile-open > .dropdown-menu-dme,
  .dropdown-menu-dme li.mobile-open > .submenu-dme,
  .submenu-dme li.mobile-open > .submenu-dme { display: block; }
  .submenu-dme { background: #e9f1f7; }
  .dropdown-menu-dme > li > a { padding-left: 28px; }
  .submenu-dme > li > a { padding-left: 40px; }
  .submenu-dme .submenu-dme > li > a { padding-left: 52px; }
  .submenu-dme .submenu-dme .submenu-dme > li > a { padding-left: 64px; }
  .submenu-dme .submenu-dme .submenu-dme .submenu-dme > li > a { padding-left: 76px; }

  /* Home sections */
  .category-circles { flex-wrap: wrap; gap: 16px; }
  .cat-circle { flex: 0 0 calc(33.333% - 12px); }
  .promo-band h2 { font-size: 26px; }
  .promo-band p { font-size: 18px; }
  .promo-band .btn.btn-dme-navy { font-size: 16px; padding: 14px 22px; }

  /* Product carousels */
  .owl-products .owl-nav { top: -36px; }
  .products-section .section-heading {
    font-size: 16px;
    background: none;
    padding-right: 70px;
  }

  /* Listing page */
  .listing-layout { grid-template-columns: 1fr; }
  .listing-sidebar { margin-bottom: 8px; }
  .listing-wrapper { padding-top: 24px; padding-bottom: 24px; }

  /* Content pages */
  .base-page-title,
  .about-page-title { font-size: 28px; }

  /* Footer */
  .site-footer { padding-top: 36px; margin-top: 36px; }
}

/* --------------------------------------------------------------------------
   Mobile landscape / large phones (≤767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  body { font-size: 14px; }

  .site-header .row { --bs-gutter-y: 0.75rem; }
  .site-header .logo img { max-height: 40px; }
  .search-box .form-control,
  .search-box .btn-search { height: 42px; }

  /* Hero */
  .owl-hero .owl-dots { bottom: 8px; }

  /* Sections */
  .section-title {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 24px;
  }
  .category-circles { gap: 12px; }
  .cat-circle { flex: 0 0 calc(33.333% - 8px); }
  .cat-circle .cat-name { font-size: 11px; }
  

  .promo-band { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .promo-band h2 { font-size: 22px; margin-bottom: 10px; }
  .promo-band p { font-size: 16px; margin-bottom: 1rem !important; }

  /* Insurance grid */
  .insurance-grid { grid-template-columns: repeat(2, 1fr); }
  .insurance-grid__item {
    min-height: 110px;
    padding: 16px 12px;
  }
  .insurance-grid__item img {
    width: 90%;
    margin: 12px auto;
    max-height: 56px;
  }
  .insurance-grid__item:nth-child(4n)::before { display: block; }
  .insurance-grid__item:nth-child(2n)::before { display: none; }
  .insurance-grid__item:nth-child(4)::before,
  .insurance-grid__item:nth-child(8)::before,
  .insurance-grid__item:nth-child(12)::before { display: none; }
  .insurance-grid__item:nth-child(9)::after,
  .insurance-grid__item:nth-child(10)::after,
  .insurance-grid__item:nth-child(11)::after,
  .insurance-grid__item:nth-child(12)::after { display: block; }
  .insurance-grid__item:nth-child(11)::after,
  .insurance-grid__item:nth-child(12)::after { display: none; }

  /* Product cards */
  .product-card .prod-thumb { height: 180px; padding: 14px; }
  .product-card .prod-name { font-size: 14px; min-height: 36px; }
  .product-card .prod-price { font-size: 16px; }

  /* Listing page */
  .listing-wrapper { padding-left: 1rem !important; padding-right: 1rem !important; }
  .listing-page-title { font-size: 22px; line-height: 1.35; }
  .listing-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .listing-prod-thumb { height: 170px; padding: 12px; }
  .listing-prod-name { font-size: 13px; min-height: 36px; }
  .listing-prod-price { font-size: 15px; }
  .listing-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .toolbar-right {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .toolbar-field { width: 100%; }
  .toolbar-field .form-select { flex: 1; min-width: 0; width: 100%; }
  .toolbar-pages { flex-wrap: wrap; }

  /* Content pages */
  .whitebox-inner { padding: 10px 16px 20px; }
  .contact-map { margin: 0 -16px 20px; }
  .contact-map iframe { min-height: 240px; }
  .about-logo-block { padding: 24px 0 20px; margin-bottom: 20px; }
  .about-logo-block img { max-width: 260px; }
  .about-tagline { font-size: 16px; }
  .about-columns p,
  .base-page-section p { font-size: 13.5px; }

  /* Footer */
  .site-footer { font-size: 13px; }
  .site-footer h5 { margin-bottom: 12px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 28px;
    padding: 16px 0;
  }
  .footer-bottom img { max-height: 22px; }

  /* Floating buttons */
  .chat-fab {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .acsb-fab {
    left: 10px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* --------------------------------------------------------------------------
   Mobile portrait (≤575px)
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  .container,
  .container-dme { padding-left: 14px; padding-right: 14px; }
  .header-bar {justify-content: center;}
  .section-title { font-size: 24px; line-height: 28px; }

  .category-circles { gap: 14px 8px; }
  .cat-circle { flex: 0 0 30%; }
  .cat-circle .cat-name { font-size: 12px; letter-spacing: .2px; }

  .promo-band h2 { font-size: 24px; }
  .promo-band p { font-size: 16px; }
  .promo-band .btn.btn-dme-navy {
    font-size: 14px;
    padding: 12px 20px;
    width: 100%;
    max-width: 280px;
  }

  .products-section .section-heading { font-size: 18px; }
  .owl-products .owl-nav button.owl-prev,
  .owl-products .owl-nav button.owl-next {
    width: 30px;
    height: 28px;
    font-size: 13px !important;
  }

  .insurance-grid__item { min-height: 90px; }
  .insurance-grid__item img { max-height: 48px; }

  .listing-product-grid { gap: 14px 10px; }
  .listing-prod-thumb { height: 150px; }
  .listing-btn-add { padding: 9px 16px; font-size: 11px; }

  .pd-title { font-size: 22px; }
  .pd-main-image-wrap { min-height: 260px; padding: 14px; }
  .pd-main-image { max-height: 220px; }
  .pd-service-sidebar { border-left: 0; border-top: 1px solid var(--dme-border); padding-left: 0; padding-top: 18px; margin-top: 8px; }
  .pd-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .pd-tab { white-space: nowrap; padding: 12px 14px; font-size: 13px; }
  .pd-price { font-size: 28px; }

  .base-page-title,
  .about-page-title { font-size: 24px; }
  .base-page .bg-white { padding: 0.75rem !important; }
  .bread-crumb-sec { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
  .listing-breadcrumb { font-size: 12px; }

  .contact-submit { width: 100%; }
  .base-page-section h3 { font-size: 15px; }

  .site-footer { padding-top: 28px; margin-top: 28px; }
  .site-footer .footer-logo { max-height: 34px; }

  .acsb-fab { display: none; }
}

/* --------------------------------------------------------------------------
   Small phones (≤399px)
   -------------------------------------------------------------------------- */
@media (max-width: 399.98px) {
  .category-circles { justify-content: center; }
  .cat-circle { flex: 0 0 42%; }

  .listing-product-grid { grid-template-columns: 1fr; }
  .listing-prod-thumb { height: 200px; }

  .product-card .prod-thumb { height: 200px; }
}
