/* ============================================
   Orvelia Tunnel — Header (orveliafashion ile birebir)
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0c0e0f;
  color: #e8e4e0;
}

/* Header wrap — perspective mouse tilt için */
.header-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1rem 2rem;
  pointer-events: none;
  perspective: 1400px;
  perspective-origin: 50% 0;
}

.header-wrap > * {
  pointer-events: auto;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 104px;
  transform-origin: 50% 0%;
  will-change: transform;
}

.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.75rem;
  min-width: 0;
}

.main-header .header-nav {
  padding: 0;
}

.header-nav a {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: rgba(255,255,255,0.95);
}

.header-logo-link {
  flex-shrink: 0;
  display: block;
}

.main-logo {
  height: 104px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
  display: block;
}

.main-header .header-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  min-width: 0;
}

.main-header .search-bar {
  position: relative;
  width: 100%;
  max-width: 260px;
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: #f0ebe6;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-input::placeholder {
  color: rgba(255,255,255,0.45);
}

.search-input:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
}

.search-input:focus {
  border-color: rgba(212,175,55,0.6);
  background: rgba(255,255,255,0.12);
}

.header-link {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-link:hover {
  color: #fff;
}

.header-link--cart {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.35rem 0;
}

.cart-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #0c0e0f;
  background: #d4af37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Ürün hover overlay — kompakt, modern */
#content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.product-inspect-overlay {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -115%);
  padding: 0.45rem 0;
  background: rgba(12, 14, 15, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  color: #f5efe3;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  font-family: "Inter", system-ui, sans-serif;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  max-width: min(18rem, 92vw);
}

.product-inspect-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding-left: 0.75rem;
  min-width: 0;
}

.product-inspect-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.product-inspect-name {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 0;
  white-space: normal;
  line-height: 1.25;
  max-width: 14rem;
}

.product-inspect-price {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: rgba(245, 239, 227, 0.95);
}

.product-inspect-price-old {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  opacity: 0.55;
  margin-right: 0.35rem;
}

.product-inspect-price-new {
  color: #e8c96a;
  font-weight: 600;
}

.product-inspect-overlay .product-inspect-divider {
  width: 1px;
  height: 1rem;
  background: rgba(212, 175, 55, 0.4);
  flex-shrink: 0;
}

.product-inspect-btn {
  padding: 0.4rem 0.9rem;
  margin: 0 0.5rem 0 0;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  color: #0c0e0f;
  background: rgba(212, 175, 55, 0.95);
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.product-inspect-btn:hover {
  background: rgba(232, 195, 75, 1);
  transform: scale(1.02);
}

/* category_tunnel.php + ov-header-only: tam ekran tünel */
.ov-tunnel-page-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

.ov-tunnel-page-hero #content {
  z-index: 1;
}

/* Podyum / duvar: daha fazla ürün (scroll ipucunun üstünde) */
.ov-tunnel-load-wrap {
  position: fixed;
  left: 50%;
  bottom: 5rem;
  transform: translateX(-50%);
  z-index: 25;
  pointer-events: auto;
}

/* Ekran altı: kaydırma ipucu — açık renk, sabit */
.ov-tunnel-scroll-hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 24;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.7rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f8f4ec;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
  background: linear-gradient(
    180deg,
    rgba(8, 10, 12, 0) 0%,
    rgba(18, 20, 24, 0.72) 42%,
    rgba(22, 24, 28, 0.88) 100%
  );
  border-top: 1px solid rgba(255, 248, 235, 0.22);
}

.ov-tunnel-scroll-hint__mouse {
  display: flex;
  color: #fff8e8;
  opacity: 0.95;
  flex-shrink: 0;
}

.ov-tunnel-scroll-hint__svg {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.ov-tunnel-scroll-hint__wheel {
  transform-origin: 14px 12px;
  animation: ov-tunnel-scroll-wheel 1.35s ease-in-out infinite;
}

@keyframes ov-tunnel-scroll-wheel {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(4px);
    opacity: 0.65;
  }
}

.ov-tunnel-scroll-hint__text {
  max-width: 22rem;
  text-align: center;
  line-height: 1.35;
  color: rgba(255, 250, 240, 0.96);
}

@media (max-width: 520px) {
  .ov-tunnel-scroll-hint {
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.68rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .ov-tunnel-load-wrap {
    bottom: 4.75rem;
  }
}

.ov-tunnel-load-more {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.65rem 1.35rem;
  color: #0c0e0f;
  background: linear-gradient(180deg, #e8c96a 0%, #c9a227 100%);
  border: 1px solid rgba(255, 245, 220, 0.35);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.ov-tunnel-load-more:hover:not(:disabled) {
  transform: translateY(-2px);
}

.ov-tunnel-load-more:disabled {
  opacity: 0.55;
  cursor: wait;
}
