/* ========================================
   Responsive — All Text & Layout
   ======================================== */

/* ── Tablet landscape ── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .color-grid { grid-template-columns: repeat(4, 1fr); }
  .occasion-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .product-detail { gap: 40px; }
}

/* ── Tablet portrait ── */
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .container { padding: 0 20px; }

  /* Nav */
  .nav { display: none; }
  .hamburger { display: flex; }
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: 0 14px; font-size: 0; }
  .header-actions .btn svg { margin: 0; }

  /* Typography */
  h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.1; }
  h2 { font-size: clamp(1.1rem, 3.5vw, 1.4rem); }
  h3 { font-size: 0.88rem; }
  p { font-size: 0.85rem; }

  /* Hero */
  .hero { height: auto; min-height: 70vh; }
  .hero-bg img { object-position: center 30%; }
  .hero .container { padding-top: 40px; padding-bottom: 40px; }
  .hero-content { max-width: 100%; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 0.88rem; margin: 0 auto 28px; }
  .hero-buttons { justify-content: center; }
  .hero-scroll { display: none; }

  /* Section */
  .section { padding: clamp(40px, 6vw, 64px) 0; }
  .section-label { font-size: 0.6rem; margin-bottom: 6px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 28px; }
  .section-header a { font-size: 0.7rem; }

  /* Product grid — 2 columns */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .product-card-image { margin-bottom: 10px; }
  .product-card-info h3 { font-size: 0.78rem; font-weight: 500; }
  .product-card-price { font-size: 0.82rem; }
  .product-card-code { font-size: 0.65rem; margin-bottom: 4px; }
  .product-card-fabric { font-size: 0.65rem; margin-bottom: 10px; }
  .product-card .btn { padding: 7px; font-size: 0.68rem; height: 36px; }

  /* Colors */
  .color-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .color-card { padding: 16px 8px; }
  .color-swatch { width: 28px; height: 28px; }
  .color-card span { font-size: 0.68rem; }

  /* Occasions */
  .occasion-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .occasion-card { padding: 24px 12px; }
  .occasion-label { font-size: 0.55rem; }
  .occasion-card h3 { font-size: 0.8rem; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 36px 20px; }
  .why-number { font-size: 2.5rem; margin-bottom: 12px; }
  .why-card h3 { font-size: 0.82rem; margin-bottom: 6px; }
  .why-card p { font-size: 0.78rem; }

  /* Footer */
  .footer { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-brand p { max-width: 100%; margin: 12px auto 0; font-size: 0.75rem; }
  .footer h4 { font-size: 0.6rem; margin-bottom: 12px; }
  .footer-links a { font-size: 0.78rem; padding: 3px 0; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; font-size: 0.65rem; }

  /* WhatsApp CTA */
  .whatsapp-cta { padding: clamp(40px, 6vw, 56px) 0; }
  .whatsapp-cta h2 { font-size: 1.3rem; margin-bottom: 8px; }
  .whatsapp-cta p { font-size: 0.82rem; margin-bottom: 24px; }
  .whatsapp-cta .btn-whatsapp { height: 48px; padding: 0 32px; font-size: 0.8rem; }

  /* Collection */
  .page-header { padding: 32px 0 20px; }
  .page-header h1 { font-size: 1.6rem; }
  .page-header p { font-size: 0.82rem; }
  .search-filters { padding: 12px 0; }
  .search-bar { margin-bottom: 10px; }
  .search-bar input { font-size: 0.82rem; padding: 8px 0; }
  .filters-row { gap: 6px; }
  .filter-select { min-width: 0; flex: 1; font-size: 0.68rem; padding: 7px 24px 7px 10px; height: 34px; }
  .results-count { width: 100%; text-align: center; margin: 0; font-size: 0.68rem; }

  /* Product Detail */
  .product-detail { grid-template-columns: 1fr; gap: 20px; padding: 20px 0 48px; }
  .breadcrumb { font-size: 0.65rem; }
  .gallery { position: static; }
  .gallery-thumb { width: 52px; height: 52px; }
  .product-info h1 { font-size: 1.4rem; }
  .product-code { font-size: 0.68rem; margin-bottom: 12px; }
  .product-price { font-size: 1.2rem; margin-bottom: 16px; }
  .meta-item { padding: 10px; }
  .meta-item label { font-size: 0.55rem; }
  .meta-item span { font-size: 0.78rem; }
  .product-description { padding: 12px; margin-bottom: 16px; }
  .product-description h3 { font-size: 0.58rem; margin-bottom: 4px; }
  .product-description p { font-size: 0.8rem; }
  .product-features { gap: 6px; margin-bottom: 16px; }
  .feature-tag { font-size: 0.68rem; padding: 5px 10px; }
  .product-actions { flex-direction: column; gap: 8px; margin-bottom: 20px; }
  .product-actions .btn { width: 100%; }
  .soldout-badge { font-size: 0.78rem; padding: 10px 12px; }
  .similar-section { padding: 32px 0; }
  .similar-section h2 { font-size: 1rem; margin-bottom: 16px; }

  /* About */
  .about-content { padding: 36px 16px; }
  .about-content h2 { font-size: 1.15rem; margin-bottom: 8px; }
  .about-content p { font-size: 0.85rem; margin-bottom: 10px; }

  /* Contact */
  .contact-content { padding: 36px 16px; }
  .contact-card { padding: 24px; }
  .contact-card h3 { font-size: 0.88rem; margin-bottom: 16px; }
  .contact-item { padding: 10px 0; }
  .contact-item span { font-size: 0.8rem; }

  /* 404 */
  .error-page h1 { font-size: 4rem; }
  .error-page h2 { font-size: 1.2rem; }
  .error-page p { font-size: 0.85rem; }

  /* Scroll top */
  .scroll-top { width: 36px; height: 36px; font-size: 0.8rem; bottom: 16px; right: 16px; }

  /* Mobile menu */
  .mobile-menu-content { width: 260px; padding: 20px; }
  .mobile-menu-nav a { font-size: 0.8rem; padding: 10px 0; }
}

/* ── Mobile small ── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Typography */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.05rem; }

  /* Hero */
  .hero { min-height: 60vh; }
  .hero-content h1 { font-size: 1.7rem; }
  .hero-content p { font-size: 0.82rem; margin-bottom: 24px; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; }

  /* Product grid */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-card-info h3 { font-size: 0.72rem; }
  .product-card-price { font-size: 0.78rem; }
  .product-card-code { font-size: 0.6rem; }
  .product-card-fabric { font-size: 0.6rem; margin-bottom: 8px; }
  .product-card .btn { font-size: 0.64rem; height: 34px; }

  /* Colors */
  .color-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .color-swatch { width: 24px; height: 24px; }
  .color-card span { font-size: 0.62rem; }

  /* Occasions */
  .occasion-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .occasion-card { padding: 20px 10px; }
  .occasion-label { font-size: 0.5rem; }
  .occasion-card h3 { font-size: 0.75rem; }

  /* Why */
  .why-card { padding: 28px 16px; }
  .why-number { font-size: 2rem; }
  .why-card h3 { font-size: 0.75rem; }
  .why-card p { font-size: 0.72rem; }

  /* WhatsApp CTA */
  .whatsapp-cta h2 { font-size: 1.15rem; }
  .whatsapp-cta p { font-size: 0.78rem; }

  /* Footer */
  .footer-links a { font-size: 0.72rem; }

  /* Collection */
  .page-header h1 { font-size: 1.4rem; }
  .page-header p { font-size: 0.78rem; }

  /* Product Detail */
  .product-info h1 { font-size: 1.25rem; }
  .product-price { font-size: 1.1rem; }
  .gallery-thumb { width: 44px; height: 44px; }

  /* Features */
  .product-features { gap: 4px; }
  .feature-tag { font-size: 0.62rem; padding: 4px 8px; }

  /* 404 */
  .error-page h1 { font-size: 3.5rem; }
  .error-page h2 { font-size: 1rem; }
}