/* ============================================================
   Fine Arms Airsoft — Shop CSS
   FineArmsTheme design 1:1 + shop component styles
   ============================================================ */

/* ── Lokale Fonts (kein Google-CDN → DSGVO-konform) ── */
@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap; src: url('/public/fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-style: normal; font-display: swap; src: url('/public/fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap; src: url('/public/fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-style: normal; font-display: swap; src: url('/public/fonts/barlow-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 800; font-style: normal; font-display: swap; src: url('/public/fonts/barlow-800.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-weight: 500; font-style: normal; font-display: swap; src: url('/public/fonts/rajdhani-500.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-weight: 600; font-style: normal; font-display: swap; src: url('/public/fonts/rajdhani-600.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-weight: 700; font-style: normal; font-display: swap; src: url('/public/fonts/rajdhani-700.woff2') format('woff2'); }

/* ── Einschussloch-Animation ── */
@keyframes bulletHolePop {
  0%   { opacity: 0; transform: scale(0); }
  60%  { opacity: 1; transform: scale(1.25); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── Design tokens (FineArmsTheme) ── */
:root {
  --fa-bg:          #eef2f5;
  --fa-paper:       #ffffff;
  --fa-ink:         #12161c;
  --fa-muted:       #637080;
  --fa-brand:       #c8a43e;
  --fa-brand-dark:  #80631c;
  --fa-brand-soft:  #f5efd8;
  --fa-line:        #d9e0e8;
  --fa-dark:        #111722;
  --fa-shadow:      0 10px 28px rgba(14,21,32,.10);
  --fa-shadow-soft: 0 3px 14px rgba(14,21,32,.08);

  /* backward-compat aliases (routes use these) */
  --gold:        var(--fa-brand);
  --gold-dk:     var(--fa-brand-dark);
  --dark:        var(--fa-dark);
  --dark2:       #18202e;
  --dark3:       #1e2840;
  --bg:          var(--fa-bg);
  --bg2:         #e8eef4;
  --text:        var(--fa-ink);
  --muted:       var(--fa-muted);
  --border:      var(--fa-line);
  --radius:      8px;
  --shadow:      var(--fa-shadow-soft);
  --shadow-hover:var(--fa-shadow);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font: 16px/1.45 "Barlow", "Segoe UI", Arial, sans-serif;
  color: var(--fa-ink);
  background: var(--fa-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--fa-brand-dark); }

img { display: block; max-width: 100%; height: auto; }

ul, ol { list-style: none; }

button { cursor: pointer; font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 {
  margin: 0 0 .65rem;
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(1.9rem, 1.25rem + 1.6vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.15rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 32px);
  box-sizing: border-box;
}

.finearms-main {
  display: block;
  width: 100%;
  min-height: 60vh;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header.finearms-site-header {
  background: var(--fa-paper);
  border-bottom: 1px solid var(--fa-line);
  position: sticky;
  top: 0;
  z-index: 80;
}

/* Top row: [Logo+Gewehr] | [Scope+InlineSuche] | spacer | [Konto+Warenkorb] */
.top-head {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  position: relative;
  overflow: visible;
  column-gap: .5rem;
  align-items: center;
}

/* Logo + Gewehr als eine Einheit */
.brand-rifle-unit {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: visible;
}

.header-rifle-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  user-select: none;
  margin-left: .5rem;
}
.header-rifle-img {
  height: 84px;
  width: auto;
  display: block;
  transform: translateY(-12px);
}

/* Search toggle button */
.head-action-search {
  min-width: 40px;
}

/* Brand */
.brand {
  color: var(--fa-brand);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  line-height: .9;
  width: 100%;
}

.brand:hover { color: var(--fa-brand); }

.brand-primary {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
}

.brand-main {
  font: 800 1.9rem/.9 "Rajdhani", "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.03em;
}

.brand-sub {
  color: #7a8491;
  font: 800 .78rem/1 "Rajdhani", "Segoe UI", Arial, sans-serif;
  letter-spacing: .17em;
  margin-top: .32rem;
  text-transform: uppercase;
}

/* Search — scope button + inline-expanding field */
.search-menu {
  display: inline-flex;
  align-items: center;
  gap: 0;
  position: relative;
}

/* Suchfeld klappt seitlich aus dem Scope-Button heraus */
.search-inline {
  display: flex;
  align-items: center;
  width: 0;
  overflow: hidden;
  transition: width 0.28s ease;
}

.search-menu.is-open .search-inline {
  width: 220px;
}

.search-inline input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--fa-line);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: .42rem .7rem;
  font: inherit;
  font-size: .88rem;
  background: #fff;
  color: var(--fa-ink);
  outline: none;
}

.search-inline input:focus {
  border-color: var(--fa-brand);
}

.search-inline button[type="submit"] {
  border: 1px solid var(--fa-brand);
  border-radius: 0 8px 8px 0;
  background: var(--fa-brand);
  color: #1f1808;
  padding: .42rem .7rem;
  font: 700 1rem "Rajdhani", "Segoe UI", Arial, sans-serif;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Head actions area */
.head-actions {
  display: flex;
  align-items: stretch;
  gap: .45rem;
  justify-self: end;
  margin-right: -.15rem;
}

.head-action {
  border: 1px solid var(--fa-line);
  border-radius: 8px;
  background: #fff;
  color: #465260;
  font: 750 .88rem "Rajdhani", "Segoe UI", Arial, sans-serif;
  min-height: 40px;
  padding: .48rem .72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  white-space: nowrap;
  text-decoration: none;
}

.head-action:hover {
  border-color: var(--fa-brand);
  color: var(--fa-brand-dark);
}

.head-action-account { min-width: 130px; }

.cart-info { display: inline-flex; align-items: center; gap: .3rem; }
.cart-count { font-weight: 800; }
.cart-label { font-size: .8rem; color: var(--fa-muted); }

/* Account dropdown */
.account-menu {
  position: relative;
  display: inline-flex;
  z-index: 140;
}

.account-toggle { cursor: pointer; }

.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--fa-line);
  border-radius: 8px;
  box-shadow: var(--fa-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 170ms ease, transform 170ms ease, visibility 170ms ease;
  z-index: 150;
}

.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown,
.account-menu.is-open .account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-dropdown a {
  display: block;
  padding: .6rem .75rem;
  color: #66707c;
  font-size: .9rem;
}

.account-dropdown a:hover {
  background: #f5f7fa;
  color: var(--fa-brand-dark);
}

/* Mobile nav bar */
.mobile-nav-bar {
  display: none;
  background: var(--fa-dark);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 2px solid var(--fa-brand);
}

.mobile-nav-bar .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 44px;
  gap: .45rem;
}

.mobile-nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: none;
  border: none;
  color: #eff3f8;
  font: 700 .9rem "Rajdhani", "Segoe UI", Arial, sans-serif;
  padding: .3rem 0;
}

.hamburger-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.hamburger-icon span {
  display: block;
  width: 20px;
  height: 2px;
  background: #eff3f8;
  border-radius: 2px;
}

.mobile-service-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-height: 36px;
  padding: .42rem .62rem;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 8px;
  color: var(--fa-brand);
  font: 760 .84rem "Rajdhani", "Segoe UI", Arial, sans-serif;
  white-space: nowrap;
}

.mobile-service-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}

/* Mobile nav panel */
.mobile-nav-panel {
  display: none;
  background: #fff;
  border-bottom: 2px solid var(--fa-brand);
  box-shadow: 0 14px 28px rgba(14, 21, 32, .16);
}

.mobile-nav-panel.is-open {
  display: block;
}

.mobile-nav-inner {
  display: grid;
  gap: .85rem;
  padding: .95rem 0 1.05rem;
}

.mobile-nav-inner strong {
  display: block;
  color: var(--fa-brand-dark);
  font: 800 .92rem "Rajdhani", "Segoe UI", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .35rem;
}

.mobile-nav-inner a {
  display: block;
  border: 1px solid var(--fa-line);
  border-radius: 8px;
  color: #354253;
  padding: .68rem .8rem;
  margin-bottom: .35rem;
  font-weight: 700;
}

.mobile-nav-inner a:hover {
  border-color: var(--fa-brand);
  color: var(--fa-brand-dark);
  background: var(--fa-brand-soft);
}

/* Desktop main nav (dark bar) */
.main-nav-wrap { background: var(--fa-dark); overflow: visible; border-top: 0; border-bottom: 0; }
.shop-tabs-wrap { position: relative; }

.main-nav {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: .1rem;
  flex-wrap: nowrap;
  overflow: visible;
}

.main-nav > a,
.main-nav > .service-menu {
  flex: 1 1 0;
}

.main-nav > a,
.service-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .84rem .95rem;
  color: #eff3f8;
  font: 800 .95rem "Rajdhani", "Segoe UI", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .02em;
  border: 0;
  border-radius: 8px;
  background: transparent;
  width: 100%;
  white-space: nowrap;
}

.main-nav > a:hover,
.service-trigger:hover {
  background: var(--fa-brand);
  color: #1f1808;
}

.service-menu { position: relative; margin-left: 0; margin-right: 0; }

.service-trigger { cursor: pointer; color: var(--fa-brand); }

.service-dropdown {
  position: absolute;
  right: 0;
  left: auto;
  top: calc(100% + 2px);
  min-width: 320px;
  background: #111722;
  border: 1px solid #2b3a4f;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(7, 12, 19, .55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 170ms ease, transform 170ms ease, visibility 170ms ease;
  z-index: 100;
}

.service-menu:hover .service-dropdown,
.service-menu:focus-within .service-dropdown,
.service-menu.is-open .service-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.service-dropdown a {
  display: block;
  padding: .6rem .75rem;
  color: #eef3fb;
  font-size: .9rem;
  background: transparent;
}

.service-dropdown a + a {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.service-dropdown a:hover {
  background: #1d2736;
  color: #ffffff;
}

/* Shop tabs */
.shop-tabs-wrap {
  background: #fff;
  border-bottom: 2px solid var(--fa-brand);
}

.shop-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
}

.shop-tab {
  flex: 1;
  text-align: center;
  border: 0;
  background: transparent;
  color: #677381;
  font: 800 .9rem "Rajdhani", "Segoe UI", Arial, sans-serif;
  padding: .8rem 0;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.shop-tab:hover,
.shop-tab.is-active {
  background: #8f8f8f;
  color: #fff;
}

.shop-tab.is-highlight {
  background: var(--fa-brand);
  color: #1f1808;
}

.shop-tab.is-highlight:hover {
  background: #d4b64d;
  color: #1f1808;
}

/* Mega menu */
.mega-menu {
  position: absolute;
  left: 50%;
  width: min(1040px, calc(100vw - 3rem));
  top: 100%;
  background: #fff;
  border: 1px solid #d9dfe6;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 16px 30px rgba(24, 38, 54, .16);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  z-index: 70;
  overflow: hidden;
}

.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mega-menu-head {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #7f8388;
  color: #fff;
  padding: .55rem 3rem .55rem .85rem;
  margin-bottom: 0;
  position: relative;
}

.mega-lead-link {
  color: #fff;
  font-weight: 800;
  text-align: center;
  width: 100%;
}

.mega-lead-link:hover { color: #fff; text-decoration: underline; }

.mega-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  position: absolute;
  right: .45rem;
  top: 50%;
  transform: translateY(-50%);
}

.mega-panel { display: none; }
.mega-panel.is-active { display: block; }

.mega-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 1rem 1.15rem 1.1rem;
}

.mega-cols h3 {
  color: #636b76;
  font-size: 1rem;
  margin-bottom: .4rem;
}

.mega-cols a {
  display: block;
  color: #7b828b;
  padding: .2rem 0;
  font-size: .88rem;
}

.mega-cols a:hover {
  color: var(--fa-brand-dark);
  text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer.finearms-site-footer {
  background: var(--fa-dark);
  color: #dbe2ec;
  border-top: 0;
  margin-top: auto;
}

.site-footer.finearms-site-footer .container {
  padding: .7rem clamp(12px, 3vw, 32px) .65rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.4rem;
}

.footer-block { background: transparent; }

.footer-grid h3 {
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: .5rem;
}

.footer-grid p {
  color: #aeb8c6;
  font-size: .88rem;
  margin-bottom: .3rem;
}

.footer-grid a { color: #dbe2ec; }
.footer-grid a:hover { color: var(--fa-brand); }

.footer-hotline {
  font-size: 1.22rem;
  font-weight: 850;
  color: #fff !important;
  margin: .25rem 0;
}

.footer-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  overflow: hidden;
  border-radius: 8px;
  margin-top: .5rem;
}

.footer-newsletter input {
  border: 0;
  margin: 0;
  border-radius: 0;
  background: #fff;
  padding: .55rem .65rem;
  font: inherit;
  font-size: .88rem;
}

.footer-newsletter button {
  border: 0;
  background: var(--fa-brand);
  color: #1f1808;
  font-size: 1.1rem;
  cursor: pointer;
}

.footer-note {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: .8rem;
  padding-top: .8rem;
  color: #aeb8c6;
  font-size: .82rem;
}

.footer-note p { margin: 0; color: #aeb8c6; }
.footer-note a { color: var(--fa-brand); }

/* Widerruf-Button im Footer (EU-Pflicht ab 19.06.2026) */
.footer-revoke-btn {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--fa-brand);
  border-radius: 4px;
  color: var(--fa-brand) !important;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .03em;
  transition: background .2s, color .2s;
}
.footer-revoke-btn:hover {
  background: var(--fa-brand);
  color: #000 !important;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */

.flash {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  border: 1px solid;
  margin-bottom: 16px;
}

.flash.ok {
  background: #e6f7ec;
  color: #14532d;
  border-color: #86efac;
}

.flash.error {
  background: #fde8e8;
  color: #7f1d1d;
  border-color: #fca5a5;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: .52rem 1.1rem;
  border-radius: 8px;
  font: 800 .88rem/1 "Rajdhani", "Segoe UI", Arial, sans-serif;
  letter-spacing: .01em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-gold {
  background: var(--fa-brand);
  color: #1f1808;
  border-color: var(--fa-line);
  box-shadow: var(--fa-shadow-soft);
}

.btn-gold:hover {
  background: #d4b64d;
  color: #1f1808;
  transform: translateY(-1px);
  box-shadow: var(--fa-shadow);
}

.btn-outline {
  background: transparent;
  color: var(--fa-brand);
  border-color: var(--fa-brand);
}

.btn-outline:hover {
  background: var(--fa-brand);
  color: #1f1808;
}

.btn-dark {
  background: var(--fa-dark);
  color: #fff;
  border-color: var(--fa-dark);
}

.btn-dark:hover {
  background: #1e2840;
  color: #fff;
}

.btn-ghost {
  background: #eef2f7;
  color: var(--fa-ink);
  border-color: var(--fa-line);
}

.btn-ghost:hover {
  background: #e4eaf1;
  color: var(--fa-brand-dark);
}

.btn-danger {
  background: transparent;
  color: #b91c1c;
  border-color: #fca5a5;
  font-size: .8rem;
  padding: 6px 12px;
  min-height: 32px;
}

.btn-danger:hover { background: #fde8e8; }

.btn-sm { padding: .4rem .85rem; font-size: .84rem; min-height: 34px; }
.btn-lg { padding: .72rem 1.6rem; font-size: 1rem; min-height: 48px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============================================================
   FORMS
   ============================================================ */

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fa-muted);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea {
  border: 1px solid var(--fa-line);
  border-radius: 8px;
  background: #fff;
  color: var(--fa-ink);
  font: inherit;
  padding: .55rem .8rem;
  transition: border-color .18s;
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  font-size: .95rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--fa-brand);
  box-shadow: 0 0 0 3px rgba(200,164,62,.12);
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-hint {
  font-size: .78rem;
  color: var(--fa-muted);
  margin-top: 4px;
}

/* ============================================================
   HERO (home)
   ============================================================ */

.hero {
  background: linear-gradient(135deg, #141a24 0%, #263246 58%, #816621 100%);
  color: #f1f5fa;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 3rem);
}

.hero-inner { max-width: 640px; }

.hero-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--fa-brand);
  margin-bottom: 10px;
}

.hero h1 { color: #f1f5fa; margin-bottom: 14px; }
.hero h1 span { color: var(--fa-brand); }

.hero-sub {
  color: #dce4ee;
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Trust strip ── */
.trust-strip {
  background: var(--fa-dark);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.trust-item {
  color: #aeb8c6;
  font-size: .85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.trust-item strong {
  display: block;
  color: #eff3f8;
  font-size: .9rem;
}

/* ── Section ── */
.section { padding: 52px 0; }

.section-dark {
  background: var(--fa-dark);
  color: #eff3f8;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.section-header h2 { color: var(--fa-ink); }
.section-dark .section-header h2 { color: #eff3f8; }

.section-header a {
  font-size: .9rem;
  color: var(--fa-brand);
  font-weight: 600;
  white-space: nowrap;
}

.section-title-gold { color: var(--fa-brand); }

/* ── Category chips ── */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: .875rem;
  font-weight: 500;
  border: 1px solid var(--fa-line);
  background: #fff;
  color: var(--fa-ink);
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
}

.chip:hover,
.chip.active {
  background: var(--fa-brand);
  border-color: var(--fa-brand);
  color: #1f1808;
}

/* ── Category grid ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.category-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--fa-line);
  box-shadow: var(--fa-shadow-soft);
  padding: 28px 20px;
  text-align: center;
  transition: all .2s;
  font: 800 1rem/1 "Rajdhani", "Segoe UI", Arial, sans-serif;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--fa-ink);
}

.category-card:hover {
  border-color: var(--fa-brand);
  color: var(--fa-brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--fa-shadow);
}

/* ── Product grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--fa-line);
  box-shadow: var(--fa-shadow-soft);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  color: var(--fa-ink);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--fa-shadow);
}

.product-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f4f8;
  position: relative;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.product-card:hover .product-card-img img { transform: scale(1.04); }

.product-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 2.5rem/1 "Rajdhani", "Segoe UI", Arial, sans-serif;
  color: #b0bbc8;
  background: #f0f4f8;
}

.product-card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
  min-width: 0;
}

.product-card-name {
  font: 700 1rem/1.25 "Rajdhani", "Segoe UI", Arial, sans-serif;
  color: var(--fa-ink);
  word-break: break-word;
  overflow-wrap: break-word;
}

.product-card-short {
  font-size: .83rem;
  color: var(--fa-muted);
  line-height: 1.4;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--fa-line);
  gap: 10px;
}

.product-price {
  font: 700 1.25rem/1 "Rajdhani", "Segoe UI", Arial, sans-serif;
  color: var(--fa-brand-dark);
}

.product-price-pseudo {
  font-size: .8rem;
  color: var(--fa-muted);
  text-decoration: line-through;
  margin-left: 4px;
}

/* ── Stock badge ── */
.badge-stock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 50px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.badge-stock.in  { background: #e6f7ec; color: #1a7c3a; }
.badge-stock.low { background: #fff3e0; color: #b45309; }
.badge-stock.out { background: #fde8e8; color: #b91c1c; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--fa-muted);
  padding: 16px 0 8px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--fa-brand); }
.breadcrumb-sep { color: #b0bbc8; }

/* ── Product detail ── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 36px 0;
}

.gallery-main {
  aspect-ratio: 4/3;
  background: #f0f4f8;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--fa-line);
}

.gallery-main img { width: 100%; height: 100%; object-fit: contain; }

.gallery-main-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 4rem/1 "Rajdhani", "Segoe UI", Arial, sans-serif;
  color: #b0bbc8;
}

.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }

.gallery-thumb {
  width: 70px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--fa-line);
  cursor: pointer;
  transition: border-color .2s;
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--fa-brand); }

.product-info-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 10px;
}

.product-info-sku { font-size: .8rem; color: var(--fa-muted); margin-bottom: 14px; }

.product-info-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.product-info-price .price-main {
  font: 700 2rem/1 "Rajdhani", "Segoe UI", Arial, sans-serif;
  color: var(--fa-brand-dark);
}

.product-info-price .price-pseudo {
  font-size: 1rem;
  color: var(--fa-muted);
  text-decoration: line-through;
}

.product-tax-note { font-size: .78rem; color: var(--fa-muted); margin-bottom: 18px; }

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: #f0f4f8;
  border-radius: 8px;
  border: 1px solid var(--fa-line);
  margin-bottom: 20px;
  font-size: .875rem;
}

.product-meta-row { display: flex; justify-content: space-between; gap: 8px; }
.product-meta-label { color: var(--fa-muted); }
.product-meta-value { font-weight: 500; }

.product-add-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.product-add-form .qty-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qty-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--fa-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.qty-input {
  width: 80px;
  padding: 10px 12px;
  border: 1px solid var(--fa-line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  text-align: center;
}

.qty-input:focus { outline: none; border-color: var(--fa-brand); }

.product-desc { border-top: 1px solid var(--fa-line); padding-top: 22px; }

.product-desc h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fa-muted);
}

.product-desc-text {
  font-size: .9rem;
  color: var(--fa-ink);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* ── Cart ── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
  padding: 36px 0;
}

.cart-table { width: 100%; border-collapse: collapse; }

.cart-table th {
  text-align: left;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fa-muted);
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 2px solid var(--fa-line);
}

.cart-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--fa-line);
  vertical-align: middle;
}

.cart-item-img {
  width: 64px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f4f8;
  flex-shrink: 0;
}

.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { display: flex; align-items: center; gap: 14px; }
.cart-item-name { font-weight: 500; font-size: .95rem; }
.cart-item-sku { font-size: .78rem; color: var(--fa-muted); }

.cart-qty {
  width: 72px;
  padding: 8px 8px;
  border: 1px solid var(--fa-line);
  border-radius: 8px;
  text-align: center;
  font-family: inherit;
  font-size: 1rem;
  min-height: 40px;
}

/* Cart-Spalten: Standardausrichtung */
.cart-table .col-image  { width: 80px; }
.cart-table .col-price  { white-space: nowrap; text-align: right; }
.cart-table .col-qty    { width: 96px; }
.cart-table .col-total  { white-space: nowrap; text-align: right; font-weight: 600; }
.cart-table .col-remove { width: 50px; text-align: right; }

.cart-remove-btn {
  min-width: 36px;
  min-height: 36px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-price { font-weight: 600; white-space: nowrap; }

.cart-summary {
  background: #fff;
  border: 1px solid var(--fa-line);
  border-radius: 12px;
  box-shadow: var(--fa-shadow-soft);
  padding: 22px;
  position: sticky;
  top: 96px;
}

.cart-summary h3 {
  margin-bottom: 18px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: .9rem;
  color: var(--fa-muted);
  border-bottom: 1px solid var(--fa-line);
}

.summary-row:last-of-type { border-bottom: none; }

.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 18px;
  font: 700 1.2rem/1 "Rajdhani", "Segoe UI", Arial, sans-serif;
}

.summary-total .total-price { color: var(--fa-brand-dark); }

.cart-empty { text-align: center; padding: 80px 0; }
.cart-empty h2 { margin-bottom: 12px; color: var(--fa-muted); }

/* ── Checkout ── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
  padding: 36px 0;
}

.checkout-section {
  background: #fff;
  border: 1px solid var(--fa-line);
  border-radius: 12px;
  box-shadow: var(--fa-shadow-soft);
  padding: 24px;
  margin-bottom: 18px;
}

/* Submit-Button im Checkout: vollbreit, lesbar */
#checkout-submit { font-size: 1rem; line-height: 1.35; padding: 14px 16px; white-space: normal; word-break: break-word; }

.checkout-section h3 {
  margin-bottom: 18px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fa-muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fa-line);
}

.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--fa-line);
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .2s;
}

.payment-option:has(input:checked) {
  border-color: var(--fa-brand);
  background: var(--fa-brand-soft);
}

.payment-option input[type="radio"] { margin-top: 2px; accent-color: var(--fa-brand); }
.payment-option-label { font-weight: 500; font-size: .9rem; }
.payment-option-desc { font-size: .78rem; color: var(--fa-muted); margin-top: 2px; }

/* AGB/Widerruf Checkbox */
.checkout-agb-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: .875rem;
  line-height: 1.45;
}
.checkout-agb-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--fa-brand);
  cursor: pointer;
}
.checkout-agb-label span { color: var(--fa-text); }
.checkout-agb-label a { color: var(--fa-brand); }
.checkout-agb-label a:hover { text-decoration: underline; }

/* ── Account ── */
.account-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
  padding: 36px 0;
}

.account-nav {
  background: #fff;
  border: 1px solid var(--fa-line);
  border-radius: 12px;
  box-shadow: var(--fa-shadow-soft);
  overflow: hidden;
  position: sticky;
  top: 96px;
}

.account-nav a {
  display: block;
  padding: 12px 18px;
  font-size: .9rem;
  border-bottom: 1px solid var(--fa-line);
  color: var(--fa-ink);
  transition: background .15s, color .15s;
}

.account-nav a:last-child { border-bottom: none; }
.account-nav a:hover { background: #f0f4f8; }
.account-nav a.active { color: var(--fa-brand-dark); font-weight: 700; }

.account-card {
  background: #fff;
  border: 1px solid var(--fa-line);
  border-radius: 12px;
  box-shadow: var(--fa-shadow-soft);
  padding: 24px;
  margin-bottom: 18px;
}

.acct-customer-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}
.acct-customer-info {
  flex-shrink: 0;
  min-width: 200px;
}
.acct-divider {
  width: 1px;
  background: var(--fa-line);
  align-self: stretch;
  flex-shrink: 0;
}
.acct-rec-section {
  flex: 1;
  min-width: 0;
}
.acct-rec-grid {
  display: flex;
  gap: 12px;
}
.acct-rec-card:hover {
  box-shadow: 0 4px 16px rgba(14,21,32,.12);
  border-color: var(--fa-brand) !important;
}

.account-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fa-muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fa-line);
  margin-bottom: 18px;
}

/* Hide/show helpers */
.hide-mobile { display: table-cell; }
.show-mobile { display: none; }

/* Order history */
.orders-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.orders-table { width: 100%; border-collapse: collapse; font-size: .875rem; }

.orders-table th {
  text-align: left;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fa-muted);
  padding: 8px 10px;
  border-bottom: 2px solid var(--fa-line);
}

.orders-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--fa-line);
  vertical-align: middle;
}

/* Order status badges */
.order-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--fa-line);
  color: var(--fa-muted);
}
.order-status--paid,
.order-status--shipped,
.order-status--delivered { background: #e8f5e9; color: #2e7d32; }
.order-status--new,
.order-status--processing { background: #fff8e1; color: #e65100; }
.order-status--cancelled,
.order-status--widerruf { background: #fce4ec; color: #c62828; }
.order-status--refunded { background: #e3f2fd; color: #1565c0; }

/* ── Auth forms ── */
.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--fa-line);
  border-radius: 12px;
  box-shadow: var(--fa-shadow);
  padding: 40px;
  width: 100%;
  max-width: 440px;
}

.auth-card h1 { font-size: 1.6rem; margin-bottom: 8px; }

.auth-card p.auth-sub {
  color: var(--fa-muted);
  font-size: .9rem;
  margin-bottom: 26px;
}

.auth-footer {
  margin-top: 18px;
  text-align: center;
  font-size: .875rem;
  color: var(--fa-muted);
}

.auth-footer a { color: var(--fa-brand); font-weight: 600; }

/* ── Static pages ── */
.page-wrap { padding: 44px 0; }

.page-content {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--fa-line);
  border-radius: 12px;
  box-shadow: var(--fa-shadow-soft);
  padding: 36px 44px;
}

.page-content h1 { margin-bottom: 8px; }

.page-content .page-intro {
  color: var(--fa-muted);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--fa-line);
}

.page-content h2 { font-size: 1.2rem; margin-top: 26px; margin-bottom: 10px; }

.page-content p {
  font-size: .95rem;
  line-height: 1.7;
  color: #333;
}

.page-content ul {
  list-style: disc;
  padding-left: 20px;
  font-size: .95rem;
  line-height: 1.8;
  color: #333;
}

.page-content ul li { margin-bottom: 4px; }

.faq-item { border-bottom: 1px solid var(--fa-line); padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }

.faq-q {
  font: 700 1.05rem/1 "Rajdhani", "Segoe UI", Arial, sans-serif;
  margin-bottom: 6px;
}

.faq-a { font-size: .9rem; color: #444; line-height: 1.6; }

/* ── Thank you page ── */
.thankyou-wrap { text-align: center; padding: 80px 20px; }

.thankyou-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e6f7ec;
  color: #1a7c3a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
}

.thankyou-order {
  display: inline-block;
  background: #f0f4f8;
  border: 1px solid var(--fa-line);
  border-radius: 8px;
  padding: 12px 28px;
  font: 700 1.4rem/1 "Rajdhani", "Segoe UI", Arial, sans-serif;
  color: var(--fa-brand-dark);
  letter-spacing: .06em;
  margin: 16px 0 28px;
}

/* ── CTA section ── */
.cta-section {
  background: linear-gradient(135deg, #141a24 0%, #1a2130 100%);
  color: #f1f5fa;
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 { color: #f1f5fa; margin-bottom: 10px; }
.cta-section p { color: #aeb8c6; margin-bottom: 24px; font-size: 1.05rem; }

/* ── Pagination ── */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--fa-line);
  font-size: .875rem;
  transition: all .2s;
  background: #fff;
}

.pagination a:hover { border-color: var(--fa-brand); color: var(--fa-brand-dark); }
.pagination .active { background: var(--fa-brand); color: #1f1808; border-color: var(--fa-brand); font-weight: 700; }
.pagination .disabled { color: #b0bbc8; cursor: default; background: transparent; }

/* ── Shop category landing ── */
.shop-search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 560px;
}

.shop-search-bar input {
  flex: 1;
  border: 1px solid var(--fa-line);
  border-radius: 8px;
  padding: .56rem .9rem;
  font: inherit;
  font-size: .95rem;
  background: #fff;
}

.shop-search-bar input:focus {
  outline: none;
  border-color: var(--fa-brand);
}

.shop-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.shop-cat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--fa-line);
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--fa-ink);
  font-size: .93rem;
  font-weight: 600;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.shop-cat-card:hover {
  border-color: var(--fa-brand);
  background: var(--fa-brand-soft);
  color: var(--fa-brand-dark);
  box-shadow: var(--fa-shadow-soft);
}

.shop-cat-name { flex: 1; }

.shop-cat-arrow {
  color: var(--fa-brand);
  font-size: 1rem;
  margin-left: 8px;
  flex-shrink: 0;
}

/* ── Shop filter sidebar ── */
.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 28px 0;
}

.shop-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--fa-line) transparent;
}

.sidebar-box {
  background: #fff;
  border: 1px solid var(--fa-line);
  border-radius: 12px;
  box-shadow: var(--fa-shadow-soft);
  overflow: hidden;
}

.sidebar-box h3 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--fa-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--fa-line);
  font-weight: 600;
  margin: 0;
}

.sidebar-box a {
  display: block;
  padding: 9px 16px;
  font-size: .875rem;
  color: var(--fa-ink);
  border-bottom: 1px solid var(--fa-line);
  transition: background .15s, color .15s;
}

.sidebar-box a:last-child { border-bottom: none; }
.sidebar-box a:hover { background: #f0f4f8; }
.sidebar-box a.active {
  color: var(--fa-brand-dark);
  font-weight: 700;
  background: var(--fa-brand-soft);
}

/* Hierarchische Sidebar */
.sidebar-main-cat {
  font-weight: 600;
  color: var(--fa-ink);
}

/* Toggle-Button als sidebar-main-cat */
button.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  padding: 10px 14px;
}

.sidebar-arrow {
  transition: transform .2s ease;
  flex-shrink: 0;
  margin-left: 6px;
}

button.sidebar-toggle[aria-expanded="true"] .sidebar-arrow {
  transform: rotate(180deg);
}

/* Untergruppe: eingeklappt */
.sidebar-child-group {
  overflow: hidden;
  max-height: 0;
  transition: max-height .25s ease;
}

/* Untergruppe: ausgeklappt */
.sidebar-child-group.open {
  max-height: 600px;
}

.sidebar-sub-cat {
  padding-left: 28px !important;
  font-size: .84rem !important;
  color: var(--fa-muted);
  border-bottom-style: dashed !important;
}

.sidebar-sub-cat:hover { color: var(--fa-brand-dark); }
.sidebar-sub-cat.active { color: var(--fa-brand-dark); font-weight: 600; }

.shop-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}

.shop-count { font-size: .85rem; color: var(--fa-muted); }

/* Shop toolbar: sort + items per page */
.shop-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-select-wrap { display: flex; align-items: center; }

.shop-select {
  border: 1px solid var(--fa-line);
  border-radius: 8px;
  background: #fff;
  padding: .38rem .64rem;
  font: 500 .85rem "Barlow", sans-serif;
  color: var(--fa-ink);
  cursor: pointer;
  appearance: auto;
}

.shop-select:focus { outline: none; border-color: var(--fa-brand); }

/* sr-only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* NEU badge on product card image */
.badge-new {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--fa-brand);
  color: #1f1808;
  font: 700 .7rem "Rajdhani", sans-serif;
  letter-spacing: .08em;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}

.search-form { display: flex; gap: 8px; }

.search-form input {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--fa-line);
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  background: #fff;
}

.search-form input:focus { outline: none; border-color: var(--fa-brand); }

/* ── Page title bar ── */
.page-bar {
  background: var(--fa-dark);
  color: #eff3f8;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.page-bar h1 { font-size: 1.6rem; color: #eff3f8; margin-bottom: 4px; }
.page-bar p { color: #aeb8c6; font-size: .875rem; margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991px) {
  .mega-cols {
    grid-template-columns: 1fr;
  }
  .mega-menu {
    width: min(100% - 1rem, 760px);
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-grid,
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 820px) {
  /* Header adjustments */
  .top-head {
    grid-template-columns: 1fr auto;
    row-gap: .6rem;
    padding: .7rem 14px .35rem;
  }
  .mobile-nav-bar { padding: 0 14px; }
  /* Buttons auf Mobile nicht zu breit erzwingen */
  .head-action-account { min-width: 0; }
  .head-actions { gap: 6px; }
  .head-action { padding: .45rem .6rem; font-size: .8rem; }
  /* acct-customer-info min-width aufheben */
  .acct-customer-info { min-width: 0; }

  /* Rifle hidden on mobile, search expands full width */
  .header-rifle-wrap { display: none; }
  .brand-rifle-unit { justify-content: flex-start; }

  .search-menu { grid-column: 1 / -1; justify-self: stretch; }
  .search-menu.is-open .search-inline { width: 100%; }

  .head-actions { grid-column: 2; grid-row: 1; }

  .main-nav-wrap,
  .shop-tabs-wrap { display: none; }

  .mobile-nav-bar { display: block; }

  .mobile-nav-inner {
    grid-template-columns: 1fr;
  }

  /* Content */
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }

  /* Cart-Summary auf Mobile: nicht mehr klebrig (verdeckt sonst Artikel) */
  .cart-summary { position: static; top: auto; }
  /* Auf Tablet: Tabelle kompakter, aber als Tabelle bleibend */
  .cart-table .col-image  { width: 60px; }
  .cart-table .col-qty    { width: 80px; }
  .cart-item-img { width: 56px; height: 56px; }

  .account-nav {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .account-nav a {
    white-space: nowrap;
    border-bottom: none;
    border-right: 1px solid var(--fa-line);
  }

  /* Account: Empfehlungsbox untereinander statt nebeneinander */
  .acct-customer-row { flex-direction: column; gap: 16px; }
  .acct-divider { width: 100%; height: 1px; align-self: auto; }
  /* Nur 1 Karte auf Mobile */
  .acct-rec-grid { width: 100%; }
  .acct-rec-card { flex: 1; min-width: 0; }
  .acct-rec-card:not(:first-child) { display: none !important; }
  /* Rec-Section direkt clippen */
  .acct-rec-section { overflow: hidden; }
  /* Tabellenspalten auf Mobile */
  .hide-mobile { display: none !important; }
  .show-mobile { display: table-row !important; }
  .orders-table { min-width: 0; }
  .orders-table-wrap { width: 100%; }

  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }

  /* Sidebar auf Mobile kompakter */
  .sidebar-box { margin-bottom: 16px; }

  .page-content { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }

  /* ── Shop-Toolbar: umbrechen statt overflow ── */
  .shop-main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .shop-toolbar {
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
  }

  .shop-toolbar .shop-select-wrap,
  .shop-toolbar .shop-stock-filter {
    flex: 1 1 auto;
    min-width: 0;
  }

  .shop-toolbar .shop-select {
    width: 100%;
  }

  /* ── Produkt-Karten: Text-Overflow verhindern ── */
  .product-card {
    overflow: hidden;
    max-width: 100%;
  }

  .product-card-short {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .product-card-footer {
    flex-wrap: wrap;
    gap: 6px;
  }

  .product-card-name {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
  }

  /* Bewertungsformular: alle Grids auf 1 Spalte */
  .review-form-wrap form > div[style*="grid-template-columns:1fr 1fr"],
  .review-form-wrap form > div[style*="grid-template-columns:auto 1fr"],
  .review-form-wrap form > div[style*="grid-template-columns:1fr auto"] {
    grid-template-columns: 1fr !important;
  }

  .hero { padding: 44px 0 36px; }

  /* Footer auf Mobile: eine Spalte */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Footer-Note auf Mobile: untereinander */
  .footer-note { flex-direction: column !important; text-align: center; gap: .3rem !important; }
}

@media (max-width: 479px) {
  .product-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 26px 18px; }

  /* ── Cart als Karten-Layout (statt unleserliche Mini-Tabelle) ── */
  .cart-table { border: none; }
  .cart-table thead { display: none; }
  .cart-table tbody, .cart-table tr {
    display: block;
    width: 100%;
  }
  .cart-table tr {
    border: 1px solid var(--fa-line);
    border-radius: 12px;
    padding: 14px 56px 14px 76px; /* rechts für ✕-Button, links für Bild */
    margin-bottom: 14px;
    background: #fff;
    position: relative;
    box-shadow: var(--fa-shadow-soft);
  }
  .cart-table td {
    display: block;
    border: none;
    padding: 4px 0;
  }
  /* Daten-Label vor jeder Zelle */
  .cart-table td[data-label]::before {
    content: attr(data-label);
    display: inline-block;
    width: 110px;
    color: var(--fa-muted);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  /* Bild absolute links */
  .cart-table .col-image {
    position: absolute;
    left: 12px;
    top: 14px;
    width: 56px;
    padding: 0;
  }
  .cart-item-img { width: 56px; height: 56px; }
  /* Produktname-Zeile bekommt mehr Platz, kein Label */
  .cart-table .col-product { padding: 0 0 6px; }
  .cart-item-info { flex-direction: column; align-items: flex-start; gap: 4px; }
  /* Preise rechtsbündig im Karten-Layout */
  .cart-table .col-price,
  .cart-table .col-total { text-align: left; }
  /* Mengen-Input mit Label nebeneinander */
  .cart-table .col-qty { width: auto; padding: 6px 0; }
  .cart-qty { width: 80px; vertical-align: middle; }
  /* ✕ Button absolute rechts oben */
  .cart-table .col-remove {
    position: absolute;
    right: 8px;
    top: 8px;
    width: auto;
    padding: 0;
  }
  .cart-remove-btn { min-width: 32px; min-height: 32px; padding: 2px 8px; }

  /* Footer-Note auf Mobile: untereinander statt nebeneinander */
  .footer-note { flex-direction: column !important; text-align: center; }

  /* Newsletter-Form darf nicht überlaufen */
  .footer-newsletter { max-width: 100%; }

  /* Review form / Checkout Checkbox text wrapping */
  .checkout-agb-label { font-size: .82rem; }

  /* ── Smartphone-spezifische Fixes ── */

  /* Shop-Toolbar: komplett vertikal stapeln */
  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  /* Header-Buttons auf schmalsten Screens */
  .head-action { padding: .4rem .5rem; font-size: .75rem; gap: .3rem; }
  .head-action .cart-label { display: none; }
  .head-action .account-caret { display: none; }

  /* Breadcrumb: Wrapping erlauben */
  .breadcrumb { font-size: .78rem; }

  /* Product card body: overflow fix */
  .product-card-body {
    padding: 12px 14px;
    overflow: hidden;
  }

  .product-card-short {
    font-size: .8rem;
    -webkit-line-clamp: 2;
  }

  /* Preis und Badge auf Smartphone */
  .product-card-footer {
    padding: 8px 14px;
    flex-wrap: wrap;
  }

  .product-price { font-size: 1.1rem; }
  .badge-stock { font-size: .68rem; white-space: nowrap; }

  /* Produktdetail-Seite: Add-to-cart Formular */
  .product-add-form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .product-add-form .qty-wrapper { width: 100%; }
  .product-add-form .qty-input { width: 100%; }

  /* Checkout Bestellübersicht */
  .cart-summary { padding: 16px; }
  .cart-summary h3 { font-size: 1rem; }

  /* Checkout-Section auf Schmalst-Display kompakter */
  .checkout-section { padding: 16px 14px; }
  .checkout-section h3 { font-size: .9rem; margin-bottom: 12px; }
  /* Order-Submit-Button-Text auf 2 Zeilen erlauben */
  #checkout-submit { font-size: .95rem; padding: 12px 14px; }
  /* Lange Artikelnamen in Bestellübersicht umbrechen */
  .cart-summary .summary-row { word-break: break-word; }

  /* Page-bar Titel */
  .page-bar h1 { font-size: 1.3rem; }
  .page-bar { padding: 16px 0; }

  /* Hero Buttons */
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  /* Cookie-Banner Text */
  #cookieBanner > div { flex-direction: column; gap: 10px; text-align: center; }
}
