/*
Theme Name: Hibafy Theme
Theme URI: https://hibafy.com
Author: Hibafy
Author URI: https://hibafy.com
Description: Custom child theme for Hibafy — an organic products eCommerce brand built on WooCommerce. Child theme of Hello Elementor.
Template: hello-elementor
Version: 1.0.0
Text Domain: hibafy-theme
Requires PHP: 7.4
Requires at least: 6.0
WC requires at least: 7.0
WC tested up to: 9.0
*/

/* ==========================================================================
   Hibafy Theme — Root Variables & Base Overrides
   (Fonts are enqueued in functions.php; heavy layout CSS lives in
   assets/css/hibafy-style.css and is enqueued there as well.)
   ========================================================================== */

:root {
    /* Brand Colors */
    --hibafy-primary-green:   #1a5e38;
    --hibafy-secondary-green: #2d8653;
    --hibafy-gold-accent:     #c9943a;
    --hibafy-cream-bg:        #f7f3ec;
    --hibafy-light-bg:        #faf8f4;
    --hibafy-dark-text:       #1c1c1a;
    --hibafy-muted-text:      #6b6560;
    --hibafy-white:           #ffffff;
    --hibafy-sale-red:        #d94040;
    --hibafy-border-color:    #e0d8cc;

    /* Typography */
    --hibafy-font-heading: "Playfair Display", serif;
    --hibafy-font-body: "Inter", sans-serif;
}

body {
    background-color: var(--hibafy-light-bg);
    color: var(--hibafy-dark-text);
    font-family: var(--hibafy-font-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--hibafy-font-heading);
    color: var(--hibafy-dark-text);
}

a {
    color: var(--hibafy-primary-green);
}

/* WooCommerce CTA buttons — always Gold Accent */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.add_to_cart_button,
.woocommerce a.ajax_add_to_cart,
.woocommerce a.single_add_to_cart_button,
a.hibafy-btn {
    background-color: var(--hibafy-gold-accent) !important;
    color: var(--hibafy-white) !important;
    border: none !important;
    font-family: var(--hibafy-font-body);
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.add_to_cart_button:hover,
.woocommerce a.ajax_add_to_cart:hover,
.woocommerce a.single_add_to_cart_button:hover,
a.hibafy-btn:hover {
    background-color: var(--hibafy-primary-green) !important;
    color: var(--hibafy-white) !important;
}

/* Sale badge */
.woocommerce span.onsale {
    background-color: var(--hibafy-sale-red);
    font-family: var(--hibafy-font-body);
}

/* Cards / borders */
.woocommerce ul.products li.product,
.hibafy-card {
    border: 1px solid var(--hibafy-border-color);
    background-color: var(--hibafy-white);
}
