/*
Theme Name: Flatsome Child
Description: Custom CBD Style Layout (Lucky Hemp / Wiki Style)
Template: flatsome
*/

/* ==============================================================================
   1. FLATSOME DEFAULTS AUSBLENDEN (SHOP)
   ============================================================================== */
/* Blendet die alten Titel, Beschreibungen und Filterleisten von Flatsome aus */
.shop-page-title, 
.category-filtering-row, 
.term-description, 
.category-description {
    display: none !important;
}

/* ==============================================================================
   2. KATEGORIE HEADER & BESCHREIBUNG (SHOP)
   ============================================================================== */
.custom-cat-header-wrapper { 
    padding-top: 20px; 
    margin-bottom: 0; 
}

.custom-category-title-main { 
    font-size: 32px; 
    font-weight: 700; 
    color: #2e5233; 
    margin-bottom: 15px; 
    text-transform: none; 
}

.cat-desc-inner-content { 
    max-height: 85px; 
    overflow: hidden; 
    transition: max-height 0.4s ease-in-out; 
    line-height: 1.6; 
    color: #444; 
    font-size: 15px; 
}

.cat-desc-inner-content.is-expanded { 
    max-height: 3000px; 
}

.custom-read-more-trigger { 
    display: inline-block; 
    margin-top: 10px; 
    font-weight: bold; 
    color: #22601a; 
    text-decoration: underline; 
    cursor: pointer; 
}

/* ==============================================================================
   3. PILLAR NAVIGATION (SHOP & BLOG GEMEINSAM)
   ============================================================================== */
.custom-pillar-navigation-row { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px; 
    margin: 20px 0 30px 0; 
}

.custom-pillar-item { 
    display: inline-block; 
    padding: 10px 22px; 
    background: #ffffff; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    color: #333 !important; 
    font-weight: 600; 
    font-size: 14px; 
    transition: all 0.2s ease; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); 
}

.custom-pillar-item:hover, 
.custom-pillar-item.is-active-pill { 
    background-color: #55a559; 
    border-color: #55a559; 
    color: #fff !important; 
    text-decoration: none !important; 
}

/* ==============================================================================
   4. FILTERLEISTE (BREADCRUMBS & SORTIERUNG SHOP)
   ============================================================================== */
.custom-wc-filter-bar { 
    padding: 15px 0; 
    border-top: 1px solid #eee; 
    margin-bottom: 30px; 
}

/* Breadcrumbs komplett ausblenden */
.woocommerce-breadcrumb, 
.breadcrumbs {
    display: none !important;
}

/* Sortier-Dropdown rechtsbündig ausrichten */
.filter-bar-flex { 
    display: flex; 
    justify-content: flex-end !important; 
    align-items: center; 
    flex-wrap: wrap; 
}

.filter-bar-right { 
    display: flex !important; 
    align-items: center; 
    gap: 20px; 
    margin-left: auto !important;
}

/* ==============================================================================
   5. PRODUKT-KACHEL DESIGN (ARCHIV)
   ============================================================================== */
.product-small .col-inner {
    background-color: #f4f4f4 !important; 
    border-radius: 8px !important; 
    overflow: hidden !important; 
}

.product-small.box {
    background-color: transparent !important; 
    border-radius: 8px !important;
    border: none !important;
    padding-bottom: 0 !important; 
    margin-bottom: 0 !important;
}

/* Hover-Effekte der Kachel restlos deaktivieren */
.product-small:hover .col-inner,
.product-small.has-hover:hover .box,
.product-small.has-hover:hover .box-inner {
    transform: none !important;
    box-shadow: none !important;
}

.product-small.box .box-text {
    padding: 15px 15px 0 15px !important; 
    text-align: left !important;
    background-color: transparent !important;
}

.product-small.box .name { 
    font-size: 1.1rem !important; 
    font-weight: 700 !important; 
    color: #333 !important; 
    margin-bottom: 8px; 
}

.archive-product-short-desc { 
    font-size: 13px; 
    color: #777; 
    margin-bottom: 15px; 
    line-height: 1.4; 
}

.archive-product-short-desc ul { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
}

.archive-product-short-desc li::before { 
    content: "- "; 
}

.star-rating {
    margin: 10px 0;
    color: #eec15b !important; 
}

/* ==============================================================================
   6. PREIS-LAYOUT (SHOP)
   ============================================================================== */
.cbd-price-block-wrapper {
    text-align: right;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cbd-ppg {
    font-size: 1.15rem;
    font-weight: 800;
    color: #333;
}

.cbd-unit {
    font-size: 0.8rem;
    font-weight: normal;
    color: #555;
}

.cbd-total-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    margin-top: 3px;
}
.cbd-total-price bdi {
    text-decoration: none !important;
}

/* ==============================================================================
   7. VARIATION SWATCHES (SHOP)
   ============================================================================== */
.swatches, 
.ux-swatches, 
.variable-item-wrapper {
    display: flex !important; 
    flex-wrap: wrap; 
    gap: 6px !important; 
    margin-bottom: 15px !important; 
    justify-content: flex-start !important; 
}

.swatch, 
.variable-item {
    border: 1px solid #bbb !important; 
    background: #fff !important; 
    color: #444 !important;
    border-radius: 4px !important; 
    padding: 4px 8px !important; 
    min-width: 38px !important;
    font-size: 11px !important; 
    font-weight: 600; 
    text-align: center; 
    height: auto !important;
    cursor: pointer;
}

.swatch.selected, 
.variable-item.selected { 
    border-color: #22601a !important; 
    color: #22601a !important; 
    box-shadow: inset 0 0 0 1px #22601a; 
}

/* ==============================================================================
   8. BADGES (NEU & CBD-GEHALT SHOP)
   ============================================================================== */
.custom-badge { 
    position: absolute; 
    left: 10px; 
    z-index: 9; 
    padding: 4px 12px; 
    font-size: 12px; 
    font-weight: bold; 
    border-radius: 3px; 
    color: #fff; 
    text-transform: uppercase; 
}

.badge-cbd-value { 
    top: 10px; 
    background-color: #54595f; 
}

.badge-new-status { 
    top: 45px; 
    background-color: #eec15b; 
}

/* ==============================================================================
   9. IN DEN WARENKORB BUTTON (SHOP)
   ============================================================================== */
.add-to-cart-button {
    margin: 15px -15px 0 -15px !important; 
    padding: 0 !important;
}

.add-to-cart-button .button {
    background-color: #22601a !important; 
    color: #fff !important;
    border: none !important;
    width: 100% !important; 
    margin: 0 !important;
    padding: 12px !important;
    text-transform: none !important;
    font-weight: 700 !important;
    font-size: 15px;
    border-radius: 0 0 8px 8px !important; 
}

.add-to-cart-button .button:hover { 
    background-color: #55a559 !important; 
}

.box-text-products { 
    padding-bottom: 0 !important; 
}

/* ==============================================================================
   10. SINGLE PRODUCT GALERIE
   ============================================================================== */
.single-product .product-images {
    background-color: #fff;
    border-radius: 5px; 
    overflow: hidden;
    box-shadow: 0 2px 2px rgba(0,0,0,0.07); 
    border: 1px solid #f1f1f1;
}

.single-product .product-thumbnails {
    background-color: #f1f1f1 !important; 
    padding: 3px 3px !important;
    margin: 0 !important; 
}

.single-product .product-images .row-small {
    margin-bottom: 0 !important;
}

.single-product .product-thumbnails img {
    border-radius: 5px;
    border: 2px solid transparent;
    transition: transform 0.2s ease;
}

.single-product .product-thumbnails .is-nav-selected img {
    border-color: #ffffff !important;
    transform: scale(1.05);
}

.single-product .product-thumbnails .flickity-prev-next-button svg {
    fill: white;
}

/* ==============================================================================
   11. BLOG ARCHIV (CANNABIS WIKI)
   ============================================================================== */
.blog-wrapper.blog-archive {
    background-color: #f6f6f6 !important; 
    padding-top: 30px;
    padding-bottom: 50px;
}

.archive-page-header,
.post-sidebar {
    display: none !important;
}

/* Zwingt den Hauptbereich auf volle Breite */
.blog-wrapper .large-9.col {
    max-width: 100% !important;
    flex-basis: 100% !important;
}

/* ERZWINGT DAS GRID AUF 3 SPALTEN (DESKTOP) */
@media screen and (min-width: 850px) {
    .blog-archive #post-list .row > .col {
        max-width: 33.33333% !important;
        flex-basis: 33.33333% !important;
    }
}

.blog-main-title {
    font-size: 38px;
    font-weight: 800;
    color: #33393c; 
    margin-bottom: 10px;
}

/* Karten-Design */
.post-item .col-inner {
    background-color: #ffffff !important; 
    border-radius: 12px !important; 
    overflow: hidden !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important; 
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Hover-Effekte restlos deaktiviert */
.post-item .col-inner:hover,
.post-item:hover .col-inner,
.post-item.has-hover:hover .box,
.post-item.has-hover:hover .box-inner {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important; 
}

.post-item .box {
    background-color: transparent !important; 
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.post-item .badge,                
.post-item .is-divider,           
.post-item .post-meta,
.post-item .from_the_blog_excerpt {           
    display: none !important; 
}

.post-item .box-text {
    padding: 25px 25px 30px 25px !important; 
    text-align: left !important;
    background-color: transparent !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.post-item .box-text .post-title {
    font-size: 1.3rem !important; 
    font-weight: 800 !important; 
    color: #33393c !important; 
    margin-bottom: 15px !important; 
    line-height: 1.3 !important;
    padding-top: 0 !important;
}

.post-item .box-text .post-title a {
    color: #33393c !important;
}

/* Der grüne Button */
.custom-mehr-erfahren-btn {
    background-color: #55a559 !important; 
    color: #fff !important;
    border: none !important;
    width: auto !important; 
    margin: 0 !important;
    padding: 10px 24px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border-radius: 4px !important; 
    display: inline-block !important;
}

.custom-mehr-erfahren-btn:hover { 
    background-color: #22601a !important; 
}

/* ==============================================================================
   12. SINGLE BLOG POST (HERO HEADER & LAYOUT)
   ============================================================================== */
.blog-single .entry-header,
.blog-single .entry-image {
    display: none !important;
}

.custom-post-hero {
    position: relative;
    width: 100%;
    min-height: 208px; /* Exakt 13rem */
    padding: 30px 0; 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.custom-post-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.55); 
    z-index: 1;
}

.custom-post-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    width: 100%;
}

.custom-post-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff !important;
    margin-bottom: 10px;
    line-height: 1.2;
    max-width: 800px;
}

.custom-post-hero-meta {
    font-size: 15px;
    color: #f1f1f1;
    line-height: 1.6;
}

.blog-single .large-9.col {
    margin: 0 auto;
    float: none;
}

/* ==============================================================================
   13. FIX SOCIAL SHARE ICONS (PRODUKTE & BLOG)
   ============================================================================== */
.share-icons a i,
.product-info .social-icons a i,
.blog-single .social-icons a i {
    color: #33393c !important; 
}

.share-icons a:hover i,
.product-info .social-icons a:hover i,
.blog-single .social-icons a:hover i {
    color: #ffffff !important;
}

/* ==============================================================================
   14. HOMEPAGE BANNER OPTIMIERUNG
   ============================================================================== */
#image_767587822 {
    max-width: 1100px !important;
    margin: 0 auto !important;
}

#image_767587822 .img-inner {
    padding-top: 0 !important;
    height: 100px !important;
}

#image_767587822 img {
    height: 100px !important;
    width: 100% !important;
    object-fit: cover !important;
}

/* ==============================================================================
   15. ACCORDION FIX (KEINE WEISSE SCHRIFT)
   ============================================================================== */
.accordion_page .accordion-title,
.accordion_page .accordion-title.active,
.accordion_page .accordion-title:focus {
    color: #33393c !important; 
}

.accordion_page .accordion-title:hover {
    color: #22601a !important; 
}

.accordion_page .accordion-title i {
    color: #33393c !important;
}

.accordion_page .accordion-inner {
    color: #555555 !important;
}