/* ==========================================================================
   NakshatraVeda — Responsive Breakpoints & Mobile-First Polish
   ========================================================================== */

/* Tablet & Mobile Screens (< 1200px) */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .intention-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .zodiac-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

/* Tablet & Mobile Screens (< 992px) */
@media (max-width: 992px) {
  /* REQUIREMENT 1: Hide top announcement bar on mobile (< 992px) */
  .announcement-bar {
    display: none !important;
  }

  /* Keep header clean with just logo, search, and menu */
  .main-nav {
    display: none; /* Replaced by off-canvas mobile drawer */
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .header-actions .hide-on-mobile {
    display: none !important;
  }

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

  /* Hero Section */
  .hero-section {
    padding: 3.5rem 0 4rem;
    min-height: auto;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-trust-bar {
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  /* Grids */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

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

  .zodiac-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .custom-banner {
    padding: 2.25rem 1.5rem;
  }

  .custom-banner-title {
    font-size: 1.75rem;
  }

  /* Shop Mobile Architecture & Filter Drawer */
  .shop-layout {
    display: block !important;
  }

  .shop-mobile-filter-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-bottom: 1.25rem !important;
    background: #FFFFFF !important;
    padding: 0.75rem 1rem !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--nv-border) !important;
  }

  .shop-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 320px !important;
    max-width: 86vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    background: #FFFFFF !important;
    z-index: 1050 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto !important;
    box-shadow: 4px 0 24px rgba(11, 19, 37, 0.25) !important;
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .shop-sidebar.active {
    transform: translateX(0) !important;
  }

  .shop-sidebar-close {
    display: block !important;
    background: none !important;
    border: none !important;
    font-size: 1.8rem !important;
    line-height: 1 !important;
    color: var(--nv-muted) !important;
    cursor: pointer !important;
    padding: 0 0.5rem !important;
  }

  .shop-sidebar-footer {
    display: flex !important;
    margin-top: auto !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid var(--nv-border-light) !important;
    gap: 0.75rem !important;
    align-items: center !important;
  }

  /* Layout Collapses for Mobile/Tablet */
  .product-detail-layout,
  .cart-layout,
  .checkout-layout,
  .two-col-layout {
    display: block !important;
  }

  .product-detail-layout > div:first-child,
  .cart-layout > div:first-child,
  .checkout-layout > div:first-child,
  .two-col-layout > div:first-child {
    margin-bottom: 2.5rem !important;
  }

  .grid-2-col,
  .grid-3-col {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .quiz-grid-4 {
    grid-template-columns: repeat(3, 1fr) !important;
  }

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

  /* Space for fixed bottom navigation bar */
  body {
    padding-bottom: 68px;
  }

  /* REQUIREMENT 2: Bottom nav bar must fit 100% width with 0 horizontal overflow (flex: 1 1 0, no 100vw) */
  .bottom-nav-bar {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .bottom-nav-bar .bottom-nav-inner {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .bottom-nav-item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 0.2rem 0.1rem !important;
  }

  .floating-whatsapp {
    bottom: 72px;
    right: 15px;
    width: 48px;
    height: 48px;
  }
  .floating-whatsapp svg {
    width: 26px;
    height: 26px;
  }
}

/* Small Smartphone Screens (< 576px) */
@media (max-width: 576px) {
  .section-title {
    font-size: 1.75rem;
  }

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

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

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

  .product-content {
    padding: 0.85rem 0.65rem;
  }

  .product-title {
    font-size: 0.82rem;
    height: 2.4rem;
  }

  .product-price {
    font-size: 1rem;
  }

  .product-action-bar .product-add-cart-btn {
    font-size: 0.74rem;
    padding: 0.5rem 0.35rem;
    white-space: nowrap;
  }

  .product-whatsapp-btn {
    width: 34px !important;
    height: 34px !important;
    flex-shrink: 0 !important;
  }

  .product-whatsapp-btn svg {
    width: 17px !important;
    height: 17px !important;
  }

  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

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

  .zodiac-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .zodiac-card {
    padding: 0.75rem 0.4rem;
  }

  .zodiac-symbol-badge {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  .zodiac-name {
    font-size: 0.88rem;
  }

  .intention-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

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

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

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

  .modal-box {
    margin: 0.75rem;
    max-height: 94vh;
  }
}

