/* ==========================================================================
   Oxin Vira — Responsive Stylesheet
   ========================================================================== */

/* ---------- Large Tablets (max-width: 1024px) ---------- */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Tablets (max-width: 768px) ---------- */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .container {
    padding: 0 20px;
  }

  /* Mobile Menu */
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav-link {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }

  .lang-switch {
    margin: 16px 0 0;
    justify-content: center;
    width: 100%;
  }

  /* Hero */
  .hero {
    padding: calc(var(--header-height) + 40px) 0 60px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* Sections */
  .section {
    padding: 60px 0;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  /* Stats */
  .stats {
    padding: 50px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-card {
    padding: 24px 16px;
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card {
    padding: 24px 20px;
  }

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

  /* Footer */
  .footer {
    padding: 60px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Page Hero */
  .page-hero {
    padding: calc(var(--header-height) + 40px) 0 40px;
  }

  /* Scroll Top */
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  body[dir="rtl"] .scroll-top {
    right: auto;
    left: 20px;
  }
}

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

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

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

  .logo img {
    height: 36px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .why-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* ---------- Large Screens (min-width: 1400px) ---------- */
@media (min-width: 1400px) {
  :root {
    --container: 1320px;
  }
}

/* ---------- Print ---------- */
@media print {
  .header,
  .footer,
  .scroll-top,
  .menu-toggle {
    display: none;
  }

  body {
    font-size: 12pt;
  }
}