/* ============================================================
   Modemroutershop TR - Global Styles
   Color Palette: White + Soft Blue + Light Grey
   Font: Inter (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-soft: #dbeafe;
  --primary-hover: #1d4ed8;
  --accent: #0ea5e9;
  --white: #ffffff;
  --grey-50: #f8fafc;
  --grey-100: #f1f5f9;
  --grey-200: #e2e8f0;
  --grey-300: #cbd5e1;
  --grey-400: #94a3b8;
  --grey-500: #64748b;
  --grey-600: #475569;
  --grey-700: #334155;
  --grey-800: #1e293b;
  --grey-900: #0f172a;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 40px rgba(37,99,235,0.12), 0 8px 16px rgba(0,0,0,0.06);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --font: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--grey-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font); }
ul, ol { list-style: none; }
input, select, textarea { font-family: var(--font); outline: none; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); font-weight: 600;
  font-size: 15px; transition: var(--transition); white-space: nowrap;
  border: 2px solid transparent; letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--primary); color: var(--white);
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}
.btn-primary:hover {
  background: var(--primary-hover); transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.4);
}
.btn-secondary {
  background: var(--white); color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover { background: var(--primary-soft); transform: translateY(-2px); }
.btn-success {
  background: var(--success); color: var(--white);
  box-shadow: 0 4px 14px rgba(16,185,129,0.35);
}
.btn-success:hover { background: #059669; transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }

/* ── Section titles ── */
.section-title { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--grey-900); line-height: 1.25; }
.section-subtitle { font-size: 1.05rem; color: var(--grey-500); margin-top: 8px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .section-title { font-size: 2.2rem; }

/* ── Card ── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; transition: var(--transition);
  border: 1px solid var(--grey-100);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--primary-soft); }

/* ── Grid Utilities ── */
.grid { display: grid; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; } .gap-4 { gap: 32px; }

/* ── Spacing ── */
.py-4 { padding-top: 32px; padding-bottom: 32px; }
.py-8 { padding-top: 64px; padding-bottom: 64px; }
.py-12 { padding-top: 96px; padding-bottom: 96px; }

/* ── ============================================================
   HEADER
   ============================================================ */
header.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-200);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 1200px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px;
}
.logo-text { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--grey-900); }
.logo-text span { color: var(--primary); }

nav.site-nav { display: flex; align-items: center; gap: 8px; }
nav.site-nav a {
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--grey-600); transition: var(--transition);
}
nav.site-nav a:hover, nav.site-nav a.active {
  background: var(--primary-soft); color: var(--primary);
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.cart-btn {
  position: relative; background: var(--primary-soft); border-radius: 10px;
  padding: 10px 14px; color: var(--primary); font-weight: 600;
  display: flex; align-items: center; gap: 8px; font-size: 14px;
  transition: var(--transition);
}
.cart-btn:hover { background: var(--primary); color: var(--white); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--danger); color: white; font-size: 11px; font-weight: 700;
  width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.hamburger {
  display: none; background: none; padding: 8px; border-radius: 8px;
  flex-direction: column; gap: 5px;
}
.hamburger span {
  width: 22px; height: 2px; background: var(--grey-700); border-radius: 2px; transition: var(--transition);
}
.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 24px 16px; border-top: 1px solid var(--grey-100);
}
.mobile-nav a {
  padding: 10px 14px; border-radius: 8px; font-size: 15px; font-weight: 500;
  color: var(--grey-700); transition: var(--transition);
}
.mobile-nav a:hover { background: var(--primary-soft); color: var(--primary); }

/* ── ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 40%, #f8fafc 100%);
  padding: 80px 0 60px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 500px; height: 500px; background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 380px; height: 380px; background: radial-gradient(circle, rgba(14,165,233,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.hero-badge { margin-bottom: 20px; }
.hero-title {
  font-family: var(--font-heading); font-size: 3rem; font-weight: 800;
  line-height: 1.1; color: var(--grey-900); margin-bottom: 20px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc { font-size: 1.1rem; color: var(--grey-600); margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
/* Hamburger Animation */
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.payment-methods { display: grid; gap: 16px; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--grey-200); }
.hero-stat { text-align: center; }
.hero-stat .stat-num { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.hero-stat .stat-label { font-size: 12px; color: var(--grey-500); font-weight: 500; margin-top: 2px; }

.hero-visual { position: relative; z-index: 1; }
.hero-image-wrap {
  background: white; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: 40px; display: flex; align-items: center; justify-content: center;
  position: relative; border: 1px solid var(--grey-100);
}
.hero-image-wrap::before {
  content: ''; position: absolute; inset: -2px; border-radius: calc(var(--radius-xl) + 2px);
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(14,165,233,0.1));
  z-index: -1;
}
.hero-badges-float { position: absolute; display: flex; flex-direction: column; gap: 12px; }
.hero-badges-float.left { left: -20px; top: 50%; transform: translateY(-50%); }
.hero-badges-float.right { right: -20px; top: 30%; }
.float-badge {
  background: white; border-radius: 12px; box-shadow: var(--shadow-md);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--grey-100); min-width: 160px;
  animation: float 3s ease-in-out infinite;
}
.float-badge:nth-child(2) { animation-delay: 1.5s; }
.float-badge .icon { font-size: 22px; }
.float-badge .info { display: flex; flex-direction: column; }
.float-badge .info strong { font-size: 13px; font-weight: 600; color: var(--grey-800); }
.float-badge .info span { font-size: 11px; color: var(--grey-500); }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ── ============================================================
   TRUST BADGES
   ============================================================ */
.trust-bar {
  background: var(--grey-900); padding: 20px 0;
}
.trust-items {
  display: flex; align-items: center; justify-content: center; gap: 0;
  flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.trust-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 28px;
  border-right: 1px solid rgba(255,255,255,0.1); flex: 1; min-width: 200px;
}
.trust-item:last-child { border-right: none; }
.trust-item .ti-icon { font-size: 26px; }
.trust-item .ti-text strong { display: block; color: white; font-size: 14px; font-weight: 600; }
.trust-item .ti-text span { font-size: 12px; color: rgba(255,255,255,0.6); }

/* ── ============================================================
   PRODUCTS GRID
   ============================================================ */
.products-section { padding: 80px 0; background: var(--grey-50); }

.product-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden; transition: var(--transition); border: 1px solid var(--grey-100);
  display: flex; flex-direction: column;
  transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.product-card .img-wrap {
  background: linear-gradient(145deg, #f0f9ff, #eff6ff);
  padding: 32px; display: flex; align-items: center; justify-content: center;
  min-height: 200px; position: relative; overflow: hidden;
}
.product-card .img-wrap img { width: 160px; height: 140px; object-fit: contain; transition: transform 0.4s ease; }
.product-card:hover .img-wrap img { transform: scale(1.06); }
.product-card .card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-card .card-brand { font-size: 12px; color: var(--grey-400); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.product-card .card-title { font-size: 1rem; font-weight: 700; color: var(--grey-800); margin-bottom: 8px; line-height: 1.3; }
.product-card .card-desc { font-size: 13px; color: var(--grey-500); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.product-card .card-features { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.product-card .card-features span {
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); font-weight: 500;
}
.card-footer { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-top: 1px solid var(--grey-100); }
.card-price { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--grey-900); }
.card-price .currency { font-size: 1rem; color: var(--grey-500); margin-right: 3px; }
.stock-badge { font-size: 12px; font-weight: 600; }
.in-stock { color: var(--success); }
.out-stock { color: var(--danger); }

/* ── ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail { padding: 48px 0 80px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--grey-400); margin-bottom: 32px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--grey-300); }

.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.product-images .main-img {
  background: linear-gradient(145deg, #f0f9ff, #eff6ff); border-radius: var(--radius-xl);
  padding: 48px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); margin-bottom: 16px; cursor: zoom-in;
  transition: var(--transition); min-height: 340px;
}
.product-images .main-img img { width: 260px; height: 220px; object-fit: contain; transition: transform 0.4s; }
.product-images .main-img:hover img { transform: scale(1.08); }
.thumb-imgs { display: flex; gap: 12px; }
.thumb-imgs img {
  width: 80px; height: 70px; object-fit: contain; border-radius: 10px;
  border: 2px solid var(--grey-200); cursor: pointer; transition: var(--transition);
  padding: 8px; background: white;
}
.thumb-imgs img:hover, .thumb-imgs img.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.product-info .pi-brand { font-size: 13px; color: var(--grey-400); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.product-info .pi-title { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 700; color: var(--grey-900); margin-bottom: 16px; line-height: 1.2; }
.product-info .pi-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.stars { color: #fbbf24; font-size: 16px; }
.review-count { font-size: 13px; color: var(--grey-400); }
.compatibility-banner {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff); border: 2px solid var(--primary-soft);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.compatibility-banner .compat-icon { font-size: 28px; flex-shrink: 0; }
.compatibility-banner .compat-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.compatibility-banner .compat-text span { font-size: 12px; color: var(--grey-500); }
.pi-price-wrap { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.pi-price { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 800; color: var(--grey-900); }
.pi-price .cur { font-size: 1.5rem; color: var(--grey-500); }
.pi-price-note { font-size: 13px; color: var(--grey-400); margin-bottom: 28px; }
.quantity-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.quantity-wrap label { font-size: 14px; font-weight: 600; color: var(--grey-700); }
.qty-control { display: flex; align-items: center; border: 2px solid var(--grey-200); border-radius: 10px; overflow: hidden; }
.qty-control button { background: none; border: none; padding: 10px 16px; font-size: 18px; color: var(--grey-600); cursor: pointer; transition: var(--transition); }
.qty-control button:hover { background: var(--primary-soft); color: var(--primary); }
.qty-control input { width: 50px; text-align: center; border: none; border-radius: 0; font-size: 15px; font-weight: 600; padding: 10px 0; border-left: 2px solid var(--grey-200); border-right: 2px solid var(--grey-200); }
.add-to-cart-section { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.kapida-badge {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0); border-radius: var(--radius);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.kapida-badge .icon { font-size: 22px; }
.kapida-badge .info strong { display: block; font-size: 13px; font-weight: 700; color: #065f46; }
.kapida-badge .info span { font-size: 12px; color: #047857; }
.pi-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 24px 0; border-top: 1px solid var(--grey-100); }
.pi-feature { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--grey-600); }
.pi-feature .feat-icon { font-size: 16px; }

/* ── Specs Table ── */
.specs-section { padding: 64px 0; }
.specs-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--grey-200); margin-bottom: 32px; }
.specs-tab {
  padding: 12px 24px; font-size: 14px; font-weight: 600; color: var(--grey-500);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition);
}
.specs-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.specs-table { width: 100%; border-collapse: collapse; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.specs-table tr { border-bottom: 1px solid var(--grey-100); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 14px 20px; font-size: 14px; }
.specs-table td:first-child { color: var(--grey-500); font-weight: 600; background: var(--grey-50); width: 40%; }
.specs-table td:last-child { color: var(--grey-800); font-weight: 500; }

/* ── Reviews ── */
.review-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 24px; border: 1px solid var(--grey-100); transition: var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-md); }
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.reviewer-info { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 15px;
}
.reviewer-name { font-weight: 600; font-size: 14px; color: var(--grey-800); }
.reviewer-date { font-size: 12px; color: var(--grey-400); }
.review-text { font-size: 14px; color: var(--grey-600); line-height: 1.7; }

/* ── ============================================================
   CART & CHECKOUT
   ============================================================ */
.cart-section { padding: 48px 0 80px; }
.cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 20px 24px; display: flex; align-items: center; gap: 20px;
  border: 1px solid var(--grey-100);
}
.cart-item img { width: 90px; height: 75px; object-fit: contain; border-radius: 10px; background: var(--grey-50); padding: 8px; }
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 700; font-size: 15px; color: var(--grey-800); margin-bottom: 4px; }
.cart-item-sub { font-size: 13px; color: var(--grey-400); }
.cart-item-price { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--grey-900); }
.remove-btn { background: none; border: none; color: var(--grey-300); font-size: 20px; cursor: pointer; transition: var(--transition); }
.remove-btn:hover { color: var(--danger); }

.order-summary {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 28px; border: 1px solid var(--grey-100); position: sticky; top: 100px;
}
.summary-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--grey-100); font-size: 14px; }
.summary-row:last-of-type { border-bottom: none; }
.summary-total { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 0; border-top: 2px solid var(--grey-200); margin-top: 8px; }
.summary-total .label { font-weight: 700; font-size: 16px; }
.summary-total .amount { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--primary); }

/* Checkout form */
.checkout-form { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 32px; border: 1px solid var(--grey-100); }
.form-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1/-1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--grey-700); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px; border: 2px solid var(--grey-200); border-radius: var(--radius);
  font-size: 14px; transition: var(--transition); background: var(--grey-50); color: var(--grey-800);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px var(--primary-soft);
}
.payment-method { border: 2px solid var(--grey-200); border-radius: var(--radius-lg); padding: 20px; margin-top: 8px; cursor: pointer; transition: var(--transition); }
.payment-method.selected { border-color: var(--primary); background: var(--primary-soft); }
.payment-method .pm-label { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.payment-method .pm-desc { font-size: 13px; color: var(--grey-500); margin-top: 4px; margin-left: 32px; }

/* ── ============================================================
   MOBILE RESPONSIVENESS (320px - 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
  }

  /* Header adjustments */
  .logo-text { font-size: 1rem; }
  .logo-text span { display: none; } /* Hide 'shop' on very small screens to save space */
  .site-nav { display: none; }
  
  .site-header { padding: 12px 0; }
  .header-inner { gap: 10px; }

  /* Mobile Nav Fix */
  .mobile-nav {
    display: none !important; /* Force closed */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px var(--container-padding);
    border-bottom: 2px solid var(--primary-soft);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }
  .mobile-nav.active { display: flex !important; pointer-events: auto; opacity: 1; }
  .mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--grey-50); width: 100%; }

  /* Hero adjustments */
  .hero-section { padding: 60px 0; text-align: center; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }

  /* Product Cards on Mobile */
  .product-grid { 
    grid-template-columns: 1fr; /* Single column for better readability */
    gap: 16px;
  }
  .product-card { padding: 16px; display: flex; flex-direction: column; }
  .product-card-info { flex: 1; }
  .product-card-actions { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 8px; 
    margin-top: 16px; 
  }
  .product-card-actions .btn { width: 100%; padding: 10px 4px; font-size: 13px; }

  /* Filters on Mobile */
  .filters-bar { 
    flex-direction: column; 
    align-items: stretch; 
    gap: 16px; 
  }
  .filter-groups { 
    display: flex; 
    overflow-x: auto; 
    padding-bottom: 8px; 
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .filter-btn { white-space: nowrap; flex-shrink: 0; padding: 6px 16px; }

  /* Checkout Form Stacking */
  .quick-order-form { padding: 20px; }
  .quick-order-form > div { display: flex !important; flex-direction: column !important; gap: 0 !important; } 
  .quick-order-form .input { width: 100% !important; margin-bottom: 16px; }
  .quick-order-form > div > div { width: 100% !important; }
  
  /* Footer adjustments */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-brand { align-items: center; }
  .footer-contact-item { justify-content: center; }
}

/* Very small devices */
@media (max-width: 400px) {
  .hero-title { font-size: 1.8rem; }
  .product-card-actions { grid-template-columns: 1fr; } /* Stack buttons on very narrow screens */
}

/* ── ============================================================
   FOOTER
   ============================================================ */
footer.site-footer { background: var(--grey-900); color: white; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .logo-text { color: white; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-top: 12px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: white; margin-bottom: 16px; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.6); padding: 5px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--primary-light); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.footer-contact-item .icon { font-size: 16px; margin-top: 2px; color: var(--primary-light); }
.footer-contact-item .text { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.5; }
.footer-bottom { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom .legal-links a { font-size: 12px; color: rgba(255,255,255,0.4); transition: var(--transition); }
.footer-bottom .legal-links a:hover { color: white; }
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-link {
  width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); color: white; font-size: 15px; transition: var(--transition);
}
.social-link:hover { background: var(--primary); }

/* ── ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: white; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45); cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.6); }
.whatsapp-tooltip {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%);
  background: var(--grey-900); color: white; padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ── ============================================================
   PAGES - ABOUT, FAQ, CONTACT, PRIVACY
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  padding: 64px 0; text-align: center;
}
.page-hero .section-title { margin-bottom: 16px; }
.page-hero .section-subtitle { max-width: 560px; margin: 0 auto; }
.page-content { padding: 64px 0; }

.faq-item {
  border: 1px solid var(--grey-200); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 12px; transition: var(--transition);
}
.faq-item:hover { border-color: var(--primary-soft); }
.faq-question {
  padding: 20px 24px; font-size: 15px; font-weight: 600; color: var(--grey-800);
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  user-select: none; transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question .faq-icon { font-size: 18px; transition: transform 0.3s; color: var(--grey-400); }
.faq-item.open .faq-question { color: var(--primary); }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--primary); }
.faq-answer { display: none; padding: 0 24px 20px; font-size: 14px; color: var(--grey-600); line-height: 1.8; border-top: 1px solid var(--grey-100); }
.faq-item.open .faq-answer { display: block; padding-top: 16px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info-card {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-xl); padding: 40px; color: white;
}
.contact-info-card h3 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; }
.c-info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.c-info-item .icon { font-size: 22px; margin-top: 2px; opacity: 0.8; }
.c-info-item .text strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.c-info-item .text span { font-size: 13px; opacity: 0.8; }

/* ── ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; background: var(--grey-900); flex-shrink: 0;
  display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh; z-index: 100;
  overflow-y: auto;
}
.admin-sidebar .sidebar-logo {
  padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 12px;
}
.admin-sidebar .sidebar-logo .logo-text { color: white; font-size: 1.2rem; }
.sidebar-nav { flex: 1; padding: 16px 12px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-radius: 10px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.65);
  transition: var(--transition); margin-bottom: 4px;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(37,99,235,0.3); color: white;
}
.sidebar-nav a.active { background: var(--primary); color: white; }
.sidebar-nav .nav-section { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.3); padding: 16px 16px 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.sidebar-nav .nav-icon { font-size: 18px; width: 22px; text-align: center; }

.admin-main { flex: 1; margin-left: 260px; background: #f1f5f9; min-height: 100vh; }
.admin-topbar {
  background: white; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--grey-200); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 50;
}
.admin-topbar h1 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--grey-900); }
.admin-topbar .admin-actions { display: flex; align-items: center; gap: 16px; }
.admin-user { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--grey-700); }
.admin-user .avatar { width: 34px; height: 34px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 14px; }
.admin-content { padding: 32px; }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: white; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow);
  border: 1px solid var(--grey-100); position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px; border-radius: 50%; opacity: 0.08;
}
.stat-card.blue::after { background: var(--primary); }
.stat-card.green::after { background: var(--success); }
.stat-card.yellow::after { background: var(--warning); }
.stat-card.purple::after { background: #8b5cf6; }
.stat-card .stat-icon { font-size: 28px; margin-bottom: 12px; }
.stat-card .stat-label { font-size: 13px; color: var(--grey-500); font-weight: 500; margin-bottom: 6px; }
.stat-card .stat-value { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 800; color: var(--grey-900); }
.stat-card .stat-change { font-size: 12px; font-weight: 600; margin-top: 6px; }
.stat-card .stat-change.up { color: var(--success); }
.stat-card .stat-change.down { color: var(--danger); }

/* Admin Table */
.admin-card {
  background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 1px solid var(--grey-100); overflow: hidden;
}
.admin-card-header {
  padding: 20px 24px; border-bottom: 1px solid var(--grey-100);
  display: flex; align-items: center; justify-content: space-between;
}
.admin-card-header h3 { font-size: 1rem; font-weight: 700; color: var(--grey-800); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table thead { background: var(--grey-50); }
.admin-table th { padding: 12px 20px; font-size: 12px; font-weight: 600; color: var(--grey-500); text-align: left; text-transform: uppercase; letter-spacing: 0.06em; }
.admin-table td { padding: 16px 20px; font-size: 14px; color: var(--grey-700); border-top: 1px solid var(--grey-100); }
.admin-table tr:hover td { background: var(--grey-50); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.status-pill.bekliyor { background: #fef3c7; color: #92400e; }
.status-pill.kargoland { background: #dbeafe; color: #1e40af; }
.status-pill.teslim { background: #d1fae5; color: #065f46; }
.status-pill.iptal { background: #fee2e2; color: #991b1b; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Admin Form Modal */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 500;
  align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: white; border-radius: var(--radius-xl); padding: 36px; width: 100%; max-width: 560px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2); max-height: 90vh; overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.4,0,0.2,1);
}
@keyframes slideUp { from{transform:translateY(30px);opacity:0} to{transform:translateY(0);opacity:1} }
.modal-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--grey-400); }
.modal-close:hover { color: var(--grey-700); }

/* ── ============================================================
   ORDER CONFIRMATION
   ============================================================ */
.confirmation { text-align: center; padding: 100px 24px; max-width: 600px; margin: 0 auto; }
.confirmation .check-icon { font-size: 72px; color: var(--success); margin-bottom: 24px; animation: pop 0.4s ease; }
@keyframes pop { from{transform:scale(0)} to{transform:scale(1)} }
.confirmation h1 { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--grey-900); margin-bottom: 12px; }
.confirmation p { font-size: 1.05rem; color: var(--grey-500); margin-bottom: 32px; line-height: 1.7; }
.order-info-box {
  background: var(--grey-50); border-radius: var(--radius-lg); padding: 24px; text-align: left;
  border: 1px solid var(--grey-200); margin-bottom: 32px;
}
.order-info-box .oi-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--grey-100); font-size: 14px; }
.order-info-box .card-footer { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 16px; border-top: 1px solid var(--grey-50); margin-top: auto; }
.product-card-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.order-info-box .oi-row:last-child { border-bottom: none; }
.order-info-box .oi-label { color: var(--grey-500); }
.order-info-box .oi-value { font-weight: 600; color: var(--grey-800); }

/* ── ============================================================
   ADMIN LOGIN
   ============================================================ */
.login-page { min-height: 100vh; background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%); display: flex; align-items: center; justify-content: center; }
.login-card { background: white; border-radius: var(--radius-xl); padding: 48px 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.login-header { text-align: center; margin-bottom: 36px; }
.login-header .logo-icon { width: 56px; height: 56px; font-size: 28px; border-radius: 14px; margin: 0 auto 16px; }
.login-header h1 { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--grey-900); }
.login-header p { font-size: 14px; color: var(--grey-400); margin-top: 6px; }

/* ── ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .admin-sidebar { width: 220px; }
  .admin-main { margin-left: 220px; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-title { font-size: 2.2rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  nav.site-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .cart-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .trust-items { flex-direction: column; align-items: stretch; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .footer-grid { grid-template-columns: 1fr; }
  .pi-features { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { transform: translateX(-100%); transition: var(--transition); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-content { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .section-header .section-title { font-size: 1.6rem; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ── Tooltip / Misc ── */
.tooltip-wrap { position: relative; display: inline-flex; }
.tooltip-box { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--grey-900); color: white; font-size: 12px; padding: 6px 12px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.tooltip-wrap:hover .tooltip-box { opacity: 1; }

/* ── Toasts ── */
.toast-container { position: fixed; top: 80px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: white; border-radius: var(--radius); padding: 14px 20px; box-shadow: var(--shadow-md);
  border-left: 4px solid var(--success); display: flex; align-items: center; gap: 12px;
  min-width: 280px; font-size: 14px; font-weight: 500; color: var(--grey-700);
  animation: slideIn 0.3s ease; 
}
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--primary); }
@keyframes slideIn { from{transform:translateX(40px);opacity:0} to{transform:translateX(0);opacity:1} }


