/* ==========================================================================
   RESPONSIVE DESIGN MEDIA QUERIES
   ========================================================================== */

/* 1. Large Screen Adjustments (1200px and up) */
@media (min-width: 1200px) {
  .container-wide {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

/* 2. Desktop/Tablet Transition (under 1024px) */
@media (max-width: 1024px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4.5rem;
  }

  /* Header adjustments */
  .desktop-nav {
    display: none; /* Hide desktop menu */
  }

  .menu-toggle {
    display: block; /* Show hamburger button */
  }

  /* Hero grid */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
    padding-top: 100px;
    min-height: auto;
    padding-bottom: var(--space-lg);
  }

  .hero-content {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image-container {
    order: 1;
    width: 100%;
  }

  .hero-product-img {
    max-height: 400px;
  }

  /* Story grid */
  .story-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .story-image-wrap img {
    height: 400px;
  }

  /* Categories layout */
  .categories-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-block {
    height: 320px;
  }

  /* Reels Carousel - 3 items per row on tablet */
  .reel-card {
    flex: 0 0 calc(33.333% - 10px);
  }

  /* Footer grid */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
  
  .footer-brand {
    grid-column: span 2;
  }

  /* Parallax Section */
  .parallax-section {
    height: 50vh;
  }
}

/* 3. Small Tablets and Mobile Landscape (under 768px) */
@media (max-width: 768px) {
  :root {
    --space-lg: 2.5rem;
    --space-xl: 3.5rem;
  }

  /* Header mobile layout fixes */
  .logo-link {
    gap: 8px !important;
  }
  .logo-link img {
    width: 32px !important;
    height: 32px !important;
  }
  .logo-text {
    font-size: 14px !important;
    line-height: 1.1 !important;
    width: auto !important;
    height: auto !important;
  }
  .logo-text span {
    font-size: 11px !important;
    display: block !important;
  }

  .header-actions {
    gap: 12px !important;
  }
  .cart-icon-btn {
    display: none !important;
  }
  
  .header-wa-btn {
    font-size: 0 !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }
  .header-wa-btn svg {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
  }

  .menu-toggle {
    width: 32px !important;
    height: 32px !important;
    font-size: 20px !important;
    line-height: 32px !important;
  }


  .section {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  /* Trust bar scrollable or wrapped */
  .trust-items {
    justify-content: center;
    gap: var(--space-sm);
  }

  .trust-item {
    font-size: 0.8rem;
  }

  /* Categories layout - single column */
  .categories-layout {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .category-block {
    height: 250px;
  }

  /* Reels Carousel - 1.3 to 1.5 cards visible for horizontal swiping indication */
  .reel-card {
    flex: 0 0 70%; /* Shows one card and a portion of the next one */
    min-width: 200px;
  }
  
  .carousel-nav-buttons {
    display: none; /* Hide navigation arrows, swipe is easier on mobile */
  }

  /* Testimonials grid */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  /* Modal Prev/Next buttons hide on mobile viewport */
  .modal-nav-btn {
    display: none;
  }

  .modal-content-container {
    width: 95%;
  }

  /* Footer bottom styling stack */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }

  /* Floating WhatsApp position on mobile */
  .floating-whatsapp {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }

  /* CTA Buttons */
  .cta-buttons {
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
    padding: 0 var(--space-sm);
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
}

/* 4. Small Mobile Phones (under 480px) */
@media (max-width: 480px) {
  :root {
    --space-lg: 2rem;
    --space-xl: 3rem;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .logo-link img {
    height: 36px;
    width: 36px;
  }
  
  header.sticky .logo-link img {
    height: 32px;
    width: 32px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .product-image-area {
    height: 250px;
  }

  .product-name-title {
    font-size: 1.4rem;
  }

  .why-card {
    padding: var(--space-sm);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-brand {
    grid-column: span 1;
  }

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

/* 5. Extra Small Screen Fixes (under 360px) */
@media (max-width: 360px) {
  .logo-text {
    font-size: 1rem;
  }
  
  .hero-title {
    font-size: 1.9rem;
  }
}

/* Developer Banner Responsive Styles */
@media (max-width: 991px) {
  .developer-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
  }
  .dev-banner-right {
    width: 100%;
  }
  .dev-chat-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .dev-banner-left {
    flex-direction: row;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .dev-banner-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .dev-links {
    flex-direction: column;
    gap: 0.6rem;
  }
}

