/*
Theme Name: Ecomus Child
Theme URI: https://wpecomus.com/
Author: DrFuri
Author URI: http://drfuri.com/
Description: Multipurpose WooCommerce WordPress Theme - Yubi Maternity Custom Child Theme
Version: 1.0.5
Requires at least: 5.0
Tested up to: 5.8
Requires PHP: 7.0
License: GNU General Public License v2+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecomus
Domain Path: /lang/
Tags: one-column, two-columns, left-sidebar, right-sidebar, full-width-template, post-formats, theme-options, threaded-comments, translation-ready
Template: ecomus
*/

/* ==========================================================================
   1. SATOSHI FONT FAMILY DEFINITIONS (WOFF2 & VARIABLE)
   ========================================================================== */

/* Variable Fonts (Weights 300 to 900) */
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-Variable.woff2') format('woff2-variations'),
         url('fonts/Satoshi-Variable.woff2') format('woff2'),
         url('fonts/Satoshi-Variable.ttf') format('truetype');
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-VariableItalic.woff2') format('woff2-variations'),
         url('fonts/Satoshi-VariableItalic.woff2') format('woff2');
    font-weight: 300 900;
    font-style: italic;
    font-display: swap;
}

/* Light (300) */
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-LightItalic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* Regular (400) */
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Medium (500) */
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-MediumItalic.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* Bold (700) */
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Black (900) */
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-BlackItalic.woff2') format('woff2');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* ==========================================================================
   2. FONT ALIASING TO MAP LEGACY DEMO FONTS TO SATOSHI
   ========================================================================== */
@font-face {
    font-family: 'Albert Sans';
    src: url('fonts/Satoshi-Variable.woff2') format('woff2');
    font-weight: 300 900;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Satoshi-Variable.woff2') format('woff2');
    font-weight: 300 900;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto Slab';
    src: url('fonts/Satoshi-Variable.woff2') format('woff2');
    font-weight: 300 900;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url('fonts/Satoshi-Variable.woff2') format('woff2');
    font-weight: 300 900;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/Satoshi-Variable.woff2') format('woff2');
    font-weight: 300 900;
    font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/Satoshi-Variable.woff2') format('woff2');
    font-weight: 300 900;
    font-display: swap;
}

/* ==========================================================================
   3. YUBI MATERNITY COLOR PALETTE & DESIGN TOKENS
   ========================================================================== */
:root {
    /* Primary Brand Colors */
    --yubi-charcoal: #3C3B3B;
    --yubi-slate: #3D4243;
    --yubi-coral: #EC6671;
    --yubi-blush: #FAE5F1;

    /* Secondary Soft Colors */
    --yubi-mist: #F0F5F6;
    --yubi-cream: #F4F0EA;
    --yubi-sand: #E8E2DA;

    /* Theme Tokens Mapping */
    --ecomus-primary-color: #EC6671;
    --ecomus-secondary-color: #3C3B3B;
    --ecomus-text-color: #3C3B3B;
    --ecomus-heading-color: #3D4243;
    --ecomus-border-color: #E8E2DA;
    --ecomus-bg-secondary: #F4F0EA;
    --ecomus-bg-soft: #F0F5F6;
    --ecomus-accent-soft: #FAE5F1;

    /* Typography */
    --ecomus-font-family: 'Satoshi', sans-serif !important;
    --ecomus-font-heading-family: 'Satoshi', sans-serif !important;
    --ecomus-font-body: 'Satoshi', sans-serif !important;
    --ecomus-font-heading: 'Satoshi', sans-serif !important;
    --font-body: 'Satoshi', sans-serif !important;
    --font-heading: 'Satoshi', sans-serif !important;
}

/* ==========================================================================
   4. ELEGANT GLOBAL STYLES & INTERACTION DESIGN
   ========================================================================== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: var(--yubi-charcoal);
    background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.elementor-widget-heading .elementor-heading-title,
.elementor-heading-title,
.ecomus-heading {
    font-family: 'Satoshi', sans-serif !important;
    color: var(--yubi-slate);
    letter-spacing: -0.015em;
}

/* Standard Links (excluding buttons) */
a:not(.em-button):not(.button):not(.elementor-button):not(.ecomus-button):not(.woocommerce-button) {
    color: var(--yubi-charcoal);
    transition: color 0.2s ease-in-out;
}
a:not(.em-button):not(.button):not(.elementor-button):not(.ecomus-button):not(.woocommerce-button):hover, 
a:not(.em-button):not(.button):not(.elementor-button):not(.ecomus-button):not(.woocommerce-button):focus {
    color: var(--yubi-coral);
}

/* ==========================================================================
   5. BUTTON CONTRAST & LEGIBILITY (SLIDESHOW, BANNERS & GENERAL)
   ========================================================================== */

/* Dark / Solid Buttons (Slideshow, Main CTAs, Add to cart) */
.ecomus-slide__button,
.ecomus-slides-elementor .em-button,
.ecomus-slides-elementor .ecomus-button,
.ecomus-banner__button,
.ecomus-banner .em-button,
.ecomus-button.em-button:not(.em-button-subtle):not(.em-button-text):not(.em-button-outline):not(.em-button-light),
.elementor-button:not(.elementor-button-link),
.button:not(.em-button-subtle),
.woocommerce a.button:not(.em-button-subtle),
.woocommerce button.button,
.woocommerce input.button,
.single_add_to_cart_button {
    background-color: var(--yubi-charcoal) !important;
    color: #FFFFFF !important;
    border: none !important;
    font-family: 'Satoshi', sans-serif !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 4px 14px rgba(60, 59, 59, 0.15) !important;
}

/* Force white text and white icon on all solid dark buttons */
.ecomus-slide__button *,
.ecomus-slides-elementor .em-button *,
.ecomus-banner__button *,
.ecomus-banner .em-button *,
.ecomus-button.em-button:not(.em-button-subtle):not(.em-button-text):not(.em-button-outline):not(.em-button-light) *,
.elementor-button:not(.elementor-button-link) *,
.button:not(.em-button-subtle) * {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

/* Hover States for Solid Dark Buttons */
.ecomus-slide__button:hover,
.ecomus-slides-elementor .em-button:hover,
.ecomus-banner__button:hover,
.ecomus-banner .em-button:hover,
.ecomus-button.em-button:not(.em-button-subtle):not(.em-button-text):not(.em-button-outline):not(.em-button-light):hover,
.elementor-button:not(.elementor-button-link):hover,
.button:not(.em-button-subtle):hover,
.woocommerce a.button:not(.em-button-subtle):hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.single_add_to_cart_button:hover {
    background-color: var(--yubi-coral) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(236, 102, 113, 0.3) !important;
}

.ecomus-slide__button:hover *,
.ecomus-slides-elementor .em-button:hover *,
.ecomus-banner__button:hover *,
.ecomus-banner .em-button:hover *,
.single_add_to_cart_button:hover * {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

/* Light & Subtle Button Variants */
.em-button-subtle,
.em-button-text {
    background: transparent !important;
    color: var(--yubi-charcoal) !important;
    box-shadow: none !important;
}
.em-button-subtle *,
.em-button-text * {
    color: var(--yubi-charcoal) !important;
    fill: var(--yubi-charcoal) !important;
}
.em-button-subtle:hover,
.em-button-text:hover {
    color: var(--yubi-coral) !important;
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}
.em-button-subtle:hover *,
.em-button-text:hover * {
    color: var(--yubi-coral) !important;
    fill: var(--yubi-coral) !important;
}

/* Category Pills & Badges */
.em-badge,
.em-button-category {
    background-color: var(--yubi-blush) !important;
    color: var(--yubi-slate) !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(236, 102, 113, 0.15) !important;
    transition: all 0.2s ease;
}
.em-badge:hover,
.em-button-category:hover {
    background-color: var(--yubi-coral) !important;
    color: #FFFFFF !important;
}
.em-badge:hover *,
.em-button-category:hover * {
    color: #FFFFFF !important;
}

/* ==========================================================================
   6. PRODUCT CARDS & WOOCOMMERCE REFINEMENTS
   ========================================================================== */
.woocommerce ul.products li.product,
.product-card {
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 10px;
    background: #FFFFFF;
    border: 1px solid var(--yubi-mist);
    overflow: hidden;
}

.woocommerce ul.products li.product:hover,
.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--yubi-sand);
    box-shadow: 0 12px 28px rgba(61, 66, 67, 0.08);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Satoshi', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    color: var(--yubi-slate) !important;
    letter-spacing: -0.01em;
}

.woocommerce ul.products li.product .price {
    font-family: 'Satoshi', sans-serif !important;
    font-weight: 700 !important;
    color: var(--yubi-charcoal) !important;
}

.woocommerce ul.products li.product .price ins {
    color: var(--yubi-coral) !important;
    text-decoration: none;
}

.onsale,
.em-product-badge-sale {
    background-color: var(--yubi-coral) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
}

/* Benefit boxes on home */
.ecomus-icon-box__wrapper {
    background: var(--yubi-mist);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.25s ease;
}
.ecomus-icon-box__wrapper:hover {
    background: var(--yubi-cream);
    transform: translateY(-3px);
}

/* Header & Navigation */
.main-navigation ul.menu > li > a {
    color: var(--yubi-slate) !important;
    font-weight: 500;
}
.main-navigation ul.menu > li > a:hover,
.main-navigation ul.menu > li.current-menu-item > a {
    color: var(--yubi-coral) !important;
}

/* Protect Admin Bar & Dashicons */
#wpadminbar,
#wpadminbar * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}
#wpadminbar .ab-icon,
#wpadminbar .ab-icon:before,
#wpadminbar .ab-item:before,
#wpadminbar .dashicons,
.dashicons,
.dashicons-before:before {
    font-family: dashicons !important;
}