                                           /*
 * Organic Gardens - Home Slider
 * V1: robustes Grundgeruest
 */

/* Slider besitzt schon vor Owl-Initialisierung eine definierte Flaeche. */
.og-home-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/*
 * Vor Owl-Initialisierung:
 * Nur der erste Slide darf sichtbar sein.
 * Dadurch erscheinen beim Laden niemals alle Slides untereinander.
 */
.og-home-slider:not(.owl-loaded) > .og-home-slide {
    display: none;
}

.og-home-slider:not(.owl-loaded) > .og-home-slide:first-child {
    display: block;
}

/* Einheitliche Slide-Geometrie. */
.og-home-slide {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Innerer Inhaltsbereich. */
.og-home-slide__inner {
    position: relative;
    min-height: 500px;
}

/* Textblock. */
.og-home-slide__content {
    position: absolute;
    top: 50%;
    z-index: 2;
    max-width: 46%;
    transform: translateY(-50%);
}

.og-home-slide--left .og-home-slide__content {
    left: 5%;
    text-align: left;
}

.og-home-slide--right .og-home-slide__content {
    right: 5%;
    text-align: right;
}

/*
 * Tablet:
 * Noch dieselbe Struktur, aber weniger Hoehe.
 */
@media (max-width: 991px) {
    .og-home-slide,
    .og-home-slide__inner {
        min-height: 420px;
    }

    .og-home-slide__content {
        max-width: 55%;
    }
}

/*
 * Mobil:
 * Keine absolute Desktop-Positionierung erzwingen.
 * Der Text bekommt einen stabilen eigenen Bereich.
 */
@media (max-width: 767px) {
    .og-home-slide,
    .og-home-slide__inner {
        min-height: 360px;
    }

    .og-home-slide {
        background-position: center center;
    }

    .og-home-slide__content {
        top: auto;
        right: auto;
        bottom: 25px;
        left: 20px;
        max-width: calc(100% - 40px);
        transform: none;
        text-align: left;
    }

    .og-home-slide--right .og-home-slide__content,
    .og-home-slide--left .og-home-slide__content {
        right: auto;
        left: 20px;
        text-align: left;
    }
}


/* =========================================================
   OG CUSTOMER SLIDER GEOMETRY V1
   Nur Geometrie - noch kein Design
   ========================================================= */

.og-slider-stage {
    width: 100%;
}

#og-customer-slider {
    width: 100%;
    height: 500px;
    min-height: 500px;
}

#og-customer-slider .og-customer-slider__slide {
    width: 100%;
    height: 500px;
    min-height: 500px;
}

#og-customer-slider .og-customer-slider__inner {
    width: 100%;
    height: 100%;
}


/* =========================================================
   OG CUSTOMER SLIDER - DESIGN V1
   ========================================================= */

#og-customer-slider .og-customer-slider__inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 40px 20px;
    text-align: center;
}

#og-customer-slider .og-customer-slider__headline {
    width: 100%;
    max-width: 620px;
    margin: 0 auto 36px;
    text-align: center;
    font-size: 24px;
    line-height: 1.45;
    font-weight: 500;
}

#og-customer-slider .og-customer-slider__meter {
    width: 620px;
    max-width: 90%;
    margin: 0 auto;
}

#og-customer-slider .og-customer-slider__meter-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
}

#og-customer-slider .og-customer-slider__progress {
    position: relative;
    display: block;
    width: 100%;
    height: 8px;
    margin: 0;
    overflow: visible;
    border-radius: 20px;
    background: #d8d8d8;
}

#og-customer-slider .og-customer-slider__progress-bar {
    position: relative;
    display: block;
    height: 8px;
    min-width: 0;
    border-radius: 20px;
    background: #7caf34;
}

#og-customer-slider .og-customer-slider__progress-bar::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #7caf34;
    transform: translateY(-50%);
}

@media (max-width: 767px) {
    #og-customer-slider,
    #og-customer-slider .og-customer-slider__slide {
        height: 360px;
        min-height: 360px;
    }

    #og-customer-slider .og-customer-slider__inner {
        padding: 30px 18px;
    }

    #og-customer-slider .og-customer-slider__headline {
        max-width: 420px;
        margin-bottom: 28px;
        font-size: 19px;
        line-height: 1.4;
    }

    #og-customer-slider .og-customer-slider__meter {
        width: 100%;
        max-width: 420px;
    }

    #og-customer-slider .og-customer-slider__meter-values {
        font-size: 14px;
    }
}


/* ==========================================================
   HOMEPAGE - MAGEFAN BLOG: 4 KARTEN
   ========================================================== */

.og-home-blog {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.og-home-blog-title {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 600;
}

.og-home-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.og-home-blog-card {
    min-width: 0;
}

.og-home-blog-image {
    display: block;
    width: 100%;
    overflow: hidden;
}

.og-home-blog-image img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform .25s ease;
}

.og-home-blog-image:hover img,
.og-home-blog-image:focus-visible img {
    transform: scale(1.03);
}

.og-home-blog-content {
    padding-top: 14px;
}

.og-home-blog-post-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
}

.og-home-blog-post-title a {
    color: inherit;
    text-decoration: none;
}

.og-home-blog-text {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.og-home-blog-more {
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 991px) {
    .og-home-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .og-home-blog {
        margin: 30px auto;
    }

    .og-home-blog-grid {
        grid-template-columns: 1fr;
    }

    .og-home-blog-image img {
        height: auto;
    }
}


/* =========================================================
   STARTSEITE - AKTIONSPRODUKTE
   Gesamten CMS-Block ausblenden, wenn keine Produkte vorhanden
   ========================================================= */

.cbdfull-home-sale-products:not(:has(.products)) {
    display: none;
}


/* =========================================================
   STARTSEITE - TAGESANGEBOT
   Countdown + Produktgrid
   ========================================================= */

/* Countdown aus Smartwave-Overlay in normalen Seitenfluss holen */
.og-home-dailydeal .og-home-dailydeal-countdown {
    position: static;
    width: auto;
    left: auto;
    bottom: auto;
    padding: 0;
    margin: 12px 0;
}

/* Kompakte Countdown-Darstellung nur auf der Startseite */
.og-home-dailydeal .og-home-dailydeal-countdown .sw-dailydeal {
    display: block;
    width: auto;
    background: transparent;
    padding: 0;
    text-align: left;
}

/* NOCH: */
.og-home-dailydeal .og-home-dailydeal-countdown .dailydeal-label {
    display: block;
    color: #21293c;
    font-family: 'Open Sans';
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 6px;
}

/* Einzelne Zeitboxen */
.og-home-dailydeal .og-home-dailydeal-countdown .number-wrapper {
    display: inline-block;
    width: 50px;
    margin: 0 3px 0 0;
    padding: 7px 0;
    text-align: center;
    vertical-align: top;
    background-color: #7bad38;
    color: #fff;
}

/* Zahl */
.og-home-dailydeal .og-home-dailydeal-countdown .number {
    display: block;
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
}

/* TAGE / STUNDEN / MINUTEN / SEKUNDEN */
.og-home-dailydeal .og-home-dailydeal-countdown .caption {
    display: block;
    color: #fff;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.2;
    margin: 3px 0 0;
}

/* Warenkorb innerhalb der Produktkachel zentrieren */
.og-home-dailydeal .product-item-actions {
    text-align: center;
}

.og-home-dailydeal .actions-primary {
    display: inline-block;
}

/* Gesamten CMS-Block ausblenden, wenn kein aktiver Deal vorhanden */
.cbdfull-home-dailydeal:not(:has([data-og-dailydeal])) {
    display: none;
}

/* Desktop: gleiche Grundgeometrie wie 4-spaltiges Produktgrid */
.og-home-dailydeal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.og-home-dailydeal {
    min-width: 0;
}

/* Mobile wie das normale Porto-Produktgrid: 2 Produkte nebeneinander */
@media (max-width: 767px) {
    .og-home-dailydeal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}
/* =========================================================
   STARTSEITE - KATEGORIE BILDNAVIGATION
   Nur HOME - Kategorie-Seiten bleiben unveraendert
   ========================================================= */

.og-home-category-navigation {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.og-home-category-navigation__title {
    margin: 0 0 24px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
}

/*
 * Desktop:
 * Drei kompakte Karten statt voller Containerbreite.
 */
.og-home-category-navigation .og-category-navigation {
    grid-template-columns: repeat(3, 280px);
    justify-content: start;
    gap: 20px;
    margin: 0;
}

/* Tablet */
@media (max-width: 991px) {
    .og-home-category-navigation .og-category-navigation {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: stretch;
        gap: 12px;
    }
}

/* Smartphone: 2 Karten pro Reihe */
@media (max-width: 575px) {
    .og-home-category-navigation {
        margin: 30px auto;
        padding: 0 10px;
    }

    .og-home-category-navigation__title {
        margin-bottom: 15px;
        font-size: 20px;
    }

    .og-home-category-navigation .og-category-navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        gap: 8px;
    }
}
/* =========================================================
   KATEGORIE - DAILY DEAL COUNTDOWN
   Einheitlich: TAGE | STD. | MIN. | SEK.
   ========================================================= */

.products-grid .product-item-info.type1 .product-image .sw-dailydeal-wrapper {
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 0;
}

.products-grid .product-item-info.type1 .product-image .sw-dailydeal {
    display: block;
    width: 100%;
    padding: 0;
    background: transparent;
    text-align: left;
}

.products-grid .product-item-info.type1 .product-image .countdowncontainer {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 2px;
    align-items: stretch;
}

.products-grid .product-item-info.type1 .product-image .dailydeal-label {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    margin: 0 0 4px;
    color: #21293c;
    font-family: 'Open Sans';
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
}

.products-grid .product-item-info.type1 .product-image .number-wrapper {
    display: block;
    width: auto;
    margin: 0;
    padding: 6px 1px;
    background-color: #7bad38;
    color: #fff;
    text-align: center;
}

.products-grid .product-item-info.type1 .product-image .number {
    display: block;
    color: #fff;
    font-size: 16px;
    line-height: 1.3;
}

.products-grid .product-item-info.type1 .product-image .caption {
    display: block;
    width: 100%;
    margin: 2px 0 0;
    color: #fff;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}
/* Main Slider – Navigation Arrows */
#og-home-slider .owl-nav .owl-prev,
#og-home-slider .owl-nav .owl-next {
    background: #7AA93C !important;
    color: #FFFFFF !important;
}

#og-home-slider .owl-nav .owl-prev:hover,
#og-home-slider .owl-nav .owl-next:hover,
#og-home-slider .owl-nav .owl-prev:focus,
#og-home-slider .owl-nav .owl-next:focus {
    background: #E5E5E5 !important;
    color: #222529 !important;
}
