/* ============================================
   RESPONSIVE STYLES
   Breakpoints: 1200px, 992px, 768px, 576px
   ============================================ */

/* Large Desktops and below (1200px) */
@media (max-width: 1200px) {
  .header__container {
    padding: 1rem 1.5rem;
  }

  .nav {
    gap: 2rem;
  }

  .nav__list {
    gap: 0.75rem;
  }

  .hero__title {
    font-size: 48px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
  }
}

/* Tablets and below (992px) */
@media (max-width: 992px) {
  :root {
    --section-padding: 60px;
  }

  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }

  .header__container {
    padding: 1rem;
  }

  .hero {
    min-height: 500px;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .trust-badges {
    gap: 32px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

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

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .cart-item {
    flex-direction: column;
  }

  .cart-item__image {
    width: 100%;
    height: 200px;
  }
}

/* Mobile and below (768px) */
@media (max-width: 768px) {
  :root {
    --section-padding: 48px;
  }

  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }

  /* Mobile Navigation */
  .nav__toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--color-background-alt);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 80px 24px 24px;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .nav.active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    display: block;
  }

  .header__cart {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
  }

  /* Mobile Overlay */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .hero {
    min-height: 400px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero__buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .trust-badges {
    flex-direction: column;
    gap: 24px;
  }

  .trust-badge {
    max-width: 100%;
  }

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

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

  .category-card {
    height: 250px;
  }

  .newsletter__form {
    flex-direction: column;
  }

  .newsletter__input,
  .newsletter__button {
    width: 100%;
  }

  .footer__container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__social {
    justify-content: center;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Small Mobile (576px) */
@media (max-width: 576px) {
  :root {
    --section-padding: 40px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 40px 16px;
  }

  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }

  .header__logo {
    font-size: 22px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__subtitle {
    font-size: 15px;
  }

  .btn {
    padding: 10px 24px;
    font-size: 15px;
  }

  .btn--large {
    padding: 12px 32px;
    font-size: 16px;
  }

  .product-card__content {
    padding: 20px;
  }

  .product-card__title {
    font-size: 18px;
  }

  .product-card__price {
    font-size: 20px;
  }

  .category-card {
    height: 200px;
  }

  .category-card__title {
    font-size: 22px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .newsletter {
    padding: 40px 16px;
  }

  .footer {
    padding: 40px 16px 16px;
  }

  .cart-summary {
    padding: 24px;
  }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }

  .nav {
    overflow-y: auto;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .back-to-top,
  .newsletter,
  .nav__toggle {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    page-break-inside: avoid;
  }
}
