/* ========================================
   Child V1 Template
   ======================================== */

/* Figtree Variable Font (lokal) */
@font-face {
    font-family: 'Figtree';
    src: url('../fonts/Figtree-VariableFont_wght.woff2') format('woff2-variations');
    font-weight: 300 700;
    font-display: swap;
    font-style: normal;
}

/* ========================================
   0. TYPOGRAPHY - CLEANE SCHRIFTART
   ======================================== */

/* Figtree Font */
body,
html {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-size: 15px;
    line-height: 1.6;
}

/* Überschriften */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* Navigation Links */
#cat-w .mm-mainlink {
    padding: .5rem .8rem;
    font-weight: 800;
    font-size: 12px;
    display: block;
    transition: .3s ease;
    white-space: nowrap;
    color: var(--nav-l);
    cursor: pointer;
    letter-spacing: 0em;
}

/* Desktop: Sticky Header + Nav */
@media (min-width: 768px) {
    #shop-nav {
        padding: 0.5rem 0;
        position: sticky;
        top: 0;
        z-index: 8;
    }

    #cat-w {
        position: -webkit-sticky;
        position: sticky;
        top: 75px;
        z-index: 8!important;
        border-top: 1px solid #efefef;
        border-bottom: 1px solid #efefef;
        background: #ffffff;
    }

    #cat-w .mm-mainlink {
        color: #000000;
        text-transform: uppercase;
    }
}

@media (max-width: 767px) {
    #cat-w .mm-mainlink {
        padding: .8rem 1rem;
        text-transform: none;
        font-size: 18px;
    }
}

/* Body Text optimiert */
p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ========================================
   1. AUSBLENDEN - ELEMENTE VOM PARENT
   ======================================== */

/* Header Promo / Daily Deal / SP1 ausblenden */
#header-promo,
.dailydeal-wrapper
 {
    display: none !important;
}

/* Menüpunkt Velly-GmbH ausblenden */
#cat-w li:has(> a[href*="/Velly-GmbH"]) {
    display: none !important;
}

/* Sale-Menüpunkt rechts fixiert + Animation */
#cat-w li:has(> a[href*="/Sonderangebote"]) {
    margin-left: auto;
}

#cat-w li:has(> a[href*="/Sonderangebote"]) > .mm-mainlink {
    background: #ff0019;
    color: #fff !important;
    padding: .5rem 1.2rem;
    animation: sale-pulse 2s ease-in-out infinite;
}

@keyframes sale-pulse {
    0%, 100% { background: #ff0019; }
    50% { background: #cc0014; }
}


/* ========================================
   2. HEADER LAYOUT - LOGO LINKS, SUCHE MITTE
   ======================================== */

/* Desktop: Logo links, Suche Mitte */
@media (min-width: 768px) {
    /* Header schmaler */
    #shop-nav {
        padding: 0.5rem 0;
        z-index: 11;
    }

    #shop-nav .mw-container {
        display: flex;
        align-items: center;
    }

    #shop-nav #logo {
        order: 1;
        text-align: left;
        justify-content: flex-start;
    }

    #logo a {
        max-width: 90%;
        height: 100%;
        align-content: center;
    }

    #logo img {
        max-height: 40px;
        width: auto;
    }

    #shop-nav #search {
        order: 2;
    }

    /* Suche max-width */
    #search form {
        max-width: 42rem;
    }

    /* Suchfeld Input */
    #search input {
        border: 0;
        padding: .5rem 3.125rem .5rem 1rem;
    }

    #shop-nav .col-4:last-child {
        order: 3;
    }

    /* Mobile Logo verstecken auf Desktop */
    #logo-mobile {
        display: none !important;
    }

    /* Mobile Suche verstecken auf Desktop */
    #search-mobile {
        display: none !important;
    }
}

/* Mobile: Suche unter Header */
@media (max-width: 767px) {
    /* Desktop Suche verstecken auf Mobile */
    #shop-nav #search {
        display: none !important;
    }

    /* Desktop Logo verstecken auf Mobile */
    #shop-nav #logo {
        display: none !important;
    }

    /* Mobile Suche unter Header */
    #search-mobile {
        background: #ffffff;
        padding: 10px 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    #search-mobile input {
        font-size: 16px;
    }

    /* Suche Submit-Button Mobile ausblenden */
    #search-submit-button {
        display: none !important;
    }

    /* Logo Mobile */
    #logo-mobile img {
        max-width: 74px;
    }
}

/* ========================================
   2. HORIZONTAL SCROLLING NAVIGATION - NUR DESKTOP
   ======================================== */

/* Nur auf Desktop (nicht Mobile/Tablet) */
@media (min-width: 768px) {
    /* Scroll-Wrapper innerhalb von cat-ul - wird per JS erstellt */
    #cat-w #cat-ul .scroll-wrapper {
        display: flex;
        overflow-x: auto;
        overflow-y: visible;
        scroll-behavior: smooth;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        width: 100%;
    }

    #cat-w #cat-ul .scroll-wrapper::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    /* cat-ul als relative Container für Pfeil */
    #cat-w #cat-ul {
        position: relative;
        overflow: visible;
        margin-left: -9px;
        margin-right: -9px;
    }

    /* Menü Items innerhalb des Wrappers */
    #cat-w #cat-ul .scroll-wrapper > li {
        flex-shrink: 0;
    }

    /* Scroll-Indikator Pfeile - werden per JavaScript eingefügt, relativ zu #cat-ul */
    #cat-w #cat-ul .scroll-arrow {
        position: absolute;
        top: 42%;
        transform: translateY(-50%);
        width: 40px;
        height: 29px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        font-weight: bold;
        color: #000000;
        cursor: pointer;
        opacity: 0;
        transition: opacity 0.3s ease, color 0.2s ease;
        z-index: 10;
        user-select: none;
        pointer-events: none;
    }

    /* Pfeil sichtbar (JS entfernt .hidden Klasse) */
    #cat-w #cat-ul .scroll-arrow:not(.hidden) {
        opacity: 1;
        pointer-events: auto;
    }

    /* Rechter Pfeil */
    #cat-w #cat-ul .scroll-arrow.scroll-arrow-right {
        right: 0;
        background: linear-gradient(to left, var(--nav-b, #ffffff) 70%, rgba(255, 255, 255, 0) 100%);
    }

    /* Linker Pfeil */
    #cat-w #cat-ul .scroll-arrow.scroll-arrow-left {
        left: 0;
        background: linear-gradient(to right, var(--nav-b, #ffffff) 70%, rgba(255, 255, 255, 0) 100%);
    }

    #cat-w #cat-ul .scroll-arrow:hover {
        color: #333;
    }

    /* Verstecke Pfeil */
    #cat-w #cat-ul .scroll-arrow.hidden {
        opacity: 0;
        pointer-events: none;
    }
}

/* ========================================
   3. MEGAMENU SMOOTH TRANSITIONS & STYLING
   ======================================== */

@media (min-width: 768px) {
    /* Deaktiviere die Megamenu-Transitions komplett */
    #cat-w .mgm .dropdown-menu,
    #cat-w .mgm .mgm-c {
        transition: none !important;
        transition-delay: 0s !important;
        background: white;
    }

    /* Entferne Box-Shadow und Border-Radius vom Megamenu Content */
    .mgm .mgm-c {
        box-shadow: 0 10px 10px rgb(255 255 255 / 10%)!important;
        border-radius: 0;
    }

    /* Megamenu Dropdown Styling - volle Bildschirmbreite */
    .mgm .dropdown-menu {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(-2000%);
        width: 99vw !important;
        top: 37px;
        border: 1px solid #c9c9c9;
        border-top: 0;
        border-radius: 0px !important;
        overflow: auto;
        margin: 0;
        padding: 0 0 0rem;
        box-shadow: none;
        background: transparent;
        display: block;
        transition-delay: .1s;
        overscroll-behavior: contain;
        min-width: 0;
    }

    /* Wenn Megamenu geöffnet ist */
    .mgm .mgm-fw:hover .dropdown-menu,
    .mgm .mgm-fw:focus-within .dropdown-menu,
    .mgm .dropdown-multi:hover .dropdown-menu,
    .mgm .dropdown-multi:focus-within .dropdown-menu {
        transform: translateX(-50%) translateY(0) !important;
    }

    /* Verstecke Bilder im Marken-Menü - nur im Dropdown des Marken-Menüpunkts */
    #cat-w li:has(> a[href*="/marken/"]) .dropdown-menu .img-ct,
    #cat-w li:has(> a[href*="/marken/"]) .dropdown-menu img {
        display: none !important;
    }

    /* Marken-Menü: Sortierung von oben nach unten in Spalten mit CSS Grid */
    #cat-w li:has(> a[href*="/marken/"]) .dropdown-menu .row {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-auto-flow: column;
        grid-template-rows: repeat(13, auto);
    }

    #cat-w li:has(> a[href*="/marken/"]) .dropdown-menu .row > [class*="col-"] {
        width: 15rem;
    }
}

/* Responsive Anpassungen für Marken-Menü */
@media (max-width: 1400px) {
    #cat-w li:has(> a[href*="/marken/"]) .dropdown-menu .row {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(13, auto);
    }

    #cat-w li:has(> a[href*="/marken/"]) .dropdown-menu .row > [class*="col-"] {
        width: 14rem;
    }
}

@media (max-width: 1200px) {
    #cat-w li:has(> a[href*="/marken/"]) .dropdown-menu .row {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(17, auto);
    }

    #cat-w li:has(> a[href*="/marken/"]) .dropdown-menu .row > [class*="col-"] {
        width: 13rem;
    }
}

@media (max-width: 991px) {
    #cat-w li:has(> a[href*="/marken/"]) .dropdown-menu .row {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(22, auto);
    }

    #cat-w li:has(> a[href*="/marken/"]) .dropdown-menu .row > [class*="col-"] {
        width: 12rem;
    }
}

@media (min-width: 768px) {

    /* Padding für row-multi Spalten nur im Marken-Menü */
    #cat-w li:has(> a[href*="/marken/"]) .dropdown-menu .row-multi > [class*="col-"] {
        padding-top: 0px;
        padding-bottom: 13px;
    }

    /* Icon Größe anpassen */
    .img-ct.icon.icon-xl {
        width: 1.8rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Bild auf 100% Breite */
.img-full-width,
.img-full-width img {
    width: 100%;
    min-width: 100%;
    height: auto;
    display: block;
}

#content-wrapper {
    margin-top: 1rem;
}

/* Produktbilder - Weiß zu Grau umwandeln mit grauem Hintergrund */
.product-wrapper .img-ct,
.productbox .square,
.product-detail .image-wrapper,
.artikelbild {
    background-color: #f8f8f8;
    padding: 0;
}

/* Produktbilder mit Background Blend Mode */
.product-img-blend {
    background-color: #f5f5f5;
    aspect-ratio: 1 / 1;
    position: relative;
    padding: 1rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Verstecke das IMG innerhalb des Blend-Containers (für SEO behalten) */
.product-img-blend img {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.product-wrapper .img-ct img,
.productbox .square img,
.product-detail .image-wrapper img,
.artikelbild img {
    filter: brightness(0.92) contrast(1.05);
    opacity: 0.98;
}

/* Kategorieübersicht - Beschreibung nach unten */
.category-page .desc.text-lg.clearfix.mb-sm {
    order: 999;
    margin-top: 2rem;
}

.category-page {
    display: flex;
    flex-direction: column;
}

/* ========================================
   4. FLACHES MODERNES DESIGN
   ======================================== */

/* Produktlisten Heading */
.pl-heading {
    padding: 0;
    background: var(--plh-b);
    color: var(--plh-t);
}

.pl-heading .title {
    margin-bottom: .5rem;
}

@media (max-width: 767px) {
    #plh {
        margin-bottom: -2rem;
    }
}

/* Unterkategorien im Kategorie-Header */
#plh .sc-w .thumbnail {
    border: 1px solid #e0e0e0;
    padding-bottom: .3rem;
}

#plh .sc-w .img-ct,
#plh .sc-w .img-ct img {
    border-radius: 0;
}

#plh .sc-w .img-w:hover .img-ct {
    box-shadow: none;
    transform: none;
}

#plh .sc-w > [class*="col-"] {
    flex: 0 0 20%;
    max-width: 20%;
}

@media (max-width: 767px) {
    #plh .sc-w > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ========================================
   PRODUKTBOXEN STYLING - PREMIUM DESIGN
   ======================================== */

/* Produktkarte - Premium Style */
.p-c {
    background: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    padding: .8rem;
    border-radius: 0;
    border: 1px solid #e3e3e3;
    text-align: left;
    display: flex;
    flex-direction: column;
}

/* Verfuegbarkeit ueber Titel */
.pl-availability {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .35rem;
    font-size: .8rem;
    font-weight: 600;
}

.pl-avail-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.pl-avail-dot.status-2 { background: #28a745; }
.pl-avail-dot.status-1 { background: #ffc107; }
.pl-avail-dot.status-0 { background: #dc3545; }

.pl-avail-dot.status-2 + .pl-avail-text { color: #28a745; }
.pl-avail-dot.status-1 + .pl-avail-text { color: #b8860b; }
.pl-avail-dot.status-0 + .pl-avail-text { color: #dc3545; }

.p-c:hover {
    box-shadow: 0;
    z-index: 0;
}

@media (max-width: 767px) {
    .p-c {
     
        margin-bottom: 0;
    }
}

/* Produktbild Container */
.p-c .img-w {
    position: relative;
}

.p-c .img-w:hover .img-ct {
    box-shadow: none;
    transform: none;
}

/* Sale Badge & Timer Wrapper - links oben positioniert */
.sale-badge-wrapper {
    position: absolute;
    top: 0rem;
    left: 0rem;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

/* Sale Timer - Minimalistisch */
.sale-badge-wrapper .sale-ct {
    position: static;
    background: #000000;
    padding: 0.35rem 0.7rem;
    border-radius: 0px;
    margin: 0;
    display: inline-block;
    bottom: auto;
    left: auto;
}

/* Sale Timer - Vereinfacht "Noch X Tage" */
.sale-badge-wrapper .sale-ct-simple {
    background: #ff0019;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
}

.sale-badge-wrapper .sale-ct-simple .fa-clock {
    margin-right: 0.3rem;
}

.sale-badge-wrapper .sale-ct-simple .sale-ct-value {
    font-weight: 700;
}

.sale-badge-wrapper .sale-ct-simple .flx-jc {
    display: none;
}

/* Sale Badge - Minimalistisch */
.sale-badge-wrapper .ov-t {
    position: static;
    background: #000000;
    color: #ffffff;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 400;
    margin: 0;
    display: inline-block;
    bottom: auto;
    left: auto;
    letter-spacing: 0.05em;
}

/* Rabatt-Badge gruen (ov-t-2 = Sale/Rabatt) */
.sale-badge-wrapper .ov-t-2 {
    background: #28a745;
}

/* Produktinfo Padding + Preis immer unten */
.p-c .caption {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.p-c .pl-price-row {
    margin-top: auto;
}

@media (max-width: 767px) {
    .p-c .caption {
        padding: 0 0rem;
    }
}

/* Produkttitel */
.p-c .title {
    font-size: .9rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* Produktpreis in Übersicht */
.pl-price-row {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}

.pl-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}

.pl-price.special-price {
    color: #dc3545;
}

.pl-price-strike {
    font-size: 1rem;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}

.pl-price-base {
    font-size: .8rem;
    color: #888;
}

.sale-ct .flx-jc {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    align-items: baseline;
}

.sale-ct .ct-wp {
    display: inline-flex;
    align-items: baseline;
    gap: 0.1rem;
    position: relative;
}

.sale-ct .ct-it {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    font-family: 'Figtree', sans-serif;
}

.sale-ct .ct-un {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Doppelpunkt zwischen Timer-Einheiten */
.sale-ct .ct-wp:not(:last-child)::after {
    content: ':';
    margin-left: 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

/* Abkürzungen für Timer-Labels */
.sale-ct .ct-wp.days .ct-un {
    font-size: 0;
}
.sale-ct .ct-wp.days .ct-un::after {
    content: 'T';
    font-size: 0.75rem;
}

.sale-ct .ct-wp.hours .ct-un {
    font-size: 0;
}
.sale-ct .ct-wp.hours .ct-un::after {
    content: 'H';
    font-size: 0.75rem;
}

.sale-ct .ct-wp.minutes .ct-un {
    font-size: 0;
}
.sale-ct .ct-wp.minutes .ct-un::after {
    content: 'M';
    font-size: 0.75rem;
}

.sale-ct .ct-wp.seconds .ct-un {
    font-size: 0;
}
.sale-ct .ct-wp.seconds .ct-un::after {
    content: 'S';
    font-size: 0.75rem;
}



/* Cards/Panels - Flat Design */
.panel,
.card {
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    box-shadow: none;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.panel:hover,
.card:hover {
    border-color: #d0d0d0;
}

/* Inputs - Flat Design */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    border: 1px solid #d0d0d0;
    border-radius: 0px;
    padding: 10px 14px;
    background: #f8f8f8;
    transition: all 0.2s ease;
    box-shadow: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: #333;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    outline: none;
}

/* Mengenauswahl +/- Buttons */
#snackys-tpl .qty-btns .qty-sub,
#snackys-tpl .qty-btns .qty-add,
#snackys-tpl .qty-btns .qty {
    border-radius: 0;
}

/* ========================================
   3. SMOOTH SCROLLING & PERFORMANCE
   ======================================== */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 767px) {
    #result-wrapper {
        margin-top: 0px;
    }
}

/* Breadcrumb */
#bc-w {
    overflow: hidden;
    padding-top: .8rem;
    padding-bottom: .8rem;
    background: var(--brd-b);
    color: var(--brd-l);
    margin-bottom: 2rem;
    border-bottom: 0;
}

#bc .bc-item.first {
    display: none;
}

#bc .bc-item.first + .separator {
    display: none;
}

/* Filter und Sortierung */
@media screen and (min-width: 992px) {
    #ftr-tp {
        background: var(--pan-b);
        border: 0;
        padding: 0;
        border-radius: 0;
        margin-top: 0;
    }
}


/* Buy-Form Margin verkleinern (mb-lg -> mb-sm) */
#buy_form {
    margin-bottom: 1rem !important;
    border-bottom: 1px solid #e4e4e4;
    padding-bottom: 2rem;
}

/* ========================================
   4b. PRODUKTSEITE LAYOUT
   ======================================== */

/* Mobile Thumbnails unter dem Hauptbild */
@media screen and (max-width: 767px) {
    #gallery-thumbs {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: .5rem;
        padding: .75rem 0 .25rem;
        order: 1;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #gallery-thumbs::-webkit-scrollbar {
        display: none;
    }

    #gallery-thumbs .img-w {
        flex: 0 0 auto;
        width: 56px;
        margin: 0;
    }

    #gallery-thumbs .img-w .img-ct {
        border-radius: 4px;
    }
}

/* Produktbild sticky */
@media screen and (min-width: 768px) {
    .product-gallery {
        position: sticky;
        top: 63px;
        align-self: flex-start;
    }

    .product-info-inner {
        background: #ffffff;
        border-radius: 0;
        border-left: 1px solid #e4e4e4;
        padding: 45px;
        padding-top: 0px;
        padding-bottom: 0px;
    }

    /* Lightbox: Sticky zuruecksetzen damit Fullscreen-Overlay funktioniert */
    .lightbox-shown .product-gallery {
        position: static;
        top: auto;
        align-self: initial;
    }

    /* Spaltenbreiten: Gallery 5, Info 7 (statt 6/6) */
    body:not(.lightbox-shown) #product-offer > .product-gallery {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    body:not(.lightbox-shown) #product-offer > .product-info {
        flex: 0 0 58.333333%;
        max-width: 100%;
    }
}

@media screen and (min-width: 1401px) {
    #product-offer > .product-info {
        padding-left: 2rem;
    }
}

/* Preis + Hersteller-Logo */

.price-manufacturer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Detail Preis-Box */
.detail-price-box {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.detail-price-main {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.detail-price-current {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
}

.detail-price-current.special-price {
    color: #dc3545;
}

.detail-price-strike {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.detail-price-discount {
    display: inline-flex;
    align-items: center;
    background: #28a745;
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    padding: .25rem .5rem;
    border-radius: 3px;
}

.detail-price-tax {
    font-size: .8rem;
    color: #888;
}

.detail-price-tax a {
    color: #888;
    text-decoration: underline;
}

.detail-price-unit-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.detail-price-unit {
    font-size: .8rem;
    color: #666;
}

.detail-price-uvp {
    font-size: .8rem;
    color: #888;
}

.detail-price-uvp del {
    color: #999;
}

/* Detail Sale Timer - Schwarzer Kasten mit animiertem Balken */
.detail-sale-timer {
    background: #cf0014;
    color: #fff;
    padding: .75rem 1rem;
    margin-top: 1rem;
    font-size: .9rem;
}

.detail-sale-timer-text {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .5rem;
    flex-wrap: wrap;
}

.detail-sale-timer-text .fa-clock {
    margin-right: .2rem;
}

@media (max-width: 767px) {
    .detail-sale-timer-text .timer-countdown {
        width: 100%;
        font-weight: 600;
    }
}

.detail-sale-timer .timer-value1,
.detail-sale-timer .timer-value2 {
    font-weight: 700;
}

.detail-sale-timer-bar {
    height: 6px;
    background: rgb(0 0 0 / 66%);;
    border-radius: 3px;
    overflow: hidden;
}

.detail-sale-timer-progress {
    height: 100%;
    width: 35%;
    background: linear-gradient(
        90deg,
        #ff0019 0%,
        #ffeaea 50%,
        #ff0019 100%
    );
    background-size: 200% 100%;
    border-radius: 3px;
    animation: sale-timer-pulse 2s ease-in-out infinite;
}

@keyframes sale-timer-pulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.price-manufacturer-prices {
    flex: 1;
    min-width: 0;
}

.price-manufacturer-logo {
    flex-shrink: 0;
    text-align: right;
}

.price-manufacturer-logo img {
    max-width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    border: 1px solid #e4e4e4;
}

.detail-artnr-table {
    font-size: .75rem;
    color: #888;
    margin: 0;
    margin-left: auto;
    border-collapse: collapse;
    white-space: nowrap;
    background: #fff;
}

.detail-artnr-table tr,
.detail-artnr-table td {
    padding: 0;
    border: none;
    vertical-align: top;
    background: #fff !important;
}

.detail-artnr-table td:first-child {
    padding-right: .5rem;
    text-align: right;
}

.detail-artnr-table td:last-child {
    text-align: left;
}

/* ========================================
   5. VARIANTEN-KARTEN (Cross-Selling)
   ======================================== */

/* Container */
.var-cards {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

/* Einzelne Card */
.var-card {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .875rem 1rem;
    border: 1px solid #e0e0e0;
    margin-top: -1px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease;
    position: relative;
}

.var-card:first-of-type {
    margin-top: 0;
}

/* Hover */
.var-card:hover {
    border-color: #bbb;
    z-index: 1;
}

/* Aktive/Ausgewaehlte Card */
.var-card.active {
    border-color: #28a745;
    border-width: 2px;
    padding: calc(.875rem - 1px) calc(1rem - 1px);
    z-index: 2;
}

/* Radio-Kreis */
.var-card-select {
    flex-shrink: 0;
    padding-top: .15rem;
}

.var-card-radio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
    transition: all .2s ease;
}

.var-card-radio.checked {
    border-color: #28a745;
    background: #28a745;
    color: #fff;
}

.var-card-radio.checked i {
    font-size: .65rem;
}

/* Card Body */
.var-card-body {
    flex: 1;
    min-width: 0;
}

/* Hauptzeile: 3-Spalten Flex */
.var-card-row-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    width: 100%;
}

/* Spalte 1: Inhalt + VPE + MwSt */
.var-card-col-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.var-card-name {
    font-weight: 600;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.var-card-vpe-tax {
    color: #888;
    font-size: .8rem;
    line-height: 1.4;
    margin-top: .15rem;
}

/* Spalte 2: UVP + Preis */
.var-card-col-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    text-align: right;
}

.var-card-uvp {
    color: #999;
    font-size: .8rem;
}

.var-card-uvp del {
    text-decoration: line-through;
}

.var-card-price {
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.var-card-price.special-price {
    color: #dc3545;
}

/* Stock in Card */
.var-card-stock {
    font-size: .8rem;
    margin-top: .2rem;
}

/* Badges */
.var-card-badge-best {
    display: inline-block;
    background: #28a745;
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    padding: .15rem .45rem;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: .02em;
    vertical-align: middle;
}

.var-card-badge-sale {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    padding: .15rem .45rem;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-top: .2rem;
}

/* Mobile: Stock + Preis kompakter */
@media (max-width: 767px) {
    .var-card-row-main {
        flex-wrap: wrap;
    }

    .var-card-col-info {
        flex: 1 1 60%;
    }

    .var-card-col-price {
        flex: 0 0 auto;
    }

    .var-card-price {
        font-size: .95rem;
    }
}

/* Lieferstatus unter den Karten */
.var-cards-delivery {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: .4rem 0;
    font-size: .85rem;
}

/* Verfuegbarkeits-Balken mit Fortschrittsanzeige */
.var-cards-stock-bar {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: .6rem .75rem;
    border-radius: 0px;
    font-size: .85rem;
}

.var-cards-stock-bar.status-1 {
    background: #e8f5e9;
    color: #2e7d32;
}

.var-cards-stock-bar.status-2 {
    background: #fff8e1;
    color: #f57f17;
}

.var-cards-stock-bar.status-0 {
    background: #ffeef0;
    color: #c62828;
}

.var-cards-stock-info {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.var-cards-stock-icon {
    font-size: .85rem;
    flex-shrink: 0;
}

.var-cards-stock-text {
    font-weight: 500;
}

.var-cards-stock-count {
    font-weight: 700;
}

/* Fortschrittsbalken */
.var-cards-stock-progress {
    height: 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, .08);
    overflow: hidden;
}

.var-cards-stock-progress .progress-bar {
    height: 100%;
    border-radius: 3px;
    background-size: 1rem 1rem;
    animation: var-stock-progress-stripes 1s linear infinite;
}

@keyframes var-stock-progress-stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

.status-1 .var-cards-stock-progress .progress-bar {
    background-color: #28a745;
    background-image: linear-gradient(
        45deg,
        rgba(255,255,255,.15) 25%, transparent 25%,
        transparent 50%, rgba(255,255,255,.15) 50%,
        rgba(255,255,255,.15) 75%, transparent 75%,
        transparent
    );
}

.status-2 .var-cards-stock-progress .progress-bar {
    background-color: #ffc107;
    background-image: linear-gradient(
        45deg,
        rgba(255,255,255,.15) 25%, transparent 25%,
        transparent 50%, rgba(255,255,255,.15) 50%,
        rgba(255,255,255,.15) 75%, transparent 75%,
        transparent
    );
}

.status-0 .var-cards-stock-progress .progress-bar {
    background-color: #dc3545;
    background-image: linear-gradient(
        45deg,
        rgba(255,255,255,.15) 25%, transparent 25%,
        transparent 50%, rgba(255,255,255,.15) 50%,
        rgba(255,255,255,.15) 75%, transparent 75%,
        transparent
    );
}

/* Verfuegbarkeit + Lieferzeit inline */
.var-cards-avail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .85rem;
    padding: .5rem .75rem;
    border-radius: 0px;
}

.var-cards-avail-row.available {
    background: #e8f5e9;
    color: #2e7d32;
}

.var-cards-avail-row.unavailable {
    background: #ffeef0;
    color: #c62828;
}

.var-cards-avail-left {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}

.var-cards-availability-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.var-cards-availability-dot.available {
    background: #28a745;
}

.var-cards-availability-dot.unavailable {
    background: #dc3545;
}

.var-cards-availability-text {
    font-weight: 600;
}

.var-cards-avail-sep {
    color: #ccc;
    margin: 0 .15rem;
}

.var-cards-delivery-time {
    font-weight: 500;
    color: #555;
}

.var-cards-shipping-icon {
    color: #888;
    font-size: 1rem;
    flex-shrink: 0;
    transition: color .2s ease;
}

.var-cards-shipping-icon:hover {
    color: #000;
}

.var-cards-order-hint {
    font-size: .8rem;
    color: #555;
    padding: .25rem 0 0;
}

.var-cards-shipping-row {
    font-size: .85rem;
    color: #555;
}

.var-cards-shipping-text {
    color: #555;
}

/* ========================================
   5b. PRODUKT-MATRIX (Varianten-Liste)
   ======================================== */

.product-matrix {
    border: 1px solid #e4e4e4;
    overflow: hidden;
    background: #fff;
}

.product-matrix .matrix-list {
    padding: .75rem 1rem;
    transition: background .15s ease;
}

.product-matrix .matrix-list:hover {
    background: #f8f8f8;
}

.product-matrix hr.hr-sm {
    margin: 0;
    border-color: #efefef;
}

.product-matrix .mtrx .img-ct {
    width: 3.5rem;
    height: 3.5rem;
    overflow: hidden;
    border: 1px solid #efefef;
}

.product-matrix .mtrx .img-ct img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-matrix .matrix-list a {
    color: #333;
    font-weight: 500;
    font-size: .9rem;
}

.product-matrix .matrix-list a:hover {
    color: #000;
}

.matrix-stock-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .2rem;
    font-size: .8rem;
    line-height: 1.4;
}

.matrix-stock-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.matrix-stock-dot.status-2 { background: #28a745; }
.matrix-stock-dot.status-1 { background: #ffc107; }
.matrix-stock-dot.status-0 { background: #dc3545; }

.matrix-stock-text {
    font-weight: 500;
}

.matrix-stock-text.status-2 { color: #28a745; }
.matrix-stock-text.status-1 { color: #b8860b; }
.matrix-stock-text.status-0 { color: #dc3545; }

.matrix-stock-sep {
    color: #ccc;
    margin: 0 .1rem;
}

.matrix-stock-delivery {
    color: #555;
    font-weight: 400;
}

.matrix-shipping-link {
    color: #888;
    font-size: .85rem;
    margin-left: auto;
    flex-shrink: 0;
    transition: color .2s ease;
}

.matrix-shipping-link:hover {
    color: #000;
}

.product-matrix .mtrx .input-group-sm .form-control {
    border: 1px solid #e0e0e0;
    font-size: .85rem;
    height: 2rem;
    min-width: 3rem;
    text-align: center;
}

.product-matrix .mtrx .input-group-sm .form-control:focus {
    border-color: #333;
    box-shadow: none;
}

.product-matrix .mtrx .input-group-text {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-right: 0;
    font-size: .8rem;
    color: #888;
    padding: 0 .5rem;
}

.product-matrix .text-muted-util {
    color: #999;
    font-size: 1.1rem;
}

.product-matrix-submit {
    padding: .75rem 1rem;
    background: #f8f8f8;
    border-top: 1px solid #efefef;
}

@media (max-width: 767px) {
    .product-matrix .matrix-list {
        padding: .6rem .75rem;
    }

    .matrix-stock-row {
        flex-wrap: wrap;
    }

    .product-matrix .mtrx .img-ct {
        width: 3rem;
        height: 3rem;
    }
}

/* ========================================
   6. INFORMATIONEN TAB - TABELLE
   ======================================== */

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.info-table td {
    padding: .5rem .75rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table td:first-child {
    width: 35%;
    color: #555;
    white-space: nowrap;
}

.info-table td:last-child {
    color: #333;
}

@media (max-width: 767px) {
    .info-table td:first-child {
        width: 40%;
        white-space: normal;
    }
}

/* ========================================
   7. ZAHLUNGSMETHODEN-ICONS
   ======================================== */

.payment-icons {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1.25rem;
    padding: .75rem 0;
}

.payment-icons img {
    height: 31px;
    width: auto;
    flex-shrink: 1;
    min-width: 0;
    transition: opacity .2s ease;
}

.payment-icons img:hover {
    opacity: 1;
}

@media (max-width: 767px) {
    .payment-icons {
        flex-wrap: wrap;
        justify-content: center;
        gap: .5rem;
    }

    .payment-icons img {
        height: 31px;
        flex-shrink: 0;
    }
}

/* USP-Badges unter Bezahlicons */
.usp-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin-top: .75rem;
    margin-bottom: .75rem;
}

.usp-badge {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: #333;
    padding: .5rem .6rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.usp-badge i {
    font-size: 1rem;
    color: #000;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .usp-badges {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   8. TABS ALS ACCORDION IN RECHTER SPALTE
   ======================================== */

@media screen and (min-width: 768px) {
    /* Tab-Navigation ausblenden */
    #article-tab-nav {
        display: none !important;
    }

    /* Accordion Headers anzeigen (Snackys versteckt sie auf Desktop) */
    #article-tabs .tab-ct > .panel-heading {
        display: flex !important;
        padding: 1rem 0;
        border-bottom: 1px solid var(--hr-li, #e4e4e4);
        margin: 0;
        cursor: pointer;
        background: none;
        border-left: 0;
        border-right: 0;
        border-top: 0;
        width: 100%;
    }

    /* Alle Tab-Panes sichtbar (Snackys versteckt nicht-aktive komplett) */
    #article-tabs > .tab-ct {
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        visibility: visible !important;
        display: block !important;
    }

    /* Geschlossene Panels kollabieren */
    #article-tabs .tab-ct:not(.show) > .panel-body {
        opacity: 0;
        height: 0;
        overflow: hidden;
    }

    /* Offene Panels anzeigen */
    #article-tabs .tab-ct.show > .panel-body {
        margin: 1.5rem 0;
    }

    /* Titel auf h5-Groesse */
    #article-tabs .panel-heading .panel-title {
        font-size: 1rem!important;
        font-weight: 600;
    }

    /* Caret-Icon drehen wenn offen */
    #article-tabs .tab-ct.show > .panel-heading .img-ct {
        transform: scaleY(-1);
    }
}

/* Tab-Titel auf h5-Groesse */
#article-tabs .panel-heading .panel-title {
    font-size: 1rem !important;
    font-weight: 600;
}

/* ========================================
   9. SLIDER-PFEILE SCHWARZ
   ======================================== */

.panel-slider .sl-ar {
    background: #000 !important;
    border-radius: 0 !important;
}

.panel-slider .sl-ar .ar {
    border-color: #fff !important;
}

.panel-slider .sl-ar.inactive {
    opacity: .35;
}

/* ========================================
   10. SLIDER-PREISE
   ======================================== */

.item-slider-price .price {
    font-size: 1.5rem;
    font-weight: 700;
}

.item-slider-price .old-price {
    font-size: 1rem;
    font-weight: 400;
    vertical-align: baseline;
}

.item-slider-price .base-price {
    font-size: .8rem;
    color: #888;
}

/* ========================================
   10. HERSTELLER-SLIDER
   ======================================== */

#man-sl .img-ct {
    border: 0;
    background: var(--man-b);
}

/* Home-Icon immer rot */
.mgm .home-icon svg {
    fill: #ff0000;
}

/* Listing: Warenkorb-Form nebeneinander + Icon statt Text */
@media (min-width: 768px) {
    .p-c .exp {
        display: flex;
        align-items: center;
        gap: .4rem;
    }

    .p-c .exp .qty-btns.w100 {
        flex: 1;
        width: auto !important;
        height: 2.5rem;
        display: flex !important;
    }

    .p-c .exp .qty-btns .quantity {
        height: 2.5rem;
        flex: 1;
    }

    .p-c .exp .qty-btns .qty-sub,
    .p-c .exp .qty-btns .qty-add {
        height: 2.5rem !important;
        width: 2.5rem !important;
        min-width: 2.5rem;
        flex: 0 0 2.5rem;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .p-c .exp .hr-xxs {
        display: none;
    }

    .p-c .exp .input-group-btn {
        flex: 0 0 auto;
    }

    .p-c .sn-addBasket {
        width: 3.5rem !important;
        height: 2.5rem;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .p-c .sn-addBasket .hidden-xs {
        display: none !important;
    }

    .p-c .sn-addBasket .visible-xs {
        display: inline-block !important;
    }
}

/* Links ohne Unterstreichung */
a:not(.btn):not(header a):not(.dropdown a):not(#cat-w a):not(.p-w a):not(.nav-it a):not(.pn-news a):not(.nav-item a):not(.prd a):not(.c-stp a):not(.answer a):not(.card-body a.item):not(#bc-w a):not(.tag):not(.sc-w a):not(.card-header),
.info-essential a {
    text-decoration: none!important;
}
