/* ===== Metropolis font (marka fontu) ===== */
@font-face {
  font-family: "Metropolis";
  src: url("https://ext.same-assets.com/3069022275/280130985.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("https://ext.same-assets.com/3069022275/2927686666.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("https://ext.same-assets.com/3069022275/1730544926.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --theme-bg: 257 73% 24%;
  --theme-bg-2: 256 65% 16%;
  --theme-purple: 256 67% 48%;
  --theme-purple-dark: 256 73% 39%;
  --theme-purple-light: 256 60% 60%;
  --theme-card: 257 55% 30%;
  --theme-yellow: 45 100% 50%;
  --theme-yellow-hover: 46 100% 58%;
  --theme-teal: 162 45% 58%;
  --theme-cyan: 184 70% 62%;
  --theme-red: 339 64% 49%;
  --foreground: 0 0% 100%;
  --radius: 0.5rem;
}

* {
  border-color: hsl(257 45% 40%);
}

body {
  color: hsl(var(--foreground));
  background-color: hsl(var(--theme-bg));
  font-family: "Metropolis", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Tema renk yardımcıları */
.bg-theme-purple { background-color: hsl(256 67% 48%); }
.bg-theme-bg { background-color: hsl(257 73% 24%); }
.bg-theme-bg-2 { background-color: hsl(256 65% 16%); }
.bg-theme-card { background-color: hsl(257 55% 30%); }
.bg-theme-yellow { background-color: hsl(45 100% 50%); }
.text-theme-bg { color: hsl(257 73% 24%); }
.text-theme-teal { color: hsl(162 45% 58%); }
.text-theme-cyan { color: hsl(184 70% 62%); }
.text-theme-yellow { color: hsl(45 100% 50%); }
.ring-theme-yellow { --tw-ring-color: hsl(45 100% 50%); }
.hover\:bg-theme-yellow-hover:hover { background-color: hsl(46 100% 58%); }
.bg-theme-purple\/20 { background-color: hsl(256 67% 48% / 0.2); }
.bg-theme-purple\/30 { background-color: hsl(256 67% 48% / 0.3); }
.hover\:ring-theme-purple:hover { --tw-ring-color: hsl(256 67% 48%); }
.ring-theme-purple { --tw-ring-color: hsl(256 67% 48%); }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.theme-gradient-text {
  background: linear-gradient(90deg, #ff5fd1 0%, #ffd93d 50%, #5be7c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.carousel-scroll { scroll-behavior: smooth; }

/* Eski header güven şeridi — footer'a taşındı */
nav.border-b + div.border-b:not(footer div) {
  display: none !important;
}

/* Kategori ikon şeridi — renkli gradient yuvarlak daireler */
.category-icons-bar {
  background: linear-gradient(180deg, hsl(256 65% 16% / 0.15) 0%, transparent 100%);
}

.category-icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 1.75rem;
}

@media (min-width: 1024px) {
  .category-icons-grid {
    gap: 1.875rem;
  }
}

.category-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8125rem;
  text-decoration: none;
}

.category-icon-circle {
  width: 5.75rem;
  height: 5.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.category-icon-card:hover .category-icon-circle {
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.category-icon-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.875rem;
  height: 2.875rem;
}

.category-icon-slot .category-icon-svg {
  width: 2.875rem;
  height: 2.875rem;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s ease;
}

.category-icon-card:hover .category-icon-slot .category-icon-svg,
.category-icon-card:hover .category-icon-img {
  transform: scale(1.18) rotate(6deg);
}

.category-icon-img {
  width: 2.875rem;
  height: 2.875rem;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.category-icon-img--uploaded {
  filter: brightness(0) invert(1) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}

.category-icon-title {
  color: #e5e7eb;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  transition: color 0.35s ease;
}

.category-icon-card:hover .category-icon-title {
  color: #fff;
}

/* Ürün kartı */
.product-card {
  background-color: hsl(257 55% 30%);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.15s ease;
}
.product-card:hover { transform: translateY(-2px); }

.product-card-cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: hsl(256 65% 16%);
}

/* Yönetim paneli */
.admin-sidebar { background: hsl(256 65% 16%); min-height: 100vh; }
.admin-card { background: hsl(257 55% 30%); border-radius: 0.5rem; }
.site-logo-text {
  display: inline-block;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .site-logo-text {
    font-size: 1.625rem;
  }
}
.auth-card-logo .site-logo-text {
  font-size: 1.75rem;
}

.admin-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  background: hsl(257 73% 20%);
  border: 1px solid hsl(257 45% 40%);
  color: #fff;
}
.admin-input:focus { outline: 2px solid hsl(45 100% 50%); }
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
}
.admin-btn-primary { background: hsl(45 100% 50%); color: hsl(257 73% 14%); }
.admin-btn-danger { background: hsl(339 64% 49%); color: #fff; }
.admin-btn-secondary { background: hsl(257 45% 38%); color: #fff; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid hsl(257 45% 40%);
}
.admin-table th { color: hsl(255 30% 78%); font-weight: 500; font-size: 0.875rem; }

/* Bildirim zili */
.notif-bell__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  padding: 0.5rem;
  color: #fff;
  transition: background 0.15s;
  border: none;
  background: transparent;
  cursor: pointer;
}
.notif-bell__btn:hover { background: rgba(255,255,255,0.1); }
.admin-notif-bell__btn { color: hsl(255 30% 90%); }
.notif-bell__icon { width: 1.35rem; height: 1.35rem; }
.notif-bell__badge {
  position: absolute;
  top: 0.15rem;
  right: 0.1rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  background: hsl(45 100% 50%);
  color: hsl(257 73% 14%);
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.notif-bell__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 80;
  width: min(22rem, calc(100vw - 2rem));
  border-radius: 0.5rem;
  background: hsl(256 65% 16%);
  border: 1px solid hsl(257 45% 40%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  overflow: hidden;
}
.notif-bell__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(257 45% 35%);
  color: #fff;
  font-size: 0.9rem;
}
.notif-bell__mark-all {
  color: hsl(45 100% 50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.notif-bell__mark-all:hover { text-decoration: underline; }
.notif-bell__list { max-height: 20rem; overflow-y: auto; }
.notif-bell__empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: hsl(255 30% 65%);
  font-size: 0.875rem;
}
.notif-bell__item {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border: none;
  border-bottom: 1px solid hsl(257 45% 28%);
  background: transparent;
  cursor: pointer;
  color: inherit;
  transition: background 0.15s;
}
.notif-bell__item:hover { background: hsl(257 55% 22%); }
.notif-bell__item.is-read { opacity: 0.65; }
.notif-bell__item-icon { font-size: 1.25rem; flex-shrink: 0; line-height: 1; }
.notif-bell__item-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.notif-bell__item-title { font-size: 0.875rem; font-weight: 600; color: #fff; }
.notif-bell__item-msg {
  font-size: 0.75rem;
  color: hsl(255 30% 70%);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-bell__item-time { font-size: 0.65rem; color: hsl(255 20% 50%); }
.notif-bell__foot {
  display: block;
  text-align: center;
  padding: 0.65rem;
  font-size: 0.8rem;
  color: hsl(45 100% 50%);
  border-top: 1px solid hsl(257 45% 35%);
  text-decoration: none;
}
.notif-bell__foot:hover { background: hsl(257 55% 22%); }
.profil-notif-item { transition: opacity 0.2s; }
.profil-notif-item.is-unread { border-left: 3px solid hsl(45 100% 50%); }
.profil-notif-item.is-read { opacity: 0.7; }

/* Modallar — kapalıyken sayfayı tıklanamaz yapmamalı */
.site-modal[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
.site-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
}
#cartAddedModal { z-index: 60; }
#loginModal { z-index: 70; }

.sepet-discount-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Kategori mega menü */
.mega-menu__panel {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 80;
  padding-top: 0.35rem;
  min-width: min(30rem, calc(100vw - 2rem));
}
.mega-menu__panel[hidden] {
  display: none !important;
}
.mega-menu__panel.is-open {
  display: block;
}
.mega-menu__panel-inner {
  border-radius: 0.5rem;
  background: hsl(256 65% 16%);
  padding: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid hsl(257 45% 35%);
}
