/* assets/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
  /* ── Renk Paleti: Mor & Beyaz (Premium E-Ticaret) ── */
  --primary:       #6B21A8;   /* Derin Mor */
  --primary-hover: #581C87;   /* Koyu Mor (Hover) */
  --accent:        #A855F7;   /* Açık Violet (vurgu) */
  --accent-hover:  #9333EA;
  --accent-gold:   #D4A24C;   /* Footer başlık / star */
  --dark:          #1E1B2E;   /* Siyahımsı Mor */
  --bg:            #F9F7FF;   /* Çok açık lavender arka plan */
  --muted:         #7E6E9A;   /* Pasif metin */
  --border:        #E6DFF5;   /* Hafif mor kenarlık */
  --discount:      #DC2626;   /* Kırmızı – indirim */
  --white:         #FFFFFF;

  /* Gölgeler (mor tonlu) */
  --shadow-sm: 0 2px 8px rgba(107,33,168,0.06);
  --shadow-md: 0 4px 18px rgba(107,33,168,0.10);
  --shadow-lg: 0 12px 32px rgba(107,33,168,0.14);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Fontlar */
  --font-body:    'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;

  /* Layout */
  --container-max-width: 1240px;
  --gutter: 24px;
}

/* ─── Reset & Temel ─────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

a { color:var(--primary); text-decoration:none; transition:all 0.2s ease; }
a:hover { color:var(--accent); }

img { max-width:100%; height:auto; display:block; }
ul  { list-style:none; }

/* ─── Container ─────────────────────────────────────────── */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Butonlar ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(107,33,168,.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107,33,168,.35);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(168,85,247,.25);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168,85,247,.35);
  color: var(--white);
}

/* ─── Site Header ───────────────────────────────────────── */
.site-header {
  background-color: var(--white);
  box-shadow: 0 2px 12px rgba(107,33,168,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.site-header.header-up {
  transform: translateY(-100%);
}

.header-top {
  background: linear-gradient(90deg, var(--primary), #7C3AED);
  color: var(--white);
  font-size: 13px;
  padding: 8px 0;
  text-align: center;
  letter-spacing: 0.3px;
}

.header-main { padding: 18px 0; }

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* Search */
.header-search { flex:1; max-width:520px; position:relative; }

.header-search form {
  width: 100%;
  display: flex;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50px;            /* Premium pill shape */
  overflow: hidden;
  transition: all 0.2s ease;
}

.header-search form:focus-within {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(168,85,247,.1);
}

.header-search input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
}

.header-search button {
  background: none;
  border: none;
  padding: 0 20px;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.header-search button:hover {
  transform: scale(1.1);
}

/* Header Actions */
.header-actions { display:flex; align-items:center; gap:22px; }

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--dark);
  font-size: 12px;
  gap: 3px;
}
.action-item i { color: var(--primary); width: 20px; height: 20px; }
.action-item:hover { color: var(--accent); }
.action-item:hover i { color: var(--accent); }

/* Nav */
.site-nav { border-top: 1px solid var(--border); }
.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.nav-item > a {
  display: block;
  padding: 14px 0;
  color: var(--dark);
  font-weight: 500;
  font-size: 14.5px;
  position: relative;
}
.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .25s ease;
}
.nav-item > a:hover::after { width: 100%; }
.nav-item > a:hover { color: var(--primary); }

/* ─── Hero & Slider ─────────────────────────────────────── */
.hero { 
  margin: 40px auto; 
  padding: 0 var(--gutter);
}

.hero-slider {
  background: #1E1B2E;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 520px;
  position: relative;
  display: flex;
  align-items: stretch; /* İçerideki slaytları tam yüksekliğe zorla */
}

.slide {
  width: 100% !important;
  flex: 1 0 100%; /* Tam genişlik ve tam yükseklik */
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  transition: opacity .6s ease;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0; /* Her köşeye yapıştır */
  background: linear-gradient(135deg, rgba(30,27,46,0.95) 0%, rgba(107,33,168,0.6) 100%);
  z-index: 1;
}

.hero-content { 
  position: relative;
  z-index: 10;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

.hero-content h2 { 
  color: var(--white); 
  font-size: 4rem; 
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.15;
  text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero-content p {
  color: rgba(255,255,255,0.95);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 36px;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-hero {
  background: var(--white);
  color: var(--primary);
  padding: 16px 44px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.2);
  background: #f8f8f8;
}

/* ─── Ürün Kartları ─────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gutter);
  margin-top: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.product-badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge { padding:4px 10px; border-radius:4px; font-size:12px; font-weight:600; color:var(--white); }
.badge-discount { background: var(--discount); }
.badge-new      { background: linear-gradient(135deg, var(--accent), var(--primary)); }

.product-image {
  position: relative;
  padding-top: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-image img {
  position: absolute;
  top:0; left:0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }

.product-info { padding:20px; flex:1; display:flex; flex-direction:column; }

.product-category {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-title {
  font-size: 15.5px;
  margin-bottom: 12px;
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-wrap {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.product-price { font-size: 18px; font-weight: 700; color: var(--primary); }
.product-price.has-discount { color: var(--discount); }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }

.product-actions { display:flex; gap:8px; }
.product-actions .btn { width:100%; }

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(160deg, #1E1B2E 0%, #3B0764 100%);
  color: var(--white);
  padding: 64px 0 20px;
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-widget h4 {
  color: #D4AFFF;
  margin-bottom: 18px;
  font-size: 18px;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer-widget ul li { margin-bottom: 10px; }
.footer-widget ul a { color: rgba(255,255,255,.7); font-size:14px; }
.footer-widget ul a:hover { color: #D4AFFF; }
.footer-widget ul li { color: rgba(255,255,255,.7); font-size:14px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  font-size: 14px;
  color: rgba(255,255,255,.45);
}

/* ─── Section Title ─────────────────────────────────────── */
.section-title { text-align:center; margin-bottom:40px; }
.section-title h2 { font-size:2rem; }
.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 10px auto 0;
}
.section-title p { color: var(--muted); margin-top: 8px; }

/* ─── Form Ortak ────────────────────────────────────────── */
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  color: var(--dark);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168,85,247,.1);
}

/* ─── Auth (Login/Register) Luxury System ─── */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 150px);
  padding: 60px var(--gutter);
  background: #fdfbff;
}

.auth-card {
  display: flex;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(107,33,168,0.12);
  width: 100%;
  max-width: 1020px;
  min-height: 620px;
  border: 1px solid rgba(107,33,168,0.05);
}

.auth-sidebar {
  flex: 0.85;
  background: linear-gradient(135deg, #2D1B5E 0%, #6B21A8 100%);
  padding: 60px 48px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.auth-sidebar-content {
  position: relative;
  z-index: 2;
}

.auth-sidebar .brand-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  border: 1px solid rgba(255,255,255,0.1);
}

.auth-sidebar h2 {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #FFFFFF !important; /* Force pure white for readability */
}

.auth-sidebar h2 span {
  color: #FB923C;
  display: block;
}

.auth-sidebar p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9); /* Bright enough */
  margin-bottom: 40px;
}

.auth-form-side {
  flex: 1.15;
  padding: 60px 70px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-side h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.auth-form-side p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 40px;
}

.form-field {
  margin-bottom: 24px;
}

.form-field label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input, .input-wrapper textarea {
  width: 100%;
  height: 54px;
  padding: 0 20px 0 52px !important; /* Strict internal padding */
  background: #F1F5F9;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  font-size: 15px;
  color: var(--dark);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper textarea {
  height: auto;
  padding-top: 15px !important;
  padding-bottom: 15px !important;
}

.input-wrapper input:focus, .input-wrapper textarea:focus {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(107,33,168,0.08);
  outline: none;
}

/* Precise Icon Placement (Forcing Left Inside) */
.input-wrapper i, .input-wrapper .lucide {
  position: absolute !important;
  left: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 18px !important;
  height: 18px !important;
  color: #94A3B8;
  pointer-events: none;
  z-index: 10;
}

.input-wrapper input:focus + i, .input-wrapper input:focus + .lucide {
  color: var(--primary);
}

.btn-auth {
  width: 100%;
  height: 56px;
  background: #18181B;
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.btn-auth:hover {
  background: #000;
  transform: translateY(-1.5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.captcha-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.captcha-box {
  height: 54px;
  padding: 0 28px;
  background: var(--white);
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  font-weight: 900;
  font-size: 24px;
  color: var(--dark);
  letter-spacing: 5px;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

@media (max-width: 900px) {
  .auth-card { flex-direction: column; }
  .auth-sidebar { padding: 40px; }
  .auth-form-side { padding: 40px; }
}

.header-top {
  background: var(--primary);
  color: var(--white);
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  position: relative;
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gutter);
  white-space: nowrap;
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  justify-content: space-around;
  min-width: 100%;
  gap: 80px;
  animation: marquee-scroll 35s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.marquee-item i {
  color: var(--accent);
  width: 14px;
  height: 14px;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Pause on hover for better readability */
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

.form-field .input-wrapper i {
  top: 50%;
  transform: translateY(-50%);
}

.form-field input, .form-field textarea {
  width: 100%;
  padding: 14px 20px 14px 52px !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-size: 15px;
  transition: all 0.2s ease;
}

.form-field input:focus {
  background: #fff;
  border-color: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
  outline: none;
}

.btn-auth:hover {
  background: #000000;
  transform: translateY(-1px);
}

.captcha-row {
  display: flex;
  gap: 12px;
}

.captcha-box {
  height: 52px;
  padding: 0 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 20px;
  color: #1e293b;
  letter-spacing: 4px;
  user-select: none;
}

.form-field input:focus {
  background: #EFF6FF;
  border-color: #BFDBFE;
  outline: none;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.05);
}

/* Security Code (Captcha) */
.captcha-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 30px;
}

.captcha-box {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 8px 24px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--dark);
  user-select: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

.captcha-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.02) 10px, rgba(0,0,0,0.02) 20px);
}

.btn-auth {
  width: 100%;
  padding: 16px;
  background: #18181B;
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s;
}

.btn-auth:hover {
  background: #000;
}

@media (max-width: 900px) {
  .auth-card { flex-direction: column; }
  .auth-sidebar { padding: 40px; }
  .auth-form-side { padding: 40px; }
}

/* ─── Toast Notifications ───────────────────────────────── */
#hb-toast-container {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

@media (min-width: 769px) {
  #hb-toast-container {
    bottom: 30px;
    right: 30px;
    max-width: 380px;
  }
}

@media (max-width: 768px) {
  #hb-toast-container {
    bottom: 85px; /* Alt nav barın hemen üzerine */
    left: 20px;
    right: 20px;
    align-items: center;
  }
}

.hb-toast {
  background: rgba(31, 26, 23, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: auto;
  animation: hb-toast-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 280px;
}

.hb-toast-action {
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
}

.hb-toast-action:hover {
  background: #fff;
  color: var(--primary);
}

.hb-toast.out {
  animation: hb-toast-out 0.3s forwards;
}

.hb-toast-icon {
  width: 44px;
  height: 44px;
  background: rgba(39, 174, 96, 0.2);
  color: #2ECC71;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hb-toast-content {
  flex: 1;
}

.hb-toast-title {
  font-weight: 700;
  font-size: 15px;
  display: block;
  margin-bottom: 2px;
  color: #fff;
}

.hb-toast-msg {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

@keyframes hb-toast-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hb-toast-out {
  to { opacity: 0; transform: scale(0.9); }
}

/* ─── Shipping Progress ─────────────────────────────────── */
.hb-shipping-info {
  background: var(--bg);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.hb-shipping-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1.5;
}

.hb-shipping-bar {
  height: 8px;
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.hb-shipping-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 4px;
}

.hb-shipping-info.success .hb-shipping-fill {
  background: #27ae60;
}

/* ─── Responsive Styles ─────────────────────────────────── */
/* ─── Visibility Utilities ──────────────────────────────── */
.mobile-only { display: none !important; }
.mobile-only-flex { display: none !important; }

@media (max-width: 991px) {
  .hide-mobile { display: none !important; }
  .mobile-only { display: block !important; }
  .mobile-only-flex { display: flex !important; }
}

/* ─── Cart Table Responsive ────────────────────────────── */
@media (max-width: 768px) {
  .cart-table-responsive table, 
  .cart-table-responsive thead, 
  .cart-table-responsive tbody, 
  .cart-table-responsive th, 
  .cart-table-responsive td, 
  .cart-table-responsive tr { 
    display: block; 
  }
  
  .cart-table-responsive thead tr { 
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  .cart-table-responsive tr { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; padding: 12px; }
  
  /* Specific fix for Product cell on mobile */
  .cart-table-responsive td[data-label="Ürün"] {
    padding-left: 12px !important;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .cart-table-responsive td[data-label="Ürün"]:before {
    display: none;
  }

  .cart-table-responsive td { 
    border: none;
    position: relative;
    padding-left: 40% !important; 
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    min-height: 50px;
    text-align: right;
    border-bottom: 1px solid rgba(0,0,0,0.03);
  }
  
  .cart-table-responsive td:before { 
    position: absolute;
    top: 15px;
    left: 12px;
    width: 35%; 
    padding-right: 10px; 
    white-space: nowrap;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    color: var(--muted);
    content: attr(data-label);
  }
}

@media (max-width: 991px) {
  .container { 
    width: 100% !important; 
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  /* Force cards to take full width on mobile */
  .account-layout > div {
    padding: 16px !important;
    width: 100% !important;
    min-width: 0 !important; /* Reset min-width that might cause overflow/centering issues */
    box-sizing: border-box;
  }
  
  .header-main .container {
    flex-wrap: wrap;            /* Arama barı 2. satıra düşer */
    gap: 0;
    padding: 12px 16px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Logo ortada — absolute ile tam merkeze hizalanır */
  .header-logo {
    order: 2;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    flex: none;
    margin: 0;
    height: 64px;           /* container padding(12+12) + icon row(40) */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
  }
  .header-logo img { max-height: 40px; width: auto !important; max-width: 140px; }
  .header-logo h2  { font-size: 1.1rem !important; white-space: nowrap; }

  /* header-main container'ı relative yapılmalı */
  .header-main .container { position: relative; }

  /* Hamburger butonu — sol */
  #openDrawer {
    order: 1;
    flex: 0 0 auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 10px;
    color: var(--primary);
    z-index: 1;
  }

  /* Header actions (sepet vs.) — sağ */
  .header-actions {
    order: 3;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 1;
  }
  .header-actions a { padding: 10px; }

  /* Arama barı alt satıra */
  .header-search {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    margin-top: 10px;
  }

  .header-search form {
    width: 100%;
    display: flex;
    background: #f8f9fa;
    border: 1.5px solid #e9ecef;
    border-radius: 25px;
    padding: 2px;
  }
  
  .header-search input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 10px 18px;
    font-size: 14px;
    outline: none !important;
  }

  .header-search button {
    background: transparent !important;
    border: none !important;
    color: var(--primary);
    padding: 0 14px 0 10px; /* Adjusted to align icon with cart icon above */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-search button i {
    width: 18px;
    height: 18px;
  }

  /* ─── Hero Mobile Fixes ─── */
  .hero { 
    height: 440px !important; 
    min-height: 440px !important; 
    overflow: hidden; 
    background: transparent !important;
    border-radius: 0 !important;
    margin-bottom: 30px;
  }
  
  .hero-slider, .slide { 
    height: 440px !important; 
    border-radius: 0 !important;
  }
  
  .slide {
    padding: 20px !important;
  }

  .hero-overlay {
    background: linear-gradient(135deg, rgba(30,27,46,0.98) 0%, rgba(107,33,168,0.85) 100%) !important;
    border-radius: 0 !important;
  }
  
  .hero-content { 
    padding: 0 !important; 
    text-align: center;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .hero-content h2 { 
    font-size: 30px !important; 
    line-height: 1.2 !important; 
    margin-bottom: 12px !important; 
    text-align: center;
    width: 100%;
  }
  
  .hero-content p { 
    font-size: 15px !important; 
    margin-bottom: 24px !important; 
    text-align: center;
    max-width: 100%;
    opacity: 0.9;
  }
  
  .btn-hero {
    padding: 12px 28px !important;
    font-size: 15px !important;
    border-radius: 30px !important;
    width: fit-content;
    margin: 0 auto;
  }

  .site-nav { display: none; } /* Hide desktop nav */
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Account Dashboard Stacking */
  .account-layout {
    flex-direction: column !important;
  }
  
  /* Product Detail Stacking */
  .product-detail-layout {
    flex-direction: column !important;
  }
}

/* ─── Mobile Drawer (Hamburger Menu) ─────────────────────── */
.hb-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.hb-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.hb-mobile-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: var(--white);
  z-index: 1001;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 10px 0 30px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.hb-mobile-drawer.active {
  left: 0;
}

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.drawer-nav-link:hover {
  background: var(--bg);
  color: var(--primary);
}

/* ─── Product Reviews System ────────────────────────────── */
.reviews-section {
  margin-top: 40px;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.reviews-summary {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.avg-rating-box { text-align: center; }
.avg-rating-box h2 { font-size: 48px; color: var(--primary); margin-bottom: 4px; }
.avg-rating-box .stars { color: #facc15; font-size: 20px; display: flex; gap: 4px; justify-content: center; }

.rating-bars { flex: 1; min-width: 280px; }
.rating-bar-item { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 13px; }
.rating-progress { flex: 1; height: 8px; background: var(--bg); border-radius: 10px; overflow: hidden; }
.rating-fill { height: 100%; background: #facc15; border-radius: 10px; }

/* Review Card */
.review-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.review-card:last-child { border-bottom: none; }

.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.review-user { display: flex; align-items: center; gap: 12px; }
.review-avatar { 
  width: 44px; height: 44px; background: var(--bg); color: var(--primary); 
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; border: 1px solid var(--border);
}
.review-user-info span { display: block; }
.user-name { font-weight: 600; font-size: 15px; color: var(--dark); }
.review-date { font-size: 12px; color: var(--muted); margin-top: 2px; }

.review-stars { color: #facc15; font-size: 14px; display: flex; gap: 2px; margin-bottom: 10px; }
.review-comment { font-size: 15px; line-height: 1.6; color: var(--dark); margin-bottom: 16px; }

.review-gallery { display: flex; gap: 10px; flex-wrap: wrap; }
.review-img { 
  width: 100px; height: 100px; border-radius: 8px; object-fit: cover; 
  cursor: pointer; border: 1px solid var(--border); 
  transition: transform .2s;
}
.review-img:hover { transform: scale(1.05); }

/* Review Form */
.review-form-container { margin-top: 40px; }
.star-selector { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 8px; margin-bottom: 20px; }
.star-selector input { display: none; }
.star-selector label { cursor: pointer; color: #d1d5db; transition: color .2s; font-size: 32px; }
.star-selector label:hover,
.star-selector label:hover ~ label,
.star-selector input:checked ~ label { color: #facc15; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }

/* Responsive */
@media (max-width: 991px) {
  .reviews-section { padding: 30px 20px; }
  .reviews-summary { gap: 30px; }
  .avg-rating-box { width: 100%; }
}
