/* ==========================================================================
   responsive.css – DrinkWana Site-wide Responsive Overrides
   Breakpoints: 480px (xs), 768px (md), 1024px (lg), 1280px (xl)
   ========================================================================== */

/* ── 1. GLOBAL CONTAINER ── */
.npv-container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ── 2. HEADER / NAV ── */
.client-header__inner {
  padding: 0 20px;
}
@media (max-width: 1023px) {
  .client-header__inner {
    padding: 8px 16px;
  }
  #yt_header .header-mobile-logo img {
    height: 42px !important;
    width: auto !important;
    max-height: 42px !important;
    object-fit: contain !important;
  }
}
#yt_header.menu-fixed .logo-left img {
  height: 46px !important;
  width: auto !important;
  max-height: 46px !important;
  object-fit: contain !important;
}
#yt_header.menu-fixed .logo-left {
  flex-shrink: 0 !important;
}
#yt_header.menu-fixed .logo-left a,
#yt_header.menu-fixed .logo-left .logo-title,
#yt_header.menu-fixed .logo-left .logo-slogan {
  white-space: nowrap !important;
}

/* ── 3. HERO BANNER (trang chủ) ── */
.home-hero-banner,
.banner-wrapper img {
  max-height: 480px;
  object-fit: cover;
}
@media (max-width: 768px) {
  .banner-wrapper img {
    min-height: 160px;
    max-height: 260px;
  }
}
@media (max-width: 480px) {
  .banner-wrapper img {
    min-height: 120px;
    max-height: 180px;
  }
}

/* ── 4. PRODUCT GRID ── */
#productsGridList,
.products-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 1024px) {
  #productsGridList.grid-cols-4-desktop { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  #productsGridList { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (min-width: 480px) and (max-width: 767px) {
  #productsGridList { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 479px) {
  #productsGridList { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
}

/* Product card mobile fix */
@media (max-width: 600px) {
  .product-card .product-thumb {
    aspect-ratio: 1 / 1;
    min-height: unset;
  }
  .product-card .product-title {
    font-size: 14px !important;
    min-height: unset !important;
  }
  .product-card .product-body {
    padding: 10px 10px 12px !important;
  }
}

/* ── 5. CATEGORY SLIDER (trang sản phẩm) ── */
.category-slider-row {
  padding: 40px 16px !important;
}
.category-slider-wrapper {
  padding: 0 8px;
}
@media (max-width: 768px) {
  .category-slider-row {
    padding: 28px 12px !important;
  }
  .category-title {
    font-size: 26px !important;
  }
  .products-fan-display {
    gap: 6px !important;
    padding: 16px 0 !important;
  }
  .fan-item {
    width: 15% !important;
    max-width: 100px !important;
  }
}
@media (max-width: 480px) {
  .category-title {
    font-size: 20px !important;
  }
  .category-summary {
    font-size: 13px !important;
  }
  .fan-item {
    width: 16% !important;
    max-width: 70px !important;
  }
  .slider-arrow {
    width: 32px !important;
    height: 32px !important;
  }
}

/* ── 6. CONTACT PAGE ── */
@media (max-width: 1023px) {
  .contact-box {
    flex-direction: column !important;
  }
  .contact-info {
    flex: unset !important;
    width: 100% !important;
    padding: 32px 24px !important;
  }
  .contact-form-col {
    padding: 32px 24px !important;
  }
}
@media (max-width: 480px) {
  .contact-info {
    padding: 24px 16px !important;
  }
  .contact-form-col {
    padding: 24px 16px !important;
  }
  .form-grid-2 {
    grid-template-columns: 1fr !important;
  }
  .form-heading {
    font-size: 20px !important;
  }
  .form-submit-btn {
    font-size: 14px !important;
    padding: 13px 16px !important;
  }
  .info-rows {
    gap: 14px !important;
  }
  .info-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 13px !important;
  }
}

/* ── 7. NEWS PAGE ── */
@media (max-width: 768px) {
  .news-grid,
  .container-rita .grid {
    grid-template-columns: 1fr !important;
  }
  .sidebar-item {
    display: flex;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .news-grid {
    gap: 14px !important;
  }
}

/* ── 8. ABOUT PAGE ── */
@media (max-width: 768px) {
  .about-grid,
  .about-two-col {
    flex-direction: column !important;
    gap: 24px !important;
  }
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* ── 9. PARTNERS PAGE ── */
@media (max-width: 1023px) {
  .partner-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .partner-cards-grid {
    grid-template-columns: 1fr !important;
  }
  .partner-type-card {
    padding: 24px 20px !important;
  }
}

/* ── 10. PRODUCT DETAIL PAGE ── */
@media (max-width: 768px) {
  .product-detail-grid {
    flex-direction: column !important;
  }
  .product-detail-gallery {
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto 24px !important;
  }
  .product-detail-info {
    width: 100% !important;
    padding: 0 !important;
  }
}

/* ── 11. SECTION TITLES ── */
@media (max-width: 768px) {
  .section-title,
  .npv-section-title {
    font-size: clamp(20px, 5vw, 28px) !important;
  }
  .section-subtitle {
    font-size: 14px !important;
  }
}

/* ── 12. FOOTER ── */
@media (max-width: 768px) {
  .client-footer__inner {
    flex-direction: column !important;
    gap: 28px !important;
    align-items: flex-start !important;
  }
  .client-footer {
    padding: 32px 0 24px !important;
  }
}

/* ── 13. BREADCRUMBS ── */
@media (max-width: 480px) {
  .npv-breadcrumb,
  nav.flex.items-center.gap-2 {
    font-size: 13px !important;
    flex-wrap: wrap !important;
  }
}

/* ── 14. FLOATING WIDGETS ── */
@media (max-width: 480px) {
  .floating-chat-widget {
    bottom: 70px !important;
    right: 12px !important;
  }
  .chat-toggle-btn {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.8rem !important;
  }
}

/* ── 15. TABLE OVERFLOW ── */
table:not(.product-spec-table):not(.product-summary-spec table) {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}
@media (max-width: 768px) {
  table { font-size: 14px; }
}

/* ── 16. HOME PAGE SECTIONS ── */
@media (max-width: 768px) {
  /* Product highlight grid */
  .home-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  /* Stats counter row */
  .home-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Partner logos row */
  .home-partners-logos {
    gap: 16px !important;
  }
  .home-partners-logos img {
    height: 40px !important;
  }
}
@media (max-width: 480px) {
  .home-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .home-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── 17. IMAGE SAFETY ── */
img {
  max-width: 100%;
  height: auto;
}
iframe {
  max-width: 100%;
}

/* ── 18. OVERFLOW PREVENTION ── */
html, body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
* { box-sizing: border-box; }

/* ── 19. CERTIFICATES GALLERY & ORPHAN TEXT PREVENTION ── */
#certTrack {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#certTrack::-webkit-scrollbar {
  display: none;
}
@media (min-width: 1024px) {
  #certTrack {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    overflow-x: visible !important;
  }
}
#certLightboxModal.open {
  display: flex !important;
}
#certLightboxModal .video-modal-content {
  max-width: 540px !important;
  aspect-ratio: auto !important;
}
