/*
Theme Name: Obstere Theme
Description: Thème moderne pour vente de bois de chauffage avec WooCommerce
Version: 1.0
Author: OB Bois SRL
Text Domain: obstere
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
Tags: e-commerce, woocommerce, business, responsive, tailwind
*/

/* Styles personnalisés pour Obstere */
.hero-bg {
    background: linear-gradient(135deg, rgba(54, 150, 54, 0.9), rgba(108, 49, 42, 0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="wood" patternUnits="userSpaceOnUse" width="100" height="100"><rect width="100" height="100" fill="%23654321"/><path d="M0,50 Q25,40 50,50 T100,50" stroke="%23543219" stroke-width="2" fill="none"/><path d="M0,25 Q25,20 50,25 T100,25" stroke="%23765432" stroke-width="1" fill="none"/><path d="M0,75 Q25,70 50,75 T100,75" stroke="%23876543" stroke-width="1" fill="none"/></pattern></defs><rect width="1000" height="1000" fill="url(%23wood)"/></svg>') center/cover;
}

.wood-texture {
    background: linear-gradient(45deg, #8B4513 25%, transparent 25%), 
                linear-gradient(-45deg, #8B4513 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #8B4513 75%), 
                linear-gradient(-45deg, transparent 75%, #8B4513 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Styles pour assurer la compatibilité */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* WooCommerce compatibilité */
.woocommerce .button,
.woocommerce input.button,
.woocommerce button.button {
    background-color: #297829 !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.woocommerce .button:hover,
.woocommerce input.button:hover,
.woocommerce button.button:hover {
    background-color: #236023 !important;
    transform: translateY(-2px) !important;
}

/* Messages WooCommerce */
.woocommerce .woocommerce-message {
    background-color: #dcf2dc !important;
    border-left: 4px solid #369636 !important;
    color: #236023 !important;
    padding: 16px !important;
    border-radius: 8px !important;
    margin-bottom: 16px !important;
}

.woocommerce .woocommerce-error {
    background-color: #fee2e2 !important;
    border-left: 4px solid #dc2626 !important;
    color: #991b1b !important;
    padding: 16px !important;
    border-radius: 8px !important;
    margin-bottom: 16px !important;
}

/* Produits en grille */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product {
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}




/* Responsive */
@media (max-width: 768px) {
    .hero-bg h2 {
        font-size: 3rem !important;
        line-height: 1.1 !important;
    }
    
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}