:root {
  --primary: #0766AD;
  --primary-dark: #054a7a;
  --primary-light: #8EA7E9;
  --accent: #15E0FF;
  --bg: #f8faff;
  --white: #ffffff;
  --text: #1a2a3a;
  --text-light: #4a5a6a;
  --gold: #15E0FF;
  --border: #e0e8f0;
  --shadow: 0 4px 24px rgba(7, 102, 173, 0.08);
  --shadow-lg: 0 12px 40px rgba(7, 102, 173, 0.12);
  --radius: 16px;
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  --danger: #c94b4b;
  --success: #4b9c5e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; transition: background 0.3s, color 0.3s; }
body.dark { --bg: #1a1a2a; --white: #2d2d3d; --text: #e0e8f0; --text-light: #b0c4de; --border: #444; }
h1, h2, h3, .serif { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.header { background: rgba(255,255,255,0.92); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 10px 30px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; flex-wrap: wrap; gap: 8px; }
body.dark .header { background: rgba(45,45,55,0.92); }
.logo { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.logo-text { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; color: var(--primary); font-variant-ligatures: none; -webkit-font-variant-ligatures: none; font-feature-settings: "liga" 0, "dlig" 0, "clig" 0; }
.logo-text small { font-weight: 400; font-size: 1rem; color: var(--text-light); margin-left: 4px; font-family: 'Inter', sans-serif; }
.search-box { flex: 1; max-width: 400px; min-width: 200px; display: flex; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: 30px; overflow: hidden; }
.search-box input { flex: 1; border: none; padding: 10px 16px; font-family: 'Inter', sans-serif; font-size: 0.9rem; background: transparent; color: var(--text); outline: none; }
.search-box .clear-btn { display: none; background: none; border: none; padding: 10px 6px; cursor: pointer; color: var(--text-light); font-size: 1rem; }
.search-box .search-btn { background: var(--primary); color: white; border: none; padding: 10px 16px; cursor: pointer; font-size: 1rem; }
.search-box .voice-btn { background: none; border: none; padding: 10px 8px; cursor: pointer; font-size: 1rem; }

.nav-links { display: flex; gap: 14px; align-items: center; font-weight: 500; font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-light); flex-wrap: wrap; }
.nav-links a { transition: var(--transition); position: relative; padding-bottom: 4px; white-space: nowrap; }
.nav-links a::after { content:''; position:absolute; bottom:0; left:0; width:0; height:1.5px; background:var(--primary); transition: var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.cart-box { display: flex; flex-direction: column; align-items: center; cursor: pointer; font-size: 0.7rem; color: var(--text-light); transition: transform 0.2s ease; }
.cart-box:hover { transform: translateY(-2px); }
.cart-box .cart-icon { font-size: 1.25rem; position: relative; width: 38px; height: 38px; background: rgba(7,102,173,0.07); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.cart-box:hover .cart-icon { background: rgba(7,102,173,0.14); }
.cart-count { position: absolute; top: -5px; right: -5px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; font-size: 0.62rem; width: 19px; height: 19px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; border: 2px solid white; box-shadow: 0 2px 6px rgba(7,102,173,0.35); }

.hero { position: relative; width: 100%; height: 500px; overflow: hidden; background: var(--primary-light); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; display: flex; align-items: center; justify-content: center; }
.hero-slide.active { opacity: 1; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }
.hero-content { position: relative; z-index: 2; text-align: center; color: white; max-width: 600px; padding: 20px; }
.hero-content h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 12px; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.1rem; margin-bottom: 20px; }
.btn-primary { display: inline-block; background: var(--primary); color: white; padding: 12px 32px; border-radius: 40px; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; transition: var(--transition); border: none; cursor: pointer; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(7,102,173,0.3); }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; }
.hero-dot.active { background: white; transform: scale(1.3); }

.campaign-bar { background: linear-gradient(90deg, var(--primary), var(--accent)); color: white; text-align: center; padding: 8px; font-weight: 600; font-size: 0.85rem; animation: pulse 2s infinite; }
.campaign-bar.hidden { display: none; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.85; } }

.section-header { text-align: center; margin: 40px 0 20px; }
.section-header h2 { font-size: 2.2rem; color: var(--text); }
.section-header .line { width: 40px; height: 2px; background: var(--primary); margin: 8px auto 0; }

.categories { display: flex; gap: 14px; overflow-x: auto; padding: 10px 30px 20px; }
.categories::-webkit-scrollbar { display: none; }
.cat-card { flex: 0 0 140px; background: none; border-radius: 0; padding: 10px; text-align: center; box-shadow: none; cursor: pointer; transition: var(--transition); }
.cat-card:hover { transform: translateY(-4px); }
.cat-card img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; display: block; }
.cat-card h4 { font-weight: 600; font-size: 0.8rem; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; padding: 10px 30px 30px; }
.product-card { position: relative; background: none; border-radius: 0; overflow: visible; box-shadow: none; text-align: center; opacity: 0; transform: translateY(14px); animation: cardFadeIn 0.55s cubic-bezier(.22,.61,.36,1) forwards; }
@keyframes cardFadeIn { to { opacity: 1; transform: translateY(0); } }
.product-card img { width: 170px; height: 170px; object-fit: cover; cursor: pointer; border-radius: 50%; margin: 0 auto; display: block; transition: transform 0.35s cubic-bezier(.22,.61,.36,1), box-shadow 0.35s ease; box-shadow: 0 0 0 0 rgba(184,134,92,0); }
.product-card:hover img { transform: scale(1.06); box-shadow: 0 14px 30px -8px rgba(184,134,92,0.45), 0 0 0 5px rgba(184,134,92,0.12); }
.product-card:hover h3 a { color: var(--primary); }
.product-card h3 a { transition: color 0.25s ease; }
.btn-add:active { transform: scale(0.94); }
.btn-add.just-added { animation: addPulse 0.45s ease; }
@keyframes addPulse { 0% { transform: scale(1); } 40% { transform: scale(0.9); background: var(--primary); color: white; } 100% { transform: scale(1); } }

/* Ürünler yüklenirken gösterilen "hayalet" (skeleton) kartlar */
.skeleton-card { text-align: center; }
.skeleton-circle { width: 170px; height: 170px; border-radius: 50%; margin: 0 auto; background: linear-gradient(90deg, #f0ebe4 25%, #f7f3ee 37%, #f0ebe4 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.skeleton-line { height: 12px; border-radius: 6px; margin: 12px auto 0; background: linear-gradient(90deg, #f0ebe4 25%, #f7f3ee 37%, #f0ebe4 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; margin-top: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Sepete eklendiğinde sepet ikonunun zıplaması */
.cart-bounce { animation: cartBounce 0.5s cubic-bezier(.36,1.5,.5,1); }
@keyframes cartBounce { 0%,100% { transform: scale(1); } 30% { transform: scale(1.35); } 55% { transform: scale(0.92); } }.product-info { padding: 8px 0; text-align: center; }
.product-info h3 { font-size: 0.95rem; font-weight: 600; }
.product-info .price-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.product-info .price { font-size: 1rem; font-weight: 700; color: var(--primary); }
.product-info .old-price { font-size: 0.8rem; color: #bbb; text-decoration: line-through; }
.btn-add {
  width: 78%; margin: 10px auto 0; padding: 9px 8px;
  background: linear-gradient(135deg, rgba(7,102,173,0.06), rgba(21,224,255,0.08));
  color: var(--primary); border: 1.5px solid var(--primary); border-radius: 30px;
  font-weight: 600; font-size: 0.78rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}
.btn-add::before { content: '🛍️'; font-size: 0.85rem; }
.btn-add:hover { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; box-shadow: 0 6px 16px rgba(7,102,173,0.25); transform: translateY(-1px); }
.btn-buy {
  width: 78%; margin: 6px auto 0; padding: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border: none; border-radius: 30px;
  font-weight: 600; font-size: 0.78rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-buy:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(7,102,173,0.3); }
.btn-buy:active { transform: scale(0.96); }

.contact-bar { display: flex; justify-content: center; gap: 16px; padding: 20px; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 20px; }
.contact-bar a { color: var(--text-light); font-weight: 500; font-size: 0.8rem; }
.contact-bar a:hover { color: var(--primary); }
.footer { background: #0a1a2a; color: #b0c4de; text-align: center; padding: 20px; font-size: 0.8rem; }
.scroll-top { position: fixed; bottom: 80px; right: 20px; width: 40px; height: 40px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; z-index: 50; opacity: 0; transition: var(--transition); }
.scroll-top.show { opacity: 1; }

.cart-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); z-index: 200; justify-content: center; align-items: center; }
.cart-modal-overlay.show { display: flex; }
.cart-modal { background: var(--white); border-radius: 20px; padding: 24px; width: 95%; max-width: 450px; max-height: 80vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); animation: fadeIn 0.3s ease; }
.cart-modal-close { float: right; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-light); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
  .header { padding: 8px 12px; }
  .logo-text { font-size: 1.3rem; }
  .hero { height: 280px; }
  .hero-content h1 { font-size: 1.6rem; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 10px 16px; }
  .product-card img { height: 180px; }
  .product-info { padding: 8px; }
  .product-info h3 { font-size: 0.8rem; }
  .btn-add, .btn-buy { font-size: 0.7rem; padding: 8px; }
  .cart-modal { width: 100% !important; max-width: 100% !important; height: 100vh !important; max-height: 100vh !important; border-radius: 0 !important; margin: 0 !important; }
  .cart-modal-overlay { align-items: flex-end; }
  .search-box { max-width: 200px; }
  .categories { gap: 8px; }
  .cat-card { flex: 0 0 120px; padding: 12px 8px; }
  .cat-card img { width: 50px; height: 50px; }
}