/*
 Theme Name:   Woodmart Child
 Theme URI:    https://maxishop.tn
 Description:  Child theme MaxiShop.tn
 Author:       TAWA Digital Labs
 Template:     woodmart
 Version:      1.0.0
*/

/* ==========================================================================
   MaxiShop.tn — Brand Colors from Identity Guideline
   ========================================================================== */

:root {
    /* Primary - Dark Teal (logo color) */
    --maxishop-primary: #0A5959;
    --maxishop-primary-light: #0d7a7a;
    --maxishop-primary-dark: #1D3D06;

    /* Lime Green (accent / CTA) */
    --maxishop-lime: #A0EF6A;
    --maxishop-lime-dark: #1D3D06;
    --maxishop-lime-light: #D9E3D3;

    /* Neutral */
    --maxishop-bg: #f8f9fa;
    --maxishop-text: #222222;
    --maxishop-text-light: #666666;
}

/* --- Typography: Amfibia or fallback --- */
body,
.woocommerce-product-details__short-description,
.woocommerce-Tabs-panel--description {
    font-family: 'Amfibia', 'Nunito Sans', 'Segoe UI', Tahoma, Geneva, 'Noto Sans Arabic', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.woodmart-title,
.product-title,
.entry-title {
    font-family: 'Amfibia', 'Nunito Sans', 'Segoe UI', sans-serif;
    font-weight: 800;
}

/* --- Primary Buttons (Teal) --- */
.btn-color-primary,
.button.add_to_cart_button,
.single_add_to_cart_button,
.woocommerce .button.alt,
.woocommerce a.button.alt {
    background-color: var(--maxishop-primary) !important;
    border-color: var(--maxishop-primary) !important;
    color: #fff !important;
}

.btn-color-primary:hover,
.button.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
.woocommerce .button.alt:hover,
.woocommerce a.button.alt:hover {
    background-color: var(--maxishop-primary-light) !important;
    border-color: var(--maxishop-primary-light) !important;
}

/* --- Accent Buttons (Lime Green) --- */
.btn-color-accent,
.woodmart-promo-banner .btn,
.wd-banner .btn {
    background-color: var(--maxishop-lime) !important;
    border-color: var(--maxishop-lime) !important;
    color: var(--maxishop-primary) !important;
    font-weight: 700;
}

/* --- Prix en TND --- */
.woocommerce .price,
.woocommerce .amount {
    font-weight: 700;
    color: var(--maxishop-primary);
}

/* --- Badge promo --- */
.product-label.onsale {
    background-color: var(--maxishop-lime) !important;
    color: var(--maxishop-primary) !important;
}

/* --- Header / Navigation --- */
.woodmart-main-nav .menu > li > a,
.wd-nav .wd-nav-link {
    font-family: 'Amfibia', 'Nunito Sans', sans-serif;
    font-weight: 600;
}

/* --- Category header bar --- */
.categories-nav-wrap,
.woodmart-cat-header {
    background-color: var(--maxishop-primary) !important;
}

/* --- Footer info société --- */
.maxishop-company-info {
    text-align: center;
    padding: 15px 0;
    font-size: 0.85em;
    color: var(--maxishop-text-light);
    border-top: 1px solid #eee;
    margin-top: 20px;
}

/* --- RTL support for Arabic/Derja content --- */
.product-description-rtl,
[lang="ar"] {
    direction: rtl;
    text-align: right;
    font-size: 1.05em;
    line-height: 1.8;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .woodmart-products .product-title {
        font-size: 0.9em;
    }
}
