/* =============================================================================
   TAYYAB CLOTH HOUSE — LUXURY FABRICS & CLOTHING
   Responsive Design & Mobile-First Breakpoints
   Tested on: 320px, 375px, 430px, 768px, 1024px, 1440px, 1920px
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Breakpoints: Max Width 1200px (Laptops & Small Desktops)
   ----------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .grid-products {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

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

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

  .catalog-layout {
    grid-template-columns: 240px 1fr;
    gap: 2rem;
  }

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

/* -----------------------------------------------------------------------------
   Breakpoints: Max Width 992px (Tablets & Medium Screens)
   ----------------------------------------------------------------------------- */
@media (max-width: 992px) {
  :root {
    --header-height-main: 70px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .top-bar-left {
    font-size: 0.7rem;
  }

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

  .hero-description {
    font-size: 1.05rem;
  }

  .grid-welcome {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .welcome-media {
    max-width: 580px;
    margin: 0 auto;
  }

  .welcome-badge-float {
    right: 0;
    bottom: -15px;
  }

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

  .editorial-split,
  .editorial-split.reversed {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }

  .grid-order {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .grid-contact {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .modal-main-img {
    height: 340px;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* -----------------------------------------------------------------------------
   Breakpoints: Max Width 768px (Mobile Landscape & Large Phones)
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

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

  .top-bar {
    display: none; /* Keep header compact on mobile */
  }

  .site-header {
    top: 0 !important;
  }

  .site-header.is-transparent:not(.is-scrolled) .main-header {
    background-color: rgba(34, 32, 34, 0.85);
  }

  .site-header.is-transparent:not(.is-scrolled) .logo-title {
    color: var(--color-white);
  }

  .hero-full {
    min-height: 85vh;
    padding-top: calc(var(--header-height-main) + 2rem);
    padding-bottom: 3rem;
  }

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

  .hero-subheading {
    font-size: 1.25rem;
  }

  .page-hero-title {
    font-size: 2.25rem;
  }

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

  .product-media {
    height: 240px;
  }

  .product-info {
    padding: 1rem;
  }

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

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

  .product-quick-actions {
    position: static;
    background: transparent;
    padding: 0.5rem 0 0 0;
  }

  .product-action-btn {
    border: 1px solid var(--color-border);
  }

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

  .gallery-item {
    height: 240px;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .floating-actions {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .btn-floating-whatsapp {
    width: 52px;
    height: 52px;
  }

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

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .toast {
    min-width: unset;
    width: 100%;
  }

  .editorial-gallery-composite {
    grid-template-columns: 1fr;
  }

  .composite-main {
    height: 320px;
  }

  .composite-sub {
    height: 180px;
  }
}

/* -----------------------------------------------------------------------------
   Breakpoints: Max Width 576px (Smartphones: 430px, 375px, 320px)
   ----------------------------------------------------------------------------- */
@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .logo-title {
    font-size: 1.35rem;
  }

  .logo-sub {
    font-size: 0.58rem;
    letter-spacing: 0.2em;
  }

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

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

  .hero-buttons .btn {
    width: 100%;
  }

  .welcome-image-main {
    height: 340px;
  }

  .welcome-badge-float {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
  }

  .welcome-highlights {
    grid-template-columns: 1fr;
  }

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

  .category-card {
    height: 320px;
  }

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

  .product-media {
    height: 290px;
  }

  .grid-fabric-guide {
    grid-template-columns: 1fr;
  }

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

  .cart-item-row {
    grid-template-columns: 60px 1fr;
    gap: 0.85rem;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--color-beige);
    padding-top: 0.65rem;
    margin-top: 0.5rem;
  }

  .modal-control-row {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
  }

  .demo-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

