/* mobile.css – Mobile‑first overrides */
@import url('design.css');

/* 1. Global & Layout adjustments */
html {
  font-size: 16px; /* base */
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.2rem;
  }
  .navbar-container {
    padding: 0 1.2rem;
  }
  /* Prevent iOS zoom on input fields by enforcing at least 16px (1rem) font-size */
  .form-input {
    font-size: 1rem !important;
  }
}

/* 2. Header & Navigation Responsiveness */
@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block !important;
  }
}

/* 3. Hero section scaling */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
  }
  .hero-slogan {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
  .btn {
    padding: 0.9rem 2rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-slogan {
    font-size: 1rem;
  }
}

/* 4. Story Section & Counters scaling */
@media (max-width: 768px) {
  .story-text {
    font-size: 1.8rem;
    line-height: 1.3;
    padding: 0 0.5rem;
  }
  .counters-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* 5. Product grid responsiveness */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* 6. Touch‑friendly buttons */
@media (max-width: 1024px) {
  .btn,
  .btn-primary,
  .btn-secondary {
    min-height: 44px;
    line-height: 1.4;
  }
}

/* 7. Sticky CTA on product pages (mobile) */
@media (max-width: 768px) {
  .sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg-base);
    padding: 0.5rem 1rem;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
    z-index: 1200;
  }
  .sticky-cta .price {
    font-size: 1.2rem;
    color: var(--color-accent);
  }
}

/* 8. Modal Responsiveness */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
    max-height: 92%;
  }
  .modal-close {
    top: 0.8rem;
    right: 1.2rem;
    font-size: 2.4rem;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
  }
  /* Remove duplicate Add to Cart button inside the inline modal info panel on mobile */
  .modal-actions .modal-add-cart-btn {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .modal-actions {
    flex-direction: column;
    gap: 1rem;
  }
  .modal-actions .btn {
    width: 100%;
  }
}

/* 9. Hide desktop‑only hover effects on touch devices */
@media (hover: none) {
  .product-card:hover {
    transform: none;
    box-shadow: none;
  }
  .product-card:hover .product-img {
    transform: none;
  }
}

/* 10. Cart Drawer mobile optimization */
@media (max-width: 480px) {
  .cart-drawer-header {
    padding: 1.5rem;
  }
  .cart-items {
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .cart-drawer-footer {
    padding: 1.5rem;
  }
}

/* 11. Footer spacing adjustments */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

