/* Maa Sukriti Pharmaceuticals - Responsive Layout Stylesheet */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .highlights-container {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -30px;
    gap: var(--spacing-sm);
  }
  
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-lg: 1.75rem;
    --spacing-xl: 3rem;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  /* Mobile Menu Styles */
  .menu-toggle {
    display: block;
    order: 3;
    padding: 0.5rem;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: var(--spacing-lg);
    gap: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.15rem;
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .nav-actions {
    order: 2;
  }
  
  /* Hero Section */
  .hero {
    padding: 40px 0 80px 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    order: -1;
  }
  
  .hero-img {
    max-width: 320px;
  }
  
  .shape-1 {
    width: 150px;
    height: 150px;
  }
  
  /* Other Sections */
  .section-title {
    font-size: 1.8rem;
  }
  
  .why-us-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .certs-slider {
    gap: var(--spacing-md);
  }
  
  .cert-logo {
    height: 55px;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  
  /* Mobile Catalog & Layout Fixes */
  #catalogGrid {
    grid-template-columns: 1fr !important;
  }
  
  #sidebarFilters {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: var(--spacing-sm) !important;
    padding: var(--spacing-sm) !important;
    margin-bottom: var(--spacing-md) !important;
  }
  
  #sidebarFilters > div {
    margin-bottom: 0 !important;
  }
  
  #categoriesFilterList {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    max-height: none !important;
    overflow-y: visible !important;
    gap: 0.35rem !important;
  }
  
  .btn-category-filter {
    padding: 0.35rem 0.75rem !important;
    background-color: var(--gray-light) !important;
    border: 1px solid var(--gray-medium) !important;
    display: inline-block !important;
    width: auto !important;
    text-align: center !important;
  }
  
  .btn-category-filter.active {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
  }
  
  /* Dynamic Detail and Cart page mobile conversion */
  #productDetailsWrapper,
  #cartMainContainer {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-md) !important;
  }
}

@media (max-width: 576px) {
  .highlights-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  
  .highlights-container .highlight-card {
    padding: 0.75rem !important;
  }
  
  .highlights-container .highlight-number {
    font-size: 1.5rem !important;
  }
  
  .highlights-container .highlight-label {
    font-size: 0.8rem !important;
  }
  
  .highlights-container .highlight-icon {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 0.35rem !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  
  .products-grid .product-image-container {
    height: 130px !important;
  }
  
  .products-grid .product-tag,
  .products-grid .product-badge-featured {
    font-size: 0.6rem !important;
    padding: 0.15rem 0.4rem !important;
    top: 6px !important;
  }
  .products-grid .product-tag {
    left: 6px !important;
  }
  .products-grid .product-badge-featured {
    right: 6px !important;
  }

  .products-grid .product-content {
    padding: 0.5rem !important;
  }
  
  .products-grid .product-category {
    display: none !important;
  }
  
  .products-grid .product-title {
    font-size: 0.85rem !important;
    margin-bottom: 0.25rem !important;
    height: 2.6em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.3 !important;
  }
  
  .products-grid .product-composition {
    font-size: 0.72rem !important;
    padding: 0.25rem 0.4rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .products-grid .product-desc {
    display: none !important;
  }
  
  .products-grid .product-footer {
    flex-direction: column !important;
    gap: 0.35rem !important;
  }
  
  .products-grid .product-footer .btn {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.75rem !important;
  }
  
  .logo-text {
    font-size: 1.05rem !important;
    letter-spacing: -0.5px;
  }
  
  .logo-img {
    height: 35px !important;
  }
  
  .logo-tagline {
    font-size: 0.55rem !important;
    letter-spacing: 1px !important;
  }
  
  #sidebarFilters {
    grid-template-columns: 1fr !important;
  }
}
