:root {
  --primary-color: #7b3fe4;   /* logo moru */
  --secondary-color: #ff9a1f; /* logo turuncusu */
  --bg-color: #f8fafc;
  --text-color: #1f2933;
}

/* DARK TEMA DEĞİŞKENLERİ */
body.theme-dark {
  --bg-color: #020617;
  --text-color: #e5e7eb;
}

/* GENEL */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-header h1,
.section-header h2 {
  margin: 0 0 8px;
}

/* HERO */

.hero {
  padding: 100px 5%;
  background: linear-gradient(120deg, #ff9a1f 0%, #ff6a88 40%, #7b3fe4 100%);
  color: #ffffff;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin: 0 0 12px;
}

.hero-content p {
  margin: 0;
  font-size: 1.05rem;
}

.hero .btn-secondary {
  margin-top: 1.5rem;
}

/* NAVBAR */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.navbar {
  /* Biraz daha geniş: yazıların tek satırda kalmasına yardımcı olur */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.8rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo img {
  height: 80px; /* 2 katına çıkarıldı */
}

/* Masaüstü menü */

.nav-main {
  flex: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
  background: rgba(123, 63, 228, 0.06);
  transform: scale(1.04);
}

/* Ürünler dropdown (kategoriler) */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
  display: none;
  z-index: 2000; /* üst katmanda dursun */
}

body.theme-dark .dropdown-menu,
body.dark-theme .dropdown-menu {
  background: #0f172a;
}

.dropdown-menu li a {
  display: flex;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.dropdown-menu li a:hover {
  background: rgba(123, 63, 228, 0.08);
  color: var(--primary-color);
  transform: scale(1.02);
}

/* Hover ile açılır, mouse çekilince kapanır */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

/* Satıcı Ol vurgulu */

.nav-seller {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 154, 31, 0.1);
  color: var(--secondary-color) !important;
  font-weight: 600;
}

.nav-seller:hover {
  background: rgba(255, 154, 31, 0.2);
}

/* Giriş / Kayıt / Sepet */

.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav-login {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #ffffff;
}

.nav-login:hover {
  background: rgba(123, 63, 228, 0.06);
}

.nav-signup {
  background: var(--primary-color);
  color: #ffffff;
}

.nav-signup:hover {
  background: #5f30c5;
}

/* Sepet butonu */

.nav-cart {
  min-width: 210px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(123, 63, 228, 0.06);
  color: var(--primary-color);
}

.badge {
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
}

/* Sepet limit progress */

.cart-progress {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: rgba(123, 63, 228, 0.15);
  overflow: hidden;
  margin-left: 4px;
}

.cart-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--secondary-color);
  border-radius: inherit;
  transition: width 0.2s ease, background 0.2s ease;
}

.cart-progress-fill.full {
  background: #16a34a; /* limit dolu olduğunda yeşil */
}

/* Profil alanı */

.nav-auth-guest {
  display: flex;
  gap: 8px;
}

.nav-auth-user {
  display: none; /* girişle açılacak */
  position: relative;
  align-items: center;
}

.nav-user-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
}

.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9a1f, #7b3fe4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-user-name {
  font-size: 0.9rem;
}

/* Dropdown */

.nav-user-dropdown {
  position: absolute;
  right: 0;
  top: 120%;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  padding: 10px;
  min-width: 210px;
  display: none;
  z-index: 1200;
}

.nav-user-dropdown.open {
  display: block;
}

.nav-user-dropdown-header {
  display: flex;
  gap: 10px;
  padding: 6px 6px 10px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 6px;
}

#nav-user-avatar-big {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.nav-user-email {
  font-size: 0.8rem;
  color: #6b7280;
}

.nav-user-link {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #111827;
  padding: 6px 6px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
}

.nav-user-link:hover {
  background: #f3f4ff;
}

.nav-user-logout {
  color: #b91c1c;
}

/* Mobil buton */

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Mobil menü */

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0 5% 10px;
  gap: 8px;
  border-top: 1px solid #f3f4f6;
  background: #ffffff;
}

.nav-mobile-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.95rem;
  padding: 8px 0;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-seller-mobile {
  font-weight: 600;
  color: var(--secondary-color);
}

/* BUTONLAR */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--primary-color);
  color: #ffffff !important;
  box-shadow: 0 10px 20px rgba(123, 63, 228, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(123, 63, 228, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary-color) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.btn-secondary:hover {
  background: #f3f4ff;
  transform: translateY(-1px);
}

/* Sepete eklendi görünümü */

.btn-added {
  background: #16a34a !important;
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.4);
}

/* ÜRÜN GRIDİ */

.filter-bar {
  margin: 16px 0 8px;
  display: flex;
  justify-content: center;
}

.filter-bar input {
  max-width: 320px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
}

.card-img {
  /* Ürün medyası alanı (kareye yakın görünüm) */
  height: 280px;
  background-color: #f3f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.9rem;
  overflow: hidden;
}

/* Görsel / video kare alana sığsın */
.card-img img,
.card-img video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Kaydırmalı medya (foto+video) */
.media-slider {
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.media-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-slide img,
.media-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdf-slide,
.pdf-icon {
  background: #eef0ff;
}

.pdf-open {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.pdf-open:hover {
  text-decoration: underline;
}

.packaging-card .card-img {
  height: auto;
  aspect-ratio: 16 / 9;
  padding: 0;
}

.packaging-media {
  background-color: #f3f4ff;
}

.packaging-video-embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.packaging-card .card-body {
  padding: 16px;
}

.packaging-admin-link {
  display: inline-block;
  margin-right: 12px;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.packaging-admin-link:hover {
  text-decoration: underline;
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-body h3 {
  margin: 0;
  font-size: 1.05rem;
}

.card-body p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 4px;
}

/* Sepet butonu kart içinde */

.card .btn-primary {
  width: 100%;
  margin-top: 10px;
}

/* SEPET SAYFASI */

.cart-page h1 {
  margin-top: 16px;
}

.cart-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}

.cart-items {
  flex: 2 1 320px;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cart-summary {
  flex: 1 1 260px;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item h4 {
  margin: 0 0 4px;
}

.cart-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.cart-item-total {
  font-weight: 600;
}

.btn-link {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.total-row {
  margin-top: 10px;
  font-weight: 700;
}

.warning-msg {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #b91c1c;
}

.btn-checkout {
  width: 100%;
  margin-top: 14px;
}

/* AUTH SAYFALARI */

.auth-page {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.auth-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.auth-form input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.message-box {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.message-box.success {
  background: #e7f9f2;
  color: #037b3f;
}

.message-box.error {
  background: #ffe8e8;
  color: #b42318;
}

.auth-switch {
  margin-top: 16px;
  font-size: 0.9rem;
  text-align: center;
}

/* PROFİL SAYFASI */

.profile-page h1 {
  margin-top: 0;
}

.profile-section {
  margin-bottom: 32px;
}

.profile-section h2 {
  margin-bottom: 8px;
}

.profile-section p {
  margin-top: 0;
}

/* İLETİŞİM / YARDIM / HAKKIMIZDA */

.page-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.contact-card {
  background: #ffffff;
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
}

.help-page .faq-item {
  margin-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}

/* SELLER */

.seller-content {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.seller-info,
.seller-form-embed {
  flex: 1 1 260px;
}

.seller-form-embed iframe {
  border-radius: 16px;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* FOOTER */

.mega-footer {
  background: #111827;
  color: #e5e7eb;
  padding: 32px 5% 16px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-col {
  flex: 1 1 220px;
}

.footer-logo img {
  height: 40px;
}

.footer-tagline {
  margin-top: 8px;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #f97316;
}

.social-icons a {
  margin-right: 8px;
  font-size: 1.2rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 10px;
  text-align: center;
  font-size: 0.85rem;
}

/* DARK THEME ÖZEL AYARLAR */

body.theme-dark .site-header {
  background: #020617;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.9);
}

body.theme-dark .nav-links a {
  color: #e5e7eb;
}

body.theme-dark .nav-user-button {
  background: #020617;
}

body.theme-dark .card,
body.theme-dark .cart-items,
body.theme-dark .cart-summary,
body.theme-dark .auth-card,
body.theme-dark .contact-card {
  background: #020617;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.7);
}

body.theme-dark .mega-footer {
  background: #000000;
}

/* MOBİL */

@media (max-width: 768px) {
  .navbar {
    padding: 0.6rem 5%;
  }

  .nav-main,
  .nav-auth {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

  .cart-container {
    flex-direction: column;
  }
}



/* --- NAVBAR UI PATCH (Satıcı Ol / Sepetim / Profil dropdown) --- */
.site-header { z-index: 1200; }
.navbar { display:flex; align-items:center; justify-content:space-between; gap:14px; padding: 12px 18px; }

.logo img { height: 72px; width:auto; display:block; object-fit:contain; }
.nav-main { flex: 1; display:flex; justify-content:center; }

.nav-links { display:flex; align-items:center; gap: 18px; list-style:none; margin:0; padding:0; flex-wrap: nowrap; }
.nav-links a { text-decoration:none; }

.nav-actions { display:flex; align-items:center; gap: 10px; }

.btn-nav { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding: 10px 12px; border-radius: 16px; font-weight:600; text-decoration:none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease; border: 1px solid transparent; }
.btn-nav:hover { transform: translateY(-1px) scale(1.03); }

.btn-nav-primary { background: var(--primary-color); color:#fff; box-shadow: 0 10px 20px rgba(123,63,228,.18); }
.btn-nav-primary:hover { box-shadow: 0 12px 24px rgba(123,63,228,.22); }

.btn-nav-outline { background: #fff; color: var(--primary-color); border-color: rgba(123,63,228,.35); }
body.dark-theme .btn-nav-outline { background: transparent; }
.btn-nav-outline:hover { background: rgba(123,63,228,.06); }

.btn-nav-accent { background: rgba(255,138,0,.12); color: #ff8a00; border-color: rgba(255,138,0,.25); }
.btn-nav-accent:hover { background: rgba(255,138,0,.18); }

.nav-cart { display:inline-flex; align-items:center; gap:10px; padding: 10px 14px; border-radius: 999px; background: rgba(123,63,228,.08);
  color: var(--primary-color); text-decoration:none; font-weight: 700; }
.nav-cart:hover { transform: translateY(-1px) scale(1.03); transition: transform .15s ease; }
.nav-cart-count { width: 26px; height: 26px; border-radius: 999px; background: var(--primary-color); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-size: 0.9rem; }

.nav-user-button { display:inline-flex; align-items:center; gap:10px; padding: 8px 12px; border-radius: 999px; border:1px solid rgba(15,23,42,.12);
  background:#fff; cursor:pointer; transition: transform .15s ease; }
.nav-user-button:hover { transform: translateY(-1px) scale(1.02); }
body.dark-theme .nav-user-button { background: transparent; border-color: rgba(255,255,255,.14); }

.nav-avatar { width: 34px; height: 34px; border-radius: 999px; display:inline-flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, #ff8a00, #7b3fe4); color:#fff; font-weight: 800; }
.nav-avatar.big { width: 44px; height: 44px; }

.nav-user-dropdown { position:absolute; right: 0; top: calc(100% + 10px); width: 260px; background:#fff; border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15,23,42,.18); padding: 10px; display:none; z-index: 2000; }
body.dark-theme .nav-user-dropdown { background: #0f172a; }
.nav-auth-user { position: relative; }

.nav-user-dropdown.open { display:block; }

.nav-user-card { padding: 8px 8px 10px; border-bottom: 1px solid rgba(15,23,42,.08); margin-bottom: 8px; }
body.dark-theme .nav-user-card { border-bottom-color: rgba(255,255,255,.10); }

.nav-user-card-top { display:flex; gap:10px; align-items:center; }
.nav-user-name-big { font-weight: 800; }
.nav-user-email { font-size: .88rem; color: var(--muted-color); margin-top: 2px; }

.nav-drop-item { width:100%; display:flex; padding: 10px 10px; border-radius: 14px; text-decoration:none; color: var(--text-color);
  background: transparent; border: 0; cursor:pointer; font-weight: 600; align-items:center; }
.nav-drop-item:hover { background: rgba(123,63,228,.08); transform: scale(1.01); transition: transform .15s ease; }
.nav-drop-danger { color: #dc2626; background: rgba(220,38,38,.08); }
.nav-drop-danger:hover { background: rgba(220,38,38,.12); }

@media (max-width: 980px) {
  .nav-main { display:none; }
  .nav-toggle { display:inline-flex; }
}


/* Sepet adet kontrolü */
.cart-qty{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:6px 10px;
  border:1px solid var(--border-color);
  border-radius:14px;
  background: rgba(123, 63, 228, 0.04);
}
.qty-btn{
  border:none;
  background: rgba(123, 63, 228, 0.10);
  color: var(--primary-color);
  width:30px;
  height:30px;
  border-radius:10px;
  font-size:18px;
  cursor:pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.qty-btn:hover{ transform: scale(1.05); background: rgba(123, 63, 228, 0.18); }
.qty-val{ min-width: 18px; text-align:center; font-weight:600; }


/* Sepet ikon */
.nav-cart-icon{display:inline-flex;align-items:center;justify-content:center;margin-left:2px;}
.nav-cart-icon svg{fill:currentColor;}


/* --- Drive media fields (seller panel) --- */
.drive-media-fields{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
  max-width:520px;
}
.drive-media-fields label{
  font-weight:600;
  margin-top:6px;
}
.drive-media-fields input,
.drive-media-fields select{
  width:100%;
  padding:10px 12px;
  border:1px solid #d6d6d6;
  border-radius:10px;
  box-sizing:border-box;
}


/* --- Bakım Modu Banner --- */
.maintenance-banner{position:sticky;top:0;z-index:1600;background:#fff7ed;color:#9a3412;padding:10px 12px;text-align:center;font-weight:700;font-size:0.95rem;border-bottom:1px solid rgba(154,52,18,.18);} 
.maintenance-banner .muted{font-weight:600;opacity:.85;margin-left:8px;font-size:0.9rem;}
body.theme-dark .maintenance-banner{background:#2a1607;color:#fed7aa;border-bottom-color:rgba(254,215,170,.18);} 


/* --- Paketlememiz: Drive "Drive'da aç" butonu engelleme (sadece sağ üst overlay) --- */
.packaging-iframe-wrap{
  position: relative;
  width: 100%;
  height: 100%;
}
.packaging-iframe-wrap .packaging-video-embed{
  width: 100%;
  height: 100%;
}
.drive-open-blocker{
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 72px;
  z-index: 5;
  background: transparent;
}
/* Mobilde ikon alanı biraz daha büyük olsun */
@media (max-width: 768px){
  .drive-open-blocker{ width: 84px; height: 84px; }
}

/* Menü konteyneri */
.dropdown { position: relative; }

/* Dropdown menüyü linke yapıştır (varsa margin-top/gap'i sıfırla) */
.dropdown .dropdown-menu{
  margin-top: 0 !important;
  top: 100% !important;
}

/* Menü ile link arasındaki "görünmez köprü" alanı */
.dropdown .dropdown-menu::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;     /* köprü yüksekliği */
  height: 14px;
  background: transparent;
}

/* Hover davranışı farklı implement edilmişse (bazı projelerde sadece .dropdown:hover ile açılıyor)
   Menü üstündeyken de açık kalmasını garanti eder. */
.dropdown:hover .dropdown-menu,
.dropdown .dropdown-menu:hover{
  display: block;
  visibility: visible;
  opacity: 1;
}

/* --- Ürün medya slider (görsel + video) --- */
/* Amaç: Kart içindeki medya alanını slider gibi göstermek, scrollbar taşmasını engellemek. */

.card-img { overflow: hidden; border-radius: 18px; }
.card-img { aspect-ratio: 16 / 9; } /* İstersen 1/1 yapabilirsin */

.card-img img,
.card-img video,
.card-img iframe{
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* --- Ürün medya slider düzeltmeleri (fotoğraf/video fit + oklar) --- */
.media-slider { position: relative; overflow: hidden; }
.media-slider .media-track { display: flex; transition: transform 220ms ease; will-change: transform; }
.media-slider .media-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
}
.media-slider .media-slide img,
.media-slider .media-slide video,
.media-slider .media-slide iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  display: block;
}
.media-nav-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:999px; border:0;
  background: rgba(255,255,255,0.75); color:#111;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; z-index:5;
}
.media-nav-btn:hover{ background: rgba(255,255,255,0.9); }
.media-nav-btn.prev{ left:14px; }
.media-nav-btn.next{ right:14px; }


/* === MEDIA SLIDER SAFE FIX === */
.media-slide img,
.media-slide iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-slide iframe {
  border: 0;
  background: #000;
}



/* ===== Admin: Kategori Yönetimi (izole) ===== */
.admin-categories-section h2 { font-size: 28px; margin-bottom: 8px; }
.admin-categories-sub { font-size: 14px; opacity: 0.85; margin-bottom: 14px; }
.admin-categories-form { display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap; margin-bottom: 18px; }
.admin-categories-form .form-group { margin: 0; }
.admin-categories-form label { font-size: 13px; }
.admin-categories-form input { height: 38px; min-width: 240px; }
.admin-categories-list { display:flex; flex-direction:column; gap:12px; }
.admin-category-item { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border-radius: 14px; background: rgba(255,255,255,0.06); }
.admin-category-item .name { font-size: 18px; font-weight: 700; margin:0; }
.admin-category-item .code { font-size: 12px; opacity: 0.85; margin-top: 4px; }
.admin-category-item .meta { display:flex; flex-direction:column; }
.admin-category-item .btn-danger { padding:10px 14px; border-radius: 12px; border:1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); color: inherit; cursor:pointer; }
.admin-category-item .btn-danger:hover { background: rgba(255,255,255,0.10); }
