/* ============================================================
   Agritechnik24.de — Design System "Industrial Excellence"
   ============================================================ */

/* ─── Import Fonts ─────────────────────────────────────────── */
/* Note: Material Symbols Outlined et Inter sont chargés via <link> dans le <head> */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ─── CSS Variables (Design Tokens) ────────────────────────── */
:root {
  /* Colors */
  --color-primary:          #012d1d;
  --color-primary-dark:     #001a10;
  --color-primary-container:#1b4332;
  --color-primary-fixed:    #c1ecd4;
  --color-on-primary:       #ffffff;
  --color-orange:           #F77F00;
  --color-orange-dark:      #e67600;

  --color-surface:          #f9f9ff;
  --color-surface-low:      #eff3ff;
  --color-surface-container:#e6eeff;
  --color-surface-high:     #dde9ff;
  --color-surface-white:    #ffffff;

  --color-on-surface:       #101c2c;
  --color-on-surface-var:   #414844;
  --color-outline:          #717973;
  --color-outline-variant:  #c1c8c2;

  --color-error:            #ba1a1a;
  --color-error-container:  #ffdad6;
  --color-success:          #1b4332;

  /* Typography */
  --font-family:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Layout */
  --container-max: 1280px;
  --gutter:        24px;
  --border-radius: 4px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px rgba(0,0,0,.06);
  --shadow-card: 0 4px 0 0 rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.1);
  --shadow-card-hover: 0 10px 15px -3px rgba(0,0,0,.12), 0 4px 6px rgba(0,0,0,.06);

  /* Transitions */
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-family);
  background: var(--color-surface);
  color: var(--color-on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── Material Icons ────────────────────────────────────────── */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.icon-filled { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ─── Container ─────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-12);
}
@media (max-width: 768px) {
  .container { padding: 0 var(--space-4); }
}

/* ─── Typography ────────────────────────────────────────────── */
.text-display {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.text-headline-lg { font-size: 32px; font-weight: 700; line-height: 1.2; }
.text-headline    { font-size: 24px; font-weight: 600; line-height: 1.35; }
.text-title       { font-size: 20px; font-weight: 600; line-height: 1.4; }
.text-body-lg     { font-size: 18px; font-weight: 400; line-height: 1.65; }
.text-body        { font-size: 16px; font-weight: 400; line-height: 1.6; }
.text-sm          { font-size: 14px; font-weight: 400; line-height: 1.5; }
.text-xs          { font-size: 12px; font-weight: 400; line-height: 1.4; }
.text-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.text-mono {
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Colors */
.text-primary     { color: var(--color-primary); }
.text-orange      { color: var(--color-orange); }
.text-muted       { color: var(--color-on-surface-var); }
.text-outline     { color: var(--color-outline); }
.text-white       { color: #fff; }
.text-error       { color: var(--color-error); }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--color-orange);
  color: #fff;
  border: 2px solid transparent;
}
.btn-primary:hover { background: var(--color-orange-dark); }

.btn-secondary {
  background: var(--color-primary);
  color: #fff;
  border: 2px solid transparent;
}
.btn-secondary:hover { background: var(--color-primary-container); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-on-surface-var);
  border: 2px solid var(--color-outline-variant);
}
.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-lg { padding: 16px 32px; font-size: 14px; }
.btn-sm { padding: 8px 16px; font-size: 11px; }
.btn-full { width: 100%; }

/* ─── Forms ─────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-on-surface-var);
}

.form-control {
  background: #fff;
  border: 2px solid var(--color-outline-variant);
  border-radius: var(--border-radius);
  padding: 11px 14px;
  font-size: 15px;
  color: var(--color-on-surface);
  transition: border-color var(--transition);
  width: 100%;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-orange);
}
.form-control::placeholder { color: var(--color-outline); }

.form-control.error { border-color: var(--color-error); }
.form-error { font-size: 12px; color: var(--color-error); margin-top: 4px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--color-outline-variant);
  border-radius: 2px;
  cursor: pointer;
  accent-color: var(--color-primary);
  margin-top: 2px;
}
.form-check-label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-on-surface);
}
.form-check-label a { color: var(--color-primary); font-weight: 600; text-decoration: underline; }

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.card-body { padding: var(--space-6); }

/* ─── Product Card ──────────────────────────────────────────── */
.product-card {
  background: #fff;
  border: 1px solid var(--color-outline-variant);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  overflow: hidden;
}
.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-surface-low);
}
.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card__image { transform: scale(1.08); }

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-premium   { background: var(--color-primary); color: #fff; }
.badge-sale      { background: var(--color-error); color: #fff; }
.badge-bestseller{ background: var(--color-primary-container); color: var(--color-primary-fixed); }
.badge-neu       { background: var(--color-orange); color: #fff; }

.product-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__vendor {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-outline);
  margin-bottom: 4px;
}

.product-card__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-on-surface);
  margin-bottom: var(--space-4);
  transition: color var(--transition);
}
.product-card:hover .product-card__title { color: var(--color-primary); }

/* Specs table dans le card */
.spec-table {
  border: 1px solid var(--color-outline-variant);
  overflow: hidden;
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}
.spec-table__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  font-size: 11px;
}
.spec-table__row:nth-child(odd) { background: #F8F9FA; }
.spec-table__key {
  font-weight: 700;
  color: var(--color-on-surface-var);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.spec-table__val { font-weight: 500; font-variant-numeric: tabular-nums; }

.product-card__footer { margin-top: auto; }

.product-card__price {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-orange);
  line-height: 1;
}
.product-card__price-compare {
  font-size: 14px;
  color: var(--color-outline);
  text-decoration: line-through;
  margin-left: 8px;
}
.product-card__price-tax {
  font-size: 11px;
  color: var(--color-outline);
  font-weight: 400;
  margin-top: 2px;
}

.product-card__actions {
  display: grid;
  grid-template-columns: 4fr 1fr;
  gap: 8px;
  margin-top: var(--space-4);
}

/* ─── Stock Badge ────────────────────────────────────────────── */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stock-badge--available { background: var(--color-primary-fixed); color: var(--color-primary); }
.stock-badge--low       { background: #fef9c3; color: #854d0e; }
.stock-badge--order     { background: var(--color-surface-high); color: var(--color-on-surface-var); }

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-outline-variant);
  box-shadow: var(--shadow-sm);
}

.nav__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  text-decoration: none;
}
.nav__logo span { color: var(--color-orange); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav__link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-on-surface-var);
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.nav__link:hover,
.nav__link--active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.nav__link--sale   { color: var(--color-error); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
}
.nav__icon-btn:hover { background: var(--color-surface-low); }

.nav__cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--color-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__search {
  position: relative;
}
.nav__search input {
  background: var(--color-surface-low);
  border: none;
  border-radius: 999px;
  padding: 8px 16px 8px 38px;
  font-size: 13px;
  width: 220px;
  transition: all var(--transition);
}
.nav__search input:focus { outline: none; width: 280px; background: var(--color-surface-container); }
.nav__search .material-symbols-outlined {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--color-outline);
}

/* Siegel Bar */
.siegel-bar {
  background: var(--color-primary-container);
  color: var(--color-primary-fixed);
  padding: 6px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.siegel-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.siegel-bar__item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.siegel-bar__item .material-symbols-outlined { font-size: 16px; }

/* Page offset for fixed nav */
.nav-spacer { height: 100px; }

/* ─── Mobile Nav ────────────────────────────────────────────── */
.nav__mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav__links, .nav__search { display: none; }
  .nav__mobile-toggle { display: flex; }
}

/* ─── Sidebar Cart Drawer ────────────────────────────────────── */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100vw;
  background: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
}
.cart-drawer.open { transform: translateX(0); }

.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 199;
}
.cart-overlay.open { display: block; }

.cart-drawer__header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-outline-variant);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}
.cart-drawer__footer {
  padding: var(--space-6);
  border-top: 2px solid var(--color-outline-variant);
}

.cart-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-surface-container);
}
.cart-item__image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--color-outline-variant);
  flex-shrink: 0;
}
.cart-item__qty {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-outline-variant);
  border-radius: var(--border-radius);
  overflow: hidden;
}
.cart-item__qty button {
  width: 28px;
  height: 28px;
  background: var(--color-surface-low);
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}
.cart-item__qty button:hover { background: var(--color-surface-container); }
.cart-item__qty input {
  width: 36px;
  height: 28px;
  border: none;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 4px solid var(--color-primary-container);
  margin-top: var(--space-16);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
}
.footer__brand { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; margin-bottom: var(--space-4); }
.footer__desc  { font-size: 14px; opacity: 0.75; line-height: 1.6; max-width: 320px; }
.footer__heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: var(--space-4);
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer__links a { font-size: 14px; opacity: 0.8; transition: opacity var(--transition); }
.footer__links a:hover { opacity: 1; }
.footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
}

/* ─── Status Chips ───────────────────────────────────────────── */
.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.status-vorkasse   { background: var(--color-error-container); color: var(--color-error); }
.status-bezahlt    { background: var(--color-primary-fixed); color: var(--color-primary); }
.status-processing { background: #fef9c3; color: #713f12; }
.status-shipped    { background: #dcfce7; color: #14532d; }
.status-cancelled  { background: var(--color-surface-high); color: var(--color-on-surface-var); }

/* ─── Sections / Pages ──────────────────────────────────────── */
.section { padding: var(--space-16) 0; }
.section--sm { padding: var(--space-8) 0; }

.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-container) 100%);
  color: #fff;
  padding: var(--space-16) 0;
}
.page-header h1 { color: #fff; }

/* ─── Filters Sidebar ────────────────────────────────────────── */
.filter-panel {
  background: #fff;
  border: 1px solid var(--color-outline-variant);
  padding: var(--space-6);
  position: sticky;
  top: 112px;
}
.filter-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.filter-section {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-surface-container);
}
.filter-section:last-child { border-bottom: none; }
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  margin-bottom: var(--space-2);
}
.filter-checkbox input { accent-color: var(--color-primary); width: 16px; height: 16px; }
.filter-checkbox label { font-size: 14px; cursor: pointer; }

/* Price range inputs */
.price-range { display: flex; gap: var(--space-2); }
.price-range input { width: 50%; }

/* Grid layout catalog */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

/* ─── Pagination ────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
}
.pagination__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-outline-variant);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-on-surface-var);
  transition: all var(--transition);
  cursor: pointer;
}
.pagination__btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination__btn--active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ─── Checkout ──────────────────────────────────────────────── */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }

.checkout-section {
  background: #fff;
  border: 1px solid var(--color-outline-variant);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-6);
}
.checkout-section:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}
.checkout-section__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.order-summary {
  background: #fff;
  border: 2px solid var(--color-primary);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 112px;
}

.order-summary__total {
  background: var(--color-surface-container);
  padding: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid var(--color-orange);
}

/* Vorkasse info block */
.vorkasse-block {
  background: var(--color-primary-fixed);
  border: 2px solid var(--color-primary-container);
  padding: var(--space-5);
}
.vorkasse-block__iban {
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: #fff;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-outline-variant);
  margin: var(--space-2) 0;
  word-break: break-all;
}

/* ─── Progress Steps ─────────────────────────────────────────── */
.progress-steps {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.45;
}
.progress-step--active { opacity: 1; color: var(--color-primary); }
.progress-step--done   { opacity: 0.7; }
.progress-step__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-outline-variant);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.progress-step--active .progress-step__num { background: var(--color-primary); }
.progress-step--done .progress-step__num   { background: var(--color-success); }

/* ─── Admin ──────────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}
.admin-main {
  flex: 1;
  margin-left: 260px;
  background: var(--color-surface);
  min-height: 100vh;
}
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--color-outline-variant);
  padding: 0 var(--space-6);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-content { padding: var(--space-8); }

.admin-nav__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: rgba(255,255,255,.7);
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
  margin-bottom: 2px;
}
.admin-nav__item:hover,
.admin-nav__item--active {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--border-radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.stat-card__value { font-size: 36px; font-weight: 800; color: var(--color-primary); line-height: 1; }
.stat-card__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-on-surface-var); margin-bottom: var(--space-2); }

/* Data Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead tr { background: var(--color-primary); color: #fff; }
.data-table th { padding: 12px 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-align: left; }
.data-table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--color-outline-variant); }
.data-table tbody tr:hover { background: var(--color-surface-low); }
.data-table tbody tr:nth-child(even) { background: #FAFAFA; }
.data-table tbody tr:nth-child(even):hover { background: var(--color-surface-low); }

/* ─── Toast Notifications ────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.toast {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transform: translateX(120%);
  transition: transform 0.3s ease;
}
.toast.show { transform: translateX(0); }
.toast--success { background: var(--color-primary-container); }
.toast--error   { background: var(--color-error); }

/* ─── Utilities ─────────────────────────────────────────────── */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.mt-1 { margin-top: 4px; }  .mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--color-outline-variant); margin: var(--space-6) 0; }
.line-through { text-decoration: line-through; }
.opacity-70 { opacity: 0.7; }

/* ─── Animations ────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@keyframes slideIn { from { transform:translateX(100%); } to { transform:none; } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.5; } }
.animate-fade { animation: fadeIn 0.4s ease; }
.animate-pulse { animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .text-display { font-size: 28px; }
  .text-headline { font-size: 20px; }
  .products-grid { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
}

/* ─── Hero Slider ────────────────────────────────────────────── */
.hero-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: #012d1d;
}
.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  display: flex;
  align-items: center;
  z-index: 1;
}
.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 6s ease-out;
  z-index: 0;
}
.slide.active .slide-bg {
  transform: scale(1.05);
}
.slide .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.slide-content {
  max-width: 650px;
  color: #fff;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.3s;
}
.slide.active .slide-content {
  opacity: 1;
  transform: translateY(0);
}
.slide-tag {
  color: var(--color-orange);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 20px;
}
.slide-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
}
.slide-title .highlight {
  color: var(--color-orange);
}
.slide-desc {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 40px;
}
.slide-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.slider-arrow:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-50%) scale(1.05);
}
.slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}
.slider-arrow.prev {
  left: 32px;
}
.slider-arrow.next {
  right: 32px;
}
.slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
  padding: 0;
}
.slider-dot.active {
  background: var(--color-orange);
  width: 24px;
  border-radius: 6px;
}

@media (max-width: 900px) {
  .hero-slider {
    height: 520px;
  }
  .slide-title {
    font-size: 36px;
  }
  .slide-desc {
    font-size: 16px;
    margin-bottom: 24px;
  }
  .slider-arrow {
    display: none; /* Hide arrows on mobile for better touch UX */
  }
}
@media (max-width: 600px) {
  .hero-slider {
    height: 480px;
  }
  .slide-content {
    text-align: center;
    padding: 0 16px;
  }
  .slide-actions {
    justify-content: center;
  }
}

/* ─── Mammotion Mähroboter Page ──────────────────────────────── */

/* Hero */
.maehroboter-hero {
  background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0f2e1a 100%);
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.maehroboter-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(76,175,80,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(247,127,0,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.maehroboter-hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.maehroboter-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.maehroboter-hero__content {}
.maehroboter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(76,175,80,0.15);
  border: 1px solid rgba(76,175,80,0.3);
  color: #81c784;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.maehroboter-hero__title {
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.1;
}
.maehroboter-hero__highlight {
  background: linear-gradient(90deg, #4CAF50, #81c784);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.maehroboter-usps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 440px;
}
.maehroboter-usp {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
}
.maehroboter-usp .material-symbols-outlined {
  color: #4CAF50;
  font-size: 18px;
  flex-shrink: 0;
}
.maehroboter-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.maehroboter-hero__glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(76,175,80,0.25) 0%, transparent 65%);
  filter: blur(50px);
  pointer-events: none;
}
.maehroboter-hero__image-card {
  position: relative;
  z-index: 1;
  width: 100%;
  transition: transform 0.5s cubic-bezier(.165,.84,.44,1);
}
.maehroboter-hero__image-card:hover { transform: translateY(-6px) scale(1.02); }
.maehroboter-floating-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons Mammotion */
.maehroboter-btn-primary {
  background: linear-gradient(135deg, #2e7d32, #4CAF50);
  color: #fff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(76,175,80,0.3);
}
.maehroboter-btn-primary:hover {
  background: linear-gradient(135deg, #1b5e20, #388e3c);
  box-shadow: 0 6px 20px rgba(76,175,80,0.4);
}
.maehroboter-btn-outline {
  background: transparent;
  color: rgba(255,255,255,.9);
  border: 2px solid rgba(255,255,255,.35);
}
.maehroboter-btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
}

/* Trust Bar */
.maehroboter-trust-bar {
  background: #f0f7f0;
  border-bottom: 2px solid #c8e6c9;
  padding: 24px 0;
}
.maehroboter-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.maehroboter-trust-item {}

/* Quick Filters */
.maehroboter-quick-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.maehroboter-filter-chip {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--color-outline-variant);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-on-surface-var);
  cursor: pointer;
  transition: all 0.2s ease;
}
.maehroboter-filter-chip:hover,
.maehroboter-filter-chip.active {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}

/* Brand Badge sur les cards */
.maehroboter-brand-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Card Mammotion — bordure verte au hover */
.maehroboter-card:hover {
  border-color: #4CAF50;
  box-shadow: 0 10px 15px -3px rgba(76,175,80,.15), 0 4px 6px rgba(0,0,0,.06);
}

/* CTA Mammotion */
.maehroboter-cta {
  background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0f2e1a 100%);
  padding: 80px 0;
  margin-top: 64px;
}

/* Responsive Mammotion */
@media (max-width: 900px) {
  .maehroboter-hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .maehroboter-hero__visual { display: none; }
  .maehroboter-usps { grid-template-columns: 1fr 1fr; margin: 0 auto; }
  .maehroboter-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .maehroboter-hero__content .flex { justify-content: center; }
}
@media (max-width: 600px) {
  .maehroboter-usps { grid-template-columns: 1fr; }
  .maehroboter-trust-grid { grid-template-columns: 1fr; }
}


@keyframes floatMachine {
  0% { transform: translateY(0) translateX(5%); }
  50% { transform: translateY(-15px) translateX(5%); }
  100% { transform: translateY(0) translateX(5%); }
}
.hero-floating-machine {
  animation: floatMachine 6s ease-in-out infinite;
}

/* ─── Mobile Navigation Drawer ───────────────────────────────── */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--color-surface);
  z-index: 250;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}
.mobile-drawer.open {
  transform: translateX(0);
}
.mobile-drawer__header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-outline-variant);
  background: var(--color-primary);
}
.mobile-drawer__logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.mobile-drawer__logo span {
  color: var(--color-orange);
}
.mobile-drawer__close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.mobile-drawer__search {
  margin-bottom: 24px;
}
.mobile-drawer__search form {
  position: relative;
}
.mobile-drawer__search input {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--color-outline-variant);
  font-size: 14px;
  background: var(--color-surface-low);
}
.mobile-drawer__search button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--color-outline);
  cursor: pointer;
}
.mobile-drawer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-drawer__link {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.mobile-drawer__link:hover, .mobile-drawer__link:active {
  background: var(--color-surface-low);
  color: var(--color-orange);
}
.mobile-drawer__link--sale {
  color: var(--color-error);
}
.mobile-drawer__contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 14px;
}
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 240;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ─── Trust Bar Grid Responsiveness ──────────────────────────── */
.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 900px) {
  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .trust-bar__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ─── Siegel Bar Mobile Optimization ─────────────────────────── */
@media (max-width: 768px) {
  .siegel-bar {
    display: none !important;
  }
  .nav-spacer {
    height: 70px !important;
  }
  .slide-bg {
    filter: brightness(0.45); /* Darken slide background images on mobile for readability */
  }
}

/* ─── Layout Section Header (Home & Catalog) ─────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
}
@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
  .section-header a {
    width: 100%;
    justify-content: center;
  }
}

/* ─── Layout CTA Buttons ─────────────────────────────────────── */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    gap: var(--space-3);
  }
  .cta-buttons a {
    width: 100% !important;
    justify-content: center;
  }
}

/* ─── Product Detail Page Layout ─────────────────────────────── */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1024px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 600px) {
  .product-detail-layout {
    gap: 24px;
  }
}

/* ─── Related Products Grid ──────────────────────────────────── */
.related-products-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 900px) {
  .related-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .related-products-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ─── Prevent Horizontal Scroll (General Fix) ─────────────────── */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
