/* ========================================
   HEADER & NAVİGASYON
   ======================================== */
.header {
	height: clamp(56px, 10vw, 90px);
	display: flex;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
	min-width: 0;
	transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
	background: rgba(43, 33, 30, 0.3); 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
	background: rgba(43, 33, 30, 0.85); 
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 clamp(8px, 4vw, 32px);
	height: 100%;
}

/* Header Sepet İkonu */
.cart-icon {
  position: relative;
  margin-left: 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
  background: none;
  border-radius: 50%;
  padding: 8px;
  transition: transform 0.2s;
}

.cart-icon:hover {
  transform: scale(1.1);
}

.cart-icon .header-cart-svg {
  fill: var(--color-text-cream);
  stroke: var(--color-text-cream); /* İkon rengi krem */
  width: 32px;
  height: 32px;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--color-alert-red); /* Yeni sıcak kırmızı */
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.75rem;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Lüks Logo (Sade ve Pürüzsüz) */ 
.brand-logo {
  --fs-size: clamp(1.2rem, 3vw, 1.6rem);
  font-size: var(--fs-size);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--color-text-cream);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 4px;
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: all 0.4s ease;
  text-shadow: 0 0 1px rgba(255, 244, 224, 0.2);
}

.brand-logo:hover {
  color: var(--color-accent-sand);
  text-shadow: 0 0 15px rgba(230, 213, 184, 0.6), 0 0 30px rgba(230, 213, 184, 0.2);
  transform: translateY(-1px);
}

/* Mobil Menü Butonu (Varsayılan olarak gizli) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001; 
}

.hamburger {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--color-text-cream);
  position: relative;
  transition: background-color 0.3s ease;
  border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 2px;
  background-color: var(--color-text-cream);
  left: 0;
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

.menu-toggle.active .hamburger {
  background-color: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .hamburger::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* Navigasyon Menü Linkleri */
.nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 28px;
}
.nav a {
	color: var(--color-text-cream);
	text-decoration: none;
	font-weight: 700;
	font-size: clamp(0.9rem, 3vw, 1rem);
	padding: clamp(4px, 1vw, 6px) clamp(8px, 2vw, 12px);
	border-radius: 8px;
	position: relative;
	overflow: visible;
	transition: color 0.2s, transform 0.18s, text-shadow 0.18s;
	letter-spacing: 0.25em;
	display: inline-block;
}
.nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2.5px;
	background: var(--color-accent-gold); /* Alt çizgi altın rengi */
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.18s cubic-bezier(.7,0,.7,1), background 0.18s;
}
.nav a:hover::after, .nav a:focus::after {
    background: var(--color-accent-gold);
    transform: scaleX(1);
}
.nav a:hover, .nav a:focus {
	color: var(--color-text-cream);
	background: none;
	outline: none;
	text-shadow: 0 0 1px var(--color-text-cream), 0 0 2px var(--color-text-cream);
	transform: scale(1.08);
}

/* ========================================
   SEPET SIDEBAR (Açılır)
   ======================================== */
.cart-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4); /* Arka plan karartması daha belirgin */
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 370px;
  max-width: 100vw;
  bottom: 0;
  background: #fff; /* Sepet içi beyaz, temiz */
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.7,0,.7,1);
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open {
  transform: translateX(0);
}
.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 12px 24px;
  border-bottom: 1px solid #e6e6e6;
}
.cart-sidebar-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-bg-dark); /* Başlık koyu yeşil */
}
.cart-sidebar-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-bg-dark); /* Kapatma butonu koyu yeşil */
  cursor: pointer;
  transition: color 0.2s;
}
.cart-sidebar-close:hover {
  color: var(--color-alert-red); /* Kapatma hover sıcak kırmızı */
}
.cart-sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  color: #333; /* Sepet içi metinler */
}
.cart-empty {
  color: #888;
  text-align: center;
  margin-top: 48px;
}
.cart-sidebar-footer {
  padding: 18px 24px;
  border-top: 1px solid #e6e6e6;
  background: #fafafa;
  display: flex;
  justify-content: space-between; /* 'flex-end'den 'space-between'e değişti */
  align-items: center; /* Dikey hizalama için eklendi */
  gap: 12px; /* Butonlar arası boşluk için eklendi */
}
/* Siparişi tamamla butonu ana buton stiliyle aynı (altın) */
#cartCheckoutBtn { 
  width: auto; /* '100%' den 'auto' ya değişti */
  flex-grow: 1; /* Kalan alanı doldurması için eklendi */
}


/* Sepet Sidebar İçeriği */
.cart-sidebar-list {
  list-style: none;
  margin: 0 0 18px 0;
  padding: 0;
}
.cart-sidebar-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
}
.cart-item-name {
  font-weight: 600;
  color: #222;
}
.cart-item-qty {
  color: var(--color-accent-gold); /* Adet/fiyat altın rengi */
  margin: 0 12px;
  font-weight: 600;
}
.cart-item-total {
  font-weight: 600;
  color: #222;
}
.cart-sidebar-total {
  text-align: right;
  font-size: 1.1rem;
  margin-top: 12px;
  color: #222;
}
.cart-item-delete {
  background: none;
  border: none;
  color: var(--color-alert-red); /* Silme butonu sıcak kırmızı */
  font-size: 1.3em;
  font-weight: bold;
  margin-left: 12px;
  cursor: pointer;
  border-radius: 50%;
  padding: 2px 8px;
  transition: background 0.2s, color 0.2s;
}
.cart-item-delete:hover {
  background: var(--color-alert-red);
  color: #fff;
}

/* ========================================
   MOBİL MENÜ
   ======================================== */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  background-color: var(--color-text-cream); /* Hamburger rengi krem */
  height: 3px;
  width: 28px;
  border-radius: 3px;
  position: absolute;
  left: 6px;
  transition: all 0.3s ease-in-out;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

.menu-toggle.active .hamburger {
  background-color: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .hamburger::after {
  transform: translateY(-8px) rotate(-45deg);
}

