/* ===========================================================================
 * Amouria Shop – Elementor Widgets Frontend
 * Alle Selektoren mit Prefix .amr- damit nichts vom Theme überschrieben wird.
 * Farb-Palette: #B8956A (gold), #F3EFE9 (beige), #2d2d2d (anthrazit)
 * =========================================================================== */

.amr-hidden { display: none !important; }

/* ===========================================================================
 * Mini-Cart-Icon
 * =========================================================================== */
.amr-mini-cart {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; color: inherit; margin-left: 1.5em;
    transition: transform 0.2s ease;
}
.amr-mini-cart:hover { transform: translateY(-1px); }
.amr-mini-cart-icon { display: inline-flex; width: 24px; height: 24px; transition: opacity 0.3s ease; }
.amr-mini-cart-icon svg { width: 100%; height: 100%; transition: fill 0.3s ease, stroke 0.3s ease; }
.amr-mini-cart-badge {
    position: absolute; top: -0.4em; right: -0.6em;
    min-width: 1.3em; height: 1.3em; padding: 0 0.4em; border-radius: 0.7em;
    background: #B8956A; color: #FFF;
    font-family: 'Outfit', sans-serif; font-size: 0.75em; font-weight: 600;
    line-height: 1.3em; text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.amr-mini-cart-badge.amr-hidden { opacity: 0; transform: scale(0); pointer-events: none; }
.amr-mini-cart-badge.amr-pulse { animation: amr-cart-pulse 0.35s ease; }
@keyframes amr-cart-pulse { 0%{transform:scale(1)} 50%{transform:scale(1.25)} 100%{transform:scale(1)} }
@media (max-width: 1024px) { .amr-mini-cart { margin-left: 0.8em; margin-right: 0.4em; } }

/* ===========================================================================
 * Cart-Drawer
 * =========================================================================== */
.amr-drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 9998;
    opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease;
}
.amr-drawer-panel {
    position: fixed; top: 0; right: 0; width: min(94vw, 26em); height: 100dvh;
    background: #F3EFE9; z-index: 9999;
    transform: translateX(102%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column; box-shadow: -4px 0 28px rgba(0,0,0,0.13);
}
.amr-drawer-root.amr-active .amr-drawer-overlay { opacity: 1; visibility: visible; }
.amr-drawer-root.amr-active .amr-drawer-panel { transform: translateX(0); }
.amr-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2em 1.4em; border-bottom: 1px solid rgba(184,149,106,0.25);
}
.amr-drawer-head h3 {
    margin: 0; font-family: 'Crimson Pro', Georgia, serif; font-weight: 400;
    color: #2d2d2d; font-size: 1.3em;
}
.amr-drawer-count {
    display: inline-block; background: #B8956A; color: #FFF;
    font-family: 'Outfit', sans-serif; font-size: 0.75em; font-weight: 600;
    min-width: 1.4em; padding: 0 0.4em; border-radius: 0.8em; margin-left: 0.4em;
    text-align: center; vertical-align: middle;
}
.amr-drawer-close {
    background: none; border: none; cursor: pointer; color: #2d2d2d; padding: 0.4em;
    transition: color 0.2s ease;
}
.amr-drawer-close:hover { color: #B8956A; }
.amr-drawer-items { flex: 1; overflow-y: auto; padding: 1em 1.2em; }
.amr-drawer-item {
    display: grid; grid-template-columns: 60px 1fr auto; gap: 0.8em;
    align-items: center; padding: 0.7em 0; border-bottom: 1px solid rgba(184,149,106,0.15);
}
.amr-drawer-item-img img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
.amr-drawer-item-name {
    display: block; color: #2d2d2d; text-decoration: none; font-weight: 500;
    font-family: 'Crimson Pro', Georgia, serif; font-size: 1.05em;
}
.amr-drawer-item-name:hover { color: #B8956A; }
.amr-drawer-item-qty, .amr-drawer-item-price {
    font-family: 'Outfit', sans-serif; font-size: 0.9em; color: #74675a; margin-right: 0.5em;
}
.amr-drawer-item-remove {
    background: none; border: none; cursor: pointer; font-size: 1.4em;
    color: #74675a; padding: 0.2em 0.4em; transition: color 0.2s ease;
}
.amr-drawer-item-remove:hover { color: #B8956A; }
.amr-drawer-empty {
    text-align: center; color: #74675a; font-style: italic;
    font-family: 'Crimson Pro', Georgia, serif; padding: 2em 0;
}
.amr-drawer-foot {
    padding: 1.2em 1.4em; border-top: 1px solid rgba(184,149,106,0.25); background: #FFF;
}
.amr-drawer-total {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 1em;
    font-family: 'Outfit', sans-serif;
}
.amr-drawer-total strong {
    font-family: 'Crimson Pro', Georgia, serif; font-size: 1.3em; color: #2d2d2d;
}
.amr-drawer-actions { display: flex; flex-direction: column; gap: 0.5em; }
.amr-drawer-view-cart, .amr-drawer-checkout-btn {
    display: block; text-align: center; padding: 0.8em 1.2em;
    text-decoration: none; font-family: 'Outfit', sans-serif; font-weight: 500;
    border-radius: 4px; transition: all 0.2s ease;
}
.amr-drawer-view-cart { background: transparent; color: #2d2d2d; border: 1px solid #2d2d2d; }
.amr-drawer-view-cart:hover { background: #2d2d2d; color: #FFF; }
.amr-drawer-checkout-btn { background: #B8956A; color: #FFF; }
.amr-drawer-checkout-btn:hover { background: #2d2d2d; color: #FFF; }

/* ===========================================================================
 * Produktkarte (.amr-pc) + Produkt-Grid (.amr-pg)
 * =========================================================================== */
/* Grundlayout (Defaults; pro-Breakpoint-Werte kommen vom Widget via
   add_responsive_control – siehe class-widget-product-grid.php) */
.amr-pg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
}

.amr-pc {
    background: #FFF; border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex; flex-direction: column;
}
.amr-pc:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.amr-pc-img { display: block; aspect-ratio: 1/1; overflow: hidden; }
.amr-pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.amr-pc:hover .amr-pc-img img { transform: scale(1.04); }
.amr-pc-body { padding: 1em 1.2em 1.2em; flex: 1; display: flex; flex-direction: column; }
.amr-pc-title {
    margin: 0 0 0.3em; font-family: 'Crimson Pro', Georgia, serif; font-weight: 400;
    font-size: 1.25em; color: #2d2d2d;
}
.amr-pc-title a { color: inherit; text-decoration: none; }
.amr-pc-title a:hover { color: #B8956A; }
.amr-pc-price {
    margin: 0 0 1em; font-family: 'Outfit', sans-serif; font-weight: 600;
    color: #B8956A; font-size: 1.05em;
}
.amr-pc-actions { margin-top: auto; display: flex; flex-direction: column; gap: 0.5em; }
.amr-pc-btn {
    display: block; text-align: center; padding: 0.7em 1em; text-decoration: none;
    border-radius: 4px; font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 0.95em;
    transition: all 0.2s ease;
}
.amr-pc-btn-primary { background: #B8956A; color: #FFF; }
.amr-pc-btn-primary:hover { background: #2d2d2d; color: #FFF; }
.amr-pc-btn-secondary { background: transparent; color: #2d2d2d; border: 1px solid #2d2d2d; }
.amr-pc-btn-secondary:hover { background: #2d2d2d; color: #FFF; }
.amr-pc-placeholder, .amr-pg-empty { color: #74675a; padding: 1em; text-align: center; font-style: italic; }

/* ===========================================================================
 * Kategorie-Karten
 * =========================================================================== */
.amr-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8em; }
@media (max-width: 768px) { .amr-cats { grid-template-columns: repeat(2, 1fr); } }
.amr-cat-tile {
    position: relative; display: block; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden;
    text-decoration: none; background: #2d2d2d;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.amr-cat-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.amr-cat-bg { position: absolute; inset: 0; background-position: center; background-size: cover; transition: transform 0.4s ease; }
.amr-cat-tile:hover .amr-cat-bg { transform: scale(1.05); }
.amr-cat-label {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 0.8em;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 70%, transparent 100%);
    font-family: 'Crimson Pro', Georgia, serif; font-style: italic;
    color: #FFF; text-align: center; font-size: 1.05em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ===========================================================================
 * PLZ-Lieferchecker
 * =========================================================================== */
.amr-plz {
    background: #F3EFE9; padding: 1.5em; border-radius: 8px;
}
.amr-plz-headline {
    margin: 0 0 1em; font-family: 'Crimson Pro', Georgia, serif; font-weight: 400;
    color: #2d2d2d; font-size: 1.3em;
}
.amr-plz-form {
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap; /* Fallback wenn beide nicht in eine Zeile passen */
    width: 100%;
    box-sizing: border-box;
}
.amr-plz-input {
    flex: 1 1 0;
    min-width: 0; /* erlaubt Schrumpfen unter intrinsic width */
    padding: 0.7em 1em; border: 1px solid #d4c8b5; border-radius: 4px;
    background: #FFF; font-family: 'Outfit', sans-serif; font-size: 1em;
    box-sizing: border-box;
}
.amr-plz-input:focus { outline: none; border-color: #B8956A; }
.amr-plz-btn {
    flex: 0 0 auto;
    background: #B8956A; color: #FFF; border: none; padding: 0.7em 1.4em;
    border-radius: 4px; cursor: pointer; font-family: 'Outfit', sans-serif; font-weight: 500;
    transition: background 0.2s ease;
    white-space: nowrap;
}
/* Mobile: Button unter Input stacken damit nichts mehr rausragt */
@media (max-width: 480px) {
    .amr-plz-form { flex-direction: column; }
    .amr-plz-btn  { width: 100%; }
}
.amr-plz-btn:hover { background: #2d2d2d; }
.amr-plz-result { margin-top: 1em; }
.amr-plz-msg { padding: 1em; border-radius: 4px; font-family: 'Outfit', sans-serif; }
.amr-plz-yes { background: #d4e8d9; color: #2d5a3a; }
.amr-plz-no  { background: #f9dcb6; color: #8a5a1a; }
.amr-plz-express { display: inline-block; margin-top: 0.4em; color: #B8956A; font-weight: 500; }
.amr-plz-loading { color: #74675a; }

/* CTA-Button nach erfolgreichem Check */
.amr-plz-cta { text-align: center; margin-top: 1em; }
.amr-plz-shop-btn {
    display: inline-block;
    padding: 0.9em 2em;
    background: #B8956A;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.25s ease;
}
.amr-plz-shop-btn:hover {
    background: #2d2d2d;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* ===========================================================================
 * Shop-Status-Banner
 * =========================================================================== */
.amr-banner {
    padding: 0.8em 1.2em; text-align: center;
    font-family: 'Outfit', sans-serif; font-weight: 500; letter-spacing: 0.05em;
}
.amr-banner-coming { background: #B8956A !important; }
.amr-banner-paused { background: #cf2e2e !important; color: #FFF !important; }

/* ===========================================================================
 * Liefer-Info-Box
 * =========================================================================== */
.amr-delivery-info {
    display: inline-flex; align-items: center; gap: 0.6em;
    padding: 0.7em 1.2em; background: #F3EFE9; border-radius: 4px;
    color: #2d2d2d; font-family: 'Outfit', sans-serif; font-size: 0.95em;
}
.amr-delivery-info svg { color: #B8956A; flex-shrink: 0; }

/* ===========================================================================
 * Rotating Headline
 * =========================================================================== */
.amr-rh {
    position: relative; overflow: hidden; padding: 4em 0;
    min-height: 25em; display: flex; align-items: center; justify-content: center;
}
.amr-rh-track { white-space: nowrap; will-change: transform; }
.amr-rh-text {
    display: inline-block; font-family: 'Crimson Pro', Georgia, serif;
    font-size: clamp(3em, 12vw, 10em); font-weight: 200;
    color: #E8DFD3; letter-spacing: -0.02em; text-transform: uppercase;
    transition: transform 0.05s linear;
}
.amr-rh-image {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: clamp(8em, 25vw, 18em); height: clamp(8em, 25vw, 18em);
    z-index: 2; pointer-events: none;
}
.amr-rh-image img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.15)); }

/* ===========================================================================
 * Orbital Hero
 * =========================================================================== */
.amr-orb {
    position: relative; min-height: 90vh; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    /* FIX (Mobile-Overlap mit Produkt-Grid darüber): Die Ringe haben
       will-change:transform und werden so zu composited Layern, die
       overflow:hidden auf Mobile-WebKit ignorieren – Blumen mit top:-10%
       leckten in das vorherige Widget. contain:paint erzwingt eine harte
       Paint-Clip-Grenze auch für promotete Layer. */
    contain: paint;
}
.amr-orb-center {
    position: relative; z-index: 10; text-align: center;
    max-width: 30em; padding: 2em;
}
.amr-orb-headline {
    margin: 0 0 0.5em; font-family: 'Crimson Pro', Georgia, serif; font-weight: 400;
    color: #2d2d2d; font-size: clamp(2em, 5vw, 3.5em); line-height: 1.1;
}
.amr-orb-sub {
    margin: 0 0 1.5em; font-family: 'Outfit', sans-serif; color: #74675a;
    font-size: 1.1em;
}
.amr-orb-btn {
    display: inline-block; padding: 0.9em 2em; background: #B8956A; color: #FFF;
    text-decoration: none; border-radius: 4px; font-family: 'Outfit', sans-serif;
    font-weight: 500; letter-spacing: 0.05em; transition: all 0.25s ease;
}
.amr-orb-btn:hover { background: #2d2d2d; transform: translateY(-2px); }
.amr-orb-ring {
    /* inset:0 statt top/left:50% – der Ring füllt den ganzen Container
       exakt aus, Mitte des Rings = Mitte des Containers. Sonst war der
       Ring um die halbe Containerbreite nach rechts/unten verschoben. */
    position: absolute; inset: 0;
    transform-origin: center;
    pointer-events: none;
    will-change: transform;
    transition: transform 0.1s linear;
}
.amr-orb-flower {
    /* Größe + Filter werden pro Ring im Widget gesetzt (responsive).
       Hier nur Fallback-Werte falls Selectors mal nicht greifen. */
    position: absolute;
    width: 8em;
    height: 8em;
    transform: translate(-50%, -50%) rotate(var(--counter-rotate, 0deg));
    transition: transform 0.1s linear;
    pointer-events: none;
}
.amr-orb-flower img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* ===========================================================================
 * Frame-Sequence
 * =========================================================================== */
.amr-fs { position: relative; width: 100%; }
.amr-fs-sticky {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.amr-fs-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ===========================================================================
 * Scroll-Video (MP4 + currentTime-Scrubbing)
 * =========================================================================== */
.amr-sv { position: relative; width: 100%; }
.amr-sv-sticky {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: #000;
}
.amr-sv-video {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    display: block;
}

/* Hero-Overlays (Logo + Scroll-Hint).
   Liegen im sticky-Container, scrollen also mit dem Video mit, faden
   per JS aus wenn der Hero-Bereich verlassen wird.
   Explizit opacity: 1 damit Overlays sichtbar sind bevor JS läuft. */
.amr-sv-logo {
    position: absolute; top: 3em; left: 50%;
    transform: translateX(-50%);
    z-index: 5; pointer-events: none;
    display: block;
    opacity: 1;
    transition: opacity 0.4s ease;
}
.amr-sv-logo img {
    display: block;
    width: 240px;             /* explizit – SVG ohne viewBox hat sonst 0px */
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.amr-sv-hint {
    position: absolute; bottom: 2em; left: 50%;
    transform: translateX(-50%);
    z-index: 5; text-decoration: none;
    display: flex; flex-direction: column; align-items: center;
    gap: 0.5em; cursor: pointer;
    opacity: 1;
    transition: opacity 0.4s ease;
}
.amr-sv-hint-text {
    font-family: 'Outfit', 'Helvetica Neue', sans-serif;
    font-size: 1.15em; letter-spacing: 0.3em;
    text-transform: uppercase; color: #FFFFFF;
}
.amr-sv-hint-line {
    width: 1px; height: 45px; background: #c9a96e;
    animation: amrSvHintPulse 2s ease-in-out infinite;
    transform-origin: top;
}
@keyframes amrSvHintPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.4); }
    50%      { opacity: 1;   transform: scaleY(1); }
}

/* Overlay-Fade wird via inline-Style vom JS gesetzt (opacity 0..1).
   amr-sv-overlay-out blockt Klicks wenn ausgefaded. */
.amr-sv-overlay-out { pointer-events: none; }

@media (max-width: 767px) {
    .amr-sv-hint-line { height: 35px; }
}

/* ===========================================================================
 * Konfigurator-Modal
 * =========================================================================== */
.amr-cfg-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 99999;
    display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.amr-cfg-overlay.amr-active { display: flex; opacity: 1; }
.amr-cfg-modal {
    background: #FFF; width: min(95vw, 60em); max-height: 90vh;
    border-radius: 8px; overflow: hidden;
    display: grid; grid-template-columns: 1fr 1fr;
    transform: scale(0.95); transition: transform 0.3s ease;
}
.amr-cfg-overlay.amr-active .amr-cfg-modal { transform: scale(1); }

/* Mobile: Modal = Vollbild, Vorschau klein, Sidebar scrollbar, Actions sticky */
@media (max-width: 768px) {
    .amr-cfg-overlay { align-items: stretch; justify-content: stretch; }
    .amr-cfg-modal {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr; /* Preview fix oben, Sidebar fließt */
        width: 100vw;
        max-width: 100vw;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        overflow: hidden; /* der innere Sidebar scrollt */
    }
}

.amr-cfg-preview {
    background: #F3EFE9; padding: 2em; display: flex; align-items: center;
    justify-content: center; position: relative; min-height: 22em;
}
.amr-cfg-canvas { max-width: 100%; max-height: 100%; display: block; }

@media (max-width: 768px) {
    .amr-cfg-preview {
        padding: 1em;
        min-height: 0;
        height: 32vh; /* fester Anteil oben, der Rest geht an die Sidebar */
        max-height: 32vh;
    }
    .amr-cfg-canvas {
        max-height: 28vh;
        width: auto;
    }
}

.amr-cfg-sidebar {
    padding: 1.5em 2em; display: flex; flex-direction: column;
    max-height: 90vh; overflow-y: auto;
}

@media (max-width: 768px) {
    .amr-cfg-sidebar {
        max-height: 68vh; /* 100vh - 32vh Preview */
        padding: 1em 1.2em 0;
        position: relative; /* Anker für sticky-Actions */
    }
}
.amr-cfg-close {
    position: absolute; top: 1em; right: 1em; background: rgba(255,255,255,0.9);
    border: none; cursor: pointer; width: 2.4em; height: 2.4em; border-radius: 50%;
    font-size: 1.4em; color: #2d2d2d; z-index: 10;
}
.amr-cfg-close:hover { background: #2d2d2d; color: #FFF; }
.amr-cfg-progress {
    display: flex; gap: 0.4em; margin-bottom: 1.5em;
}
.amr-cfg-step-dot {
    flex: 1; height: 4px; background: #ebe5dc; border-radius: 2px;
    transition: background 0.3s ease;
}
.amr-cfg-step-dot.amr-active { background: #B8956A; }
.amr-cfg-step h3 {
    margin: 0 0 0.4em; font-family: 'Crimson Pro', Georgia, serif; font-weight: 400;
    color: #2d2d2d; font-size: 1.4em;
}
.amr-cfg-step p { color: #74675a; margin: 0 0 1.2em; font-size: 0.95em; }
.amr-cfg-options {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6em; margin-bottom: 1.5em;
}
.amr-cfg-option {
    padding: 1em 0.5em; border: 2px solid #ebe5dc; border-radius: 6px;
    background: #FFF; cursor: pointer; text-align: center;
    font-family: 'Outfit', sans-serif; transition: all 0.2s ease;
}
.amr-cfg-option:hover { border-color: #B8956A; }
.amr-cfg-option.amr-selected { border-color: #B8956A; background: #faf6f4; }
.amr-cfg-option strong { display: block; margin-bottom: 0.2em; font-size: 1em; color: #2d2d2d; }
.amr-cfg-option small { color: #74675a; font-size: 0.85em; }
.amr-cfg-slider-row { margin-bottom: 1.5em; }
.amr-cfg-slider-row label { display: flex; justify-content: space-between; margin-bottom: 0.4em; color: #2d2d2d; }
.amr-cfg-slider { width: 100%; }
.amr-cfg-price {
    margin-top: auto; padding-top: 1em; border-top: 1px solid #ebe5dc;
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 1em;
}

/* Mobile: Preis + Buttons als sticky-Footer damit der User immer
   „Weiter / In den Warenkorb" erreichen kann ohne durch die ganze Sidebar
   scrollen zu müssen. */
@media (max-width: 768px) {
    .amr-cfg-price,
    .amr-cfg-actions {
        position: sticky;
        background: #FFF;
        left: 0;
        right: 0;
        margin-left: -1.2em;
        margin-right: -1.2em;
        padding-left: 1.2em;
        padding-right: 1.2em;
    }
    .amr-cfg-price {
        bottom: 4.2em; /* knapp über den Actions */
        margin-top: 1em;
        margin-bottom: 0;
        padding-bottom: 0.5em;
        box-shadow: 0 -4px 8px rgba(0,0,0,0.04);
        z-index: 2;
    }
    .amr-cfg-actions {
        bottom: 0;
        padding-top: 0.6em;
        padding-bottom: 0.8em;
        background: #FFF;
        z-index: 3;
    }
    .amr-cfg-step {
        padding-bottom: 1em;
    }
}
.amr-cfg-price-label { color: #74675a; }
.amr-cfg-price-value { font-family: 'Crimson Pro', Georgia, serif; font-size: 1.6em; color: #2d2d2d; }
.amr-cfg-actions { display: flex; gap: 0.5em; }
.amr-cfg-prev, .amr-cfg-next {
    flex: 1; padding: 0.9em; border: none; border-radius: 4px; cursor: pointer;
    font-family: 'Outfit', sans-serif; font-weight: 500; transition: all 0.2s ease;
}
.amr-cfg-prev { background: transparent; color: #2d2d2d; border: 1px solid #2d2d2d; }
.amr-cfg-prev:hover { background: #2d2d2d; color: #FFF; }
.amr-cfg-prev:disabled { opacity: 0.3; cursor: not-allowed; }
.amr-cfg-next { background: #B8956A; color: #FFF; }
.amr-cfg-next:hover { background: #2d2d2d; }

/* Single-Product "Jetzt konfigurieren"-Button (WC-Default-Template) */
.amr-single-config-btn {
    display: inline-block; margin-left: 0.5em; padding: 0.7em 1.4em;
    background: transparent; color: #2d2d2d; border: 1px solid #2d2d2d;
    border-radius: 4px; text-decoration: none;
    font-family: 'Outfit', sans-serif; font-weight: 500;
    transition: all 0.2s ease;
}
.amr-single-config-btn:hover { background: #B8956A; color: #FFF; border-color: #B8956A; }
@media (max-width: 600px) {
    .amr-single-config-btn { display: block; margin: 0.5em 0 0; text-align: center; }
}

/* Stepper (Mengen-Auswahl) */
.amr-cfg-stepper {
    display: flex; align-items: center; gap: 0.5em;
    margin: 1em 0 0.5em;
    background: #faf6f4; padding: 0.5em; border-radius: 6px;
    border: 1px solid #ebe5dc;
}
.amr-cfg-stepper-btn {
    width: 2.4em; height: 2.4em; border: none; border-radius: 4px;
    background: #B8956A; color: #FFF; cursor: pointer;
    font-size: 1.3em; font-weight: 600; transition: background 0.2s ease;
    display: flex; align-items: center; justify-content: center;
}
.amr-cfg-stepper-btn:hover { background: #2d2d2d; }
.amr-cfg-stepper-input {
    flex: 1; max-width: 5em; text-align: center;
    border: 1px solid #d4c8b5; border-radius: 4px;
    padding: 0.5em 0.3em; font-family: 'Outfit', sans-serif;
    font-size: 1.1em; font-weight: 600; color: #2d2d2d;
    background: #FFF;
}
.amr-cfg-stepper-input::-webkit-outer-spin-button,
.amr-cfg-stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amr-cfg-stepper-input { -moz-appearance: textfield; }
.amr-cfg-stepper-unit {
    color: #74675a; font-family: 'Outfit', sans-serif; font-size: 0.95em;
}
.amr-cfg-stepper-line {
    color: #74675a; font-family: 'Outfit', sans-serif; font-size: 0.95em;
    margin: 0.3em 0 0;
}
.amr-cfg-stepper-line strong { color: #2d2d2d; }

/* ===========================================================================
 * Produkt-Grid: Filter-Bar + Pagination (AJAX) + Mobile-Tuning
 * =========================================================================== */
.amr-pg-wrap { display: flex; flex-direction: column; gap: 1.2em; }

/* --- Filter-Bar oberhalb des Grids --- */
.amr-pg-filters {
    display: flex; flex-wrap: wrap; gap: 0.8em 1.2em; align-items: end;
    padding: 0.9em 1.1em;
    background: #FBF9F5; border: 1px solid #ece4d4; border-radius: 8px;
    font-family: 'Outfit', sans-serif; font-size: 0.92em;
}
.amr-pg-filter { display: flex; flex-direction: column; gap: 0.3em; min-width: 0; }
.amr-pg-filter-label {
    font-size: 0.78em; font-weight: 500; letter-spacing: 0.04em;
    color: #74675a; text-transform: uppercase;
}
.amr-pg-filters select,
.amr-pg-filters input[type="number"] {
    height: 2.4em; padding: 0 0.7em;
    border: 1px solid #d4c8b5; border-radius: 4px;
    font-family: inherit; font-size: 0.95em; color: #2d2d2d;
    background: #FFF; min-width: 0;
}
.amr-pg-filters select { padding-right: 1.8em; cursor: pointer; }
.amr-pg-filter-price { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 0.35em; }
.amr-pg-filter-price > .amr-pg-filter-label { flex-basis: 100%; }
.amr-pg-filter-price input { width: 5.5em; }
.amr-pg-dash { color: #74675a; }
.amr-pg-reset {
    height: 2.4em; padding: 0 1em; margin-left: auto;
    background: transparent; border: 1px solid #b8a888; border-radius: 4px;
    color: #74675a; font-family: inherit; font-size: 0.9em; cursor: pointer;
    transition: all 0.2s ease;
}
.amr-pg-reset:hover { background: #2d2d2d; color: #FFF; border-color: #2d2d2d; }

/* Status (Treffer-Anzahl) */
.amr-pg-status {
    min-height: 1.4em; font-family: 'Outfit', sans-serif; font-size: 0.85em;
    color: #74675a;
}
.amr-pg-status:empty { display: none; }

/* Grid-Wrap mit Loading-Overlay */
.amr-pg-grid-wrap { position: relative; }
.amr-pg.is-loading { opacity: 0.4; pointer-events: none; transition: opacity 0.2s; }
.amr-pg-loading {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    gap: 0.6em; color: #74675a; font-family: 'Outfit', sans-serif; font-size: 0.95em;
    pointer-events: none;
}
/* hidden-Attribut muss display:flex schlagen, sonst zeigt der Spinner dauerhaft „Lädt…". */
.amr-pg-loading[hidden] { display: none; }
.amr-pg-spinner {
    width: 1.3em; height: 1.3em; border-radius: 50%;
    border: 2px solid #d4c8b5; border-top-color: #B8956A;
    animation: amr-spin 0.8s linear infinite;
}
@keyframes amr-spin { to { transform: rotate(360deg); } }

/* --- Paginierung (touch-freundlich, mobil gut sichtbar) --- */
.amr-pg-pagination {
    display: flex; flex-wrap: wrap; gap: 0.4em; justify-content: center;
    margin-top: 1em; padding-top: 0.4em;
}
.amr-pg-pagination:empty { display: none; }
.amr-pg-page {
    min-width: 2.6em; height: 2.6em; padding: 0 0.9em;
    display: inline-flex; align-items: center; justify-content: center;
    background: #FFF; color: #2d2d2d;
    border: 1px solid #d4c8b5; border-radius: 6px;
    font-family: 'Outfit', sans-serif; font-size: 0.95em; font-weight: 500;
    cursor: pointer; text-decoration: none;
    transition: all 0.18s ease;
}
.amr-pg-page:hover { background: #2d2d2d; color: #FFF; border-color: #2d2d2d; }
.amr-pg-page.is-active {
    background: #B8956A; color: #FFF; border-color: #B8956A;
    cursor: default; pointer-events: none;
}
.amr-pg-page.is-disabled {
    background: #f6f1e8; color: #b8a888; border-color: #ece4d4;
    cursor: not-allowed;
}
.amr-pg-ellipsis {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.6em; color: #74675a;
}

/* ---------- Mobile-Tuning (2 Spalten passt jetzt sauber rein) ---------- */
@media (max-width: 767px) {
    /* Karten kompakter, Button einzeilig */
    .amr-pc-body { padding: 0.7em 0.75em 0.85em; }
    .amr-pc-title {
        font-size: 1em; margin: 0 0 0.2em; line-height: 1.2;
    }
    .amr-pc-price {
        font-size: 0.92em; margin: 0 0 0.7em; line-height: 1.25;
    }
    /* WooCommerce-Suffix "inkl. MwSt." deutlich kleiner & unauffälliger */
    .amr-pc-price .woocommerce-price-suffix {
        font-size: 0.68em; font-weight: 400; opacity: 0.7;
        margin-left: 0.2em; white-space: nowrap;
    }
    .amr-pc-btn {
        padding: 0.65em 0.5em; font-size: 0.8em;
        white-space: nowrap; letter-spacing: 0.01em;
    }

    /* Filter-Bar: Reset eigene Zeile, Eingaben volle Breite */
    .amr-pg-filters { padding: 0.8em; gap: 0.7em; }
    .amr-pg-filter, .amr-pg-filter-price { flex: 1 1 100%; }
    .amr-pg-reset { margin-left: 0; width: 100%; }

    /* Paginierung größer + besser sichtbar (kein "übersehen") */
    .amr-pg-pagination {
        gap: 0.45em; padding-top: 1.4em;
        position: sticky; bottom: 0;
        background: linear-gradient(180deg, rgba(243,239,233,0) 0%, rgba(243,239,233,0.95) 30%);
        padding-bottom: 0.6em; z-index: 2;
    }
    .amr-pg-page {
        min-width: 2.8em; height: 2.8em; font-size: 1em;
    }
    .amr-pg-prev, .amr-pg-next { padding: 0 0.7em; font-size: 0.9em; }
}

/* ===========================================================================
 * Defensive: PayPal Smart-Buttons (PayPal/GPay/ApplePay/Karten) NUR auf der
 * Checkout-Seite anzeigen.
 *
 * Warum: Express-Checkouts (z.B. PayPal-Button im Warenkorb oder auf der
 * Produktseite) umgehen den Standard-WooCommerce-Checkout. Damit werden
 * Pflichtfelder wie `_amouria_delivery_type` / `_amouria_delivery_date`
 * NICHT abgefragt, und Bestellungen kommen ohne Lieferdetails an.
 *
 * Primäre Lösung ist die Admin-Einstellung im WC PayPal Payments Plugin
 * ("Smart Button Locations" -> nur Checkout). Diese CSS-Regel ist ein
 * Sicherheitsnetz falls dort versehentlich Cart/Mini-Cart/Produkt wieder
 * aktiviert werden.
 *
 * Strategie: site-weit ausblenden, dann nur innerhalb der Checkout-Container
 * (klassisch: body.woocommerce-checkout, Block: .wp-block-woocommerce-checkout)
 * wieder einblenden. Spezifität-höhere Selektoren gewinnen.
 * =========================================================================== */
.ppc-button-wrapper,
.ppcp-button-container,
.paypal-buttons,
.ppcp-messages,
.ppcp-googlepay-container,
.ppcp-applepay-container,
[id^="ppc-button-"]:not(#ppc-button-ppcp-gateway),
[id^="ppcp-googlepay-"],
[id^="ppcp-applepay-"] {
    display: none !important;
}

/* Auf der Checkout-Seite wieder zulassen (höhere Spezifität durch zusätzliche Klasse). */
body.woocommerce-checkout .ppc-button-wrapper,
body.woocommerce-checkout .ppcp-button-container,
body.woocommerce-checkout .paypal-buttons,
body.woocommerce-checkout .ppcp-messages,
body.woocommerce-checkout .ppcp-googlepay-container,
body.woocommerce-checkout .ppcp-applepay-container,
body.woocommerce-checkout [id^="ppc-button-"],
body.woocommerce-checkout [id^="ppcp-googlepay-"],
body.woocommerce-checkout [id^="ppcp-applepay-"],
.wp-block-woocommerce-checkout .ppc-button-wrapper,
.wp-block-woocommerce-checkout .ppcp-button-container,
.wp-block-woocommerce-checkout .paypal-buttons,
.wp-block-woocommerce-checkout .ppcp-messages,
.wp-block-woocommerce-checkout .ppcp-googlepay-container,
.wp-block-woocommerce-checkout .ppcp-applepay-container,
.wp-block-woocommerce-checkout [id^="ppc-button-"],
.wp-block-woocommerce-checkout [id^="ppcp-googlepay-"],
.wp-block-woocommerce-checkout [id^="ppcp-applepay-"] {
    display: revert !important;
}

/* ---------------------------------------------------------------------------
 * Block-Checkout/Block-Cart: das gesamte "Express-Kasse"-Block (Headline +
 * PayPal/GPay/ApplePay-Button + Trennstrich "Oder fahre unten fort") ausblenden.
 *
 * Auch dort darf NICHT bezahlt werden, bevor unsere Lieferpflichtfelder
 * (Liefertermin, PLZ etc.) eingetragen wurden – sonst kommen Bestellungen
 * ohne Lieferdetails an.
 *
 * WICHTIG: die ECHTEN Klassen im Frontend-Output sind `wc-block-components-*`
 * (per DevTools verifiziert). `wp-block-woocommerce-*` existiert nur im
 * Block-Editor und greift im Frontend nicht. Wir hidden Container UND Continue-
 * Rule, sonst bleibt der "Oder fahre unten fort"-Trenner einsam stehen.
 * --------------------------------------------------------------------------- */
.wc-block-components-express-payment,
.wc-block-components-express-payment-continue-rule,
.wp-block-woocommerce-checkout-express-payment-block,
.wp-block-woocommerce-cart-express-payment-block {
    display: none !important;
}

/* PLZ-Hinweis in der Bestellübersicht (siehe checkout-hints.js).
   Erscheint statt der irreführenden "Abholung KOSTENLOS"-Zeile, solange
   "Liefern lassen" aktiv ist aber noch keine PLZ eingetragen wurde. */
.amr-ship-hint {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; gap: 0.6em;
    font-family: 'Outfit', sans-serif;
}
.amr-ship-hint-label { color: inherit; }
.amr-ship-hint-msg {
    font-style: italic; color: #74675a; font-size: 0.92em;
    text-align: right; flex-shrink: 1;
}

/* ---------------------------------------------------------------------------
 * Block-Checkout: mehr vertikale Luft zwischen den Custom-Feldern in
 * "Zusätzliche Informationen zur Bestellung" (Liefertermin / Wunschdatum /
 * Zeitfenster / Überraschung / Notiz / AGB). Standard ist auf Mobile zu eng,
 * Zeitfenster-Dropdown klebte am Überraschungs-Checkbox.
 * --------------------------------------------------------------------------- */
.wp-block-woocommerce-checkout-additional-information-block .wc-block-checkout__additional-information-fields > * + *,
.wp-block-woocommerce-checkout-additional-information-block .wc-block-components-form > * + *,
.wc-block-checkout__additional-information-fields > * + * {
    margin-top: 1.1em;
}
.wp-block-woocommerce-checkout-additional-information-block .wc-block-components-checkbox + .wc-block-components-checkbox {
    margin-top: 0.8em;
}

/* Block-Checkout Amouria-Custom-Felder: gezielter Vertikal-Abstand.
   Echte Klassen aus DevTools: `wc-block-components-select-input-amouria-*`
   und `wc-block-components-address-form__amouria-*`. Vorherige Regel auf
   .wc-block-checkout__additional-information-fields hat nicht gegriffen,
   weil die Felder direkt im <fieldset> sitzen, nicht in einem Wrapper. */
[class*="wc-block-components-select-input-amouria-"],
[class*="wc-block-components-address-form__amouria-"] {
    margin-top: 1.4em !important;
}
