/* ==========================================================================
   REXIA LUXE COLLECTION - Responsive Styles
   ========================================================================== */

/* ---------- TABLET (max-width: 1024px) ---------- */
@media (max-width: 1024px) {
  :root {
    --grid-cols-desktop: 3;
  }

  .container {
    padding: 0 12px;
  }

  .hero-slide-content h1 {
    font-size: 36px;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-body {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .header-search {
    max-width: 300px;
    margin: 0 15px;
  }

  .nav-item > a {
    padding: 14px 14px;
    font-size: 12px;
  }
}

/* ---------- MOBILE (max-width: 767px) ---------- */
@media (max-width: 767px) {
  .section {
    padding: 30px 0;
  }

  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }

  /* Header */
  .header-search {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-nav {
    display: block;
  }

  .nav {
    display: none;
  }

  .header-top {
    padding: 10px 0;
  }

  .header-logo a {
    font-size: 18px;
  }

  .header-logo img {
    height: 35px;
  }

  .header-actions {
    gap: 12px;
  }

  .header-actions span {
    display: none;
  }

  .header-actions a,
  .header-actions button {
    font-size: 18px;
  }

  /* Hero */
  .hero-slide {
    aspect-ratio: 16/9;
  }

  .hero-slide-content h1 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .hero-slide-content p {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .hero-arrows {
    display: none;
  }

  /* Categories */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .category-card-overlay h3 {
    font-size: 13px;
  }

  .category-card-overlay .btn {
    font-size: 10px;
    padding: 4px 12px;
  }

  /* Products */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .product-card-info {
    padding: 8px 3px;
  }

  .product-card-title {
    font-size: 13px;
  }

  .product-card-price {
    font-size: 12px;
  }

  .product-card-actions {
    position: static;
    opacity: 1;
    transform: none;
    padding: 6px;
    flex-direction: column;
  }

  .product-card-actions button {
    font-size: 10px;
    padding: 6px 10px;
    width: 100%;
  }

  /* Trust Bar */
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .trust-icon {
    font-size: 24px;
  }

  .trust-item h4 {
    font-size: 11px;
  }

  /* Promo Banner */
  .promo-banner {
    padding: 25px 15px;
  }

  .promo-banner h2 {
    font-size: 20px;
  }

  /* Newsletter */
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    border-right: 1px solid var(--color-border);
    border-bottom: none;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer {
    padding: 35px 0 0;
  }

  /* Cart Sidebar */
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  /* Modal */
  .modal {
    width: 95%;
  }

  .modal-body {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 15px;
  }

  /* Section title */
  .section-title {
    margin-bottom: 25px;
  }

  .section-title h2 {
    font-size: 18px;
  }

  /* WhatsApp btn - raised above mobile footer */
  .whatsapp-btn {
    width: 48px;
    height: 48px;
    font-size: 24px;
    bottom: 80px;
    left: 20px;
  }

  .back-to-top {
    bottom: 80px;
    right: 20px;
    width: 36px;
    height: 36px;
  }

  /* Mobile Bottom Nav */
  body {
    padding-bottom: 64px;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 1100;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
  }

  .mobile-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    font-size: 10px;
    font-family: 'Roboto', sans-serif;
    gap: 3px;
    flex: 1;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
  }

  .mobile-bottom-nav__item i {
    font-size: 20px;
  }

  .mobile-bottom-nav__item.active,
  .mobile-bottom-nav__item:hover {
    color: #b9004c;
  }

  .mobile-bottom-nav__badge {
    position: absolute;
    top: 4px;
    right: 50%;
    transform: translateX(14px);
    background: #b9004c;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
  }

  .mobile-bottom-nav__badge:empty {
    display: none;
  }
}

/* ---------- SMALL MOBILE (max-width: 480px) ---------- */
@media (max-width: 480px) {
  .header-logo a {
    font-size: 15px;
    letter-spacing: 0.04em;
  }

  .hero-slide-content h1 {
    font-size: 20px;
  }

  .hero-slide-content .btn {
    font-size: 11px;
    padding: 8px 20px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .category-card {
    aspect-ratio: 1;
  }

  .products-grid {
    gap: 6px;
  }

  .product-badge {
    font-size: 9px;
    padding: 3px 7px;
  }

  .announcement-bar {
    font-size: 10px;
    padding: 6px 10px;
  }
}
