:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fbbf24;
  --surface: #ffffff;
  --muted: #f8fafc;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.14);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--muted);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Loading Screen ─────────────────────────────────────── */
#loading-screen {
  position: fixed; inset: 0; background: var(--primary);
  z-index: 9999; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
}
#loading-screen .load-logo {
  font-size: 2rem; font-weight: 900; letter-spacing: .1em;
  color: #fff; text-transform: uppercase;
}
#loading-screen .load-logo span { color: var(--accent); }
#loading-bar-wrap {
  width: 200px; height: 3px; background: rgba(255,255,255,.15);
  border-radius: 99px; overflow: hidden;
}
#loading-bar {
  height: 100%; width: 0; background: var(--accent);
  border-radius: 99px; transition: width 1.4s cubic-bezier(.4,0,.2,1);
}

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--primary); height: 120px;
  display: flex; align-items: center;
  transition: box-shadow .3s, background .3s;
}
.navbar.scrolled {
  background: rgba(15,23,42,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
  backdrop-filter: blur(12px);
}
.navbar-inner {
  max-width: 1280px; width: 100%; margin: 0 auto;
  padding: 0 1.5rem; display: flex; align-items: center; gap: 2rem;
}
.navbar-logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.navbar-logo img { height: 160px; width: auto; display: block; }
.navbar-links {
  display: flex; align-items: center; gap: 1.75rem;
  list-style: none; flex: 1; justify-content: center;
}
.navbar-links a {
  color: rgba(255,255,255,.8); text-decoration: none;
  font-size: .9rem; font-weight: 500; transition: color .2s;
}
.navbar-links a:hover { color: var(--accent); }
.navbar-actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.cart-btn {
  position: relative; background: none; border: none; cursor: pointer;
  color: #fff; padding: .5rem; transition: color .2s;
}
.cart-btn:hover { color: var(--accent); }
.cart-badge {
  position: absolute; top: 0; right: 0;
  background: var(--accent); color: var(--primary);
  width: 18px; height: 18px; border-radius: 50%;
  font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  display: none;
}
.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer; color: #fff; padding: .5rem;
}
.mobile-menu {
  display: none; position: fixed; inset: 0; top: 64px; background: var(--primary);
  z-index: 99; padding: 2rem; flex-direction: column; gap: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,.85); text-decoration: none;
  font-size: 1.1rem; font-weight: 600; padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--accent); }
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; border-radius: var(--radius);
  padding: .75rem 1.75rem; border: none; cursor: pointer;
  transition: all .2s; text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--primary);
}
.btn-primary:hover {
  background: var(--accent-dark); transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245,158,11,.3);
}
.btn-dark {
  background: var(--primary); color: #fff;
}
.btn-dark:hover {
  background: var(--primary-light); transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15,23,42,.25);
}
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary); color: #fff;
}
.btn-outline-white {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1); border-color: #fff;
}
.btn-outline-dark {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary); color: #fff; transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15,23,42,.2);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: .5rem 1rem; font-size: .8rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ─── Product Card ───────────────────────────────────────── */
.product-card {
  background: var(--surface); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.product-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
}
.product-card-img {
  position: relative; aspect-ratio: 1; overflow: hidden; background: #f1f5f9;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.product-card:hover .product-card-img img { transform: scale(1.07); }
.product-card-badges {
  position: absolute; top: .75rem; left: .75rem;
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.badge {
  padding: .25rem .6rem; border-radius: 99px;
  font-size: .7rem; font-weight: 700; letter-spacing: .03em;
}
.badge-accent { background: var(--accent); color: var(--primary); }
.badge-dark { background: var(--primary); color: #fff; }
.badge-success { background: var(--success); color: #fff; }
.product-card-body { padding: 1rem 1.25rem 1.25rem; }
.product-card-name {
  font-weight: 700; font-size: 1rem; color: var(--text);
  margin-bottom: .35rem; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.product-card-sku {
  font-size: .75rem; color: var(--text-muted); font-family: monospace;
  margin-bottom: .75rem;
}
.product-card-price {
  font-size: 1.3rem; font-weight: 800; color: var(--accent);
  margin-bottom: 1rem;
}
.product-card-actions { display: flex; gap: .5rem; }
.wishlist-btn {
  position: absolute; top: .65rem; right: .65rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: all .2s; z-index: 2;
}
.wishlist-btn:hover { transform: scale(1.12); background: #fff; }
.wishlist-btn svg { transition: all .2s; }
.wishlist-btn.active svg { fill: #ef4444; stroke: #ef4444; }

/* ─── Section ────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800; color: var(--primary); margin-bottom: .75rem;
  letter-spacing: -.02em;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ─── Grid ───────────────────────────────────────────────── */
.grid-products {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
@media (max-width: 640px) {
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ─── Trust Strip ────────────────────────────────────────── */
.trust-strip {
  background: var(--primary); color: #fff;
  padding: 1.25rem 0;
}
.trust-items {
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: .6rem;
  font-size: .875rem; font-weight: 600; opacity: .9;
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--primary); color: rgba(255,255,255,.75);
  padding: 4rem 0 2rem;
}
.footer h4 {
  color: #fff; font-weight: 700; margin-bottom: 1.25rem; font-size: 1rem;
}
.footer a {
  display: block; color: rgba(255,255,255,.65); text-decoration: none;
  font-size: .875rem; margin-bottom: .6rem; transition: color .2s;
}
.footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 3rem; padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: .825rem; color: rgba(255,255,255,.4);
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── WhatsApp Button ────────────────────────────────────── */
.wa-btn {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
  animation: wa-pulse 2.5s infinite;
  text-decoration: none;
}
.wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,.5);
  animation: none;
}
.wa-tooltip {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%);
  background: var(--primary); color: #fff;
  padding: .5rem .9rem; border-radius: .5rem; font-size: .8rem;
  white-space: nowrap; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.wa-tooltip::after {
  content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border: 5px solid transparent; border-left-color: var(--primary);
}
.wa-btn:hover .wa-tooltip { opacity: 1; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,.7), 0 0 0 8px rgba(37,211,102,.1); }
}

/* ─── Skeleton ───────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: .5rem;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-weight: 600; font-size: .875rem;
  color: var(--text); margin-bottom: .45rem;
}
.form-input {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; font-family: inherit; color: var(--text);
  background: var(--surface); transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.form-select {
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
  padding-right: 2.5rem;
}

/* ─── Toast ──────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 5rem; right: 1.5rem; z-index: 9998;
  display: flex; flex-direction: column; gap: .5rem;
}
.toast {
  padding: .75rem 1.25rem; border-radius: var(--radius);
  font-weight: 600; font-size: .875rem; color: #fff;
  box-shadow: var(--shadow-lg); animation: fadeUp .3s ease;
  max-width: 320px;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--primary); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Size Selector ─────────────────────────────────────── */
.size-btn {
  width: 44px; height: 44px; border-radius: .5rem;
  border: 1.5px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: .875rem; cursor: pointer;
  transition: all .15s; display: flex; align-items: center; justify-content: center;
}
.size-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.size-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.size-btn:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
/* size-option is the class used in urun/index.html; size-oos = out of stock */
.size-option {
  min-width: 44px; height: 44px; border-radius: .5rem;
  border: 1.5px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: .875rem; cursor: pointer;
  transition: all .15s; display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 0 .4rem;
}
.size-option:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.size-option.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.size-option.size-oos {
  opacity: .38; cursor: not-allowed;
  background: repeating-linear-gradient(
    135deg, transparent, transparent 4px, rgba(0,0,0,.07) 4px, rgba(0,0,0,.07) 5px
  );
}

/* ─── Spinner ────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Page content offset for fixed navbar ─────────────── */
.page-body { padding-top: 64px; }

/* ─── Quantity control ───────────────────────────────────── */
.qty-control {
  display: flex; align-items: center; gap: 0; border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden; width: fit-content;
}
.qty-btn {
  width: 36px; height: 36px; border: none; background: #f8fafc;
  font-size: 1.1rem; cursor: pointer; transition: background .15s;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.qty-btn:hover { background: #e2e8f0; }
.qty-val {
  width: 44px; text-align: center; font-weight: 700;
  font-size: .95rem; border: none; outline: none;
  background: var(--surface);
}

/* ─── Empty state ────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 5rem 2rem; color: var(--text-muted);
}
.empty-state svg { margin: 0 auto 1.5rem; opacity: .3; }
.empty-state h3 { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }

/* ─── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .825rem; color: var(--text-muted); flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: .4; }

/* ─── Accordion ──────────────────────────────────────────── */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; background: none; border: none; cursor: pointer;
  font-weight: 600; font-size: .95rem; color: var(--text); transition: color .2s;
}
.accordion-btn:hover { color: var(--accent); }
.accordion-body {
  overflow: hidden; max-height: 0; transition: max-height .35s ease, padding .35s;
  font-size: .9rem; line-height: 1.7; color: var(--text-muted);
}
.accordion-body.open { max-height: 500px; padding-bottom: 1rem; }

/* ─── Stars ──────────────────────────────────────────────── */
.stars { color: var(--accent); letter-spacing: .1em; font-size: 1rem; }

/* ─── KVKK Cookie Banner ─────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--primary); color: rgba(255,255,255,.9);
  padding: 1rem 1.5rem; display: flex; align-items: center;
  gap: 1.25rem; flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.18);
  transform: translateY(0); transition: transform .4s ease;
}
.cookie-banner.hidden { transform: translateY(110%); }
.cookie-banner p {
  flex: 1; margin: 0; font-size: .84rem; line-height: 1.5;
  min-width: 220px;
}
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.cookie-accept {
  padding: .55rem 1.25rem; background: var(--accent); color: var(--primary);
  border: none; border-radius: var(--radius); font-weight: 700; font-size: .85rem;
  cursor: pointer; white-space: nowrap; transition: opacity .2s;
}
.cookie-accept:hover { opacity: .88; }
.cookie-decline {
  padding: .55rem 1rem; background: transparent; color: rgba(255,255,255,.7);
  border: 1.5px solid rgba(255,255,255,.3); border-radius: var(--radius);
  font-weight: 600; font-size: .85rem; cursor: pointer; white-space: nowrap; transition: opacity .2s;
}
.cookie-decline:hover { opacity: .7; }
