/*
 Theme Name:   naturholz
 Description:  naturholz
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ==========================================================================
   Short Description - Two Column Layout
   ========================================================================== */

.nhg-short-desc-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    background: #f9f9f7;
    border: 1px solid #e8e5df;
    border-radius: 8px;
    padding: 20px;
    margin-top: 14px;
}

.nhg-short-desc-col {
    flex: 1 1 58%;
    min-width: 0;
}

.nhg-produktinfo-col {
    flex: 1 1 38%;
    min-width: 0;
}

.nhg-produktinfo-col h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px;
}

/* ==========================================================================
   Kurzübersicht Card
   ========================================================================== */

.woocommerce-product-details__short-description {
    padding: 0;
}

.woocommerce-product-details__short-description h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
}

.woocommerce-product-details__short-description ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.woocommerce-product-details__short-description ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 6px;
    line-height: 1.5;
    color: #444;
    font-size: 0.92rem;
}

.woocommerce-product-details__short-description ul li:last-child {
    margin-bottom: 0;
}

.woocommerce-product-details__short-description ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #4a8c3f;
    font-weight: 700;
    font-size: 1.1em;
}

/* ==========================================================================
   Produktinfo Buttons
   ========================================================================== */

p.product-info {
    margin: 0 0 6px;
}

.product-info .btn {
    display: block;
    width: 100%;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-align: left;
    line-height: 1.3;
}

.product-info .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ==========================================================================
   Sonderpreis + Delivery Badges
   ========================================================================== */

.nhg-sonderpreis-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff8eb;
    border: 1px solid #e8a830;
    color: #9a6a10;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
    padding: 6px 12px;
    margin-left: 8px;
    vertical-align: middle;
}

p.product-shipping-class {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eaf5e7;
    border-color: #4a8c3f;
    color: #2d6b23;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
    padding: 6px 12px;
    margin-bottom: 4px;
}

p.product-shipping-class::before {
    content: "🚚";
    font-size: 1em;
}

p.product-shipping-class br {
    display: none;
}

p.delayed-shipping {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.4;
    margin-top: 2px;
    margin-bottom: 0;
}

/* ==========================================================================
   Sale Price
   ========================================================================== */

.single-product .summary p.price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}

.single-product .summary .price del {
    opacity: 0.5;
    font-size: 0.9em;
}

.single-product .summary .price ins {
    font-weight: 700;
    font-size: 1.1em;
    text-decoration: none;
    color: inherit;
}

.single-product .summary .price .nhg-sonderpreis-badge {
    margin-left: auto;
}

.single-product .summary .price .woocommerce-price-suffix {
    flex-basis: 100%;
    order: 10;
}

/* ==========================================================================
   Trust Badges
   ========================================================================== */

.nhg-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8e5df;
}

.nhg-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #666;
    background: #f5f5f2;
    border: 1px solid #e8e5df;
    border-radius: 16px;
    padding: 4px 10px;
    line-height: 1;
}

.nhg-trust-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: #4a8c3f;
}

/* ==========================================================================
   Summary Add-to-Cart Button (composite products)
   ========================================================================== */

.nhg-summary-cart-wrap {
    flex-basis: 100%;
    padding-top: 14px;
    border-top: 1px solid #e8e5df;
}

.nhg-summary-cart-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.03em;
    background: #4a8c3f;
    color: #fff;
    border: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nhg-summary-cart-btn:hover {
    background: #3d7533;
    box-shadow: 0 4px 12px rgba(74,140,63,0.35);
}

/* ==========================================================================
   Hide native add-to-cart for simple products (replaced by card button)
   ========================================================================== */

.single-product .entry-summary form.cart:not(.composite_form) {
    display: none;
}

/* ==========================================================================
   Composite Product Options - Separators
   ========================================================================== */

.composite_component {
    border-bottom: 1px solid #e8e5df;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .single-product .summary .price .nhg-sonderpreis-badge {
        flex-basis: 100%;
        margin-left: 0;
        order: 9;
    }
}

@media (max-width: 480px) {
    .nhg-short-desc-row {
        flex-direction: column;
        gap: 16px;
    }

    .nhg-trust-badges {
        justify-content: center;
    }
}
