/* site/css/responsive.css - Responsive layouts for 360px, 390px, 768px, 1280px, 1440px */

/* Mobile Bottom Navigation Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 1px solid #EAEAEA;
  z-index: 1000;
  height: 60px;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.06);
}

.mobile-bottom-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 100%;
}

.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #444;
  font-size: 11px;
  font-weight: 500;
  gap: 3px;
  position: relative;
}

.mobile-bottom-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.mobile-bottom-item.active {
  color: var(--primary);
}

/* Mobile Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1090;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 85%;
  max-width: 340px;
  background: #FFF;
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid #EEE;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
}

.mobile-drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #F5F5F5;
  font-size: 15px;
  font-weight: 500;
  color: #111;
}

.mobile-subnav {
  background: #F9F9F9;
  display: none;
  padding: 8px 0;
}

.mobile-subnav.open {
  display: block;
}

.mobile-subnav a {
  display: block;
  padding: 10px 32px;
  font-size: 14px;
  color: #555;
}

/* ==================== 1280px & 1440px ==================== */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
}

@media (max-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .nav-link {
    padding: 12px 12px;
    font-size: 13.5px;
  }
}

/* ==================== 768px (Tablet) ==================== */
@media (max-width: 768px) {
  .nav-bar {
    display: none; /* Replaced by hamburger menu & drawer */
  }

  .header-main {
    padding: 12px 0;
  }

  .header-search {
    display: none; /* Moved to search icon or mobile search bar */
  }

  .site-logo img {
    height: 38px;
  }

  .hero-slider-section {
    height: 400px;
  }

  .hero-title {
    font-size: 32px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .main-image-viewport {
    height: 380px;
  }

  .gallery-sticky {
    position: static;
  }

  .bundle-module-row {
    grid-template-columns: 60px 1fr 100px;
    grid-template-rows: auto auto;
    gap: 10px;
  }

  .module-line-total {
    grid-column: span 3;
    text-align: right;
    border-top: 1px dashed #EEE;
    padding-top: 6px;
  }

  .trust-badges-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .mobile-bottom-bar {
    display: block;
  }

  body {
    padding-bottom: 60px; /* Space for bottom bar */
  }
}

/* ==================== 390px & 360px (Mobile) ==================== */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .top-notification-bar {
    font-size: 11.5px;
    padding: 6px 10px;
  }

  .site-logo img {
    height: 32px;
  }

  .cart-pill-price {
    display: none;
  }

  .cart-toggle-pill {
    padding: 6px;
    background: transparent;
    border: none;
  }

  .hero-slider-section {
    height: 340px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .hero-desc {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .section-padding {
    padding: 45px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-title {
    font-size: 13.5px;
  }

  .product-current-price {
    font-size: 15px;
  }

  .main-image-viewport {
    height: 290px;
  }

  .product-info-column h1 {
    font-size: 22px;
  }

  .product-detail-price {
    font-size: 26px;
  }

  .features-check-list {
    grid-template-columns: 1fr;
  }

  .bundle-module-row {
    grid-template-columns: 55px 1fr;
    gap: 8px;
  }

  .module-unit-price {
    font-size: 13px;
  }

  .bundle-module-row .qty-stepper {
    margin-top: 6px;
  }

  .bundle-calculation-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .bundle-total-value {
    font-size: 24px;
  }

  .trust-badges-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tabs-nav {
    overflow-x: auto;
    gap: 16px;
  }

  .tab-btn {
    font-size: 14px;
    white-space: nowrap;
  }

  .floating-whatsapp {
    bottom: 75px;
    right: 18px;
    width: 48px;
    height: 48px;
  }

  .floating-whatsapp svg {
    width: 26px;
    height: 26px;
  }
}
