/*
Theme Name: Botiga Child
Template: botiga
Version: 1.0.1
Description: Haven & Hearth visual fixes - cards, spacing, trust signals
*/

/* ===== 1. PRODUCT CARD - UNIFORM SPACING ===== */
.products .product, 
ul.products li.product,
.hh-hot-card,
.woocommerce-loop-product__link {
    margin-bottom: 1.5rem !important;
}

/* Fix card image consistency */
.products .product img, 
.hh-hot-card img,
.woocommerce-loop-product__link img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1/1;
}

/* ===== 2. PRODUCT TITLE - NO TEXT TRUNCATION ===== */
.woocommerce-loop-product__title,
.hh-hot-card h3,
.product-title {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    min-height: 2.4em;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
}

/* ===== 3. BRAND NAME - MORE PROMINENT ===== */
.site-title a,
.site-branding .site-title a,
.logo a,
.custom-logo-link {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

/* ===== 4. BUTTON STYLE CONSISTENCY ===== */
.woocommerce .button,
a.button,
button.button,
.add_to_cart_button,
.added_to_cart,
.wp-block-button__link,
.hh-hot-card a.button {
    border-radius: 4px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    transition: all 0.2s ease !important;
}

.woocommerce .button:hover,
a.button:hover,
.add_to_cart_button:hover {
    opacity: 0.85 !important;
    transform: translateY(-1px);
}

/* ===== 5. TRUST SIGNALS - MORE VISIBLE ===== */
.hhs-trust-bar {
    display: flex !important;
    justify-content: center !important;
    gap: 2rem !important;
    padding: 1rem 0 !important;
    margin: 1.5rem 0 !important;
    border-top: 1px solid #eee !important;
    border-bottom: 1px solid #eee !important;
}

.hhs-trust-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #333 !important;
}

.hhs-trust-item svg,
.hhs-trust-item img {
    width: 24px !important;
    height: 24px !important;
}

/* ===== 6. COOKIE BANNER - BETTER STYLING ===== */
.cky-consent-container,
.cky-banner-bottom {
    border-radius: 8px !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08) !important;
}

/* ===== 7. MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    .products .product,
    ul.products li.product {
        padding: 0 8px !important;
    }
    
    .woocommerce-loop-product__title {
        font-size: 0.85rem !important;
        min-height: 2em;
    }
    
    /* Button touch targets */
    .add_to_cart_button,
    a.added_to_cart,
    .woocommerce .button {
        padding: 14px 20px !important;
        min-height: 44px !important;
        font-size: 0.9rem !important;
    }
    
    .hhs-trust-bar {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.8rem !important;
    }
}

/* ===== 8. CATEGORY CARDS - CONSISTENT SPACING ===== */
.hh-category-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 1.2rem !important;
    margin: 2rem 0 !important;
}

.hh-category-card {
    text-align: center !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    transition: transform 0.2s ease !important;
}

.hh-category-card:hover {
    transform: translateY(-3px) !important;
}

.hh-category-card img {
    width: 100% !important;
    height: auto !important;
    border-radius: 6px !important;
}

/* ===== 9. HOT PRODUCT SECTION ===== */
.hh-hot-section {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    margin: 2rem 0 !important;
}

/* ===== 10. PROMO BANNER ===== */
.hh-promo-banner {
    background: #f7f3ee !important;
    padding: 1.5rem !important;
    text-align: center !important;
    border-radius: 8px !important;
    margin: 1rem 0 !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
}

.hh-promo-banner strong {
    color: #b8860b !important;
}

/* ===== 11. STAR RATING ON PRODUCT CARDS ===== */
.star-rating {
    display: block !important;
    margin: 4px 0 !important;
    font-size: 0.85rem !important;
    letter-spacing: 3px !important;
}

/* ===== 12. BOTIGA NAV - BRAND BOLD ===== */
.bhfb .bhfb-branding .site-title a,
.site-header .site-branding a {
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    color: #2c2c2c !important;
}

/* ===== PRODUCT DESCRIPTION SECTION STYLES (moved from inline in post_content) ===== */
.woocommerce-Tabs-panel--description .hh-section {
    margin-bottom: 40px;
    padding: 0;
}

.woocommerce-Tabs-panel--description .hh-section h2 {
    font-size: 1.4rem;
    font-weight: 400;
    color: #2c2c2c;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e8e0d6;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.woocommerce-Tabs-panel--description .hh-section h3 {
    font-size: 1.15rem;
    font-weight: 500;
    color: #2c2c2c;
    margin: 25px 0 12px 0;
}

.woocommerce-Tabs-panel--description .hh-section ul,
.woocommerce-Tabs-panel--description .hh-section ol {
    padding-left: 20px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.woocommerce-Tabs-panel--description .hh-section li {
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #555;
}

.woocommerce-Tabs-panel--description .hh-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.woocommerce-Tabs-panel--description .hh-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.woocommerce-Tabs-panel--description .hh-feature-item {
    background: #f9f7f4;
    padding: 20px;
    border-radius: 6px;
}

.woocommerce-Tabs-panel--description .hh-feature-item strong {
    display: block;
    font-size: 1rem;
    color: #2c2c2c;
    margin-bottom: 6px;
}

.woocommerce-Tabs-panel--description .hh-feature-item span {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.woocommerce-Tabs-panel--description .hh-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.woocommerce-Tabs-panel--description .hh-specs-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.woocommerce-Tabs-panel--description .hh-specs-table td:first-child {
    font-weight: 500;
    color: #333;
    width: 35%;
}

.woocommerce-Tabs-panel--description .hh-specs-table td:last-child {
    color: #666;
}

@media (max-width: 600px) {
    .woocommerce-Tabs-panel--description .hh-feature-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== FIX: Product card title truncation ===== */
/* Override -webkit-line-clamp:2 that cuts off long product titles */
html body.woocommerce ul.products li.product .woocommerce-loop-product__title,
html body.woocommerce ul.products li.product .woocommerce-loop-product__title a {
    display: -webkit-box !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    max-height: none !important;
    min-height: 2.1em !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    text-overflow: ellipsis !important;
}

/* === Zhipu 2026-06-04 Audit Fixes === */
/* P2: Trust badges more prominent */
.footer-trust-bar {
    font-size: 1rem !important;
    padding: 18px 0 !important;
}
.footer-trust-bar span {
    font-size: 1rem !important;
}

/* P2: Footer text readability */
.site-info, .site-footer .widget, .site-footer p {
    font-size: 0.95rem !important;
}

/* P2: Ensure product card spacing consistency */
ul.products li.product {
    margin-bottom: 30px !important;
    min-height: 320px;
}

/* Mobile: Better spacing */
@media (max-width: 768px) {
    ul.products li.product {
        padding: 0 8px;
        min-height: 280px;
    }
}
