/* ============================================================
   RESPONSIVE OVERRIDES
   These media query overrides apply on top of component CSS files.
   ============================================================ */

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-right .btn-primary { display: none; }
  .payment-methods { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .modal-container { width: 90%; padding: 1.5rem; }
  .modal-title { font-size: 24px; }
  .invoice-total-row:last-child .invoice-total-label { font-size: 16px; }
  .invoice-total-row:last-child .invoice-total-value { font-size: 20px; }
  .user-menu { margin-right: 0.5rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 3.5rem; }
  .hero-eyebrow { justify-content: center; }
  .hero-desc { margin: 0 auto 2.4rem; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .ai-inner { grid-template-columns: 1fr; text-align: center; }
  .ai-left-head .section-eyebrow { justify-content: center; }
  .ai-left-head .section-title { text-align: center; }
  .ai-left-head .section-sub { margin: 0 auto; text-align: center; }
  .ai-card { text-align: left; }
  .products-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-row { justify-content: center; }
}

@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-stats { justify-content: center; }
  .hero-ctas { justify-content: center; }
  .hero-desc { margin: 0 auto 2rem; }
  .ai-inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .ai-left-head .section-eyebrow { justify-content: center; }
  .ai-left-head .section-title { text-align: center; }
  .ai-left-head .section-sub { margin: 0 auto; text-align: center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .testi-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .payment-methods { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-card { max-width: 100%; }
  .product-thumb { height: 260px; }
}

@media (max-width: 414px) {
  .hero-title { font-size: clamp(48px, 11vw, 60px); }
  .detail-name { font-size: 28px !important; }
  .detail-price-now { font-size: 28px !important; }
  .detail-main-image-wrap { height: min(78vw, 380px) !important; }
  .sticky-inner { gap: 6px; }
  .sticky-price { font-size: 17px; }
  .sticky-btn-cart { font-size: 9px; letter-spacing: 1px; }
  .sticky-btn-buy { font-size: 10px; }
  .sticky-qty .qty-btn { font-size: 12px; }
  .sticky-qty .qty-val { width: 22px; font-size: 12px; }
  .detail-thumb { width: 44px; height: 44px; }
  .tab-header { gap: 1rem; }
  .tab-btn { font-size: 10px; }
  .products-grid { grid-template-columns: 1fr; gap: 1rem; }
  .product-thumb { height: 240px; }
  .hero-stats { gap: 1.2rem; }
  .stat-num { font-size: 28px; }
  .hero-desc { font-size: 13px; }
}

@media (max-width: 375px) {
  .hero-title { font-size: clamp(40px, 10vw, 48px); }
  .section-title { font-size: clamp(36px, 7vw, 42px); }
  .filter-btn { padding: 6px 14px; font-size: 10px; letter-spacing: 1.5px; }
  .product-thumb { height: 230px; }
  .product-body { padding: 0.85rem; }
  .prod-name { font-size: 15px; }
  .price-now { font-size: 24px; }
  .detail-main-image-wrap { height: min(82vw, 340px) !important; }
  #detailName { font-size: 26px !important; }
  .detail-price-now { font-size: 26px !important; }
  .detail-benefit-item { font-size: 12px; }
  .detail-thumb { width: 40px; height: 40px; }
  .tab-btn { font-size: 10px; letter-spacing: 1px; }
  .sticky-btn-cart { font-size: 8px; letter-spacing: 0.5px; }
  .sticky-btn-buy { font-size: 9px; }
}

@media (max-width: 360px) {
  .container { padding: 0 0.65rem; }
  .hero-title { font-size: clamp(34px, 9vw, 40px); }
  .section-title { font-size: clamp(30px, 7vw, 36px); }
  .filter-btn { padding: 5px 10px; font-size: 9px; letter-spacing: 1px; }
  .product-thumb { height: 200px; }
  .product-body { padding: 0.75rem; }
  .prod-name { font-size: 14px; }
  .price-now { font-size: 22px; }
  .benefit-card { padding: 1rem; }
  .testi-card { padding: 1rem; }
  #testimonials, #products, #ai, #newsletter { padding: 3rem 0; }
  .detail-main-image-wrap { height: min(85vw, 300px) !important; }
  #detailName { font-size: 22px !important; }
  .detail-price-now { font-size: 22px !important; }
  .detail-price-box { padding: 0.75rem 0.85rem; }
  .detail-benefits { padding: 0.65rem 0.75rem; }
  .detail-benefit-item { font-size: 11px; gap: 8px; }
  .detail-thumb { width: 36px; height: 36px; border-radius: 8px; }
  .sticky-price { font-size: 15px; }
  .sticky-btn-cart { font-size: 8px; }
  .sticky-btn-buy { font-size: 9px; }
  .sticky-qty .qty-btn { font-size: 11px; }
  .sticky-qty .qty-val { width: 20px; font-size: 11px; }
  .cart-sidebar { width: 100vw; right: -100vw; }
  .modal-container { width: 98%; padding: 1rem; border-radius: 14px; }
  .payment-methods { grid-template-columns: 1fr; gap: 0.5rem; }
  .payment-option label { padding: 0.85rem; gap: 5px; }
  .payment-icon { font-size: 22px; }
}

@media (max-width: 320px) {
  .container { padding: 0 0.5rem; }
  .hero-title { font-size: clamp(28px, 8vw, 34px); line-height: 0.9; }
  .hero-desc { font-size: 12px; }
  .hero-ctas .btn-primary, .hero-ctas .btn-ghost { padding: 9px 16px; font-size: 11px; }
  .hero-stats { gap: 1rem; }
  .stat-num { font-size: 24px; }
  .section-title { font-size: clamp(26px, 7vw, 30px); }
  .filter-btn { padding: 4px 8px; font-size: 8px; letter-spacing: 0.5px; }
  .filter-bar { gap: 0.4rem; }
  .product-thumb { height: 180px; }
  .product-body { padding: 0.65rem; }
  .prod-name { font-size: 13px; }
  .price-now { font-size: 20px; }
  .benefit-card { padding: 0.85rem; }
  .benefit-icon { font-size: 32px; }
  .benefit-title { font-size: 14px; }
  .benefit-desc { font-size: 12px; }
  .testi-card { padding: 0.85rem; }
  #testimonials, #products, #ai, #newsletter { padding: 2.5rem 0; }
  .detail-main-image-wrap { height: 260px !important; }
  #detailName { font-size: 20px !important; }
  .detail-price-now { font-size: 20px !important; }
  .detail-price-was { font-size: 12px; }
  .detail-save-badge { font-size: 9px; padding: 2px 8px; }
  .detail-price-box { padding: 0.65rem 0.75rem; border-radius: 12px; }
  .detail-benefits { padding: 0.5rem 0.65rem; border-radius: 10px; }
  .detail-benefit-item { font-size: 10px; gap: 6px; }
  .detail-benefit-check { width: 14px; height: 14px; }
  .detail-benefit-check svg { width: 8px; height: 8px; }
  .detail-thumb { width: 32px; height: 32px; border-radius: 6px; }
  .sticky-price { font-size: 14px; }
  .sticky-qty .qty-btn { font-size: 10px; }
  .sticky-qty .qty-val { width: 18px; font-size: 10px; }
  .sticky-btn-cart { font-size: 7px; letter-spacing: 0; }
  .sticky-btn-buy { font-size: 8px; }
  .sticky-inner { gap: 4px; }
  .modal-container { padding: 0.85rem; border-radius: 12px; }
  .modal-title { font-size: 20px; }
  .payment-option label { padding: 0.75rem; }
  .payment-icon { font-size: 20px; }
  .footer-grid { gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-trust { flex-wrap: wrap; justify-content: center; }
}

/* ============================================================
   KEYFRAMES (global)
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
