/* ==========================================================================
   MDMA SPICES AND FOODS — Responsive Breakpoint System & Mobile Navigation
   Screen support: 320px, 360px, 375px, 390px, 414px, 480px, 576px, 768px, 820px, 1024px, 1200px, 1400px, 1920px
   ========================================================================== */

/* ==========================================================================
   Mobile Navigation Drawer
   ========================================================================== */

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: #111827;
  border-right: 1px solid #1F2937;
  z-index: 2000;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

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

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer-header img {
  height: 40px;
  width: auto;
}

.close-drawer-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #F9FAFB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.05);
}

.close-drawer-btn:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-primary-light);
  padding-left: 8px;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-contact-info {
  font-size: 0.82rem;
  color: var(--text-light-muted);
  margin-bottom: 16px;
}

.mobile-contact-info p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* 1400px and above (Large Screens) */
@media (min-width: 1400px) {
  :root {
    --container-max: 1380px;
  }
}

/* 1200px and below (Small Desktops / Laptops) */
@media (max-width: 1200px) {
  .header-inner {
    gap: 12px;
  }

  .nav-menu {
    gap: 12px;
  }

  .nav-link {
    font-size: 0.84rem;
  }

  .header-cta-btn {
    padding: 7px 13px;
    font-size: 0.78rem;
    gap: 5px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .usp-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
    gap: 28px;
  }

  .showcase-wrapper {
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 24px;
  }

  .hero-grid {
    gap: 30px !important;
  }
}

/* 1040px and below (Laptops, Tablets & Mobile) */
@media (max-width: 1040px) {
  :root {
    --header-height: 72px;
  }

  .nav-menu,
  .header-cta-btn {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .top-bar-left {
    display: none;
  }

  .top-bar-content {
    justify-content: space-between;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content div[style*="justify-content"],
  .hero-content .section-tag {
    justify-content: center;
  }

  .hero-visual {
    order: 2;
    margin-top: 20px;
  }

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

  .blog-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

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

  .shop-layout,
  .cart-layout,
  .checkout-layout,
  .account-layout,
  .contact-layout,
  .pdp-layout,
  .deal-box,
  .featured-blog-box {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

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

  .showcase-center-media {
    order: -1;
  }

  .showcase-feature-item.reverse {
    flex-direction: row;
    text-align: left;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

/* 768px and below (Portrait Tablets & Large Phones) */
@media (max-width: 768px) {
  :root {
    --header-height: 68px;
    --container-pad: 16px;
  }

  .header-logo img {
    height: 57px !important;
  }

  .top-bar-center {
    display: none;
  }

  .top-bar-content {
    justify-content: center;
  }

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

  .category-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid,
  .testimonial-grid,
  .why-grid {
    grid-template-columns: 1fr !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Vertical Timeline on Mobile */
  .tracking-timeline {
    flex-direction: column;
    gap: 20px;
    margin: 24px 0;
  }

  .tracking-timeline::before {
    top: 0;
    left: 24px;
    width: 3px;
    height: 100%;
  }

  .tracking-progress-bar {
    top: 0;
    left: 24px;
    width: 3px;
    height: 60%;
  }

  .timeline-step {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 16px;
  }

  .step-circle {
    margin: 0;
    flex-shrink: 0;
  }

  .main-footer .container,
  .main-footer .footer-top,
  .main-footer .footer-main,
  .main-footer .footer-newsletter-inner,
  .main-footer .footer-bottom-inner {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .footer-top,
  .footer-main {
    padding-top: 40px !important;
    padding-bottom: 28px !important;
  }

  .footer-newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-newsletter .newsletter-form {
    width: 100%;
    flex-direction: column;
  }

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

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-bottom-badges {
    justify-content: center;
    gap: 12px;
  }

  .quickview-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  #main-gallery-img {
    height: 340px !important;
  }

  .pdp-tab-pane {
    font-size: 0.95rem !important;
  }

  section.hero-section.section-dark {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #F8F9FA;
  }
}

/* 576px and below (Mobile Phones) */
@media (max-width: 576px) {
  :root {
    --header-height: 64px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-action-btn {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
  }

  .action-badge {
    width: 17px;
    height: 17px;
    font-size: 0.62rem;
  }

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

  .product-content {
    padding: 12px 10px;
  }

  .product-title {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  .current-price {
    font-size: 1.05rem;
  }

  .card-add-cart-btn {
    font-size: 0.75rem;
    padding: 7px 8px;
  }

  .usp-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .btn-lg {
    padding: 12px 24px;
  }
}

/* 400px and below (Extra Small Screens - 320px/360px/375px/390px) */
@media (max-width: 400px) {
  .top-bar {
    font-size: 0.72rem;
  }

  .header-logo img {
    height: 55px !important;
    max-width: 160px;
  }

  .header-action-btn {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }

  .mobile-menu-toggle {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .hero-content h1 {
    font-size: 2rem !important;
  }

  .btn {
    width: 100%;
  }

  .modal-card {
    padding: 16px 12px;
  }
}

.header-logo img {
  height: 61px;
}

.footer-about .footer-logo img {
  height: 71px;
}