/* ═══════════════════════════════════════════════════════════════════════
   OfficeOmni Shop — Module & Vorlagen
   Alle Regeln sind unter .oo-shop gescopet, damit sie nicht mit dem
   globalen .oo-card der Wiki-Seite (app.css) bzw. anderen oo-*-Klassen
   kollidieren.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --oo-text: #1a1d21; --oo-text-2: #5a6270; --oo-muted: #8a919c;
  --oo-bg: #fafbfc; --oo-card: #fff; --oo-field: #f6f7f9;
  --oo-border: #e6e9ed; --oo-border-input: #d8dce2; --oo-divider: #f3f4f6;
  --oo-accent: #2563b8; --oo-accent-hover: #1a4c93; --oo-accent-soft: #edf2fa;
  --oo-dark: #22262c;
}

.oo-shop { font-family: 'IBM Plex Sans', sans-serif; color: var(--oo-text); background: var(--oo-bg); }
.oo-shop * { box-sizing: border-box; }
.oo-shop .oo-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Hero ── */
.oo-shop .oo-hero { background: #fff; border-bottom: 1px solid var(--oo-border); }
.oo-shop .oo-hero-inner { padding: 56px 24px 48px; display: flex; flex-direction: column; gap: 18px; }
.oo-shop .oo-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--oo-accent); }
.oo-shop .oo-hero h1 { margin: 0; font-size: 40px; font-weight: 700; line-height: 1.15; max-width: 620px; }
.oo-shop .oo-hero p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--oo-text-2); max-width: 560px; }
.oo-shop .oo-trust { display: flex; gap: 24px; margin-top: 6px; flex-wrap: wrap; }
.oo-shop .oo-trust span { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: #3c434d; }
.oo-shop .oo-trust span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--oo-accent); }

/* ── Filterleiste (sticky unter dem 56px-Haupt-Header) ── */
.oo-shop .oo-filterbar { background: #fff; border-bottom: 1px solid var(--oo-border); position: sticky; top: 56px; z-index: 40; }
.oo-shop .oo-filterbar-inner { padding: 12px 24px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.oo-shop .oo-pill { border: none; cursor: pointer; border-radius: 99px; padding: 7px 15px; font-size: 13px;
  font-weight: 500; background: transparent; color: var(--oo-text-2); display: flex; align-items: center; gap: 7px; font-family: inherit; }
.oo-shop .oo-pill:hover { background: var(--oo-field); }
.oo-shop .oo-pill.active { background: var(--oo-dark); color: #fff; font-weight: 600; }
.oo-shop .oo-pill .count { font-size: 11.5px; font-weight: 600; background: #f1f3f6; color: var(--oo-muted); padding: 1px 7px; border-radius: 99px; }
.oo-shop .oo-pill.active .count { background: rgba(255,255,255,.16); color: #c8cdd4; }
.oo-shop .oo-filter-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.oo-shop .oo-segmented { display: flex; background: var(--oo-field); border: 1px solid var(--oo-border); border-radius: 99px; padding: 3px; }
.oo-shop .oo-segmented button { border: none; cursor: pointer; border-radius: 99px; padding: 5px 13px; font-size: 12.5px;
  font-weight: 500; background: transparent; color: var(--oo-muted); font-family: inherit; }
.oo-shop .oo-segmented button.active { background: #fff; color: var(--oo-text); font-weight: 600; box-shadow: 0 1px 2px rgba(20,24,32,.08); }
.oo-shop .oo-search { background: var(--oo-field); border: 1px solid var(--oo-border-input); border-radius: 99px;
  padding: 7px 15px; font-size: 12.5px; color: var(--oo-text); width: 170px; outline: none; font-family: inherit; }
.oo-shop .oo-search:focus { border-color: var(--oo-accent); background: #fff; }

/* ── Produktgrid ── */
.oo-shop .oo-grid-wrap { padding: 32px 24px 56px; }
.oo-shop .oo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.oo-shop .oo-empty { padding: 64px 0; text-align: center; color: var(--oo-muted); font-size: 14.5px; }

/* ── Produktkarte ──
   padding/gap/min-height explizit neutralisiert: app.css definiert ein
   globales .oo-card (Wiki) mit padding:18px 20px, gap:9px, min-height:120px. */
.oo-shop .oo-card { background: var(--oo-card); border: 1px solid var(--oo-border); border-radius: 12px;
  padding: 0; gap: 0; min-height: 0; text-decoration: none;
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.oo-shop .oo-card:hover { box-shadow: 0 6px 24px rgba(20,24,32,.09); border-color: var(--oo-border-input); transform: none; }
.oo-shop .oo-card-preview { position: relative; height: 190px; background: var(--oo-field);
  border-bottom: 1px solid var(--oo-divider); cursor: pointer; }
.oo-shop .oo-card-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oo-shop .oo-card-preview .oo-preview-fallback { width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; color: #c3c9d2; }
.oo-shop .oo-model-badge { position: absolute; top: 12px; right: 12px; font-size: 11.5px; font-weight: 600;
  padding: 4px 11px; border-radius: 99px; background: #fff; color: #3c434d; box-shadow: 0 1px 3px rgba(20,24,32,.1); }
.oo-shop .oo-model-badge.abo { background: var(--oo-accent-soft); color: var(--oo-accent); }
.oo-shop .oo-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.oo-shop .oo-card-meta { display: flex; align-items: center; gap: 8px; }
.oo-shop .oo-cat { font-size: 12px; font-weight: 600; color: var(--oo-accent); }
.oo-shop .oo-version { font-size: 11.5px; font-weight: 500; color: var(--oo-muted); background: var(--oo-field);
  border: 1px solid var(--oo-border); padding: 1px 8px; border-radius: 5px; }
.oo-shop .oo-card-title { font-size: 17px; font-weight: 600; cursor: pointer; line-height: 1.3; color: var(--oo-text); text-decoration: none; display: block; }
.oo-shop .oo-card-title:hover { color: var(--oo-accent); }
.oo-shop .oo-card-desc { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--oo-text-2); }
.oo-shop .oo-feature-list { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.oo-shop .oo-feature { display: flex; gap: 8px; font-size: 12.5px; color: #3c434d; line-height: 1.4; }
.oo-shop .oo-feature::before { content: '✓'; color: var(--oo-accent); font-weight: 700; flex-shrink: 0; }
.oo-shop .oo-card-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--oo-divider);
  display: flex; align-items: center; gap: 10px; }
.oo-shop .oo-price { font-size: 18px; font-weight: 700; display: block; }
.oo-shop .oo-price-note { font-size: 11.5px; color: var(--oo-muted); }
.oo-shop .oo-card-actions { margin-left: auto; display: flex; gap: 8px; }

/* ── Buttons ── */
.oo-shop .oo-btn-primary { background: var(--oo-accent); border: none; color: #fff; font-size: 12.5px;
  font-weight: 600; padding: 8px 16px; border-radius: 7px; cursor: pointer; font-family: inherit;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.oo-shop .oo-btn-primary:hover { background: var(--oo-accent-hover); color: #fff; }
.oo-shop .oo-btn-secondary { background: #fff; border: 1px solid var(--oo-border-input); color: #3c434d;
  font-size: 12.5px; font-weight: 500; padding: 8px 14px; border-radius: 7px; cursor: pointer; font-family: inherit;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.oo-shop .oo-btn-secondary:hover { background: var(--oo-field); color: #3c434d; }
.oo-shop .oo-btn-lg { font-size: 14.5px; padding: 13px; width: 100%; border-radius: 8px; }
.oo-shop .oo-btn-primary:disabled, .oo-shop .oo-btn-secondary:disabled { opacity: .55; cursor: default; }

/* ── CTA-Band ── */
.oo-shop .oo-cta { background: var(--oo-accent-soft); border: 1px solid #d9e4f5; border-radius: 14px;
  padding: 36px 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 64px; }
.oo-shop .oo-cta-text { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 280px; }
.oo-shop .oo-cta-text strong { font-size: 19px; font-weight: 700; }
.oo-shop .oo-cta-text span { font-size: 14px; color: var(--oo-text-2); line-height: 1.5; }

/* ── Detailseite ── */
.oo-shop .oo-detail { padding: 24px 24px 64px; }
.oo-shop .oo-back { font-size: 13px; font-weight: 500; color: var(--oo-accent); text-decoration: none; display: inline-block; padding: 8px 0 20px; }
.oo-shop .oo-back:hover { color: var(--oo-accent-hover); }
.oo-shop .oo-detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.oo-shop .oo-detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.oo-shop .oo-detail h1 { margin: 0 0 24px; font-size: 30px; font-weight: 700; line-height: 1.2; }
.oo-shop .oo-detail-preview { height: 420px; background: var(--oo-field); border: 1px solid var(--oo-border);
  border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.oo-shop .oo-detail-preview img { width: 100%; height: 100%; object-fit: cover; }
.oo-shop .oo-detail-thumbs { display: flex; gap: 8px; overflow-x: auto; margin: -12px 0 24px; padding-bottom: 4px; }
.oo-shop .oo-detail-thumbs button { width: 64px; height: 64px; flex-shrink: 0; padding: 0; border-radius: 8px;
  overflow: hidden; border: 2px solid var(--oo-border); background: var(--oo-field); cursor: pointer; }
.oo-shop .oo-detail-thumbs button.active { border-color: var(--oo-accent); }
.oo-shop .oo-detail-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oo-shop .oo-detail-desc { margin: 0 0 24px; font-size: 15px; line-height: 1.65; color: #3c434d; white-space: pre-line; }
.oo-shop .oo-features-card { background: #fff; border: 1px solid var(--oo-border); border-radius: 12px; padding: 24px 26px; }
.oo-shop .oo-features-card h3 { margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--oo-muted); text-transform: uppercase; }
.oo-shop .oo-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 24px; }
.oo-shop .oo-features-grid .oo-feature { font-size: 13.5px; }
.oo-shop .oo-buybox { position: sticky; top: 84px; background: #fff; border: 1px solid var(--oo-border);
  border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.oo-shop .oo-buybox .oo-price { font-size: 30px; }
.oo-shop .oo-buybox-perks { border-top: 1px solid var(--oo-divider); padding-top: 16px; display: flex; flex-direction: column; gap: 11px; }
.oo-shop .oo-buybox-perks .oo-feature { font-size: 13px; }
.oo-shop .oo-buybox-note { font-size: 12px; color: var(--oo-muted); line-height: 1.5; }

/* ── Warenkorb-Drawer ── */
.oo-shop .oo-cart-overlay { position: fixed; inset: 0; background: rgba(20,24,32,.4); z-index: 1190; border: none; padding: 0; cursor: default; }
.oo-shop .oo-cart { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; background: #fff; z-index: 1200;
  box-shadow: -12px 0 40px rgba(20,24,32,.18); display: flex; flex-direction: column; }
.oo-shop .oo-cart-head { padding: 20px 24px; border-bottom: 1px solid var(--oo-border); display: flex; align-items: center; }
.oo-shop .oo-cart-head strong { font-size: 17px; font-weight: 700; }
.oo-shop .oo-cart-close { margin-left: auto; background: transparent; border: none; color: var(--oo-muted);
  font-size: 20px; cursor: pointer; padding: 4px 8px; }
.oo-shop .oo-cart-close:hover { color: var(--oo-text); }
.oo-shop .oo-cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.oo-shop .oo-cart-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--oo-muted); font-size: 14px; }
.oo-shop .oo-cart-item { display: flex; gap: 14px; align-items: center; border: 1px solid var(--oo-border); border-radius: 10px; padding: 14px 16px; }
.oo-shop .oo-cart-item-info { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.oo-shop .oo-cart-item-info strong { font-size: 13.5px; font-weight: 600; }
.oo-shop .oo-cart-item-info span { font-size: 12px; color: var(--oo-muted); }
.oo-shop .oo-cart-remove { background: transparent; border: none; color: var(--oo-muted); font-size: 12.5px;
  font-weight: 500; cursor: pointer; flex-shrink: 0; font-family: inherit; }
.oo-shop .oo-cart-remove:hover { color: #b3261e; }
.oo-shop .oo-cart-foot { border-top: 1px solid var(--oo-border); padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.oo-shop .oo-cart-row { display: flex; justify-content: space-between; font-size: 14px; }
.oo-shop .oo-cart-row span:first-child { color: var(--oo-text-2); }
.oo-shop .oo-cart-row span:last-child { font-weight: 700; }
.oo-shop .oo-cart-vat { font-size: 11.5px; color: var(--oo-muted); }

/* ── Lade-Skeleton ── */
.oo-shop .oo-skeleton { height: 380px; border-radius: 12px; border: 1px solid var(--oo-border);
  background: linear-gradient(100deg, var(--oo-field) 40%, #eef0f3 50%, var(--oo-field) 60%);
  background-size: 200% 100%; animation: oo-shimmer 1.4s ease-in-out infinite; }
@keyframes oo-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -80% 0; }
}

@media (max-width: 900px) {
  .oo-shop .oo-detail-grid { grid-template-columns: 1fr; }
  .oo-shop .oo-buybox { position: static; }
  .oo-shop .oo-cart { width: 100%; }
  .oo-shop .oo-hero h1 { font-size: 30px; }
  .oo-shop .oo-filterbar { top: 0; }
}
