/*
 * Platz für eigene Änderungen direkt als CSS
 * Die hier gemachten Änderungen überschreiben ggfs. andere Styles, da diese Datei als letzte geladen wird.
 */

/* ==========================================================================
   African Colours – Farben & Basiswerte
   ========================================================================== */
:root {
    --ac-primary:       #01407e;   /* Shop-Blau (Primärfarbe aus NOVA) */
    --ac-primary-dark:  #012f5d;
    --ac-accent:        #01407e;   /* Akzentfarbe (Badges, Linien) – früher NOVA-Gelb */
    --ac-text:          #26303d;
    --ac-muted:         #6b7686;
    --ac-border:        #e5e9f0;
    --ac-img-bg:        #ffffff;   /* Fläche hinter nicht-quadratischen Bildern */
    --ac-radius:        12px;
    --ac-shadow:        0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .07);
    --ac-shadow-hover:  0 14px 30px rgba(1, 64, 126, .14), 0 3px 8px rgba(16, 24, 40, .08);
    --ac-gap:           .375rem;   /* halber Spaltenabstand mobil */
    --ac-img-zoom:      1;         /* z. B. 1.15 = Bild leicht beschneiden */
    --ac-container:     1600px;    /* maximale Inhaltsbreite (Boxed-Layout) */
}

@media (min-width: 768px) {
    :root {
        --ac-gap:    .625rem;
        --ac-radius: 14px;
    }
}

/* ==========================================================================
   Bisherige Anpassungen (vorher direkt in NOVA/clear.css)
   ========================================================================== */
p,
a {
    font-size: 17px;
}

/* Topbar blau */
#header-top-bar,
#header-top-bar .container,
#header-top-bar .container-fluid,
#header-top-bar .container-fluid-xl {
    background-color: var(--ac-primary) !important;
}

#header-top-bar,
#header-top-bar .topbar-main,
#header-top-bar .topbar-note,
#header-top-bar .nav-link,
#header-top-bar a,
#header-top-bar button {
    color: #fff !important;
}

#header-top-bar a:hover,
#header-top-bar .nav-link:hover,
#header-top-bar button:hover {
    color: #fff !important;
    opacity: .85;
}

#header-top-bar .dropdown-menu {
    background: #fff !important;
}

#header-top-bar .dropdown-menu a,
#header-top-bar .dropdown-menu .dropdown-item {
    color: #212529 !important;
    opacity: 1;
}

#header-top-bar .dropdown-menu a:hover,
#header-top-bar .dropdown-menu .dropdown-item:hover {
    color: var(--ac-primary) !important;
}

/* NOVA-Bestseller-Ribbon überall blau statt gelb */
.ribbon-1 {
    background-color: var(--ac-accent);
    color: #fff;
}

.ribbon-1::before {
    border-right-color: var(--ac-primary-dark);
}

/* ==========================================================================
   Boxed-Layout: Hintergründe volle Breite, Inhalte zentriert
   ========================================================================== */
@media (min-width: 1300px) {
    .container,
    .container-fluid-xl,
    #header-top-bar .container-fluid,
    #footer .container-fluid,
    body .opc-Container.container-fluid {
        max-width: var(--ac-container) !important;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================================================
   Abschnitts-Überschrift (OPC-Divider, z. B. "Besonders beliebt")
   ========================================================================== */
.opc-Divider.hr-sect {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .625rem;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: var(--ac-text);
    text-align: center;
}

.opc-Divider.hr-sect::before {
    display: none;
}

.opc-Divider.hr-sect::after {
    content: "";
    flex: 0 0 auto;
    width: 3rem;
    height: 4px;
    margin: 0;
    border-radius: 2px;
    background: var(--ac-accent);
}

@media (min-width: 768px) {
    .opc-Divider.hr-sect {
        font-size: 1.625rem;
    }
}

/* ==========================================================================
   Product-Stream (OPC) – Raster
   ========================================================================== */
.opc-ProductStream-gallery {
    align-items: stretch;
    margin-left:  calc(var(--ac-gap) * -1);
    margin-right: calc(var(--ac-gap) * -1);
}

.opc-ProductStream-gallery > .product-wrapper {
    display: flex;
    height: auto !important;              /* JS-Höhenberechnung von NOVA neutralisieren */
    padding-left:  var(--ac-gap);
    padding-right: var(--ac-gap);
    margin-bottom: calc(var(--ac-gap) * 2) !important;
}

/* ==========================================================================
   Product-Stream – Produktkarte
   ========================================================================== */
.opc-ProductStream .productbox {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    box-shadow: var(--ac-shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.opc-ProductStream .productbox > form,
.opc-ProductStream .productbox-inner,
.opc-ProductStream .productbox-inner > .row {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.opc-ProductStream .productbox-inner > .row {
    margin: 0;
}

.opc-ProductStream .productbox-inner > .row > .col {
    flex: 0 0 auto;
    padding: 0;
}

/* Textbereich */
.opc-ProductStream .productbox-inner > .row > .col:last-child {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: .625rem .75rem .75rem;
}

/* NOVA-Hover-Overlay (Schatten-Rahmen außerhalb der Box) abschalten */
.opc-ProductStream .productbox .productbox-inner::before {
    display: none !important;
}

/* Tastatur-Fokus sichtbar halten (Barrierefreiheit) */
.opc-ProductStream .productbox:focus-visible,
.opc-ProductStream .productbox:focus-within {
    outline: 2px solid var(--ac-primary);
    outline-offset: 2px;
}

/* ---------- Bild ---------- */
.opc-ProductStream .productbox-image {
    margin-bottom: 0;
}

.opc-ProductStream .productbox-images {
    background: var(--ac-img-bg);
}

.opc-ProductStream .productbox-image.square-image .inner img {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;                  /* nichts abschneiden (Wasserzeichen, Dosen etc.) */
    transform: scale(var(--ac-img-zoom));
    transition: transform .4s ease, opacity .3s ease;
}

/* ---------- Badge (Bestseller, Neu, Sale …) ---------- */
.opc-ProductStream .productbox .productbox-ribbon.ribbon,
.opc-ProductStream .productbox.productbox-hover:hover .productbox-ribbon.ribbon,
.opc-ProductStream .productbox.productbox-hover:focus .productbox-ribbon.ribbon,
.opc-ProductStream .productbox.productbox-hover.focus .productbox-ribbon.ribbon {
    top: .5rem;
    left: .5rem;
    z-index: 2;
    padding: .25rem .5rem;
    font-size: .625rem;
    line-height: 1.2;
    letter-spacing: .05em;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

.opc-ProductStream .productbox-ribbon.ribbon::before,
.opc-ProductStream .productbox-ribbon.ribbon::after {
    display: none;
}

.opc-ProductStream .ribbon-1 {
    background: var(--ac-accent);
    color: #fff;
}

/* ---------- Titel ---------- */
.opc-ProductStream .productbox-title {
    margin: 0 0 .375rem;
    font-family: Montserrat, sans-serif;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.35;
}

.opc-ProductStream .productbox-title a {
    min-height: 2.7em;                    /* immer Platz für 2 Zeilen → Preise auf einer Linie */
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: var(--ac-text);
    text-decoration: none;
    transition: color .2s ease;
}

.opc-ProductStream .productbox-title a:hover,
.opc-ProductStream .productbox-title a:focus {
    color: var(--ac-primary);
    text-decoration: none;
}

/* ---------- Preis ---------- */
.opc-ProductStream .price_wrapper {
    margin-top: auto;
}

.opc-ProductStream .productbox-price {
    margin: 0;
    font-size: .875rem;
    font-weight: 700;
    color: var(--ac-primary);
    white-space: normal;
}

.opc-ProductStream .productbox-price .footnote-reference {
    font-weight: 400;
    color: var(--ac-muted);
}

.opc-ProductStream .price-note:empty {
    display: none;
}

/* ---------- Schnellaktionen (Merkzettel / Vergleich, nur Desktop) ---------- */
.opc-ProductStream .productbox-quick-actions {
    top: .375rem;
    right: .375rem;
    z-index: 3;
}

.opc-ProductStream .productbox-quick-actions .btn {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .92);
    border: 0;
    border-radius: 50%;
    color: var(--ac-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

/* ==========================================================================
   Tablet / Desktop
   ========================================================================== */
@media (min-width: 768px) {
    .opc-ProductStream .productbox-inner > .row > .col:last-child {
        padding: .875rem 1rem 1rem;
    }

    .opc-ProductStream .productbox-title {
        font-size: .9375rem;
    }

    .opc-ProductStream .productbox-price {
        font-size: 1.0625rem;
    }

    .opc-ProductStream .productbox .productbox-ribbon.ribbon,
    .opc-ProductStream .productbox.productbox-hover:hover .productbox-ribbon.ribbon {
        top: .75rem;
        left: .75rem;
        padding: .3rem .625rem;
        font-size: .6875rem;
    }
}

/* Hover-Effekte nur auf Geräten mit Maus */
@media (hover: hover) and (pointer: fine) {
    .opc-ProductStream .productbox:hover {
        transform: translateY(-4px);
        border-color: #d3dbe6;
        box-shadow: var(--ac-shadow-hover);
    }

    .opc-ProductStream .productbox:hover .productbox-image.square-image .inner img {
        transform: scale(calc(var(--ac-img-zoom) * 1.05));
    }
}

@media (prefers-reduced-motion: reduce) {
    .opc-ProductStream .productbox,
    .opc-ProductStream .productbox-image.square-image .inner img {
        transition: none;
    }

    .opc-ProductStream .productbox:hover {
        transform: none;
    }
}
