/* 
  Naresh Enterprises – Responsive Breakpoints & Mobile Optimization
  File: css/responsive.css
*/

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-left p {
    margin: 0 auto 2.2rem auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-trust-badges {
    justify-content: center;
  }

  .why-choose-container {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 768px) {
  html {
    overflow-x: clip;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
    z-index: 1400;
    pointer-events: none;
  }

  .container {
    width: min(100% - 2rem, 1240px);
  }

  .top-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .logo {
    min-width: 0;
    font-size: clamp(1.15rem, 5vw, 1.7rem);
  }

  .logo-text {
    min-width: 0;
  }

  .search-bar {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    min-width: 0;
  }

  .account-icons {
    margin-left: auto;
    gap: 0.75rem;
  }

  .nav-wrapper {
    min-height: 3.5rem;
  }

  .top-links {
    display: none;
  }

  .search-category {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    position: relative;
    z-index: 1600;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 86vw);
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1500;
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-link {
    display: block;
    padding: 0.8rem 0;
  }

  .rx-upload-btn {
    display: none;
  }

  .hero-container,
  .why-choose-container,
  .contact-grid {
    min-width: 0;
  }

  .hero-left,
  .hero-right,
  .hero-slider {
    min-width: 0;
    width: 100%;
  }

  .hero-tag {
    max-width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-trust-badges {
    gap: 1rem;
    justify-content: space-between;
  }

  .trust-item {
    min-width: 0;
    gap: 0.5rem;
  }

  .trust-item i {
    font-size: 1.5rem;
  }

  .trust-item span {
    display: block;
    overflow-wrap: anywhere;
  }

  .features-grid,
  .category-grid,
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-card,
  .category-card,
  .product-card {
    min-width: 0;
  }

  .section-header-flex {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

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

  .newsletter-card {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    width: 100%;
  }

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

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

  .owner-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.75rem;
  }

  .owner-message {
    padding-left: 0;
    border-left: none;
  }

  .owner-highlights {
    justify-content: center;
  }

  .owner-contact-footer {
    justify-content: center;
  }

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

  .hero-left h1 {
    font-size: 2.2rem;
  }

  .page-hero h1 {
    font-size: 2.1rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.25rem, 1240px);
  }

  .top-nav {
    padding: 0.75rem 0;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .account-icons .icon-label {
    display: none;
  }

  .hero-section {
    padding: 2.5rem 0;
  }

  .hero-left h1 {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }

  .hero-trust-badges {
    align-items: flex-start;
  }

  .trust-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .trust-item strong,
  .trust-item span {
    font-size: 0.7rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .search-bar {
    max-width: 100%;
  }
}
