/* ============================================================
   SHOP.CSS - Eigenstaendige Designsprache fuer den Kunden-Auftritt
   (Produktuebersicht, Designer, Bestell-Seiten). Der Admin-Bereich
   bleibt bewusst schlicht/funktional und nutzt weiterhin style.css.

   Konzept: "Werkstatt trifft Digital" - die Optik einer echten
   Gravur/Veredelung (Messing-Ton, feine Linien, praezise Typografie)
   statt generischem Onlineshop-Look.

   Farben:
   --ink:      #171512  (fast schwarz, warm statt neutral)
   --paper:    #FAF7F2  (warmes Off-White, Hintergrund)
   --brass:    #E2007A  (Pink - Signaturfarbe nach dem Wunschdesign24-Logo)
   --brass-dk: #A80058  (dunkles Pink, fuer Text/Hover)
   --moss:     #4B6455  (gedecktes Gruen, zweite Akzentfarbe)
   --line:     #E4DDD0  (feine Trennlinien auf Papier)

   Typografie:
   Display: "Fraunces"          - charaktervolle Serife fuer Ueberschriften
   Body/UI: "Plus Jakarta Sans" - klare geometrische Grotesk
   Utility: "IBM Plex Mono"     - fuer Preise/Labels, wirkt wie ein Praezisions-Etikett
   ============================================================ */

:root {
    --ink: #171512;
    --ink-soft: #55504a;
    --paper: #FAF7F2;
    --paper-raised: #ffffff;
    --brass: #E2007A;
    --brass-dk: #A80058;
    --brass-soft: #FBDCEB;
    --moss: #4B6455;
    --line: #E4DDD0;
    --radius-lg: 20px;
    --radius-md: 12px;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.shop-scope {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
.shop-scope a { color: inherit; }
.shop-scope a.btn-primary { color: var(--paper); }
.shop-scope a.btn-secondary { color: var(--ink); }
.shop-scope a.shop-submit-btn { color: var(--paper); }
.shop-scope :focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ---------- Kopfzeile ---------- */
.shop-header {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px clamp(16px, 4vw, 40px);
    background: rgba(250, 247, 242, 0.82);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border-bottom: 1px solid var(--line);
}
.shop-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.shop-brand-mark {
    width: 30px; height: 30px; border-radius: 50%;
    border: 1.5px solid var(--brass);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 14px; color: var(--brass-dk);
}
.shop-brand-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: 0.2px; }
.shop-header-right { display: flex; align-items: center; gap: 20px; font-size: 14px; flex-wrap: nowrap; }
.shop-header-right a, .shop-header-actions a { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink); white-space: nowrap; }
.shop-header-right a:hover, .shop-header-actions a:hover { color: var(--brass-dk); }
.shop-back-link { text-decoration: none; font-size: 22px; color: var(--ink); line-height: 1; }

/* ---------- Hero ---------- */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(24px, 5vw, 64px);
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(32px, 6vw, 76px) clamp(16px, 4vw, 40px) clamp(24px, 5vw, 56px);
}
.hero-eyebrow {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    color: var(--brass-dk);
    margin: 0 0 14px;
}
.hero h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(32px, 5.4vw, 56px);
    line-height: 1.05;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--brass-dk); }
.hero-sub {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--ink-soft);
    max-width: 46ch;
    margin: 0 0 28px;
    line-height: 1.55;
}
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23,21,18,0.25); }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-secondary:hover { border-color: var(--brass); color: var(--brass-dk); }

/* Signatur-Element: der "Gravur-Ring" zieht sich beim Laden einmal um das Produktfoto */
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 420px; margin: 0 auto; }
.engrave-ring {
    position: absolute; inset: 0; width: 100%; height: 100%;
    transform: rotate(-90deg);
}
.engrave-ring circle {
    fill: none;
    stroke: var(--brass);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 1130;
    stroke-dashoffset: 1130;
    animation: draw-ring 1.8s cubic-bezier(.3,.9,.2,1) 0.15s forwards;
}
@keyframes draw-ring {
    to { stroke-dashoffset: 0; }
}
.hero-photo-frame {
    position: absolute; inset: 9%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--paper-raised);
    box-shadow: 0 20px 50px rgba(23,21,18,0.14);
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-frame.placeholder { display: flex; align-items: center; justify-content: center; color: var(--brass); }
.hero-photo-frame.placeholder svg { width: 40%; height: 40%; opacity: 0.6; }

/* ---------- So funktioniert's ---------- */
.steps {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px clamp(16px, 4vw, 40px) clamp(40px, 6vw, 72px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.step-eyebrow { font-family: var(--font-mono); font-size: 12px; color: var(--brass-dk); letter-spacing: 0.1em; }
.step h3 { font-family: var(--font-display); font-size: 20px; margin: 6px 0 8px; }
.step p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ---------- Produktraster ---------- */
.shop-section-head {
    max-width: 1280px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 40px) 0;
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.shop-section-head h2 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); margin: 0; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
    max-width: 1280px;
    margin: 18px auto 0;
    padding: 0 clamp(16px, 4vw, 40px) clamp(48px, 6vw, 80px);
}
.product-card {
    position: relative;
    background: var(--paper-raised);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(23,21,18,0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.product-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(.3,.9,.2,1);
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(23,21,18,0.12); }
.product-card:hover::before { transform: scaleX(1); }
.product-card-img { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 0.4s ease; }
.ai-disclosure-badge.is-small { font-size: 8.5px; padding: 2px 6px; right: 5px; bottom: 5px; }
.product-card:hover .product-card-img img { transform: scale(1.045); }
.product-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.product-card-body h3 { font-family: var(--font-display); margin: 0 0 6px; font-size: 18px; }
.product-card-body p { margin: 0 0 16px; font-size: 13.5px; color: var(--ink-soft); flex: 1; line-height: 1.45; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-card-footer .price { font-family: var(--font-mono); font-weight: 600; font-size: 14.5px; }
.product-card-footer .cta { font-size: 13px; font-weight: 600; color: var(--brass-dk); display: inline-flex; align-items: center; }
.cta-arrow { display: inline-block; margin-left: 4px; animation: cta-arrow-slide 1.3s ease-in-out infinite; }
@keyframes cta-arrow-slide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}
/* Versetztes Timing pro Karte (3er-Zyklus) - sieht wie eine sanfte Welle statt wie Chaos aus */
.product-card:nth-child(3n+1) .cta-arrow { animation-delay: 0s; }
.product-card:nth-child(3n+2) .cta-arrow { animation-delay: 0.35s; }
.product-card:nth-child(3n+3) .cta-arrow { animation-delay: 0.7s; }
.product-card:hover .cta-arrow { animation-play-state: paused; transform: translateX(5px); }

.shop-footer {
    text-align: center; padding: 36px 20px; color: var(--ink-soft); font-size: 13px;
    border-top: 1px solid var(--line);
}

/* ---------- Responsive: Handy / Tablet / Desktop ---------- */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-visual { order: -1; max-width: 280px; }
    .steps { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
    .shop-header { padding: 12px 16px; }
    .shop-brand-name { font-size: 16px; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .product-card-body { padding: 12px 14px 14px; }
    .product-card-body h3 { font-size: 15px; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
@media (min-width: 1500px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Designer-Seiten (fester + freier Modus) im Shop-Look ---------- */
body.designer-page { background: #fff; }
.designer-shell {
    max-width: 2400px; margin: 0 auto;
    padding: 18px clamp(12px, 2vw, 28px) clamp(18px, 2vw, 28px);
    display: flex; gap: 22px; flex-wrap: wrap; align-items: center;
}
.designer-shell h1 { font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 26px); margin: 0; }
.designer-stage-col { flex: 2.2 1 600px; max-width: 2200px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; }
.designer-panel-col {
    flex: 1 1 300px; max-width: 340px;
    background: var(--paper-raised);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(23,21,18,0.06);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.fd-panel-scroll { padding: 22px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.fd-sticky-buybox {
    flex: 0 0 auto; padding: 16px 22px calc(16px + env(safe-area-inset-bottom, 0px));
    background: var(--paper-raised); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 12px rgba(23,21,18,0.05);
    position: sticky; bottom: 0; z-index: 5;
}
.fd-buybox-row { display: flex; align-items: center; gap: 12px; }
.fd-buybox-row input[type=number] { margin-top: 0 !important; }

/* Ab Tablet/Desktop: alles in einer Bildschirmhöhe, kein Seiten-Scroll -
   Produkt und Panel stehen nebeneinander, vertikal zentriert. Falls das Panel
   selbst zu viel Inhalt hat, scrollt nur der obere Panel-Bereich - Anzahl,
   Preis und der Warenkorb-Button bleiben dabei immer sichtbar. */
@media (min-width: 761px) {
    body.designer-page { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
    body.designer-page .shop-header { flex: 0 0 auto; }
    body.designer-page .designer-shell {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        padding-top: 16px;
        padding-bottom: 16px;
    }
    body.designer-page .designer-panel-col {
        max-height: 100%;
    }
    body.designer-page .designer-stage-col {
        max-height: 100%;
        overflow-y: auto;
    }
    body.designer-page #fdViewport,
    body.designer-page #previewCanvas {
        max-height: calc(100vh - 140px);
        width: auto;
    }
}
.designer-panel-col label { font-size: 13px; font-weight: 700; display: block; margin-top: 12px; }
.designer-panel-col input[type=text],
.designer-panel-col input[type=email],
.designer-panel-col input[type=number],
.designer-panel-col input[type=file],
.designer-panel-col textarea,
.designer-panel-col select {
    width: 100%; padding: 10px 12px; margin-top: 4px;
    border: 1.5px solid var(--line); border-radius: 8px; font-size: 14px; font-family: var(--font-body);
    background: var(--paper);
}
.designer-panel-col input:focus, .designer-panel-col textarea:focus, .designer-panel-col select:focus {
    border-color: var(--brass); outline: none;
}
.shop-price-line { font-family: var(--font-mono); font-weight: 600; margin-top: 16px; font-size: 14.5px; }
.shop-canvas {
    width: 100%; height: auto; max-width: var(--canvas-max-w, 480px);
    background: transparent;
}
.shop-submit-btn {
    width: 100%; margin-top: 18px; padding: 14px; border: none; border-radius: 999px;
    background: var(--brass) !important; color: #fff !important; font-size: 15.5px; font-weight: 700; cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.shop-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(226,0,122,0.35); background: var(--brass-dk); }

/* Durchgehendes, aber dezentes Wackeln am CTA-Button */
.pdp-cta-wiggle { animation: pdp-cta-wiggle 1.1s ease-in-out infinite; }
.pdp-cta-wiggle:hover { animation-play-state: paused; }
@keyframes pdp-cta-wiggle {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-2.5px) rotate(-1.5deg); }
    50% { transform: translateX(0) rotate(0deg); }
    75% { transform: translateX(2.5px) rotate(1.5deg); }
}
.shop-char-counter { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); text-align: right; margin-top: 2px; }

/* Handy: Bestell-Button bleibt unten fest erreichbar */
@media (max-width: 760px) {
    .designer-shell { flex-direction: column-reverse; padding-bottom: 16px; gap: 8px; align-items: stretch; }
    .designer-panel-col {
        max-width: 100%; flex: 0 0 auto; display: block; overflow: visible; box-shadow: none; background: transparent;
    }
    .fd-panel-scroll { overflow: visible; flex: none; height: auto; background: var(--paper-raised); border-radius: var(--radius-lg); padding: 22px; box-shadow: 0 1px 3px rgba(23,21,18,0.06); }
    .designer-stage-col { max-width: 100%; flex: 0 0 auto; }
    .shop-canvas { max-height: 42vh !important; width: auto !important; margin: 0 auto; }
    #fdViewport { margin: 0 auto; }
    .fd-sticky-buybox {
        position: sticky; bottom: 0; z-index: 10;
        background: var(--paper-raised); border-radius: var(--radius-lg); margin-top: 10px;
        box-shadow: 0 1px 3px rgba(23,21,18,0.06);
    }
}

.shop-message-box {
    max-width: 520px; margin: 60px auto; padding: 40px 32px;
    background: var(--paper-raised); border-radius: var(--radius-lg); text-align: center;
    box-shadow: 0 1px 3px rgba(23,21,18,0.06);
}
.shop-message-box h1 { font-family: var(--font-display); font-size: 26px; margin: 0 0 12px; }
.shop-message-box.is-error { border-top: 3px solid #a83226; }
.shop-message-box.is-success { border-top: 3px solid var(--moss); }
.shop-message-box img.final-preview { max-width: 100%; border-radius: var(--radius-md); margin-top: 16px; }

/* ---------- Werkzeugleiste & Panels des Designers im Marken-Look ---------- */
#fdViewport { min-height: 260px; min-width: 200px; max-width: 100%; background: transparent; box-sizing: border-box; }

.shop-scope .fd-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.shop-scope .fd-tool-btn {
    flex: 1 1 auto;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 10px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.shop-scope .fd-tool-btn:hover { border-color: var(--brass); background: var(--brass-soft); transform: translateY(-1px); }
.shop-scope .fd-tool-btn span { font-size: 16px; }

.shop-scope .fd-selection-panel,
.shop-scope .fd-clipart-panel {
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-bottom: 18px;
}
.shop-scope .fd-selection-panel h3,
.shop-scope .fd-clipart-panel h3 { font-family: var(--font-display); font-size: 16px; margin: 0 0 10px; }
.shop-scope .fd-selection-panel label { font-size: 12px; font-weight: 700; display: block; margin-top: 10px; }
.shop-scope .fd-selection-panel select {
    width: 100%; padding: 9px 10px; border-radius: 8px; border: 1.5px solid var(--line); margin-top: 4px;
    font-family: var(--font-body); background: var(--paper);
}
.shop-scope .fd-selection-panel select:focus { border-color: var(--brass); outline: none; }

.shop-scope .color-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.shop-scope .color-row input[type=color] { width: 44px; height: 34px; border: 1.5px solid var(--line); border-radius: 8px; padding: 2px; background: var(--paper-raised); }
.shop-scope .color-row button {
    padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 8px;
    background: var(--paper); color: var(--ink); cursor: pointer; font-size: 13px; font-family: var(--font-body);
}
.shop-scope .color-row button:hover { border-color: var(--brass); color: var(--brass-dk); }

.shop-scope .fd-selection-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.shop-scope .fd-selection-actions button {
    flex: 1 1 auto; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 8px;
    background: var(--paper); color: var(--ink); cursor: pointer; font-size: 12.5px; font-family: var(--font-body); font-weight: 600;
}
.shop-scope .fd-selection-actions button:hover { border-color: var(--brass); }
.shop-scope .fd-selection-actions button.danger { background: #fbeae7; border-color: #e8b7ac; color: #a83226; }
.shop-scope .fd-selection-actions button.danger:hover { border-color: #a83226; }

.shop-scope .fd-clipart-category { margin-bottom: 16px; }
.shop-scope .fd-clipart-category h4 { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin: 0 0 8px; }
.shop-scope .fd-clipart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.shop-scope .fd-clipart-thumb {
    width: 100%; height: 56px; object-fit: contain; background: var(--paper);
    border-radius: 8px; cursor: pointer; border: 1.5px solid var(--line); transition: border-color 0.15s ease, transform 0.15s ease;
}
.shop-scope .fd-clipart-thumb:hover { border-color: var(--brass); transform: translateY(-1px); }

/* ---------- Ebenen-Panel ---------- */
.fd-layers-panel { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 18px; }
.fd-layers-panel h3 { font-family: var(--font-display); font-size: 16px; margin: 0 0 6px; }
.fd-layers-panel .hint { margin: 0 0 10px; }
.fd-layer-row {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px;
    margin-bottom: 6px; cursor: pointer; background: var(--paper);
}
.fd-layer-row.active { border-color: var(--brass); background: var(--brass-soft); }
.fd-layer-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-layer-row button {
    width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 6px;
    background: var(--paper-raised); color: var(--ink); cursor: pointer; font-size: 13px; line-height: 1;
}
.fd-layer-row button:hover { border-color: var(--brass); }

/* ---------- Cart-Icon im Header ---------- */
.shop-cart-link { position: relative; text-decoration: none; font-size: 20px; display: inline-flex; }
.shop-cart-badge {
    position: absolute; top: -8px; right: -6px;
    background: var(--brass-dk); color: #fff; font-family: var(--font-mono);
    font-size: 11px; border-radius: 999px; padding: 1px 6px; line-height: 1.4;
}

/* ---------- Warenkorb-Seite ---------- */
.cart-shell { max-width: 1000px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 80px; }
.cart-shell h1 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); }
.cart-layout { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.cart-items { flex: 2 1 480px; display: flex; flex-direction: column; gap: 14px; }
.cart-item {
    display: flex; gap: 16px; background: var(--paper-raised); border-radius: var(--radius-md);
    padding: 14px; box-shadow: 0 1px 3px rgba(23,21,18,0.06); align-items: center;
}
.cart-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-body h3 { font-family: var(--font-display); margin: 0 0 4px; font-size: 16px; }
.cart-item-detail { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 6px; }
.cart-item-price { font-family: var(--font-mono); font-size: 13px; margin: 0 0 8px; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; }
.cart-item-controls input[type=number] { width: 60px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 6px; }
.cart-remove-btn { background: none; border: none; color: #a83226; font-size: 12.5px; cursor: pointer; text-decoration: underline; padding: 0; }
.cart-item-subtotal { font-family: var(--font-mono); font-weight: 700; font-size: 15px; white-space: nowrap; }

.cart-summary {
    flex: 1 1 260px; background: var(--paper-raised); border-radius: var(--radius-md);
    padding: 20px; box-shadow: 0 1px 3px rgba(23,21,18,0.06); position: sticky; top: 90px;
}
.cart-summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.cart-summary-total { font-family: var(--font-mono); font-weight: 700; font-size: 17px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; margin-bottom: 16px; }

/* ---------- Checkout-Seite ---------- */
.checkout-shell {
    max-width: 1100px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 80px;
    display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start;
}
.checkout-form { flex: 1.3 1 460px; }
.checkout-block {
    background: var(--paper-raised); border-radius: var(--radius-md); padding: 20px 22px; margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(23,21,18,0.06);
}
.checkout-block h2 { font-family: var(--font-display); font-size: 17px; margin: 0 0 12px; }
.checkout-block label { font-size: 13px; font-weight: 700; display: block; margin-top: 10px; }
/* ---------- Automatischer Rabatt-Hinweis (Konto-Erstanmeldung / Newsletter) ---------- */
.discount-reveal {
    display: flex; align-items: flex-start; gap: 14px;
    max-width: 420px; margin: 20px auto 0; padding: 20px 22px;
    background: linear-gradient(135deg, var(--brass) 0%, var(--brass-dk) 100%);
    color: #fff; border-radius: var(--radius-lg);
    box-shadow: 0 14px 32px rgba(226,0,122,0.25);
    animation: discountRevealIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes discountRevealIn {
    0% { opacity: 0; transform: translateY(14px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.discount-reveal-icon { font-size: 26px; flex-shrink: 0; line-height: 1; }
.discount-reveal-body strong { font-size: 16px; font-family: var(--font-display); }
.discount-reveal-body p { margin: 4px 0 12px; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,0.92); }
.discount-reveal-code-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.discount-reveal-code {
    font-family: var(--font-mono); font-size: 16px; font-weight: 700; letter-spacing: 1px;
    background: rgba(255,255,255,0.18); padding: 6px 14px; border-radius: 8px;
    border: 1.5px dashed rgba(255,255,255,0.5);
}
.discount-reveal-copy {
    padding: 7px 14px; border-radius: 999px; border: none; cursor: pointer;
    background: #fff; color: var(--brass-dk); font-size: 12.5px; font-weight: 700;
    transition: transform 0.15s ease;
}
.discount-reveal-copy:hover { transform: translateY(-1px); }

/* ---------- Rabatt-Promo-Leiste (Startseite + Designer) ---------- */
.discount-promo-bar {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 4px 22px; padding: 12px 20px;
    background: linear-gradient(135deg, var(--brass) 0%, var(--brass-dk) 100%);
    color: #fff; font-size: 13.5px; font-weight: 600;
}
.discount-promo-item { display: inline-flex; flex-direction: row; flex-wrap: nowrap; align-items: flex-start; gap: 6px; color: #fff; text-decoration: none; text-align: left; }
.discount-promo-item:hover { text-decoration: underline; }
.discount-promo-icon { flex-shrink: 0; color: #fff; margin-top: 1px; display: block; }
.discount-promo-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.35); flex-shrink: 0; }
.discount-promo-bar::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.16), transparent);
    animation: discount-promo-shine 6s ease-in-out infinite;
}
@keyframes discount-promo-shine {
    0% { left: -60%; }
    35% { left: 130%; }
    100% { left: 130%; }
}
@media (max-width: 640px) {
    .discount-promo-bar { flex-direction: column; gap: 8px; text-align: center; }
    .discount-promo-divider { display: none; }
    .discount-promo-icon { display: none; }
    .discount-promo-item { text-align: center; justify-content: center; }
}

.checkout-block input, .checkout-block select, .checkout-block textarea {
    width: 100%; padding: 10px 12px; margin-top: 4px; border: 1.5px solid var(--line);
    border-radius: 8px; font-size: 14px; font-family: var(--font-body); background: var(--paper);
    box-sizing: border-box; resize: vertical;
}
.checkout-block input:focus, .checkout-block select:focus, .checkout-block textarea:focus { border-color: var(--brass); outline: none; }
.payment-option {
    display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--line);
    border-radius: 8px; margin-top: 8px; cursor: pointer; font-weight: 600; font-size: 14px;
}
.payment-option input { width: auto; margin: 0; }
.payment-option:has(input:checked) { border-color: var(--brass); background: var(--brass-soft); }

.checkout-summary {
    flex: 1 1 300px; background: var(--paper-raised); border-radius: var(--radius-md);
    padding: 20px; box-shadow: 0 1px 3px rgba(23,21,18,0.06); position: sticky; top: 24px;
}
.checkout-summary h2 { font-family: var(--font-display); font-size: 16px; margin: 0 0 14px; }
.checkout-summary-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.checkout-summary-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.checkout-summary-item-price { margin-left: auto; font-family: var(--font-mono); font-weight: 600; font-size: 13px; }

@media (max-width: 760px) {
    .cart-item { flex-wrap: wrap; }
    .cart-summary { position: static; }
    .checkout-summary { position: static; }
}

/* ---------- Produktseite (product.php) ---------- */
.pdp-breadcrumb { max-width: 1100px; margin: 0 auto; padding: 16px clamp(16px, 4vw, 40px) 0; font-size: 13px; color: var(--ink-soft); }
.pdp-breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.pdp-breadcrumb a:hover { color: var(--brass-dk); }

.pdp-shell {
    max-width: 1100px; margin: 0 auto; padding: 20px clamp(16px, 4vw, 40px) 40px;
    display: flex; gap: 40px; flex-wrap: wrap;
}
.pdp-gallery { flex: 1 1 400px; }
.pdp-main-image {
    width: 100%; border-radius: var(--radius-lg); object-fit: contain; aspect-ratio: 1/1;
    background: var(--paper-raised); display: block;
}
.pdp-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pdp-thumbs img {
    width: 70px; height: 70px; object-fit: contain; border-radius: 8px; border: 1.5px solid var(--line);
    background: var(--paper-raised); cursor: pointer; transition: border-color 0.15s ease;
}
.pdp-thumbs img:hover { border-color: var(--brass); }
.pdp-thumbs img.is-active { border-color: var(--brass); box-shadow: 0 0 0 1.5px var(--brass); }

.pdp-zoom-btn {
    position: absolute; left: 10px; bottom: 10px; z-index: 3;
    width: 38px; height: 38px; margin: 0; padding: 0; box-sizing: border-box;
    border-radius: 50%; border: none; font-size: 0; line-height: 0;
    background: rgba(255,255,255,0.9); color: var(--ink); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.pdp-zoom-btn svg { flex-shrink: 0; }
.pdp-zoom-btn:hover { background: #fff; }

/* ---------- Rechte-Bestätigung vor Foto-Upload im Designer ---------- */
.fd-rights-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 998;
    background: rgba(20,18,16,0.55); align-items: center; justify-content: center; padding: 20px;
}
.fd-rights-modal-overlay.is-open { display: flex; }
.fd-rights-modal {
    background: #ececec; border-radius: var(--radius-lg); padding: 24px 26px; max-width: 440px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.fd-rights-modal h3 { font-family: var(--font-display); font-size: 18px; margin: 0 0 10px; color: #555; }
.fd-rights-modal p { font-size: 13.5px; line-height: 1.6; margin: 0 0 10px; color: #666; }
.fd-rights-modal-list { margin: 0 0 14px; padding-left: 20px; font-size: 13px; line-height: 1.6; color: #777; }
.fd-rights-modal-list li { margin-bottom: 8px; }
.fd-rights-modal-checkbox {
    display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; font-weight: 600;
    cursor: pointer; margin-bottom: 18px; color: #555;
}
.fd-rights-modal-checkbox input { margin-top: 2px; accent-color: var(--brass); }
.fd-rights-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- Live-Vorschau (fertiges Produktfoto mit aktuellem Design) ---------- */
/* ---------- Vorder-/Rückseiten-Markierungen (360°-Produkte) ---------- */
.fd-side-marker {
    position: absolute; top: 0; bottom: 0; z-index: 5; pointer-events: none;
    border-left: 1.5px dashed rgba(23,21,18,0.4); border-right: 1.5px dashed rgba(23,21,18,0.4);
}
.fd-side-marker span {
    position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
    font-size: 10.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap;
    text-transform: uppercase; letter-spacing: 0.4px;
}

/* ---------- 360°-Vorschau ---------- */
.fd-360-preview { margin-top: 22px; max-width: 340px; }
.fd-360-frame {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    background: linear-gradient(180deg, #f4f1ec, #e8e3da); border: 1px solid var(--line);
    aspect-ratio: 1/1; cursor: grab; touch-action: none;
}
.fd-360-frame.is-dragging { cursor: grabbing; }
.fd-360-frame canvas { width: 100%; height: 100%; display: block; }

.fd-live-preview { margin-top: 22px; max-width: 340px; }
.fd-live-preview-label { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.fd-live-preview-frame {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--paper-raised); border: 1px solid var(--line); aspect-ratio: 1/1;
}
.fd-live-preview-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fd-live-preview-loading {
    position: absolute; right: 8px; bottom: 8px; z-index: 2;
    background: rgba(23,21,18,0.65); color: #fff; font-size: 10.5px; font-weight: 600;
    padding: 3px 9px; border-radius: 999px; opacity: 0; transition: opacity 0.15s ease; pointer-events: none;
}
.fd-live-preview-loading.is-visible { opacity: 1; }

.pdp-lightbox {
    display: none; position: fixed; inset: 0; z-index: 999;
    background: rgba(20,18,16,0.92); align-items: center; justify-content: center; padding: 40px;
}
.pdp-lightbox.is-open { display: flex; }
.pdp-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.pdp-lightbox-close {
    position: absolute; top: 20px; right: 24px; margin: 0; padding: 0; background: none; border: none;
    color: #fff; font-size: 32px; line-height: 1; cursor: pointer;
}

.pdp-info { flex: 1 1 380px; }
.pdp-info h1 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); margin: 0 0 8px; }
.pdp-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pdp-stars { color: var(--brass); font-size: 16px; letter-spacing: 1px; }
.pdp-rating-text { font-size: 13px; color: var(--ink-soft); }
.pdp-price { font-family: var(--font-mono); font-size: 26px; font-weight: 700; margin: 0 0 8px; color: var(--brass-dk); }
.pdp-description { font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
.pdp-long-description { margin-top: 28px; font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }

.pdp-reviews { max-width: 1100px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 60px; }
.pdp-reviews h2 { font-family: var(--font-display); font-size: 22px; margin-bottom: 16px; }
.pdp-reviews-row { display: flex; align-items: stretch; gap: 10px; }
.pdp-reviews-track {
    flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, calc(25% - 12px));
    gap: 16px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding-bottom: 6px;
}
.pdp-review {
    scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 16px; display: flex; flex-direction: column; background: var(--paper-raised);
    min-width: 0; box-sizing: border-box; overflow: hidden;
}
.pdp-review-photo { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.pdp-review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; min-width: 0; }
.pdp-review-head strong { overflow-wrap: break-word; word-break: break-word; min-width: 0; }
.pdp-review p {
    margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft);
    overflow-wrap: break-word; word-break: break-word; hyphens: auto;
}
.pdp-reviews-nav {
    flex-shrink: 0; width: 38px; align-self: center; border-radius: 50%; border: 1px solid var(--line);
    background: var(--paper-raised); cursor: pointer; font-size: 16px; color: var(--ink); height: 38px;
    display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1;
}
.pdp-reviews-nav:hover { border-color: var(--brass); }
@media (max-width: 900px) {
    .pdp-reviews-track { grid-auto-columns: minmax(220px, calc(50% - 8px)); }
}
@media (max-width: 640px) {
    .pdp-reviews-track { grid-auto-flow: row; grid-template-columns: 1fr; max-height: 620px; overflow-y: auto; scroll-snap-type: y mandatory; }
    .pdp-review { scroll-snap-align: start; }
    .pdp-reviews-nav { display: none; }
}

@media (max-width: 760px) {
    .pdp-shell { flex-direction: column; gap: 20px; }
}

/* ---------- Cookie-Consent-Banner ---------- */
.cookie-consent-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: var(--ink); color: #fff;
    padding: 18px clamp(16px, 4vw, 40px);
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.cookie-consent-banner p { margin: 0; font-size: 13px; line-height: 1.5; max-width: 700px; }
.cookie-consent-banner a { color: #fff; text-decoration: underline; }
.cookie-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-consent-actions button {
    padding: 10px 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.4);
    background: transparent; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
}
#cookieAcceptAll { background: var(--brass); border-color: var(--brass); color: var(--ink); }
@media (max-width: 640px) {
    .cookie-consent-banner { flex-direction: column; align-items: stretch; text-align: center; }
    .cookie-consent-actions { justify-content: center; }
}

/* ---------- Rechtstexte (Impressum, Datenschutz, AGB, Widerruf) ---------- */
.legal-shell { max-width: 780px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px) 100px; }
.legal-shell h1 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); margin: 0 0 20px; }
.legal-content { font-size: 14.5px; line-height: 1.7; }
.legal-content p { margin: 0 0 14px; }

/* ---------- Cross-Selling (Produktseite) ---------- */
.pdp-crosssell { max-width: 1100px; margin: 0 auto 60px; padding: 0 clamp(16px, 4vw, 40px); }
.pdp-crosssell-head { margin-bottom: 18px; }
.pdp-crosssell-head h2 { font-family: var(--font-display); font-size: 22px; margin: 0 0 4px; }
.pdp-crosssell-head .hint { margin: 0; }
.pdp-crosssell-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px;
}
.pdp-crosssell-card {
    display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden;
    background: var(--paper-raised);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pdp-crosssell-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    border-color: var(--brass);
}
.pdp-crosssell-image-wrap { aspect-ratio: 1 / 1; overflow: hidden; background: #f4f1ec; }
.pdp-crosssell-image-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.35s ease;
}
.pdp-crosssell-card:hover .pdp-crosssell-image-wrap img { transform: scale(1.06); }
.pdp-crosssell-body { padding: 14px 16px 4px; display: flex; flex-direction: column; gap: 4px; }
.pdp-crosssell-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.pdp-crosssell-price { font-family: var(--font-mono); font-size: 13.5px; color: var(--brass-dk); font-weight: 700; }
.pdp-crosssell-cta {
    display: flex; align-items: center; gap: 6px; padding: 10px 16px 16px;
    font-size: 13px; font-weight: 600; color: var(--ink-soft);
}
.pdp-crosssell-arrow { display: inline-block; transition: transform 0.2s ease; }
.pdp-crosssell-card:hover .pdp-crosssell-arrow { transform: translateX(4px); }
.pdp-crosssell-card:hover .pdp-crosssell-cta { color: var(--brass-dk); }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.pdp-plain-add-form { display: flex; align-items: center; gap: 12px; }
.pdp-plain-qty {
    width: 64px; text-align: center; font-size: 15px; font-weight: 600;
    padding: 10px 6px; border: 1px solid var(--line); border-radius: var(--radius-sm, 8px);
    background: var(--paper-raised); color: var(--ink);
}

/* ---------- Cross-Selling-Hinweis im Designer (dezenter Toast) ---------- */
.dcs-toast {
    position: fixed; right: 20px; bottom: 20px; z-index: 500;
    width: min(320px, calc(100vw - 40px));
    background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0,0,0,0.14);
    padding: 16px 18px 14px;
    opacity: 0; transform: translateY(16px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.dcs-toast.dcs-toast-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.dcs-toast-close {
    position: absolute; top: 8px; right: 10px; border: none; background: none;
    font-size: 20px; line-height: 1; color: var(--ink-soft); cursor: pointer; padding: 4px;
}
.dcs-toast-close:hover { color: var(--ink); }
.dcs-toast-head {
    display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px;
    margin-bottom: 10px; padding-right: 16px;
}
.dcs-toast-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--brass); flex-shrink: 0;
    animation: dcsPulse 2.4s ease-in-out infinite;
}
@keyframes dcsPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(226, 0, 122, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(226, 0, 122, 0); }
}
.dcs-toast-items { display: flex; flex-direction: column; gap: 8px; }
.dcs-toast-item {
    display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
    padding: 6px; border-radius: 8px; transition: background 0.15s ease;
}
.dcs-toast-item:hover { background: rgba(0,0,0,0.035); }
.dcs-toast-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 7px; flex-shrink: 0; }
.dcs-toast-item-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dcs-toast-item-name { font-size: 13px; font-weight: 600; line-height: 1.25; }
.dcs-toast-item-price { font-size: 12px; font-family: var(--font-mono); color: var(--brass-dk); font-weight: 700; }
@media (max-width: 480px) {
    .dcs-toast { left: 20px; right: 20px; width: auto; }
}

/* ---------- Footer (Marketing-Seiten: Start/Kategorie/Produkt) ---------- */
.site-footer-main { background: var(--ink); color: rgba(255,255,255,0.85); margin-top: 40px; }
.footer-grid {
    max-width: 1280px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 40px) 4px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.footer-col h4 { font-family: var(--font-display); font-size: 15px; color: #fff; margin: 0 0 12px; }
.footer-col .hint { color: rgba(255,255,255,0.6); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 13.5px; }
.footer-col ul a:hover { color: var(--brass); }
.footer-grid-phone-row { padding-top: 0; padding-bottom: 36px; }
.footer-contact-box {
    grid-column: span 3;
    width: 85%;
    display: flex; align-items: stretch; flex-wrap: wrap; gap: 0;
    box-sizing: border-box; padding: 6px 18px;
    border: 1px solid rgba(255,255,255,0.18); border-radius: 10px;
    background: rgba(255,255,255,0.04);
}
.footer-contact-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; flex: 1; min-width: 220px;
    text-decoration: none !important;
}
.footer-contact-divider {
    width: 1px; align-self: stretch; margin: 14px 0;
    background: rgba(255,255,255,0.14); flex-shrink: 0;
}
.footer-contact-icon {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
    background: var(--brass); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.footer-contact-text {
    display: flex; flex-direction: column; color: #fff;
    font-size: 19px; font-weight: 700; letter-spacing: 0.2px; line-height: 1.35;
    text-decoration: none; min-width: 0; overflow-wrap: break-word;
}
.footer-contact-text small {
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.3px;
    text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 2px;
}
.footer-contact-item:hover .footer-contact-icon { background: var(--brass-dk); }
@media (max-width: 700px) {
    .footer-contact-box { flex-direction: column; padding: 6px 18px; }
    .footer-contact-divider { display: none; }
    .footer-contact-item { min-width: 0; }
}
@media (max-width: 480px) {
    .footer-contact-text { font-size: 17px; }
}
.footer-newsletter-form {
    display: grid; grid-template-columns: 1fr auto; align-items: stretch; gap: 0; margin-top: 10px;
}
.footer-newsletter-form input,
.footer-newsletter-form button {
    height: 44px !important;
    line-height: 44px !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    margin: 0 !important;
    font-size: 13px;
    font-family: var(--font-body);
    text-decoration: none;
    vertical-align: top;
}
.footer-newsletter-form input {
    padding: 0 16px; border: 1.5px solid rgba(255,255,255,0.18); border-right: none;
    background: rgba(255,255,255,0.06); color: #fff;
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.footer-newsletter-form input:focus { outline: none; border-color: var(--brass); background: rgba(255,255,255,0.1); }
.footer-newsletter-form button {
    padding: 0 20px; border: none; background: var(--brass); color: #fff; font-weight: 700;
    cursor: pointer; white-space: nowrap;
}
.footer-newsletter-form button:hover { background: var(--brass-dk); }
.footer-newsletter-form-wrap .checkout-checkbox { margin-top: 14px; }
.footer-bottom {
    max-width: 1280px; margin: 0 auto; padding: 16px clamp(16px, 4vw, 40px) 24px;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    font-size: 12px; color: rgba(255,255,255,0.55);
}
@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-contact-box { grid-column: span 2; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-contact-box { grid-column: span 1; width: 100%; }
}

/* ---------- Schlanker Footer für Checkout/Designer/Warenkorb ---------- */
.site-footer-slim {
    text-align: center; padding: 20px; font-size: 12px; color: var(--ink-soft);
    border-top: 1px solid var(--line);
}
.site-footer-slim a { color: var(--ink-soft); margin: 0 8px; text-decoration: none; }
.site-footer-slim a:hover { color: var(--brass-dk); }

/* ---------- Ankündigungsleiste ---------- */
.announcement-bar {
    background: var(--ink); color: #fff; text-align: center;
    font-size: 12.5px; padding: 8px 16px; letter-spacing: 0.02em;
}

/* ---------- Hero-Slider ---------- */
.hero-slider-wrap {
    max-width: 1280px; margin: 20px auto 0; padding: 0 clamp(16px, 4vw, 40px); box-sizing: border-box;
}
.hero-slider {
    position: relative; width: 100%;
    aspect-ratio: 1921/819; overflow: hidden;
    border-radius: var(--radius-lg); box-shadow: 0 16px 40px rgba(23,21,18,0.12);
}
.hero-slider-track { position: relative; width: 100%; height: 100%; }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    transition: opacity 0.6s ease; overflow: hidden;
    display: block; text-decoration: none; color: inherit;
}
.hero-slide[href] { cursor: pointer; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    filter: blur(38px) brightness(0.65) saturate(1.15); transform: scale(1.15);
}
.hero-slide-img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-slide-caption {
    position: absolute; left: clamp(16px, 5vw, 60px); bottom: clamp(12px, 3vw, 28px);
    max-width: 440px; color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.hero-slide-caption h2 { font-family: var(--font-display); font-size: clamp(18px, 2.6vw, 28px); margin: 0 0 6px; }
.hero-slide-caption p { font-size: clamp(12.5px, 1.3vw, 14.5px); margin: 0 0 10px; }
.hero-slider-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.85); color: var(--ink); font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    appearance: none; -webkit-appearance: none; outline: none; padding: 0;
    transition: background 0.15s ease, color 0.15s ease;
}
.hero-slider-nav:hover, .hero-slider-nav:focus, .hero-slider-nav:active {
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.85); color: var(--ink);
}
.hero-slider-nav.prev { left: 16px; }
.hero-slider-nav.next { right: 16px; }
.hero-slider-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-slider-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); cursor: pointer; padding: 0; }
.hero-slider-dot.is-active { background: #fff; }

/* ---------- Kategorien-Schaufenster ---------- */
.category-grid {
    max-width: 1280px; margin: 18px auto 0; padding: 0 clamp(16px, 4vw, 40px) 12px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px;
}
.category-card {
    position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden;
    text-decoration: none; display: flex; align-items: flex-end; padding: 14px;
}
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.category-card-placeholder { position: absolute; inset: 0; background: var(--brass-soft); }
.category-card::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 35%, rgba(0,0,0,0) 75%);
}
.category-card span { position: relative; color: #fff; font-family: var(--font-display); font-size: 16px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }

@media (max-width: 640px) {
    .hero-slider-nav { width: 34px; height: 34px; }
    .hero-slider-wrap { display: none; }
}

/* ---------- Dreispaltiger Header (Nav / Logo / Aktionen) ---------- */
.shop-header-3col {
    position: sticky; top: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    gap: 16px; padding: 18px clamp(16px, 4vw, 40px);
    background: rgba(250, 247, 242, 0.9);
    backdrop-filter: blur(10px) saturate(140%);
    border-bottom: 1px solid var(--line);
}
.shop-header-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.shop-header-nav a { font-size: 16px; font-weight: 600; text-decoration: none; color: var(--ink); }
.shop-header-nav a:hover { color: var(--brass-dk); }

/* ---------- Kategorie-Leiste (auf Kategorie-/Produktseiten, damit der Kategoriebaum nie verschwindet) ---------- */
.shop-category-bar { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.shop-category-bar-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px);
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.shop-category-bar-item { position: relative; flex-shrink: 0; }
.shop-category-bar-link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 13px 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
    text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.shop-category-bar-link:hover { color: var(--ink); }
.shop-category-bar-link.is-active { color: var(--brass-dk); border-bottom-color: var(--brass); }
.shop-category-bar-caret { font-size: 9px; margin-left: 2px; }

/* Unterkategorien als Dropdown (wie im Backend-Menü) statt inline nach rechts wachsend */
.shop-category-bar-dropdown {
    display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
    box-shadow: 0 12px 28px rgba(23,21,18,0.12); padding: 6px; margin-top: 6px;
    flex-direction: column; gap: 2px;
}
.shop-category-bar-dropdown::before {
    content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.shop-category-bar-item:hover .shop-category-bar-dropdown,
.shop-category-bar-item.is-open .shop-category-bar-dropdown { display: flex; }
.shop-category-bar-dropdown a {
    padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
    color: var(--ink); text-decoration: none; white-space: nowrap;
}
.shop-category-bar-dropdown a:hover { background: var(--brass-soft); }
.shop-category-bar-dropdown a.is-active { background: var(--brass); color: #fff; }

.category-subcat-pills {
    max-width: 1280px; margin: 16px auto 28px; padding: 0 clamp(16px, 4vw, 40px);
    display: flex; gap: 10px; flex-wrap: wrap;
}
.category-subcat-pill {
    padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--line);
    background: var(--paper-raised); color: var(--ink); text-decoration: none;
    font-size: 13.5px; font-weight: 600; transition: border-color 0.15s ease, color 0.15s ease;
}
.category-subcat-pill:hover { border-color: var(--brass); color: var(--brass-dk); }

.category-header-image {
    max-width: 1280px; margin: 0 auto; padding: clamp(20px, 4vw, 32px) clamp(16px, 4vw, 40px) 0;
}
.category-header-image img {
    width: 100%; height: auto; border-radius: var(--radius-lg);
    display: block;
}
.category-body-text {
    max-width: 1280px; margin: 4px auto 24px; padding: 0 clamp(16px, 4vw, 40px);
}
.category-body-text p { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); margin: 0; }

/* ---------- KI-Transparenzhinweis (EU-KI-Verordnung) ---------- */
.ai-disclosure-badge {
    position: absolute; right: 8px; bottom: 8px; z-index: 3;
    background: rgba(23,21,18,0.62); color: #fff; font-size: 10.5px; font-weight: 600;
    padding: 3px 8px; border-radius: 999px; letter-spacing: 0.2px;
    pointer-events: none; white-space: nowrap;
}
.ai-disclosure-note {
    font-size: 12px; color: var(--ink-soft); margin: 8px 0 0; line-height: 1.5;
}
.shop-brand-center { justify-self: center; text-decoration: none; }
.shop-brand-center .shop-brand-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: 0.5px; }
.shop-header-actions { justify-self: end; display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; }
.shop-cart-label { font-size: 16px; font-weight: 600; margin-left: 4px; }
.shop-mobile-menu-btn {
    display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
    width: 38px; height: 38px; border: none; border-radius: 50%;
    background: rgba(23,21,18,0.4); cursor: pointer; padding: 0;
}
.shop-mobile-menu-btn span { display: block; width: 16px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.shop-mobile-menu-btn.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.shop-mobile-menu-btn.is-open span:nth-child(2) { opacity: 0; }
.shop-mobile-menu-btn.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.shop-mobile-menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px clamp(16px, 4vw, 40px) 16px;
    flex-direction: column; gap: 4px;
    box-shadow: 0 8px 20px rgba(23,21,18,0.08);
    z-index: 50;
}
.shop-mobile-menu.is-open { display: flex; }
.shop-mobile-menu a { padding: 10px 4px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.shop-mobile-menu a.shop-mobile-menu-sub { padding-left: 20px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }
.shop-mobile-menu a:last-child { border-bottom: none; }

@media (max-width: 760px) {
    .shop-header-3col { grid-template-columns: auto 1fr auto; position: relative; }
    .shop-header-nav { display: none; }
    .shop-mobile-menu-btn { display: flex; }
}

/* ---------- Baukasten-Blöcke ---------- */
.home-heading-block { max-width: 700px; margin: 48px auto 0; padding: 0 clamp(16px, 4vw, 40px); text-align: center; }
.home-heading-block h2 { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 10px; }
.home-heading-block p { color: var(--ink-soft); font-size: 15px; }
.home-text-block { max-width: 1280px; margin: 24px auto 0; padding: 0 clamp(16px, 4vw, 40px); box-sizing: border-box; }
.home-text-block h2 { font-family: var(--font-display); font-size: 22px; margin: 0 0 12px; }
.home-text-block p { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }
.home-spacer { height: clamp(20px, 4vw, 48px); }

/* Produkt-Slider (horizontal) */
.product-slider-section {
    max-width: 1280px; margin: 18px auto 0; padding: 0 clamp(16px, 4vw, 40px) 40px;
    display: flex; align-items: center; gap: 10px;
}
.product-slider-track {
    display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth;
    padding-bottom: 6px; scrollbar-width: none;
}
.product-slider-track::-webkit-scrollbar { display: none; }
.product-slider-track .product-card { flex: 0 0 240px; }
.product-slider-nav {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
    background: var(--paper-raised); cursor: pointer; font-size: 16px; color: var(--ink);
}
.product-slider-nav:hover { border-color: var(--brass); }

/* Einzelprodukt-Feature */
.single-product-feature {
    max-width: 1280px; margin: 24px auto 0; padding: 0 clamp(16px, 4vw, 40px) 40px;
    display: flex; gap: 40px; align-items: center; flex-wrap: wrap;
}
.single-product-feature img { flex: 1 1 380px; width: 100%; max-width: 480px; border-radius: var(--radius-lg); aspect-ratio: 1/1; object-fit: cover; }
.single-product-feature-body { flex: 1 1 320px; }
.single-product-feature-body h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); margin: 6px 0 12px; }
.single-product-feature-body p { color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; }
.single-product-feature-body .price { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 20px; }

/* ---------- USt-Hinweis (Kleinunternehmerregelung) ---------- */
.vat-notice { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 4px; font-family: var(--font-body); }

/* ---------- Checkout: Zustimmungs-Checkboxen ---------- */
.checkout-consent { padding: 16px 22px; }
.checkout-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; margin-bottom: 10px; cursor: pointer; }
.checkout-checkbox input { margin-top: 3px; width: auto; accent-color: var(--brass); }
.checkout-checkbox a { text-decoration: underline; }

/* ---------- Logo im Header ---------- */
.shop-brand-logo { width: 200px; height: 80px; object-fit: contain; display: block; }

/* ---------- USt-Hinweis im (dunklen) Haupt-Footer ---------- */
.footer-vat-notice { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 20px; }
.footer-vat-notice .vat-notice { color: rgba(255,255,255,0.45); font-size: 11.5px; }

/* ---------- Text-Stil-Buttons (Fett/Kursiv/Unterstrichen) ---------- */
.fd-style-toggles { display: flex; gap: 6px; margin-top: 4px; }
.fd-style-toggles button {
    flex: 1; padding: 8px; border: 1.5px solid var(--line); border-radius: 8px;
    background: var(--paper); color: var(--ink); cursor: pointer; font-size: 14px;
}
.fd-style-toggles button.is-active { border-color: var(--brass); background: var(--brass-soft); color: var(--brass-dk); }
.fd-layer-row button:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---------- Kurzfakten & FAQ (Produktseite) ---------- */
.pdp-quick-facts { list-style: none; margin: 0 0 24px; padding: 16px 18px; background: var(--paper); border-radius: var(--radius-md); font-size: 13.5px; }
.pdp-quick-facts li { margin-bottom: 6px; }
.pdp-quick-facts li:last-child { margin-bottom: 0; }
.pdp-faq { max-width: 1100px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 60px; }
.pdp-faq h2 { font-family: var(--font-display); font-size: 22px; margin-bottom: 16px; }
.pdp-faq-item { border-top: 1px solid var(--line); padding: 14px 0; }
.pdp-faq-item summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.pdp-faq-item p { margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Vertrauens-Leiste auf der Produktseite (ehrliche Fakten, keine erfundene Verknappung) ---------- */
.pdp-trust-bar { list-style: none; margin: 4px 0 20px; padding: 0; font-size: 13px; color: var(--ink-soft); }
.pdp-trust-bar li { margin-bottom: 6px; }
.pdp-trust-bar a { color: var(--ink-soft); text-decoration: underline; }

/* ---------- Mobile Sticky-CTA-Leiste (Produktseite) ---------- */
.pdp-mobile-cta-bar {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--paper-raised); border-top: 1px solid var(--line);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    align-items: center; gap: 12px;
    box-shadow: 0 -4px 16px rgba(23,21,18,0.08);
}
.pdp-mobile-cta-price { font-family: var(--font-mono); font-weight: 700; font-size: 15px; white-space: nowrap; }
@media (max-width: 760px) {
    .pdp-mobile-cta-bar { display: flex; }
    .pdp-shell { padding-bottom: 90px; }
}

/* Button im (jetzt flacheren) Slider etwas kompakter */
.hero-slide-caption .btn-primary { padding: 9px 18px; font-size: 13px; }

/* ---------- Designer: freundliche Überschrift, Preis-Hervorhebung, Vertrauens-Zeile, Datei-Upload ---------- */
.fd-panel-heading { font-family: var(--font-display); font-size: 19px; margin: 0 0 18px; }
.fd-price-highlight { color: var(--brass-dk); font-weight: 700; font-size: 15px; }
.fd-trust-line { font-size: 11.5px; color: var(--ink-soft); margin: 8px 0 0; text-align: center; }

.fd-file-upload { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.fd-file-upload-btn {
    display: flex; align-items: center; gap: 6px; padding: 10px 14px; border: 1.5px solid var(--line);
    border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.fd-file-upload-btn:hover { border-color: var(--brass); background: var(--brass-soft); }
.fd-file-upload-name { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Designer-Header: Zurück-Pfeil links, Logo mittig, Titel rechts ---------- */
.fd-header-3col { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.fd-header-logo { justify-self: center; text-decoration: none; }
@media (max-width: 640px) {
    .fd-header-3col h1 { display: none; }
}

/* ---------- Design-Varianten-Auswahl ---------- */
.fd-variant-picker { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 18px; }
.fd-variant-thumb {
    border: 2px solid transparent; border-radius: 10px; padding: 4px; background: var(--paper);
    cursor: pointer; text-align: center; width: 68px;
}
.fd-variant-thumb img { width: 100%; height: 50px; object-fit: cover; border-radius: 6px; display: block; }
.fd-variant-thumb span { display: block; font-size: 10.5px; margin-top: 4px; color: var(--ink-soft); }
.fd-variant-thumb.is-active { border-color: var(--brass); }

/* ---------- Vorder-/Rückseiten-Reiter ---------- */
.fd-side-tabs { display: flex; gap: 6px; margin: 6px 0 16px; }
.fd-side-tab {
    flex: 1; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 999px;
    background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer;
}
.fd-side-tab.is-active { background: var(--brass); border-color: var(--brass); color: #fff; }

/* ---------- Icons für Anmelden/Warenkorb: Handy = nur Icon, Desktop/Tablet = nur Text ---------- */
.shop-header-iconlink { display: flex; align-items: center; gap: 6px; }
.shop-header-icon { width: 20px; height: 20px; flex-shrink: 0; }
@media (min-width: 761px) {
    .shop-header-icon { display: none; }
}
@media (max-width: 760px) {
    .shop-header-label { display: none; }
}

/* ---------- Schlanke Seiten (Bezahlen/Bestellbestätigung): passt sich automatisch der Bildschirmhöhe an ---------- */
.simple-page-flex { min-height: 100vh; display: flex; flex-direction: column; }
.simple-page-logo { flex: 0 0 auto; text-align: center; padding: clamp(6px, 1.8vh, 20px) 16px 0; }
.simple-page-logo img { height: clamp(50px, 15vh, 200px); width: auto; max-width: min(85vw, 480px); }
.simple-page-body { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(6px, 1.5vh, 16px) 16px; min-height: 0; }
.simple-page-body .shop-message-box { margin: 0 auto; max-height: 100%; overflow-y: auto; }
.simple-page-flex .site-footer-slim { flex: 0 0 auto; }

/* ---------- Vorder-/Rückseiten-Reiter neben dem Bild (Desktop), oben (Handy/Tablet) ---------- */
.fd-stage-row { display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%; }
.fd-stage-canvases { display: flex; flex-direction: column; align-items: center; min-width: 0; }
#stagePreviewTabs { flex-direction: column; gap: 8px; flex-shrink: 0; margin: 0; }
#stagePreviewTabs .fd-side-tab { flex: none; width: 120px; }
@media (max-width: 900px) {
    .fd-stage-row { flex-direction: column-reverse; }
    #stagePreviewTabs { flex-direction: row; }
    #stagePreviewTabs .fd-side-tab { flex: 1; width: auto; }
}

/* ---------- Echter Social-Proof-Hinweis auf Produktkarten ---------- */
.product-card-social-proof { font-size: 11.5px; color: var(--brass-dk); font-weight: 600; margin: 4px 0 0; }

/* ---------- Warenkorb: weißer Hintergrund über volle Breite, Footer immer unten ---------- */
.cart-page-flex { background: #fff; min-height: 100vh; display: flex; flex-direction: column; }
.cart-page-flex .shop-header { flex: 0 0 auto; }
.cart-page-flex .site-footer-main { flex: 0 0 auto; margin-top: auto; }

/* ---------- Dezenter Wackel-Effekt für den Bestellung-abschließen-Button ---------- */
@keyframes btn-subtle-wiggle {
    0%, 90%, 100% { transform: translateY(0) rotate(0deg); }
    91% { transform: translateY(-2px) rotate(-1.2deg); }
    92% { transform: translateY(0) rotate(1.2deg); }
    93% { transform: translateY(-2px) rotate(-1deg); }
    94% { transform: translateY(0) rotate(1deg); }
    95% { transform: translateY(-1px) rotate(-0.5deg); }
    96%, 100% { transform: translateY(0) rotate(0deg); }
}
.btn-wiggle { animation: btn-subtle-wiggle 4.5s ease-in-out infinite; }
.btn-wiggle:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    .btn-wiggle { animation: none; }
}

/* ---------- Ausklappbare Suche mit Live-Vorschlägen ---------- */
.shop-search { position: relative; display: flex; align-items: center; }
.shop-search-toggle {
    width: 22px; height: 22px; padding: 0; margin: 0; border: none; background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: var(--ink);
    transition: color 0.15s ease;
}
.shop-search-toggle:hover { color: var(--brass-dk); }
.shop-search-icon { width: 20px; height: 20px; flex-shrink: 0; display: block; }
.shop-search-form {
    width: 0; overflow: hidden; opacity: 0;
    transition: width 0.28s ease, opacity 0.2s ease;
    position: absolute; right: 42px; top: 50%; transform: translateY(-50%);
}
.shop-search.is-open .shop-search-form { width: 220px; opacity: 1; }
.shop-search-form input {
    width: 100%; box-sizing: border-box; height: 38px; padding: 0 14px; border-radius: 999px;
    border: 1.5px solid var(--line); background: var(--paper); font-size: 14px;
}
.shop-search-form input:focus { outline: none; border-color: var(--brass); }
.shop-search-suggestions {
    display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 280px;
    background: var(--paper-raised); border-radius: var(--radius-md); box-shadow: 0 8px 24px rgba(23,21,18,0.14);
    z-index: 60; max-height: 340px; overflow-y: auto; padding: 6px;
}
.shop-search-suggestions.is-visible { display: block; }
.shop-search-suggestion {
    display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px;
    text-decoration: none; color: var(--ink);
}
.shop-search-suggestion:hover { background: var(--brass-soft); }
.shop-search-suggestion img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.shop-search-suggestion-name { flex: 1; font-size: 13.5px; font-weight: 600; }
.shop-search-suggestion-price { font-size: 12.5px; color: var(--brass-dk); font-weight: 600; white-space: nowrap; }
.shop-search-empty { padding: 10px; font-size: 13px; color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) {
    .shop-search.is-open .shop-search-form { width: 160px; }
    .shop-search-suggestions { width: 240px; }
}

/* ---------- Handy: Icons rechts im Header etwas weiter vom Bildschirmrand weg ---------- */
@media (max-width: 640px) {
    .shop-header-3col { padding-right: 22px; }
    .shop-header-actions { gap: 14px; }
}

/* ---------- "Kommt pünktlich an?"-Countdown (modern, dezenter Puls-Effekt) ---------- */
.pdp-delivery-countdown {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, var(--brass-soft), var(--paper));
    border: 1px solid var(--brass-soft); border-radius: var(--radius-lg);
    padding: 12px 16px; margin: 4px 0 20px;
    position: relative; overflow: hidden;
}
.pdp-delivery-countdown-icon {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
    background: var(--brass); color: #fff; display: flex; align-items: center; justify-content: center;
    animation: pdp-countdown-pulse 2.6s ease-in-out infinite;
}
.pdp-delivery-countdown-icon svg { width: 18px; height: 18px; }
@keyframes pdp-countdown-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(226,0,122,0.35); }
    50% { box-shadow: 0 0 0 6px rgba(226,0,122,0); }
}
.pdp-delivery-countdown-text { display: flex; flex-direction: column; font-size: 13px; line-height: 1.5; color: var(--ink); }
.pdp-delivery-countdown-text strong { font-family: var(--font-mono); color: var(--brass-dk); }
#deliveryCountdownTime { font-variant-numeric: tabular-nums; letter-spacing: 0.5px; }

/* ---------- Geschenkverpackungs-Werbung (dezenter Glanz-Effekt) ---------- */
.pdp-gift-promo {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, var(--brass) 0%, var(--brass-dk) 100%); color: #fff;
    border-radius: var(--radius-lg); padding: 12px 16px; margin-top: 14px;
    font-size: 13px; font-weight: 600;
}
.pdp-gift-promo-icon { font-size: 18px; flex-shrink: 0; }
.pdp-gift-promo::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.18), transparent);
    animation: pdp-gift-shine 5s ease-in-out infinite;
}
@keyframes pdp-gift-shine {
    0% { left: -60%; }
    35% { left: 130%; }
    100% { left: 130%; }
}

/* ---------- Design teilen: WhatsApp nur Handy, E-Mail nur Desktop/Tablet ---------- */
.pdp-share-buttons { display: flex; gap: 10px; margin: 12px 0; }
.pdp-share-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 13.5px;
}
.pdp-share-whatsapp { background: #25D366 !important; color: #fff !important; }
.pdp-share-email { background: var(--ink) !important; color: #fff !important; }
@media (min-width: 761px) { .pdp-share-whatsapp { display: none; } }
@media (max-width: 760px) { .pdp-share-email { display: none; } }

/* ---------- Design speichern/teilen-Button im Designer + Modal ---------- */
.fd-save-design-btn {
    width: 100%; margin-top: 8px; padding: 12px; border: 1.5px solid var(--line) !important; background: var(--paper) !important;
    color: var(--ink) !important; border-radius: 999px; font-weight: 600; font-size: 13.5px; cursor: pointer;
}
.fd-save-design-btn:hover { border-color: var(--brass) !important; }
.fd-save-modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(23,21,18,0.5); z-index: 200;
    align-items: center; justify-content: center; padding: 20px;
}
.fd-save-modal-overlay.is-open { display: flex; }
.fd-save-modal {
    background: #fff; border-radius: var(--radius-lg); padding: 24px; max-width: 420px; width: 100%;
    max-height: 90vh; overflow-y: auto;
}
.fd-save-modal h3 { font-family: var(--font-display); font-size: 18px; margin: 0 0 6px; }
.fd-save-modal label { font-size: 13px; font-weight: 700; display: block; margin-top: 12px; }
.fd-save-modal input {
    width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--line);
    border-radius: 8px; font-size: 14px; margin-top: 4px;
}
.fd-save-modal-close { background: none; border: none; float: right; font-size: 20px; cursor: pointer; color: var(--ink-soft); }

/* ---------- Designer: Produktfoto komplett + 360° daneben (v95) ---------- */
.fd-stage-row {
    display: flex; flex-direction: column; gap: 6px; align-items: center;
    width: 100%;
}
.fd-stage-main { flex: 0 0 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; }

/* Produktfoto immer vollständig sichtbar - nichts wird abgeschnitten */
body.designer-page img#fdBg { object-fit: contain !important; z-index: 1; }

/* Rahmen um die Gestaltungsfläche - durchgezogen, ohne Beschriftung.
   Sobald etwas platziert ist, tritt er dezent in den Hintergrund. */
.fd-area-hint {
    position: absolute; z-index: 3; pointer-events: none;
    border: 1.5px solid rgba(226,0,122,0.65);
    border-radius: 4px;
    transition: opacity 0.25s ease;
}
.fd-area-hint.is-dimmed { opacity: 0.35; }

/* Vorder-/Rückseiten-Markierungen werden nicht mehr verwendet */
.fd-side-marker { display: none !important; }

/* Designfläche oben, 360°-Vorschau darunter - beide über die volle Breite */
.fd-360-preview { margin-top: 14px; flex: 0 0 auto; min-width: 0; max-width: none;
    display: flex; flex-direction: column; align-items: center; }
.fd-360-frame {
    aspect-ratio: auto;
    background: radial-gradient(120% 100% at 50% 0%, #fbf9f6 0%, #efeae2 70%, #e4ded4 100%);
}
.fd-360-preview .fd-live-preview-label { align-self: flex-start; }
@media (max-width: 1100px) {
    .fd-360-preview { width: auto; margin-top: 10px; }
}

/* Die Bühne wird per JS exakt berechnet - keine zusätzliche CSS-Bremse,
   sonst bleibt Bildschirmfläche ungenutzt. */
@media (min-width: 761px) {
    body.designer-page #fdViewport { max-height: none; }
}

/* Die Bühne muss die volle Fensterbreite bekommen - sonst verschenken die
   beiden Elemente (Designfläche und 360°-Ansicht) Platz. */
body.designer-page .designer-shell { width: 100%; box-sizing: border-box; }
body.designer-page .designer-stage-col { width: 100%; }
body.designer-page .fd-stage-row { width: 100%; }

/* ---------- Designer auf dem Handy (v96) ----------
   Ziel: Produkt und 360°-Ansicht so groß wie möglich, dazwischen möglichst
   wenig Leerraum. Die exakten Pixelmaße rechnet weiterhin das JS aus - hier
   werden nur die CSS-Bremsen gelöst, die auf schmalen Geräten Platz kosten. */
@media (max-width: 760px) {
    body.designer-page .designer-shell {
        padding-left: 8px; padding-right: 8px;
        padding-top: 10px; padding-bottom: 12px;
        gap: 6px;
    }
    body.designer-page .designer-stage-col { gap: 4px; }

    /* Feste Mindesthöhe wäre auf dem Handy leerer Platz unter dem Produkt -
       die tatsächliche Höhe setzt das JS passgenau per Inline-Style. */
    body.designer-page #fdViewport { min-height: 0; min-width: 0; margin: 0 auto; }

    body.designer-page .fd-stage-row { gap: 6px; }
    body.designer-page .fd-stage-main { gap: 4px; width: 100%; }
    body.designer-page .fd-stage-main .hint { font-size: 12px; line-height: 1.35; }

    /* 360°-Ansicht direkt unter das Produkt, mittig, ohne Extra-Abstand */
    body.designer-page .fd-360-preview { margin-top: 8px; width: 100%; align-items: center; }
    body.designer-page .fd-360-preview .fd-live-preview-label { align-self: center; margin-bottom: 4px; font-size: 12px; }
    body.designer-page .fd-360-frame { margin: 0 auto; }
    body.designer-page .fd-360-preview .hint { margin-top: 4px !important; font-size: 12px; }

    /* Werkzeugleiste und Panel dichter setzen, damit die Bühne oben mehr
       Bildschirm bekommt und nicht erst gescrollt werden muss. */
    body.designer-page .fd-panel-scroll { padding: 16px; }
    body.designer-page .shop-scope .fd-toolbar { margin-bottom: 12px; gap: 6px; }
}

/* Designfläche und 360°-Ansicht auf dem Handy dicht zusammen (v96) */
@media (max-width: 760px) {
    body.designer-page .fd-stage-row { gap: 4px !important; }
    body.designer-page .fd-360-preview { margin-top: 2px !important; }
    body.designer-page .fd-360-preview .fd-live-preview-label { margin-bottom: 3px; }
    /* Die Rahmenhöhe setzt render360() passgenau auf die Tasse - ein festes
       Seitenverhältnis würde darüber und darunter wieder Leerraum erzeugen. */
    body.designer-page .fd-360-frame { aspect-ratio: auto !important; }
}

/* ---------- 360°-Ansicht: rahmenlos, dicht an der Designfläche (v97) ----------
   Die Rahmenhöhe rechnet render360() passgenau auf die Tasse aus. Deshalb hier
   kein festes Seitenverhältnis, keine Hintergrundfarbe und kein Rahmen - sonst
   entsteht rundherum wieder sichtbare Leerfläche. */
body.designer-page .fd-360-frame {
    aspect-ratio: auto !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
body.designer-page .fd-360-preview { margin-top: 0 !important; }
body.designer-page .fd-stage-row { gap: 2px !important; }
body.designer-page .fd-360-preview .fd-live-preview-label { margin: 0 0 2px; }

/* Hinweis zum Drehen: deutlich größer und in Bewegung, damit klar ist, dass
   die Tasse angefasst werden kann. */
.fd-360-hint {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 6px 0 0;
    font-size: 17px; font-weight: 700; color: var(--ink);
    letter-spacing: 0.01em; text-align: center;
    user-select: none;
}
.fd-360-hint-arrow {
    display: inline-block;
    font-size: 24px; line-height: 1; color: var(--brass, #E2007A);
    animation: fd-drag-nudge 1.5s ease-in-out infinite;
}
@keyframes fd-drag-nudge {
    0%, 100% { transform: translateX(-7px); }
    50%      { transform: translateX(7px); }
}
@media (max-width: 760px) {
    .fd-360-hint { font-size: 16px; margin-top: 4px; }
    .fd-360-hint-arrow { font-size: 22px; }
}
/* Wer Animationen abgeschaltet hat, bekommt den Hinweis ruhig - aber groß. */
@media (prefers-reduced-motion: reduce) {
    .fd-360-hint-arrow { animation: none; }
}

/* ---------- Scrollen auf dem Handy (v98) ----------
   Der Rahmen der 360°-Ansicht hatte "touch-action: none" und hat damit jede
   Wischgeste geschluckt - auch das senkrechte Scrollen. Mit "pan-y" behält der
   Browser das Scrollen, waagerechte Gesten bleiben fürs Drehen reserviert. */
body.designer-page .fd-360-frame { touch-action: pan-y !important; }

/* Dasselbe für die Designfläche: Fabric prüft dank allowTouchScrolling selbst,
   ob unter dem Finger ein Objekt liegt, und reicht die Geste sonst weiter. */
body.designer-page #fdViewport,
body.designer-page #fdStage,
body.designer-page #fdCanvas,
body.designer-page .canvas-container,
body.designer-page .upper-canvas,
body.designer-page .lower-canvas { touch-action: pan-y; }

/* ---------- Designer: Bedienbarkeit (v99) ---------- */

/* Rückgängig - eigene Zeile unter der Werkzeugleiste, damit es nicht wie eine
   weitere "Hinzufügen"-Schaltfläche aussieht. */
.shop-scope .fd-history-row { display: flex; margin: -8px 0 18px; }
.shop-scope .fd-undo-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 8px;
    background: var(--paper); color: var(--ink); cursor: pointer;
    font-family: var(--font-body); font-size: 13px; font-weight: 600;
}
.shop-scope .fd-undo-btn:hover:not(:disabled) { border-color: var(--brass); color: var(--brass); }
.shop-scope .fd-undo-btn:disabled { opacity: 0.4; cursor: default; }

/* Löschen steht bewusst abgesetzt: es ist die einzige nicht umkehrbare Aktion
   in dieser Gruppe und lag vorher direkt neben "Nach vorne"/"Nach hinten". */
.shop-scope .fd-selection-danger {
    margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
    display: flex;
}
.shop-scope .fd-selection-danger button {
    flex: 0 0 auto; padding: 9px 14px; border-radius: 8px; cursor: pointer;
    font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
    background: #fbeae7; border: 1.5px solid #e8b7ac; color: #a83226;
}
.shop-scope .fd-selection-danger button:hover { border-color: #a83226; }

/* Hinweis auf zu niedrige Druckauflösung */
.fd-quality-warning {
    margin: 14px 0 0; padding: 10px 12px; border-radius: 8px;
    font-size: 12.5px; line-height: 1.45;
    background: #fff6e5; border: 1px solid #f0d29b; color: #7a5410;
}
.fd-quality-warning.is-bad { background: #fbeae7; border-color: #e8b7ac; color: #a83226; }

/* Hinweis, wenn noch gar nichts gestaltet wurde */
.fd-order-warning {
    margin: 0 0 10px; padding: 10px 12px; border-radius: 8px;
    font-size: 13px; line-height: 1.45; font-weight: 600;
    background: #fbeae7; border: 1px solid #e8b7ac; color: #a83226;
}

/* =====================================================================
   AUSVERKAUFT - Plakette, Produktkarten, Produktseite
   ===================================================================== */
.soldout-badge {
    position: absolute; top: 12px; left: 12px; z-index: 3;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px 6px 10px; border-radius: 999px;
    background: rgba(23, 21, 18, 0.86);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: #fff; font-family: var(--font-body); font-size: 11.5px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
    box-shadow: 0 6px 18px rgba(23, 21, 18, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    pointer-events: none; white-space: nowrap;
}
.soldout-badge-dot {
    position: relative; width: 7px; height: 7px; border-radius: 50%;
    background: var(--brass); flex: 0 0 auto;
}
.soldout-badge-dot::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid var(--brass); opacity: 0;
    animation: soldoutPulse 2.4s ease-out infinite;
}
@keyframes soldoutPulse {
    0%   { transform: scale(0.5); opacity: 0.7; }
    80%  { transform: scale(1.4); opacity: 0; }
    100% { opacity: 0; }
}
.soldout-badge.is-large {
    top: 16px; left: 16px; padding: 9px 16px 9px 13px; font-size: 13px; gap: 9px;
}
.soldout-badge.is-large .soldout-badge-dot { width: 8px; height: 8px; }

/* Produktkarten (Kategorie, Startseite, Suche, Cross-Selling) */
.product-card.is-sold-out .product-card-img img,
.pdp-crosssell-card.is-sold-out .pdp-crosssell-image-wrap img {
    filter: grayscale(0.9) contrast(0.95); opacity: 0.55;
}
.product-card.is-sold-out:hover .product-card-img img,
.pdp-crosssell-card.is-sold-out:hover .pdp-crosssell-image-wrap img { transform: none; }
.product-card.is-sold-out::before { background: var(--ink-soft); }
.product-card.is-sold-out .product-card-footer .price { color: var(--ink-soft); }
.product-card-footer .cta.soldout-cta { color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.product-card.is-sold-out .product-card-footer .price { white-space: nowrap; }

/* Produktseite: Hinweis statt "Jetzt gestalten" */
.soldout-panel {
    display: grid; grid-template-columns: auto 1fr; gap: 14px 14px; align-items: center;
    margin-top: 8px; padding: 18px;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ffffff 0%, #f6f2ec 100%);
    box-shadow: 0 1px 3px rgba(23, 21, 18, 0.05);
}
.soldout-panel-icon {
    width: 46px; height: 46px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--brass-soft); color: var(--brass-dk);
}
.soldout-panel-icon svg { width: 24px; height: 24px; }
.soldout-panel-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.soldout-panel-text strong { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); }
.soldout-panel-text span { font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.soldout-panel .soldout-btn { grid-column: 1 / -1; }
.soldout-link {
    grid-column: 1 / -1; justify-self: center;
    font-size: 14px; font-weight: 600; text-decoration: none;
    color: var(--brass-dk) !important; padding: 4px 8px; border-radius: 8px;
}
.soldout-link:hover { text-decoration: underline; }
.soldout-link:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.soldout-btn {
    width: 100%; padding: 14px 20px; border: none; border-radius: 999px;
    background: repeating-linear-gradient(-45deg, #e9e4dc 0 10px, #e2dcd2 10px 20px);
    color: var(--ink-soft); font-family: var(--font-body); font-size: 15.5px; font-weight: 700;
    letter-spacing: 0.02em; cursor: not-allowed; box-shadow: inset 0 0 0 1px rgba(23, 21, 18, 0.06);
}

@media (max-width: 760px) {
    .soldout-panel { padding: 16px; }
    .soldout-panel-text strong { font-size: 17px; }
    /* Unten fixiert ist schon ein "Ausverkauft"-Button - doppelt braucht es ihn nicht */
    .soldout-panel .soldout-btn { display: none; }
}
@media (max-width: 560px) {
    .soldout-badge { top: 8px; left: 8px; padding: 5px 9px 5px 8px; font-size: 9.5px; gap: 6px; letter-spacing: 0.06em; }
    .soldout-badge-dot { width: 6px; height: 6px; }
    .soldout-badge.is-large { top: 12px; left: 12px; padding: 7px 13px 7px 11px; font-size: 11.5px; }
    /* Schmale Karten: Plakette auf dem Bild reicht, Text unten würde umbrechen */
    .product-card-footer .cta.soldout-cta { display: none; }
}
