/* ============================================================
   willy.at — styles (product page + admin)
   Palette sampled from the reference product page.
   ============================================================ */
:root {
  /* primitives */
  --p-blue: #00a4e8;
  --p-blue-dark: #0089c7;
  --p-logo: #19afff;
  --p-orange: #efaa54;
  --p-orange-dark: #e29432;
  --p-purple: #826eab;
  --p-green: #4db963;
  --p-green-bg: #ecfbf8;
  --p-ink: #333333;
  --p-gray: #7f8ca2;
  --p-line: #e4e9f2;
  --p-panel: #f4f6fb;
  --p-white: #ffffff;

  /* semantic */
  --accent: var(--p-blue);
  --accent-hover: var(--p-blue-dark);
  --text: var(--p-ink);
  --text-2: var(--p-gray);
  --surface: var(--p-white);
  --surface-2: var(--p-panel);
  --border: var(--p-line);

  --radius: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 1px 3px rgba(20, 40, 80, 0.08);
  --font: 'Open Sans', 'Segoe UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font: 16px/1.6 var(--font);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.25; font-weight: 700; }

.container {
  max-width: 970px;
  margin: 0;
  padding: 0 16px;
}

/* ---------------- header ---------------- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  height: 52px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  position: relative;
  z-index: 10;
  margin-top: 8px;
  margin-bottom: -18px;
}
.logo:hover { text-decoration: none; }
.logo-bubble {
  position: relative;
  background: var(--p-logo);
  color: #fff;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.5px;
  padding: 7px 17px 8px;
  border-radius: 22px;
  text-transform: lowercase;
}
.logo-bubble::after {
  content: '';
  position: absolute;
  left: 20px;
  bottom: -9px;
  width: 18px;
  height: 18px;
  background: var(--p-logo);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.logo-tld {
  color: var(--p-logo);
  font-weight: 800;
  font-size: 24px;
}
.logo-img { max-height: 46px; max-width: 132px; width: auto; display: block; }
.logo-img-site { width: 110px; height: auto; display: block; }
@media screen and (min-width: 768px) {
  .logo-img-site { width: 132px; }
}
a.reco-card { text-decoration: none; color: inherit; }
a.reco-card:hover { text-decoration: none; }
.img-meta strong { color: var(--text); }
.topbar-actions {
  margin-left: auto;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 18px;
}
.auth-sep { color: #c6cedd; font-size: 14px; }
.mode-toggle {
  background: none;
  border: none;
  padding: 4px;
  color: var(--p-gray);
  display: inline-flex;
  align-items: center;
  border-radius: 50%;
}
.mode-toggle:hover { color: var(--accent); }
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  background: none;
  border: none;
  padding: 6px 2px;
}
.topbar-link svg { color: var(--p-gray); }
.topbar-link:hover { color: var(--accent); text-decoration: none; }
.topbar-link:hover svg { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 15px;
  padding: 9px 20px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-orange {
  background: var(--p-orange);
  color: #fff;
  border: 1px solid var(--p-orange);
  border-radius: 4px;
  height: 24px;
  min-width: 24px;
  padding: 0 6px;
  gap: 4px;
  font-size: 11px; /* 0.785714rem on willhaben's 14px root */
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  transition: 0.2s;
}
.btn-orange svg { width: 11px; height: 11px; }
.btn-orange:hover { background: var(--p-orange-dark); color: #fff; }
.btn-blue { background: var(--p-blue); color: #fff; width: 100%; padding: 12px 20px; }
.btn-blue:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: #fff; color: var(--p-blue); border-color: var(--p-blue); width: 100%; padding: 12px 20px; }
.btn-outline:hover { background: #eef9ff; color: var(--p-blue-dark); border-color: var(--p-blue-dark); }
.btn-small { padding: 7px 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* category nav */
.catnav { background: var(--surface); border-bottom: 1px solid var(--border); }
.catnav-inner { display: flex; gap: 40px; overflow-x: auto; padding-left: 148px; }
.catnav-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 2px 12px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}
.catnav-item .count { font-size: 13px; font-weight: 400; color: var(--text-2); }
.catnav-item:hover { color: var(--accent); }
.catnav-item.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------------- breadcrumb ---------------- */
.breadcrumb {
  padding: 16px 0 0;
  font-size: 13.5px;
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb button {
  background: none; border: none; color: var(--text-2); font-size: inherit; padding: 0;
}
.breadcrumb button:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: #b8c2d4; }
.crumb-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.crumb-nav button {
  background: none; border: none; padding: 0;
  color: var(--text-2); font-size: 13.5px;
}
.crumb-nav button:hover { color: var(--accent); text-decoration: underline; }

/* ---------------- title block ---------------- */
.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}
.title-row h1 { font-size: 30px; font-weight: 700; }
.title-loc {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-2); font-size: 14.5px; margin-top: 6px;
}
.title-loc svg { color: var(--p-gray); }
.icon-actions { display: flex; gap: 10px; flex-shrink: 0; }
.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1.5px solid var(--p-blue);
  border-radius: 6px;
  color: var(--p-blue);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { background: #eef9ff; }
.icon-btn.active { background: var(--p-blue); color: #fff; }
.meta-row {
  display: flex;
  justify-content: flex-end;
  color: var(--text-2);
  font-size: 13px;
  margin-top: 4px;
  gap: 6px;
  flex-wrap: wrap;
}

/* ---------------- product grid ---------------- */
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 16px;
  align-items: start;
}

/* gallery */
.gallery {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}
.gallery-counter {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(40, 50, 70, 0.45);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}
.gallery-expand {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.gallery-expand:hover { color: var(--p-blue); }
.similar-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  color: var(--p-blue);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  z-index: 2;
}
.similar-chip:hover { background: #eef9ff; border-color: var(--p-blue); }
.gallery-empty {
  aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center;
  color: var(--text-2);
}
.thumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 4px;
}
.thumbs-nav {
  flex-shrink: 0;
  width: 36px; height: 56px;
  border: none; background: none;
  color: var(--text);
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.thumbs-nav:hover { background: var(--surface-2); color: var(--accent); }
.thumbs-nav[disabled] { color: #c6cedd; cursor: default; background: none; }
.thumbs-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px;
}
.thumb {
  flex-shrink: 0;
  width: 78px; height: 58px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-2);
  padding: 0;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--p-blue); }
.thumb:hover { border-color: var(--p-blue-dark); }

/* ---------------- side cards ---------------- */
/* the whole sidebar is ONE bordered card, like the reference */
.side-col {
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.side-col .card {
  border: none;
  box-shadow: none;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.price {
  font-size: 26px;
  font-weight: 800;
  color: var(--p-blue);
  letter-spacing: 0.2px;
}
.badge-paylivery {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--p-purple);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.shipping-line {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.shipping-line svg { color: #e5b53a; }
.buyer-protection {
  font-size: 14px;
  color: var(--text);
  display: flex; align-items: center; gap: 5px;
}
.q {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--p-gray);
  color: var(--p-gray);
  font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none;
  padding: 0;
  vertical-align: middle;
}
.price-card .btn { margin-top: 14px; }
.price-card .btn:first-of-type { margin-top: 18px; }

/* seller card */
.seller-head { display: flex; gap: 12px; align-items: flex-start; }
.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--p-gray);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.seller-name { font-weight: 700; font-size: 16px; }
.seller-sub { font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.rating-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
  font-size: 13.5px; color: var(--text-2);
}
.badge-rating {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--p-purple);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.seller-addr { margin-top: 12px; font-size: 15px; }
.seller-card .btn { margin-top: 12px; }
#btn-more-ads { font-size: 14px; flex-wrap: wrap; row-gap: 2px; line-height: 1.3; }
.more-ads-count {
  background: var(--p-blue);
  color: #fff;
  border-radius: 12px;
  font-size: 12px;
  padding: 1px 8px;
  font-weight: 800;
}
.seller-type { margin-top: 12px; font-size: 13px; color: var(--text-2); }

/* ---------------- sections ---------------- */
.section { margin-top: 36px; max-width: 856px; }
.section h2 { font-size: 21px; margin-bottom: 14px; }

.details-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
}
.details-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.details-row dt { color: var(--text-2); font-size: 14.5px; }
.details-row dd { font-size: 14.5px; }

.green-box {
  margin-top: 20px;
  background: var(--p-green-bg);
  border-radius: var(--radius);
  padding: 14px 18px;
  position: relative;
}
.green-box h3 {
  color: var(--p-green);
  font-size: 15.5px;
  font-weight: 800;
  margin-bottom: 4px;
}
.green-box p { font-size: 14.5px; padding-right: 24px; }
.green-box .chev {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--p-green);
  background: none; border: none;
  display: flex;
}
.footnote { margin-top: 10px; font-size: 12.5px; color: var(--text-2); }

.description-body { font-size: 15.5px; white-space: pre-line; }
.legal-toggle {
  margin-top: 16px;
  border: none;
  background: none;
  color: var(--text-2);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 0;
}
.legal-toggle:hover { color: var(--accent); }
.legal-toggle svg { transition: transform 0.2s ease; }
.legal-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
.legal-body {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 14px 16px;
}
[hidden] { display: none !important; }

/* premium services */
.premium-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  max-width: 420px;
  box-shadow: var(--shadow-card);
  background: #fff;
}
.premium-logo { font-weight: 900; font-size: 17px; color: #003781; font-style: italic; white-space: nowrap; }
.premium-body h3 { font-size: 15.5px; margin-bottom: 2px; }
.premium-body p { font-size: 14px; margin-bottom: 12px; }
.premium-card .btn-outline { width: auto; padding: 8px 22px; }
.werbung { margin-top: 8px; font-size: 11px; color: var(--text-2); letter-spacing: 0.4px; }

/* ---------------- footer ---------------- */
.footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  color: var(--text-2);
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------------- recommendations ---------------- */
.reco { margin-top: 56px; }
.reco-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.reco-head h2 { font-size: 20px; }
.link-btn {
  background: none;
  border: none;
  color: var(--p-blue);
  font-size: 14.5px;
  font-weight: 700;
  padding: 4px 0;
}
.link-btn:hover { text-decoration: underline; }
.reco-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.reco-card {
  background: none;
  border: none;
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reco-card img {
  width: 100%;
  aspect-ratio: 175 / 216;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-2);
  transition: transform 0.2s ease;
}
.reco-card:hover img { transform: scale(1.02); }
.reco-title {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reco-card:hover .reco-title { color: var(--p-blue); }
.reco-price { font-size: 14.5px; font-weight: 800; color: var(--p-blue); }
.reco-free { font-size: 14.5px; font-weight: 800; color: var(--p-blue); }

/* ---------------- current searches ---------------- */
.searches { margin-top: 44px; }
.searches h2 { font-size: 16px; margin-bottom: 10px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.tag-cloud button {
  background: none;
  border: none;
  padding: 2px 0;
  font-size: 13.5px;
  color: var(--text-2);
}
.tag-cloud button:hover { color: var(--p-blue); text-decoration: underline; }

/* ---------------- site footer ---------------- */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
  background: #fff;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer-col h3 { font-size: 15px; margin-bottom: 10px; }
.footer-col .f-link {
  display: block;
  background: none;
  border: none;
  padding: 3px 0;
  font-size: 14px;
  color: var(--text-2);
  text-align: left;
}
.footer-col .f-link:hover { color: var(--p-blue); text-decoration: underline; }
.apps-sub { font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.app-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 7px 14px;
  margin-bottom: 8px;
  color: var(--text);
  transition: border-color 0.15s ease;
}
.app-badge:hover { border-color: var(--p-blue); }
.app-badge span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.app-badge small { font-size: 10.5px; color: var(--text-2); }
.app-badge strong { font-size: 14.5px; }
.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-legal .f-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 12.5px;
  color: var(--text-2);
  text-decoration: none;
}
.footer-legal .f-link:hover { color: var(--p-blue); text-decoration: underline; }
.copyright { font-size: 12.5px; color: var(--text-2); }
.socials { display: flex; gap: 10px; }
.social-btn {
  width: 34px; height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--p-gray);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.social-btn:hover { background: var(--p-blue); color: #fff; }

/* ---------------- toast ---------------- */
.toast-zone {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: #2d3542;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 24px;
  box-shadow: 0 6px 20px rgba(20, 30, 60, 0.25);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--p-green); }

/* ---------------- modal / lightbox ---------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 45, 0.65);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.overlay[hidden] { display: none; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 18px 60px rgba(10, 20, 50, 0.35);
  position: relative;
}
.modal h2 { font-size: 20px; margin-bottom: 6px; padding-right: 30px; }
.modal p { font-size: 14.5px; color: var(--text-2); margin-bottom: 14px; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: none; background: var(--surface-2);
  border-radius: 8px;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--border); }
.modal textarea {
  width: 100%;
  min-height: 110px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: 15px/1.5 var(--font);
  resize: vertical;
  margin-bottom: 14px;
}
.modal textarea:focus { border-color: var(--p-blue); outline: none; }

/* ---------------- checkout modal ---------------- */
.modal.checkout {
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
}
.co-product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.co-product img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.co-p-title { font-weight: 700; font-size: 15px; }
.co-p-price { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.co-h {
  font-size: 15.5px;
  margin: 18px 0 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.co-h-note { font-weight: 400; font-size: 13px; color: var(--text-2); }
.co-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font: 600 14.5px var(--font);
  cursor: pointer;
  text-align: left;
}
.co-row:hover { border-color: var(--p-blue); color: var(--p-blue); }
.co-form { margin-top: 10px; }
.co-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 10px;
}
.co-form input {
  display: block;
  width: 100%;
  margin-top: 4px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: 15px var(--font);
  color: var(--text);
}
.co-form input:focus { border-color: var(--p-blue); outline: none; }
.co-form input.err { border-color: #d54848; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-save { width: auto; margin-top: 4px; }
.co-ship {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
}
.co-ship:hover { border-color: var(--p-blue); }
.co-ship:has(input:checked) { border-color: var(--p-blue); box-shadow: 0 0 0 1px var(--p-blue); }
.co-ship-label { display: flex; align-items: center; gap: 10px; flex: 1; }
.co-ship-label svg { color: var(--p-blue); }
.co-ship-price { color: var(--text-2); font-weight: 600; white-space: nowrap; }
.co-ship-price s { color: #9aa7bd; font-weight: 400; margin-right: 4px; }
.co-ship input[type="radio"] {
  appearance: none;
  width: 20px; height: 20px;
  border: 2px solid #b9c4d6;
  border-radius: 50%;
  margin: 0;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.co-ship input[type="radio"]:checked { border-color: var(--p-blue); }
.co-ship input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--p-blue);
}
.co-rabatt-row { display: flex; gap: 10px; align-items: flex-end; }
.co-rabatt-row input { flex: 1; }
.co-price-rows { border-top: 1px solid var(--border); }
.co-price-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 14.5px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.co-price-row span:last-child { color: var(--text); font-weight: 600; }
.co-info {
  display: flex;
  gap: 12px;
  background: #f0eafb;
  border-radius: var(--radius);
  padding: 14px;
  margin: 14px 0 10px;
  color: #5a4a86;
}
.co-info svg { flex-shrink: 0; margin-top: 2px; }
.co-info p { font-size: 13px; line-height: 1.5; margin: 0; }
.co-agb { font-size: 13px; color: var(--text-2); margin: 0 0 8px; }
.linklike {
  background: none;
  border: none;
  padding: 0;
  color: var(--p-blue);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.co-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 2px solid var(--border);
  font-size: 16px;
  font-weight: 700;
}
.co-total strong { color: var(--p-blue); font-size: 19px; }
.co-pay { width: 100%; font-size: 16px; padding: 13px; }

/* ---------------- payment reminder popup ---------------- */
.pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 28, 45, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pay-overlay[hidden] { display: none; }
.pay-popup {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 60px rgba(10, 20, 50, 0.4);
  padding: 34px 40px 28px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  animation: payPop 0.18s ease-out;
}
@keyframes payPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.pay-icon { color: var(--p-blue); margin-bottom: 14px; }
.pay-msg {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
}
.pay-popup .btn { width: 100%; }

/* ---------------- 404 page ---------------- */
.nf-panel {
  background: #d3effc;
  border-radius: var(--radius-lg);
  margin: 34px 0 60px;
  padding: 64px 24px 56px;
  text-align: center;
}
.nf-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--p-blue);
  font-size: 130px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 26px;
}
.nf-code svg { margin-top: 18px; }
.nf-panel h1 {
  color: var(--p-blue);
  font-size: 27px;
  margin-bottom: 14px;
}
.nf-panel p {
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 28px;
}
.nf-panel .btn { width: auto; padding: 13px 30px; font-size: 15.5px; }
@media (max-width: 560px) {
  .nf-code { font-size: 84px; }
  .nf-code svg { width: 76px; height: 76px; }
  .nf-panel { padding: 44px 16px 40px; }
}
.lightbox {
  background: rgba(12, 16, 28, 0.92);
  padding: 0;
}
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
}
.lightbox .lb-btn {
  position: fixed;
  width: 46px; height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-btn:hover { background: rgba(255,255,255,0.3); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: fixed;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-body { background: var(--surface-2); }
.admin-wrap { max-width: 760px; margin: 0 auto; padding: 28px 20px 80px; }
.admin-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.admin-head h1 { font-size: 24px; }
.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}
.admin-card h2 { font-size: 17px; margin-bottom: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}
.field input[type='text'],
.field input[type='number'],
.field input[type='password'],
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: 15px/1.5 var(--font);
  color: var(--text);
  background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--p-blue);
  outline: none;
}
.field .hint { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.admin-images { display: flex; flex-direction: column; gap: 12px; }
.img-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
}
.img-row.cover { border-color: var(--p-blue); }
.img-row img {
  width: 84px; height: 64px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-2);
  flex-shrink: 0;
}
.img-row .img-meta { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text-2); }
.img-row .img-meta .cover-tag {
  display: inline-block;
  background: var(--p-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 8px;
  margin-left: 6px;
}
.img-row .img-actions { display: flex; gap: 6px; }
.mini-btn {
  width: 34px; height: 34px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 8px;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.mini-btn:hover { border-color: var(--p-blue); color: var(--p-blue); }
.mini-btn.danger:hover { border-color: #d44; color: #d44; }
.mini-btn[disabled] { opacity: 0.4; cursor: default; }
.mini-btn[disabled]:hover { border-color: var(--border); color: var(--text); }

.dropzone {
  border: 2px dashed var(--p-blue);
  border-radius: var(--radius);
  background: #f2fbff;
  padding: 26px;
  text-align: center;
  color: var(--p-blue-dark);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.dropzone:hover, .dropzone.drag { background: #e2f5ff; }
.dropzone span { display: block; font-weight: 400; font-size: 13px; color: var(--text-2); margin-top: 4px; }

.admin-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-actions .btn { width: auto; }
.btn-danger {
  background: none; border: none;
  color: #c0392b;
  font-weight: 700;
  font-size: 14px;
  margin-left: auto;
  padding: 8px 4px;
}
.btn-danger:hover { text-decoration: underline; }
.login-card { max-width: 420px; margin: 80px auto 0; }

/* admin tabs */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.admin-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 10px 18px 9px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-2);
}
.admin-tab:hover { color: var(--accent); }
.admin-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* logo editor */
.logo-edit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo-preview {
  min-width: 160px;
  min-height: 56px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
}
.logo-preview img { max-height: 48px; width: auto; }
.favicon-preview {
  width: 56px;
  height: 56px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.favicon-preview img { width: 32px; height: 32px; }
.logo-edit-actions { display: flex; align-items: center; gap: 8px; }

/* ---------------- admin: customers ---------------- */
.cust-badge {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  margin-left: 6px;
  border-radius: 10px;
  background: var(--p-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.customer-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.customer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.customer-head strong { font-size: 15px; }
.customer-date { color: var(--text-2); font-size: 13px; flex: 1; }
.customer-body { padding: 8px 14px 12px; }
.customer-row {
  display: flex;
  gap: 14px;
  padding: 5px 0;
  font-size: 14px;
}
.customer-row span:first-child {
  flex: 0 0 90px;
  color: var(--text-2);
  font-weight: 600;
}
.prod-url {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 400;
}
.prod-url a {
  color: var(--p-blue);
  text-decoration: none;
  word-break: break-all;
}
.prod-url a:hover { text-decoration: underline; }
.prod-url .mini-btn { padding: 2px 8px; font-size: 12px; flex-shrink: 0; }

/* ---------------- responsive ---------------- */
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: var(--p-blue);
  cursor: pointer;
  border-radius: 6px;
}
.menu-btn:hover { background: var(--panel); }
@media (max-width: 940px) {
  .menu-btn { display: inline-flex; }
  .product-grid { grid-template-columns: 1fr; }
  .side-col { max-width: 560px; }
  .title-row h1 { font-size: 24px; }
  .catnav-inner { gap: 24px; padding-left: 0; }
  .logo { margin-bottom: 0; margin-top: 0; align-self: center; }
  .topbar-inner { align-items: center; }
  .meta-row { justify-content: flex-start; }
  .topbar-actions { gap: 12px; }
  .topbar-link .lbl { display: none; }
  .auth-sep { display: none; }
  .btn-orange .lbl { display: none; }
  .details-table { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .reco-row { display: flex; overflow-x: auto; padding-bottom: 6px; }
  .reco-card { flex: 0 0 150px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
}

@media print {
  .topbar, .catnav, .icon-actions, .thumbs, .side-col, .site-footer, .reco, .searches, .toast-zone { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
