/* ==========================================================================
   MUHAMMAD ANWAR EMBROIDERY — RESPONSIVE MEDIA QUERIES
   Breakpoints: 1440px | 1024px | 768px | 540px | 390px | 360px
   ========================================================================== */

/* Large Desktops (1440px and below) */
@media (max-width: 1440px) {
  :root {
    --max-width: 1240px;
  }
  .hero-title {
    font-size: 3.2rem;
  }
}

/* Laptops & Tablets Landscape (1024px and below) */
@media (max-width: 1024px) {
  .hero-banner {
    min-height: 75vh;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .section-heading {
    font-size: 2.2rem;
  }
  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .value-props-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .showcase-grid, .story-grid {
    gap: 2.5rem;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets Portrait & Large Mobile (768px and below) */
@media (max-width: 768px) {
  /* Announcement bar */
  .announcement-bar .container {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }
  .announcement-contact {
    display: none;
  }
  
  /* Header navigation */
  .header-nav-left {
    display: none;
  }
  .mobile-toggle-btn {
    display: flex;
  }
  .header-inner {
    grid-template-columns: auto 1fr auto;
    padding: 0.65rem 0;
  }
  .header-logo-img {
    height: 44px;
  }
  .header-categories-bar {
    display: none;
  }
  
  /* Hero Banner */
  .hero-banner {
    min-height: 80vh;
    padding: 3rem 0;
  }
  .hero-bg-desktop {
    display: none;
  }
  .hero-bg-mobile {
    display: block;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  
  /* Split sections */
  .showcase-grid, .story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .story-visual-stack {
    margin-bottom: 2.5rem;
  }
  .story-img-main {
    width: 100%;
  }
  .story-badge-floating {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }
  
  /* Product Grids */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .product-media-wrap {
    aspect-ratio: 1 / 1;
  }
  .product-info-wrap {
    padding: 1rem;
  }
  .product-title {
    font-size: 1rem;
  }
  .product-actions-overlay {
    opacity: 1;
    transform: none;
    position: static;
    margin-top: 0.75rem;
  }
  .product-actions-overlay .action-icon-btn {
    display: none;
  }
  .quick-add-btn {
    padding: 0.6rem;
    font-size: 0.75rem;
  }
  
  /* Value propositions */
  .value-props-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Editorial Campaign */
  .editorial-card {
    min-height: 420px;
  }
  .editorial-body {
    padding: 2rem;
  }
  
  /* Footer */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
  
  /* Search modal */
  .search-input-field {
    font-size: 1.35rem;
  }
  .search-results-grid {
    grid-template-columns: 1fr;
  }
  
  /* Mobile sticky bottom navigation */
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: rgba(17, 17, 17, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color-dark);
    display: flex !important;
    align-items: center;
    justify-content: space-around;
    z-index: 95;
    padding: 0 0.5rem;
  }
  .mobile-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-sand);
    font-size: 0.65rem;
    gap: 2px;
    padding: 0.35rem;
    position: relative;
  }
  .mobile-bottom-item.active, .mobile-bottom-item:hover {
    color: var(--color-gold);
  }
  .mobile-bottom-item svg {
    width: 20px;
    height: 20px;
  }
  
  body {
    padding-bottom: 56px;
  }
}

/* Compact Smartphones (540px and below) */
@media (max-width: 540px) {
  .section-padding {
    padding: 3.5rem 0;
  }
  .section-heading {
    font-size: 1.85rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .collections-grid {
    grid-template-columns: 1fr;
  }
  .collection-card {
    aspect-ratio: 4 / 3;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .cart-drawer {
    width: 100%;
    max-width: 100vw;
  }
}

/* Small Screens (390px and 360px) */
@media (max-width: 390px) {
  html {
    font-size: 15px;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .container {
    padding: 0 1rem;
  }
  .btn {
    padding: 0.8rem 1.5rem;
  }
}
