/* ============================================================
   MODERN LAVANTA E-TİCARET — Mobile-First CSS v2.0
   ============================================================ */

/* ---------- CSS DEĞİŞKENLERİ (Admin'den değiştirilebilir) ---------- */
:root {
  --primary:    #9B59B6;
  --primary-dk: #6C3483;
  --primary-lt: #D7BDE2;
  --accent:     #E8D5F5;
  --bg:         #F8F4FF;
  --white:      #FFFFFF;
  --text:       #2C3E50;
  --text-lt:    #7F8C8D;
  --border:     #E8D5F5;
  --success:    #27AE60;
  --danger:     #E74C3C;
  --warning:    #F39C12;
  --info:       #3498DB;
  --shadow-sm:  0 2px 8px rgba(107,52,131,.10);
  --shadow-md:  0 4px 20px rgba(107,52,131,.15);
  --shadow-lg:  0 8px 40px rgba(107,52,131,.20);
  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --transition: .25s ease;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dk); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---------- CONTAINER ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- HEADER ---------- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-top {
  background: linear-gradient(135deg, var(--primary-dk), var(--primary));
  color: #fff;
  font-size: .78rem;
  padding: 6px 0;
  text-align: center;
}
.header-main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dk);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--primary); }
.search-bar {
  flex: 1;
  display: flex;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.search-bar:focus-within { border-color: var(--primary); }
.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 16px;
  font-size: .9rem;
  outline: none;
  color: var(--text);
}
.search-bar button {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 9px 16px;
  font-size: .9rem;
  transition: background var(--transition);
}
.search-bar button:hover { background: var(--primary-dk); }
.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.header-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .7rem;
  font-weight: 600;
  transition: all var(--transition);
  position: relative;
  border: none;
  background: transparent;
  text-decoration: none;
}
.header-btn i { font-size: 1.2rem; color: var(--primary); }
.header-btn:hover { background: var(--accent); color: var(--primary-dk); }
.cart-badge {
  position: absolute;
  top: 2px; right: 4px;
  background: var(--danger);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* NAV */
.site-nav {
  background: var(--white);
  border-top: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.site-nav::-webkit-scrollbar { display: none; }
.nav-list {
  display: flex;
  gap: 0;
  white-space: nowrap;
  padding: 0 16px;
}
.nav-list a {
  display: block;
  padding: 10px 14px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}
.nav-list a:hover, .nav-list a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Mobil menü toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--primary);
  padding: 6px;
}

/* ---------- HERO CAROUSEL ---------- */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background: var(--primary-dk);
  border-radius: 0;
}
.hero-slide {
  display: none;
  position: relative;
  min-height: 220px;
}
.hero-slide.active { display: block; }
.hero-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(90deg, rgba(108,52,131,.75) 0%, transparent 100%);
  color: #fff;
}
.hero-content h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.hero-content p  { font-size: .85rem; opacity: .9; margin-bottom: 14px; }
.hero-dots {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.hero-dot.active { background: #fff; width: 22px; border-radius: 4px; }
.hero-prev, .hero-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.25);
  border: none;
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}
.hero-prev { left: 10px; }
.hero-next { right: 10px; }
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,.45); }

/* ---------- SECTION ---------- */
.section { padding: 28px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 22px;
  background: linear-gradient(var(--primary), var(--primary-dk));
  border-radius: 2px;
}
.see-all {
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  display: flex; align-items: center; gap: 4px;
}

/* ---------- ÜRÜN GRID ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* ---------- ÜRÜN KARTI ---------- */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--accent);
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--danger);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}
.product-badge.new { background: var(--success); }
.product-badge.featured { background: var(--primary); }
.product-wishlist {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(255,255,255,.85);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: var(--text-lt);
  backdrop-filter: blur(4px);
  transition: all var(--transition);
}
.product-wishlist:hover { color: var(--danger); background: #fff; }
.product-info { padding: 10px 12px 12px; }
.product-cat {
  font-size: .7rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 3px;
}
.product-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.product-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.price-main {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dk);
}
.price-old {
  font-size: .78rem;
  color: var(--text-lt);
  text-decoration: line-through;
}
.price-discount {
  font-size: .7rem;
  background: #FDE8E8;
  color: var(--danger);
  padding: 2px 6px;
  border-radius: 20px;
  font-weight: 700;
}
.btn-cart {
  width: 100%;
  padding: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all var(--transition);
  min-height: 40px;
}
.btn-cart:hover { opacity: .9; transform: translateY(-1px); }
.btn-cart:active { transform: translateY(0); }
.btn-cart.out-of-stock {
  background: var(--text-lt);
  cursor: not-allowed;
}

/* ---------- ÜRÜN CAROUSEL (Yatay Kaydırma) ---------- */
.product-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.product-scroll::-webkit-scrollbar { height: 4px; }
.product-scroll::-webkit-scrollbar-track { background: var(--border); border-radius: 2px; }
.product-scroll::-webkit-scrollbar-thumb { background: var(--primary-lt); border-radius: 2px; }
.product-scroll .product-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
}

/* ---------- KATEGORİ KARTLARI ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 2px solid transparent;
}
.category-card:hover {
  border-color: var(--primary-lt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.category-card img {
  width: 52px; height: 52px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 8px;
  background: var(--accent);
}
.category-card .cat-icon {
  width: 52px; height: 52px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 8px;
}
.category-card span {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text);
  display: block;
}

/* ---------- BUTONLAR ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  min-height: 42px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff;
}
.btn-primary:hover { opacity: .9; color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { opacity: .9; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .78rem; min-height: 32px; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-white { background: #fff; color: var(--primary-dk); }
.btn-white:hover { background: var(--accent); color: var(--primary-dk); }

/* ---------- FORM ---------- */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}
.form-control {
  width: 100%;
  padding: 10px 13px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}
.form-control:focus { border-color: var(--primary); }
.form-control::placeholder { color: var(--text-lt); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: .75rem; color: var(--text-lt); margin-top: 4px; }

/* ---------- ALERT ---------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.alert-success { background: #E8F8F0; color: #1E8449; border: 1px solid #A9DFBF; }
.alert-danger   { background: #FDE8E8; color: #C0392B; border: 1px solid #F5C6CB; }
.alert-info     { background: #EBF5FB; color: #1A5276; border: 1px solid #AED6F1; }
.alert-warning  { background: #FEF9E7; color: #7D6608; border: 1px solid #F9E79F; }

/* ---------- KART ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-body { padding: 20px; }

/* ---------- BADGE ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
}
.badge-purple  { background: var(--accent); color: var(--primary-dk); }
.badge-success { background: #E8F8F0; color: var(--success); }
.badge-danger  { background: #FDE8E8; color: var(--danger); }
.badge-warning { background: #FEF9E7; color: var(--warning); }
.badge-info    { background: #EBF5FB; color: var(--info); }

/* ---------- ÜRÜN DETAY ---------- */
.product-detail { padding: 20px 0; }
.product-gallery { position: relative; }
.gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--accent);
  margin-bottom: 10px;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  flex: 0 0 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
  background: var(--accent);
}
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info { padding: 16px 0; }
.product-detail-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.product-detail-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dk);
  margin-bottom: 4px;
}
.product-detail-old {
  font-size: .9rem;
  color: var(--text-lt);
  text-decoration: line-through;
  margin-bottom: 12px;
}

/* Varyant Seçimi */
.variant-group { margin-bottom: 14px; }
.variant-label { font-size: .82rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn {
  padding: 7px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 38px;
}
.variant-btn:hover { border-color: var(--primary); color: var(--primary); }
.variant-btn.selected { border-color: var(--primary); background: var(--primary); color: #fff; }
.variant-btn.out-of-stock { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

/* Renk varyantı */
.color-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  outline: 2px solid transparent;
}
.color-btn.selected { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Miktar */
.qty-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 40px; height: 40px;
  background: var(--accent);
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dk);
  cursor: pointer;
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--primary-lt); }
.qty-input {
  width: 50px;
  text-align: center;
  border: none;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  outline: none;
  background: var(--white);
}

/* ---------- SEPET ---------- */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--accent);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: .88rem; font-weight: 700; margin-bottom: 3px; }
.cart-item-variant { font-size: .75rem; color: var(--text-lt); margin-bottom: 6px; }
.cart-item-price { font-size: .95rem; font-weight: 800; color: var(--primary-dk); }
.cart-item-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-summary {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: .88rem;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: none; }
.summary-total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dk);
}

/* ---------- ÖDEME ADIMLAR ---------- */
.checkout-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  overflow-x: auto;
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-lt);
  white-space: nowrap;
}
.checkout-step.active { color: var(--primary); }
.checkout-step.done { color: var(--success); }
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
  font-weight: 800;
  flex-shrink: 0;
}
.checkout-step.active .step-num { background: var(--primary); color: #fff; }
.checkout-step.done .step-num { background: var(--success); color: #fff; }
.step-sep { color: var(--border); font-size: .8rem; }

/* Ödeme yöntemi kartları */
.payment-methods { display: grid; gap: 10px; }
.payment-method {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}
.payment-method:hover { border-color: var(--primary-lt); }
.payment-method.selected { border-color: var(--primary); background: var(--accent); }
.payment-method input[type=radio] { accent-color: var(--primary); width: 18px; height: 18px; }
.payment-method-icon { font-size: 1.5rem; }
.payment-method-info strong { display: block; font-size: .9rem; }
.payment-method-info span { font-size: .78rem; color: var(--text-lt); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: linear-gradient(135deg, #2C1654, #4A235A);
  color: rgba(255,255,255,.85);
  padding: 40px 0 0;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 28px;
}
.footer-brand .logo { color: #fff; font-size: 1.3rem; margin-bottom: 10px; }
.footer-brand p { font-size: .82rem; opacity: .75; line-height: 1.7; }
.footer-col h4 {
  font-size: .88rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: .82rem; color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--primary-lt); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
  text-align: center;
  font-size: .78rem;
  opacity: .6;
}
.social-links { display: flex; gap: 10px; margin-top: 12px; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .9rem;
  transition: background var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; }

/* ---------- ÇEREZ BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(44,22,84,.97);
  color: #fff;
  padding: 14px 16px;
  z-index: 9999;
  display: none;
  backdrop-filter: blur(8px);
}
.cookie-banner.show { display: block; }
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-inner p { font-size: .8rem; flex: 1; min-width: 200px; opacity: .9; }
.cookie-inner a { color: var(--primary-lt); }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- FLASH MESAJ ---------- */
.flash-msg {
  position: fixed;
  top: 80px; right: 16px;
  z-index: 9998;
  max-width: 320px;
  animation: slideIn .3s ease;
}
@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ---------- GİRİŞ / KAYIT ---------- */
.auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.auth-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}
.auth-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  padding: 28px 24px;
  text-align: center;
  color: #fff;
}
.auth-header h1 { font-size: 1.3rem; margin-bottom: 4px; }
.auth-header p { font-size: .82rem; opacity: .85; }
.auth-body { padding: 28px 24px; }
.auth-divider {
  text-align: center;
  position: relative;
  margin: 18px 0;
  color: var(--text-lt);
  font-size: .8rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.btn-google {
  width: 100%;
  padding: 11px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-google:hover { border-color: var(--primary-lt); background: var(--accent); color: var(--text); }
.btn-google img { width: 20px; height: 20px; }

/* ---------- PROFİL ---------- */
.profile-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}
.profile-tab {
  padding: 10px 16px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-lt);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.profile-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- SİPARİŞ DURUMU ---------- */
.order-status-bar {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 20px 0;
  overflow-x: auto;
}
.order-status-bar::before {
  content: '';
  position: absolute;
  top: 14px; left: 10%; right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 1;
  flex: 1;
}
.status-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  color: var(--text-lt);
  font-weight: 700;
}
.status-step.done .status-dot { background: var(--success); color: #fff; }
.status-step.active .status-dot { background: var(--primary); color: #fff; }
.status-step span { font-size: .68rem; color: var(--text-lt); text-align: center; }
.status-step.done span, .status-step.active span { color: var(--text); font-weight: 700; }

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--text-lt);
  padding: 12px 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-lt); }

/* ---------- PAGINATION ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.page-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: .85rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.page-btn:hover, .page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- BOŞ DURUM ---------- */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-lt);
}
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 14px; }
.empty-state h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: .88rem; margin-bottom: 20px; }

/* ---------- LOADING ---------- */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  display: none;
}
.spinner {
  width: 44px; height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   TABLET (≥ 640px)
   ============================================================ */
@media (min-width: 640px) {
  .hero-slide img { height: 300px; }
  .hero-slide { min-height: 300px; }
  .hero-content h2 { font-size: 1.8rem; }
  .hero-content p  { font-size: 1rem; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .product-scroll .product-card { flex: 0 0 200px; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   DESKTOP (≥ 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .hero-slide img { height: 420px; }
  .hero-slide { min-height: 420px; }
  .hero-content h2 { font-size: 2.2rem; }
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .product-scroll .product-card { flex: 0 0 220px; }
  .category-grid { grid-template-columns: repeat(6, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .menu-toggle { display: none !important; }
  .product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
  .product-detail-info { padding: 0; }
  .cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
  .checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
}

/* ============================================================
   MOBİL ÖZEL (< 640px)
   ============================================================ */
@media (max-width: 639px) {
  .header-main { padding: 10px 12px; gap: 8px; }
  .logo { font-size: 1.2rem; }
  .search-bar input { padding: 8px 12px; font-size: .85rem; }
  .header-btn span { display: none; }
  .header-btn { padding: 6px 8px; }
  .section { padding: 20px 0; }
  .section-title { font-size: 1rem; }
  .product-card .product-info { padding: 8px 10px 10px; }
  .product-name { font-size: .82rem; }
  .price-main { font-size: .92rem; }
  .btn-cart { font-size: .78rem; padding: 8px; }
  .auth-box { border-radius: var(--radius); }
  .auth-header { padding: 22px 18px; }
  .auth-body { padding: 20px 18px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- YARDIMCI SINIFLAR ---------- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.fw-bold { font-weight: 700; }
.text-muted { color: var(--text-lt); }
.text-primary { color: var(--primary); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.w-100 { width: 100%; }
.hidden { display: none !important; }
