:root {
  --bg: #0a0a0a;
  --text: #eeeeee;
  --accent: #e30613;
  --card: #1a1a1a;
}

[data-theme="light"] {
  --bg: #f8f8f8;
  --text: #111111;
  --card: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: all 0.5s ease;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(15px);
  z-index: 1000;
  padding: 1.3rem 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(227, 6, 19, 0.25);
}

[data-theme="light"] header {
  background: rgba(248, 248, 248, 0.97);
}

.logo {
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: white;
  text-shadow: 0 0 30px var(--accent);
}

[data-theme="light"] .logo {
  color: #000;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 20px;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
}

[data-theme="light"] nav a {
  color: #111;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.4s ease;
}

nav a:hover::after {
  width: 100%;
}

/* BURAYI DÜZENLEDİM: Sepet sağa, mod sola geçti */
.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-direction: row-reverse; 
}

.theme-toggle, .cart {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
  transition: 0.3s;
}

[data-theme="light"] .theme-toggle,
[data-theme="light"] .cart {
  color: #111;
}

.cart {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent);
  color: white;
  font-size: 0.85rem;
  font-weight: bold;
  min-width: 23px;
  height: 23px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ÜRÜNLER BÖLÜMÜ */
.products-section {
  padding: 120px 6% 100px;
  background: var(--bg);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

h1 {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 10px;
  color: var(--accent);
}

.subtitle {
  text-align: center;
  font-size: 1.35rem;
  margin-bottom: 70px;
  opacity: 0.9;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 45px rgba(227, 6, 19, 0.4);
}

.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.product-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.product-info p {
  color: #999;
  margin-bottom: 15px;
}

.price {
  font-size: 1.55rem;
  font-weight: bold;
  color: var(--accent);
  margin: 10px 0 20px;
}

.add-to-cart {
  background: var(--accent);
  color: white;
  border: none;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  margin-top: auto;
  transition: all 0.3s ease;
}

.add-to-cart:hover {
  background: #c0040f;
  transform: scale(1.05);
}

/* Yukarı Butonu */
.up-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 65px;
  height: 65px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 2.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 35px rgba(227,6,19,0.7);
  z-index: 999;
}

.up-btn:hover {
  transform: scale(1.15);
}

footer {
  background: #000;
  color: #777;
  text-align: center;
  padding: 60px 20px;
}

@media (max-width: 768px) {
  h1 { font-size: 2.8rem; }
  .products-grid { gap: 25px; }
}
.music-player {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
}

.music-btn {
  width: 65px;
  height: 65px;
  background: #e30613;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(227,6,19,0.6);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-btn:hover {
  transform: scale(1.15);
}

.music-btn.playing {
  background: #00c853;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,150,83,0.7); }
  70% { box-shadow: 0 0 0 14px rgba(0,150,83,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,150,83,0); }
}

.volume-slider {
  width: 100px;
  accent-color: #e30613;
  cursor: pointer;
}