/* ============================================================
   German Store Template
   Professional German retail UI inspired by Otto, MediaMarkt,
   Saturn and high-trust D2C commerce patterns.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary: #003b7a;
  --color-primary-dark: #08224a;
  --color-primary-soft: #eaf2fb;
  --color-accent: #d71920;
  --color-accent-dark: #b80f16;
  --color-yellow: #ffd200;
  --color-success: #16834f;
  --color-warning: #f4a100;
  --color-error: #c62828;

  --color-text: #111827;
  --color-text-secondary: #4b5563;
  --color-text-muted: #737985;
  --color-link: #003b7a;
  --color-white: #ffffff;
  --color-bg: #f4f6f8;
  --color-surface: #ffffff;
  --color-surface-alt: #f8fafc;
  --color-border: #d8dee7;
  --color-border-light: #e7ebf0;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  --max-width: 1240px;
  --header-height: 78px;
  --nav-height: 46px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-full: 999px;

  --font-family: Arial, Helvetica, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.65rem;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 22px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, .14);
  --transition-fast: 150ms ease;
  --transition-base: 220ms ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

main { flex: 1; }
a { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-primary-dark); text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; }

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
  line-height: 1.18;
  font-weight: 750;
  letter-spacing: 0;
}
h1 { font-size: var(--font-size-4xl); margin-bottom: var(--space-lg); }
h2 { font-size: var(--font-size-3xl); margin-bottom: var(--space-md); }
h3 { font-size: var(--font-size-2xl); margin-bottom: var(--space-md); }
h4 { font-size: var(--font-size-xl); margin-bottom: var(--space-sm); }
p { margin-bottom: var(--space-md); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.top-bar {
  background: var(--color-primary-dark);
  color: var(--color-white);
  font-size: var(--font-size-xs);
}

.top-bar .container {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.top-bar__benefits,
.top-bar__right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  flex-wrap: wrap;
}

.top-bar__benefits li,
.top-bar__right a {
  color: rgba(255, 255, 255, .9);
}

.top-bar__right a:hover {
  color: var(--color-white);
  text-decoration: none;
}

.icon,
.icon-mark,
.action-icon,
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1;
}

.icon-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: var(--color-primary-dark);
  background: var(--color-yellow);
  font-size: 11px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.header__main {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  gap: var(--space-xl);
  align-items: center;
}

.header__logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header__logo-text {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1.55rem;
  font-weight: 850;
  letter-spacing: 0;
}

.header__logo-text::after {
  content: "shop";
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(255,255,255,.35);
  color: var(--color-yellow);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.header__search {
  position: relative;
  width: 100%;
}

.header__search input {
  width: 100%;
  min-height: 48px;
  padding: 0 116px 0 18px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  font-size: var(--font-size-base);
}

.header__search input:focus {
  outline: 3px solid rgba(0, 59, 122, .16);
}

.header__search::after {
  content: "Suchen";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  min-width: 98px;
  display: grid;
  place-items: center;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 800;
}

.search-icon { display: none; }

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

@media (min-width: 769px) {
  .header__actions {
    grid-column: 3;
    justify-self: end;
  }
}

.header__action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  background: transparent;
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.header__action:hover {
  background: var(--color-primary-soft);
  border-color: #cfe0f4;
  text-decoration: none;
}

.action-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-size: 12px;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 800;
}

.nav {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
}

.nav__list {
  display: flex;
  align-items: center;
  min-height: var(--nav-height);
  list-style: none;
}

.nav__link {
  display: flex;
  align-items: center;
  min-height: var(--nav-height);
  padding: 0 18px;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.nav__link:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
  text-decoration: none;
}

.nav__link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.hero {
  margin-bottom: var(--space-2xl);
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, #f7fbff 0%, #e6f0fb 58%, #fff4d1 100%);
  border-bottom: 1px solid var(--color-border-light);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: var(--space-3xl);
  align-items: center;
}

.hero__content h1 {
  max-width: 640px;
  color: var(--color-primary-dark);
  font-size: clamp(2.25rem, 4vw, 4rem);
}

.hero__content p {
  max-width: 560px;
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.hero__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-lg);
}

.hero__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero__deal {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.94);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  font-size: var(--font-size-sm);
  font-weight: 800;
}

.service-strip,
.trust-bar {
  margin-bottom: var(--space-xl);
  background: var(--color-surface);
  border-block: 1px solid var(--color-border-light);
}

.service-strip .container,
.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-border-light);
}

.trust-item,
.service-item {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--space-md);
  background: var(--color-white);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.trust-icon,
.service-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-success);
  background: #e9f8f1;
  font-size: 13px;
  font-weight: 850;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.section-header h2 { margin-bottom: 0; }
.section-header__link { font-size: var(--font-size-sm); font-weight: 800; }

.categories {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-md);
}

.category-card {
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.category-card:hover,
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.category-card__image {
  aspect-ratio: 4 / 3;
  background: var(--color-primary-soft);
  overflow: hidden;
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card__label {
  padding: 14px 12px;
  font-size: var(--font-size-sm);
  font-weight: 800;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
}

.product-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card__image {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: linear-gradient(180deg, #f9fafb 0%, #eef3f8 100%);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-white);
  padding: 4px 8px;
  font-size: var(--font-size-xs);
  font-weight: 850;
}

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

.product-card__brand {
  margin-bottom: 5px;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.product-card__title {
  min-height: 42px;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.stars { color: var(--color-warning); letter-spacing: 1px; white-space: nowrap; }
.rating-count { color: var(--color-text-muted); }

.product-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: auto;
}

.price-current {
  color: var(--color-accent);
  font-size: var(--font-size-xl);
  font-weight: 850;
}

.price-old {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  text-decoration: line-through;
}

.price-saving {
  border-radius: var(--radius-sm);
  background: #ffe8e9;
  color: var(--color-accent);
  padding: 2px 6px;
  font-size: var(--font-size-xs);
  font-weight: 850;
}

.product-card__shipping {
  margin-top: var(--space-sm);
  color: var(--color-success);
  font-size: var(--font-size-xs);
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 42px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  color: var(--color-white);
  background: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: 850;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary,
.btn-accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-primary:hover,
.btn-accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}
.btn-secondary { background: var(--color-primary); border-color: var(--color-primary); }
.btn-outline {
  background: var(--color-white);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}
.btn-paypal {
  background: #ffc439;
  border-color: #ffc439;
  color: #111827;
}
.btn-paypal:hover {
  background: #f3b820;
  border-color: #f3b820;
  color: #111827;
}
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: var(--font-size-base); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.retail-panel {
  margin-bottom: var(--space-2xl);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
}

.service-card {
  padding: var(--space-lg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  text-align: left;
}

.service-card .service-icon { margin-bottom: var(--space-md); }
.service-card h4 { font-size: var(--font-size-base); }
.service-card p { color: var(--color-text-secondary); font-size: var(--font-size-sm); margin: 0; }

.breadcrumb {
  padding: var(--space-md) 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}
.breadcrumb a { color: var(--color-text-secondary); }
.breadcrumb .separator { margin: 0 var(--space-sm); color: var(--color-text-muted); }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
  gap: var(--space-3xl);
  padding: var(--space-xl) 0 var(--space-2xl);
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + var(--nav-height) + var(--space-lg));
  align-self: start;
}

.product-gallery__main {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: var(--space-xl);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info {
  padding: var(--space-xl);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.product-info__brand {
  margin-bottom: var(--space-xs);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.product-info h1 {
  margin-bottom: var(--space-md);
  font-size: var(--font-size-2xl);
}

.product-info__rating-lg {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-sm);
}

.product-info__price-lg {
  display: grid;
  gap: 6px;
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  border: 1px solid #ffd7d9;
  border-radius: var(--radius-md);
  background: #fff7f7;
}

.product-info__price-lg .price-current { font-size: var(--font-size-3xl); }
.price-vat { color: var(--color-text-muted); font-size: var(--font-size-xs); }

.product-info__shipping-lg {
  margin-bottom: var(--space-lg);
  padding: 12px 14px;
  border: 1px solid #c8ecd9;
  border-radius: var(--radius-sm);
  background: #f1fbf6;
  color: var(--color-success);
  font-size: var(--font-size-sm);
  font-weight: 800;
}

.product-info__actions {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.quantity-selector label { font-weight: 800; font-size: var(--font-size-sm); }
.quantity-selector select {
  min-width: 76px;
  min-height: 40px;
  padding: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
}

.product-info__trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: var(--space-xl);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background: var(--color-border-light);
}
.product-info__trust .trust-item {
  min-height: 90px;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: var(--color-white);
  font-size: var(--font-size-xs);
  font-weight: 800;
}

.product-features h3 { font-size: var(--font-size-lg); }
.product-features ul { list-style: none; }
.product-features li {
  display: flex;
  gap: var(--space-sm);
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}
.product-features li::before {
  content: "✓";
  color: var(--color-success);
  font-weight: 900;
}

.cart-page,
.checkout-page { padding: var(--space-xl) 0; }
.cart-page h1,
.checkout-page h1 { font-size: var(--font-size-2xl); }

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--space-xl);
  align-items: start;
}

.cart-items,
.cart-summary,
.order-summary-sidebar,
.paypal-section {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item__image {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
}
.cart-item__image img { width: 100%; height: 100%; object-fit: contain; }
.cart-item__title { margin-bottom: var(--space-xs); font-size: var(--font-size-sm); font-weight: 800; }
.cart-item__meta { color: var(--color-text-muted); font-size: var(--font-size-xs); }
.cart-item__quantity select { margin-top: var(--space-sm); padding: var(--space-xs); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.cart-item__price { font-size: var(--font-size-lg); font-weight: 850; }
.cart-item__remove {
  margin-top: var(--space-xs);
  border: 0;
  background: transparent;
  color: var(--color-error);
  cursor: pointer;
  font-size: var(--font-size-xs);
  font-weight: 800;
}
.cart-empty {
  padding: var(--space-3xl);
  color: var(--color-text-secondary);
  text-align: center;
}

.cart-summary,
.order-summary-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--nav-height) + var(--space-lg));
  padding: var(--space-lg);
}
.cart-summary h3,
.order-summary-sidebar h3 {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--font-size-lg);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-sm);
}
.summary-row.total {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 2px solid var(--color-border);
  font-size: var(--font-size-lg);
  font-weight: 850;
}
.summary-row.free-shipping { color: var(--color-success); font-weight: 800; }

.checkout-steps {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: 800;
}
.checkout-step.active { color: var(--color-primary); }
.checkout-step.completed { color: var(--color-success); }
.step-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: var(--font-size-xs);
  font-weight: 900;
}
.checkout-step.active .step-number { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }
.checkout-step.completed .step-number { background: var(--color-success); border-color: var(--color-success); color: var(--color-white); }

.paypal-section {
  padding: var(--space-xl);
  text-align: center;
}
.paypal-section p { color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.paypal-benefits {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}
.paypal-benefit {
  padding: 8px 12px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
  font-weight: 800;
}
#paypal-button-container { max-width: 320px; margin: 0 auto; }

.legal-page {
  max-width: 920px;
  margin: var(--space-xl) auto;
  padding: var(--space-2xl);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.legal-page h1 {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 3px solid var(--color-primary);
  font-size: var(--font-size-2xl);
}
.legal-page h2 { margin-top: var(--space-xl); font-size: var(--font-size-xl); }
.legal-page h3 { margin-top: var(--space-lg); font-size: var(--font-size-lg); }
.legal-page p,
.legal-page li { color: var(--color-text-secondary); line-height: 1.7; }
.legal-page ul,
.legal-page ol { padding-left: var(--space-xl); margin-bottom: var(--space-md); }
.legal-page a { text-decoration: underline; }

.footer {
  margin-top: var(--space-3xl);
  padding: var(--space-3xl) 0 var(--space-lg);
  background: #111827;
  color: rgba(255,255,255,.78);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}
.footer__column h4 {
  color: var(--color-white);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.footer__column ul { list-style: none; }
.footer__column li { margin-bottom: var(--space-sm); }
.footer__column a { color: rgba(255,255,255,.76); font-size: var(--font-size-sm); }
.footer__column a:hover { color: var(--color-white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: var(--font-size-xs);
}
.footer__payment-methods { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.payment-icon {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  font-weight: 850;
}

.toast {
  position: fixed;
  right: var(--space-xl);
  bottom: var(--space-xl);
  z-index: 1000;
  max-width: min(360px, calc(100% - 32px));
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--color-success);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  font-size: var(--font-size-sm);
  font-weight: 800;
  opacity: 0;
  transform: translateY(100px);
  transition: all var(--transition-base);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--color-error); }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }
.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }
.font-bold { font-weight: 850; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (max-width: 1080px) {
  .hero .container,
  .product-detail,
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .product-gallery,
  .cart-summary,
  .order-summary-sidebar { position: static; }
  .categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-strip .container,
  .trust-bar .container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  :root { --header-height: auto; }
  .top-bar__benefits { display: none; }
  .top-bar .container { justify-content: center; }
  .header { position: static; }
  .header__main {
    grid-template-columns: 1fr auto;
    gap: var(--space-md);
    padding: var(--space-md) 0;
  }
  .header__search {
    grid-column: 1 / -1;
    order: 3;
  }
  .header__action .action-label { display: none; }
  .nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav__list { width: max-content; }
  .nav__link { padding: 0 14px; }
  .hero { padding: var(--space-xl) 0; }
  .hero .container { gap: var(--space-xl); }
  .hero__actions { display: grid; }
  .hero__actions .btn { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-strip .container,
  .trust-bar .container { grid-template-columns: 1fr 1fr; }
  .product-info { padding: var(--space-lg); }
  .product-info__trust { grid-template-columns: 1fr 1fr; }
  .cart-item { grid-template-columns: 78px minmax(0, 1fr); }
  .cart-item__image { width: 78px; height: 78px; }
  .cart-item__price { grid-column: 1 / -1; text-align: right; }
  .checkout-steps { display: grid; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .container { padding: 0 var(--space-md); }
  h1 { font-size: 2rem; }
  .header__logo-text { font-size: 1.25rem; }
  .product-grid { gap: var(--space-sm); }
  .product-card__body { padding: 12px; }
  .price-current { font-size: 1.1rem; }
  .service-strip .container,
  .trust-bar .container,
  .service-grid,
  .footer__grid { grid-template-columns: 1fr; }
  .retail-panel,
  .legal-page { padding: var(--space-lg); }
  .footer__bottom { display: grid; text-align: center; }
  .btn { white-space: normal; text-align: center; }
}
