/* ═══════════════════════════════════════════════════════════════════════
   ENZO — Mobile-only overrides
   Tüm kurallar media query içinde — desktop asla etkilenmez.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Mobile nav dark background (max-width: 860px) ───────────────── */
@media (max-width: 860px) {
  .nav-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
  }

  .nav-toggle span {
    background: #fff !important;
  }

  .site-header .site-nav {
    background: rgba(13, 20, 17, 0.97) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .site-header .site-nav a {
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .site-header .site-nav a:hover,
  .site-header .site-nav a:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
  }

  .site-header .site-nav a.is-active {
    color: #ff6b35 !important;
  }
}

/* ── Story media image on mobile ──────────────────────────────────── */
@media (max-width: 1024px) {
  .home-bento__story-media {
    min-height: 340px !important;
  }

  .home-bento__story-media img {
    object-fit: cover !important;
    object-position: center 25% !important;
  }
}

@media (max-width: 480px) {
  .home-bento__story-media {
    min-height: 50vw !important;
  }
}

/* ── Newsletter mobile layout ─────────────────────────────────────── */
@media (max-width: 768px) {
  .newsletter-content {
    flex-direction: column !important;
    text-align: center !important;
  }

  .newsletter-form {
    max-width: 100% !important;
    flex-direction: column !important;
  }

  .newsletter-form .form-input {
    width: 100% !important;
    border-radius: 12px !important;
  }

  .newsletter-form .btn {
    width: 100% !important;
    border-radius: 12px !important;
  }
}

/* ── Touch targets ────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .btn,
  a.btn,
  button.btn,
  .site-nav a,
  .pagination a,
  .pagination span,
  .footer-social a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .mobile-nav-bar a {
    min-height: 44px;
  }
}

/* ── Table horizontal scroll on mobile ────────────────────────────── */
@media (max-width: 768px) {
  table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
  }
}

/* ── Form zoom prevent ────────────────────────────────────────────── */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* ── Fluid container padding on small screens only ────────────────── */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* ── Cart page mobile ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .cart-page__layout {
    flex-direction: column !important;
  }

  .cart-summary-panel {
    position: static !important;
    width: 100% !important;
  }
}

/* ── Product detail mobile ────────────────────────────────────────── */
@media (max-width: 768px) {
  .product-detail {
    flex-direction: column !important;
  }

  .product-gallery {
    position: static !important;
    top: auto !important;
  }
}

/* ── Story rail scroll ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .home-story-rail {
    scroll-padding: 1rem;
  }
}

/* ── Quickview modal mobile ───────────────────────────────────────── */
@media (max-width: 700px) {
  .quickview-modal {
    width: calc(100% - 2rem) !important;
    max-height: 90dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── Safe area (notch) ────────────────────────────────────────────── */
@supports (padding: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    .mobile-nav-bar {
      padding-bottom: calc(0.5rem + env(safe-area-inset-bottom)) !important;
    }

    body {
      padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    }

    .cart-drawer {
      padding-bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
    }
  }
}

/* ── Orientation (landscape on small screens) ─────────────────────── */
@media (max-width: 480px) and (orientation: landscape) {
  .mobile-nav-bar {
    padding-top: 0.25rem;
    padding-bottom: calc(0.25rem + env(safe-area-inset-bottom));
  }

  .mobile-nav-bar a {
    padding: 0.25rem;
    font-size: 0.6rem;
  }

  .mobile-nav-bar svg {
    width: 16px;
    height: 16px;
  }

  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }
}

/* ── Reduced motion ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Print ────────────────────────────────────────────────────────── */
@media print {
  .mobile-nav-bar,
  .cart-drawer,
  .quickview-modal,
  .site-nav.is-open,
  .site-nav.nav-open {
    display: none !important;
  }

  body {
    padding-bottom: 0 !important;
  }
}
