/* ==========================================================================
   Hediyelik El Emeği — Design System (Apple-inspired minimal)
   ========================================================================== */

:root {
  /* Colors */
  --color-bg: #fbfbfd;
  --color-bg-elevated: #ffffff;
  --color-bg-muted: #f5f5f7;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-tertiary: #86868b;
  --color-brand: #6d4c41;
  --color-brand-hover: #5d3e35;
  --color-accent: #e57373;
  --color-gold: #f9d877;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-strong: rgba(0, 0, 0, 0.12);
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #1da851;
  --color-success: #34c759;
  --color-error: #ff3b30;
  --color-focus: #0071e3;

  /* Legacy aliases */
  --primary-color: var(--color-gold);
  --secondary-color: var(--color-brand);
  --accent-color: var(--color-accent);
  --bg-color: var(--color-bg);
  --text-color: var(--color-text);
  --white: var(--color-bg-elevated);

  /* Typography */
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Lexend', var(--font-sans);
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
  --text-hero: clamp(2rem, 1.5rem + 2.5vw, 3rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --container-padding: clamp(1rem, 4vw, 5%);
  --container-max: 1200px;

  /* Radius & shadow */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --radius: var(--radius-lg);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow: var(--shadow-md);

  /* Motion */
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration: 0.28s;
  --duration-slow: 0.4s;
}

/* Reset & base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-fast) var(--ease-out);
}

h1, h2, h3, h4, .nav-link, .logo-text__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 10001;
  padding: var(--space-3) var(--space-5);
  background: var(--color-brand);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--duration-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--container-padding);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.logo-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-gold);
  transition: transform var(--duration) var(--ease-out);
}

.logo-area:hover .logo-img { transform: scale(1.04); }

.logo-text__title {
  font-size: var(--text-sm);
  color: var(--color-brand);
  text-transform: uppercase;
  line-height: 1.2;
}

.site-nav__list {
  display: flex;
  list-style: none;
  gap: clamp(1rem, 3vw, 1.5rem);
}

.nav-link {
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding: var(--space-2) 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--duration) var(--ease-out);
}

.nav-link:hover,
.nav-link--active,
.nav-link.active {
  color: var(--color-brand);
}

.nav-link:hover::after,
.nav-link--active::after,
.nav-link.active::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.user-greeting {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-brand);
  border-radius: var(--radius-full);
  transition: background var(--duration-fast);
}

.cart-link:hover { background: var(--color-bg-muted); }

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--color-accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-bg-muted);
  border-radius: var(--radius-sm);
  color: var(--color-brand);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background var(--duration-fast);
}

.menu-toggle:hover { background: var(--color-border-strong); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-out),
    background var(--duration-fast),
    box-shadow var(--duration-fast),
    color var(--duration-fast);
}

.btn:active { transform: scale(0.98); }

.btn--primary,
.btn-primary {
  background: var(--color-brand);
  color: white;
}

.btn--primary:hover,
.btn-primary:hover {
  background: var(--color-brand-hover);
  box-shadow: var(--shadow-md);
}

.btn--secondary,
.btn-secondary {
  background: var(--color-brand);
  color: white;
}

.btn--secondary:hover,
.btn-secondary:hover { background: var(--color-brand-hover); }

.btn--ghost,
.login-btn {
  background: transparent;
  color: var(--color-brand);
  border: 1px solid var(--color-border-strong);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--duration-fast);
}

.btn--ghost:hover,
.login-btn:hover {
  background: var(--color-brand);
  color: white;
  border-color: var(--color-brand);
}

.btn--outline,
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-brand);
  color: var(--color-brand);
}

.btn--outline:hover,
.btn-outline:hover {
  background: var(--color-brand);
  color: white;
}

.btn--whatsapp,
.price-btn {
  background: transparent;
  border: 1.5px solid var(--color-whatsapp);
  color: var(--color-whatsapp);
}

.btn--whatsapp:hover,
.price-btn:hover {
  background: var(--color-whatsapp);
  color: white;
}

.btn--pay {
  width: 100%;
  padding: 1rem;
  font-size: var(--text-base);
  background: var(--color-whatsapp);
  color: white;
  border-radius: var(--radius-md);
}

.btn--pay:hover { background: var(--color-whatsapp-hover); }

.btn--pay:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--sm, .btn-sm { padding: 0.5rem 1rem; font-size: var(--text-xs); }
.btn--block { width: 100%; }
.btn--block-center { width: 100%; text-align: center; display: block; }

.btn-add {
  background: var(--color-brand);
  color: white;
  width: 100%;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  border: none;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: background var(--duration-fast);
}

.btn-add:hover { background: var(--color-brand-hover); }

.btn-fast {
  background: var(--color-whatsapp);
  color: white;
  width: 100%;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: background var(--duration-fast);
}

.btn-fast:hover { background: var(--color-whatsapp-hover); }

.btn-contact {
  background: transparent;
  border: 1.5px solid var(--color-whatsapp);
  color: var(--color-whatsapp);
  width: 100%;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: background var(--duration-fast), color var(--duration-fast);
}

.btn-contact:hover { background: var(--color-whatsapp); color: white; }

/* Card component */
.card {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card--product { display: flex; flex-direction: column; height: 100%; }

.card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-muted);
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.card__media:hover .card__img { transform: scale(1.04); }

.card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__title {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
  color: var(--color-text);
}

.card__title-link:hover .card__title { color: var(--color-brand); }

.card__meta {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-2);
}

.card__price {
  font-weight: 600;
  color: var(--color-brand);
  margin-bottom: var(--space-4);
  margin-top: auto;
}

.card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.price--old,
.old-price {
  color: var(--color-text-tertiary);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: var(--space-2);
  font-size: var(--text-sm);
}

/* Hero */
.hero {
  padding: var(--space-16) var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(180deg, var(--color-bg-elevated) 0%, var(--color-bg) 100%);
}

.hero-content { flex: 1; max-width: 560px; }

.hero-content h2 {
  font-size: var(--text-hero);
  color: var(--color-brand);
  margin-bottom: var(--space-4);
  line-height: 1.15;
}

.hero-tag {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-brand);
  margin-bottom: var(--space-3);
}

.hero-content p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 480px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img,
.hero-logo {
  width: clamp(260px, 36vw, 440px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--radius-full);
  filter: drop-shadow(0 24px 48px rgba(109, 76, 65, 0.15));
  image-rendering: auto;
}

/* Sections */
.products,
.page-section {
  padding: var(--space-12) var(--container-padding);
}

.section-title {
  font-size: var(--text-2xl);
  text-align: center;
  color: var(--color-brand);
  margin-bottom: var(--space-3);
}

.section-title::after {
  content: '♥';
  display: block;
  color: var(--color-accent);
  font-size: var(--text-lg);
  margin-top: var(--space-2);
}

.section-intro {
  text-align: center;
  margin: calc(-1 * var(--space-4)) auto var(--space-10);
  color: var(--color-text-secondary);
  max-width: 36rem;
  font-size: var(--text-sm);
}

.section-intro__link {
  color: var(--color-brand);
  font-weight: 600;
}

.section-intro__link:hover { text-decoration: underline; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
  max-width: var(--container-max);
  margin-inline: auto;
}

.category-block { margin-bottom: var(--space-12); }

.category-title {
  font-size: var(--text-xl);
  color: var(--color-brand);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-gold);
  display: inline-block;
}

/* Forms */
.input-group {
  margin-bottom: var(--space-4);
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(109, 76, 65, 0.12);
  outline: none;
}

.input-group textarea { min-height: 100px; resize: vertical; }

.input-error {
  border-color: var(--color-error) !important;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.12) !important;
}

.error-msg {
  color: var(--color-error);
  font-size: var(--text-xs);
  margin-top: var(--space-2);
}

.row {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.row .input-group { flex: 1 1 200px; }

.form-section__title {
  margin-bottom: var(--space-4);
  color: var(--color-brand);
  font-size: var(--text-lg);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.form-section__title--spaced { margin-top: var(--space-6); }

/* Contact */
.contact-section {
  max-width: 56rem;
  margin-inline: auto;
  padding: var(--space-8);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-8);
}

.contact-info p { margin-bottom: var(--space-3); color: var(--color-text-secondary); }

.contact-info a {
  color: var(--color-brand);
  font-weight: 500;
}

.contact-info a:hover { text-decoration: underline; }

/* Product detail */
.product-container {
  max-width: var(--container-max);
  margin: var(--space-8) auto;
  padding: 0 var(--container-padding);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: flex-start;
}

.product-image-section {
  flex: 1 1 320px;
  display: flex;
  gap: var(--space-4);
}

.thumbnails {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.thumb-btn {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.thumb-btn--active,
.thumb-btn:hover,
.thumb.active { border-color: var(--color-brand); }

.thumb-btn--active { box-shadow: 0 0 0 2px rgba(109, 76, 65, 0.15); }

.thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  display: block;
}

.main-image {
  flex: 1;
  max-width: 480px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.product-info-section {
  flex: 1 1 360px;
  background: var(--color-bg-elevated);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.product-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
}

.fav-btn {
  background: none;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--color-text-tertiary);
  padding: var(--space-2);
  border-radius: var(--radius-full);
  transition: color var(--duration-fast), transform var(--duration-fast);
}

.fav-btn:hover { transform: scale(1.1); }
.fav-btn.active { color: var(--color-accent); }

.product-price {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-brand);
  margin-bottom: var(--space-4);
}

.product-price del {
  font-size: var(--text-base);
  color: var(--color-text-tertiary);
  margin-right: var(--space-2);
}

.product-unit {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-bg-muted);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--duration-fast);
}

.qty-btn:hover { background: var(--color-border-strong); }

.qty-input {
  width: 56px;
  height: 40px;
  text-align: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-description {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* Cart */
.page-title {
  font-size: var(--text-2xl);
  color: var(--color-brand);
  margin-bottom: var(--space-6);
  text-align: center;
}

.cart-layout {
  max-width: 64rem;
  margin: 0 auto;
  padding: var(--space-8) var(--container-padding);
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: clamp(1.5rem, 4vw, 2rem);
  align-items: start;
}

.cart-items { display: flex; flex-direction: column; gap: var(--space-4); }

.cart-item {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--duration-fast);
}

.cart-item:hover { box-shadow: var(--shadow-sm); }

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-info h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.cart-remove {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: var(--text-xs);
  cursor: pointer;
  margin-left: auto;
  font-weight: 500;
}

.cart-remove:hover { text-decoration: underline; }

.cart-summary {
  background: var(--color-bg-elevated);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  position: sticky;
  top: 88px;
}

.cart-summary h3 {
  margin-bottom: var(--space-4);
  color: var(--color-brand);
  font-size: var(--text-lg);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.summary-total {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-brand);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
  margin: var(--space-3) 0 var(--space-4);
}

.cart-summary__whatsapp { margin-top: var(--space-3); }

.empty-cart {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.empty-cart__icon {
  font-size: 2.5rem;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
  display: block;
}

.empty-cart__text {
  margin-bottom: var(--space-6);
  color: var(--color-text-secondary);
}

/* Checkout */
.checkout-page {
  padding: var(--space-8) var(--container-padding);
  display: flex;
  justify-content: center;
}

.checkout-container {
  width: 100%;
  max-width: 56rem;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.checkout-header {
  background: var(--color-brand);
  color: white;
  padding: var(--space-6);
  text-align: center;
}

.checkout-header h1 { font-size: var(--text-xl); }

.checkout-header__back {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.checkout-header__back:hover { color: white; }

.checkout-body {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 280px);
}

.form-section { padding: var(--space-8); }

.order-summary-side {
  background: var(--color-bg-muted);
  padding: var(--space-6);
  border-left: 1px solid var(--color-border);
}

.order-summary-side h3 {
  font-size: var(--text-base);
  color: var(--color-brand);
  margin-bottom: var(--space-4);
}

.order-line {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
}

.order-summary__total {
  margin-top: var(--space-4);
}

.payment-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.payment-note i { color: var(--color-whatsapp); font-size: 1.25rem; flex-shrink: 0; }

.secure-badge {
  text-align: center;
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.secure-badge i { color: var(--color-success); margin-right: var(--space-1); }

/* Auth */
.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-8) var(--container-padding);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: var(--space-10) var(--space-8);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.auth-card .logo-img {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-full);
  object-fit: cover;
}

.auth-card h2 {
  color: var(--color-brand);
  margin-bottom: var(--space-6);
  font-size: var(--text-xl);
}

.auth-alert {
  background: rgba(255, 59, 48, 0.08);
  color: var(--color-error);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  display: none;
  text-align: left;
}

.auth-alert.show,
.auth-alert--visible { display: block; }

.auth-card__footer {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.auth-card__link {
  color: var(--color-brand);
  font-weight: 600;
}

.auth-card__link:hover { text-decoration: underline; }

.auth-card__back {
  display: block;
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.auth-card__back:hover { color: var(--color-text); }

/* Success */
.success-page {
  text-align: center;
  padding: var(--space-12) var(--container-padding);
  max-width: 36rem;
  margin-inline: auto;
}

.success-icon {
  font-size: 4rem;
  color: var(--color-success);
  margin-bottom: var(--space-4);
}

.success-page h1 {
  color: var(--color-brand);
  margin-bottom: var(--space-3);
  font-size: var(--text-2xl);
}

.success-page p { color: var(--color-text-secondary); }

.success-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

/* Footer */
.site-footer {
  background: var(--color-brand);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--space-10) var(--container-padding) var(--space-6);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-grid--extended {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.footer-col__list {
  list-style: none;
}

.footer-col__list li { margin-bottom: var(--space-2); }

.footer-col--brand .footer-col__text { max-width: 220px; }

.footer-bottom__link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
}

.footer-bottom__link:hover { color: var(--color-gold); }

/* Static / legal pages */
.static-page {
  padding: var(--space-10) var(--container-padding) var(--space-16);
}

.static-page .container {
  max-width: 720px;
}

.breadcrumb {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb a { color: var(--color-brand); }
.breadcrumb a:hover { text-decoration: underline; }

.static-page__category {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-2);
}

.static-page__title {
  font-size: var(--text-3xl);
  color: var(--color-brand);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.static-page__lead {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  line-height: 1.5;
}

.prose h2 {
  font-size: var(--text-xl);
  color: var(--color-brand);
  margin: var(--space-8) 0 var(--space-4);
}

.prose h3 {
  font-size: var(--text-lg);
  margin: var(--space-4) 0 var(--space-2);
}

.prose p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.prose ul {
  margin: var(--space-4) 0 var(--space-4) var(--space-6);
  color: var(--color-text-secondary);
}

.prose li { margin-bottom: var(--space-2); }

.prose a {
  color: var(--color-brand);
  font-weight: 500;
}

.prose a:hover { text-decoration: underline; }

.static-page__note {
  margin-top: var(--space-8);
  padding: var(--space-4);
  background: var(--color-bg-muted);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.static-page__cta {
  margin-top: var(--space-8);
  font-weight: 500;
}

.static-page__error {
  text-align: center;
  padding: var(--space-12);
  color: var(--color-text-secondary);
}

.blog-card {
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--duration-fast);
}

.blog-card:hover { box-shadow: var(--shadow-md); }

.blog-card h2 {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-2);
  color: var(--color-text);
}

.blog-card__meta {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-3);
}

.job-list { display: flex; flex-direction: column; gap: var(--space-4); }

.job-item {
  padding: var(--space-5);
  background: var(--color-bg-muted);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.job-item h3 {
  font-size: var(--text-base);
  color: var(--color-brand);
  margin-bottom: var(--space-2);
}

.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }

.faq-item {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  padding: var(--space-4) var(--space-5);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--color-text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  float: right;
  font-weight: 400;
  color: var(--color-text-tertiary);
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  padding: 0 var(--space-5) var(--space-4);
  margin: 0;
  font-size: var(--text-sm);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.contact-card {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-bg-muted);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.contact-card i {
  font-size: 2rem;
  color: var(--color-brand);
  margin-bottom: var(--space-3);
}

.contact-card h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.contact-card p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.contact-card__note {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.footer-col__title {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-gold);
  display: inline-block;
  font-size: var(--text-base);
}

.footer-col__text,
.footer-col__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-2);
  display: block;
}

.footer-col__link:hover { color: var(--color-gold); }

.footer-bottom {
  text-align: center;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom__copy { font-size: var(--text-xs); opacity: 0.8; }

/* Toast */
.toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  max-width: min(90vw, 360px);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  transition:
    transform var(--duration) var(--ease-spring),
    opacity var(--duration);
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast--info { background: var(--color-brand); color: white; }
.toast--success { background: var(--color-success); color: white; }
.toast--error { background: var(--color-error); color: white; }

/* Overlay / empty state */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--duration);
}

.overlay--visible { opacity: 1; }

.overlay[hidden] { display: none; }

.overlay__panel {
  max-width: 400px;
  width: 100%;
  padding: var(--space-10) var(--space-8);
  text-align: center;
  transform: scale(0.95);
  transition: transform var(--duration) var(--ease-spring);
}

.overlay--visible .overlay__panel { transform: scale(1); }

.overlay__icon {
  font-size: 3rem;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
}

.overlay__title {
  font-size: var(--text-xl);
  color: var(--color-brand);
  margin-bottom: var(--space-3);
}

.overlay__text {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.overlay__hint {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

/* Ratings & reviews */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-gold);
  font-size: var(--text-sm);
}

.stars--sm { font-size: var(--text-xs); }

.card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
}

.card__rating--empty .card__rating-count {
  color: var(--color-text-tertiary);
}

.product-rating-summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}

.product-rating-summary--empty {
  color: var(--color-text-tertiary);
}

.product-not-found {
  text-align: center;
  padding: var(--space-10) var(--container-padding);
}

.product-not-found p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

.reviews-section {
  margin-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.reviews-block__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.review-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.review-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-2);
}

.review-card__date {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-left: auto;
}

.review-card__body {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.reviews-empty {
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-6);
}

.review-form-card {
  background: var(--color-bg-muted);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
}

.review-form-card__title {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-4);
}

.star-input {
  display: flex;
  gap: var(--space-1);
}

.star-input__btn {
  background: none;
  border: none;
  padding: var(--space-1);
  cursor: pointer;
  color: var(--color-border-strong);
  font-size: var(--text-xl);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.star-input__btn--on,
.star-input__btn:hover {
  color: var(--color-gold);
}

.star-input__btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.label-text {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.text-muted {
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.btn-block {
  width: 100%;
}

/* Legacy aliases (backward compatibility) */
.product-card,
.card--product { display: flex; flex-direction: column; height: 100%; }
.product-card-actions,
.card__actions { display: flex; flex-direction: column; gap: var(--space-2); margin-top: auto; }
.product-card-price,
.card__price { font-weight: 600; color: var(--color-brand); margin-bottom: var(--space-4); }
.product-card-cat,
.card__meta { font-size: var(--text-xs); color: var(--color-text-tertiary); }
.product-img-wrapper,
.card__media { display: block; aspect-ratio: 4/3; overflow: hidden; }
.product-img,
.card__img { width: 100%; height: 100%; object-fit: cover; }
.copyright,
.footer-bottom__copy { font-size: var(--text-xs); }

.price--sale {
  color: var(--color-accent);
  font-weight: 700;
}

/* Kampanya popup (yeni IP / ilk ziyaret) */
.body--popup-open {
  overflow: hidden;
}

.campaign-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.campaign-popup--open {
  opacity: 1;
  visibility: visible;
}

.campaign-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.campaign-popup__panel {
  position: relative;
  width: min(100%, 400px);
  padding: var(--space-8) var(--space-6) var(--space-6);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  text-align: center;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.35s ease;
}

.campaign-popup--open .campaign-popup__panel {
  transform: translateY(0) scale(1);
}

.campaign-popup__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-bg-muted);
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.campaign-popup__close:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.campaign-popup__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-hover));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.campaign-popup__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-brand);
  margin: 0 0 var(--space-3);
}

.campaign-popup__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 0 var(--space-6);
}

.campaign-popup__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Kampanya banner */
.campaign-banner {
  background: linear-gradient(90deg, var(--color-brand), var(--color-brand-hover));
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) 0;
  text-align: center;
}

.campaign-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Özel gün temaları (html + body — mağaza genelinde geçerli) */
html.theme-yilbasi,
body.theme-yilbasi {
  --color-brand: #b71c1c;
  --color-brand-hover: #7f0000;
  --color-accent: #c62828;
  --color-gold: #ffd54f;
  --color-bg: #fff8f5;
  --color-bg-muted: #ffebee;
}

html.theme-ramazan,
body.theme-ramazan {
  --color-brand: #4a148c;
  --color-brand-hover: #311b92;
  --color-accent: #7b1fa2;
  --color-gold: #ffd740;
  --color-bg: #f3e5f5;
  --color-bg-muted: #ede7f6;
}

html.theme-ramazan-bayram,
body.theme-ramazan-bayram {
  --color-brand: #1b5e20;
  --color-brand-hover: #0d3d12;
  --color-accent: #2e7d32;
  --color-gold: #ffca28;
  --color-bg: #f1f8e9;
  --color-bg-muted: #e8f5e9;
}

html.theme-kurban,
body.theme-kurban {
  --color-brand: #33691e;
  --color-brand-hover: #1b5e20;
  --color-accent: #558b2f;
  --color-gold: #ffab00;
  --color-bg: #f9fbe7;
  --color-bg-muted: #f0f4c3;
}

html.theme-cumhuriyet,
body.theme-cumhuriyet {
  --color-brand: #c62828;
  --color-brand-hover: #8e0000;
  --color-accent: #e53935;
  --color-gold: #ffffff;
  --color-bg: #fafafa;
  --color-bg-muted: #ffebee;
}

html.theme-cocuk,
body.theme-cocuk {
  --color-brand: #e65100;
  --color-brand-hover: #bf360c;
  --color-accent: #ff6f00;
  --color-gold: #ffee58;
  --color-bg: #fff8e1;
  --color-bg-muted: #fff3e0;
}

html.theme-genclik,
body.theme-genclik {
  --color-brand: #1565c0;
  --color-brand-hover: #0d47a1;
  --color-accent: #1976d2;
  --color-gold: #81d4fa;
  --color-bg: #e3f2fd;
  --color-bg-muted: #e1f5fe;
}

html.theme-demokrasi,
body.theme-demokrasi {
  --color-brand: #b71c1c;
  --color-brand-hover: #880e4f;
  --color-accent: #d32f2f;
  --color-gold: #ffcdd2;
  --color-bg: #fce4ec;
  --color-bg-muted: #f8bbd0;
}

html.theme-zafer,
body.theme-zafer {
  --color-brand: #37474f;
  --color-brand-hover: #263238;
  --color-accent: #546e7a;
  --color-gold: #ffca28;
  --color-bg: #eceff1;
  --color-bg-muted: #cfd8dc;
}

html.theme-isci,
body.theme-isci {
  --color-brand: #c62828;
  --color-brand-hover: #b71c1c;
  --color-accent: #ef5350;
  --color-gold: #ffeb3b;
  --color-bg: #fffde7;
  --color-bg-muted: #fff9c4;
}

html.theme-anneler,
body.theme-anneler {
  --color-brand: #ad1457;
  --color-brand-hover: #880e4f;
  --color-accent: #ec407a;
  --color-gold: #f8bbd0;
  --color-bg: #fce4ec;
  --color-bg-muted: #f8bbd0;
}

html.theme-babalar,
body.theme-babalar {
  --color-brand: #1565c0;
  --color-brand-hover: #0d47a1;
  --color-accent: #42a5f5;
  --color-gold: #90caf9;
  --color-bg: #e3f2fd;
  --color-bg-muted: #bbdefb;
}

html.theme-sevgililer,
body.theme-sevgililer {
  --color-brand: #c2185b;
  --color-brand-hover: #880e4f;
  --color-accent: #e91e63;
  --color-gold: #f48fb1;
  --color-bg: #fce4ec;
  --color-bg-muted: #f8bbd0;
}

html.site--campaign-active .site-header,
body.site--campaign-active .site-header {
  background: var(--color-bg-elevated);
  border-bottom: 2px solid var(--color-brand);
}

html.site--campaign-active .hero,
body.site--campaign-active .hero {
  background: linear-gradient(180deg, var(--color-bg-muted) 0%, var(--color-bg) 100%);
}

html.site--campaign-active,
body.site--campaign-active {
  background: var(--color-bg);
}

/* Responsive */
@media (max-width: 900px) {
  .checkout-body { grid-template-columns: 1fr; }
  .order-summary-side {
    border-left: none;
    border-top: 1px solid var(--color-border);
  }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; align-items: center; justify-content: center; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) var(--container-padding);
    display: none;
    box-shadow: var(--shadow-md);
  }

  .site-nav--open,
  nav.open { display: block; }

  .site-nav__list,
  nav ul { flex-direction: column; gap: var(--space-3); }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-block: var(--space-10);
  }

  .hero-content p { margin-inline: auto; }

  .hero-image { margin-top: var(--space-4); }

  .hero-image img {
    width: min(340px, 78vw);
  }

  .product-container { flex-direction: column; }
  .product-image-section { flex-direction: column-reverse; }
  .thumbnails { flex-direction: row; justify-content: center; flex-wrap: wrap; }

  .row { flex-direction: column; }
  .row .input-group { flex: 1 1 100%; }

  .user-greeting { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .campaign-popup,
  .campaign-popup__panel { transition: none; }
}
