/*
 Theme Name: Cultural Heritage Market
 Theme URI: https://culturalheritage.local/market
 Description: Warm, artisan, earthy child theme for The Market — Cultural Heritage eCommerce. Built on Hello Elementor for multisite installation.
 Author: Cultural Heritage Dev
 Author URI: https://culturalheritage.local
 Template: hello-elementor
 Version: 1.0.0
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: ch-market
 Tags: woocommerce, market, artisan, elementor
*/

/* ==========================================================================
   Self-Hosted Google Fonts — Playfair Display + Inter
   ========================================================================== */

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Playfair Display Regular'),
         url('fonts/playfair-display-v37-latin-regular.woff2') format('woff2'),
         url('fonts/playfair-display-v37-latin-regular.woff') format('woff');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Playfair Display Bold'),
         url('fonts/playfair-display-v37-latin-700.woff2') format('woff2'),
         url('fonts/playfair-display-v37-latin-700.woff') format('woff');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: local('Playfair Display Italic'),
         url('fonts/playfair-display-v37-latin-italic.woff2') format('woff2'),
         url('fonts/playfair-display-v37-latin-italic.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Inter Regular'),
         url('fonts/inter-v18-latin-regular.woff2') format('woff2'),
         url('fonts/inter-v18-latin-regular.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('Inter Medium'),
         url('fonts/inter-v18-latin-500.woff2') format('woff2'),
         url('fonts/inter-v18-latin-500.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Inter SemiBold'),
         url('fonts/inter-v18-latin-600.woff2') format('woff2'),
         url('fonts/inter-v18-latin-600.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Inter Bold'),
         url('fonts/inter-v18-latin-700.woff2') format('woff2'),
         url('fonts/inter-v18-latin-700.woff') format('woff');
}

/* ==========================================================================
   CSS Custom Properties — Market Brand
   ========================================================================== */

:root {
    /* Brand Colors */
    --ch-primary: #5C3D2E;
    --ch-accent: #D4813B;
    --ch-bg: #FFF8F0;
    --ch-text: #3A2A1F;
    --ch-secondary: #8B6B4A;

    /* Typography */
    --ch-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --ch-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --ch-spacing-xs: 0.5rem;
    --ch-spacing-sm: 1rem;
    --ch-spacing-md: 2rem;
    --ch-spacing-lg: 4rem;
    --ch-spacing-xl: 6rem;

    /* Border Radius */
    --ch-radius: 6px;
    --ch-radius-lg: 12px;
}

/* ==========================================================================
   Base Styling — Warm Artisan Market
   ========================================================================== */

body {
    font-family: var(--ch-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ch-text);
    background-color: var(--ch-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ch-font-heading);
    color: var(--ch-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.125rem; }
h3 { font-size: 1.625rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; }

a {
    color: var(--ch-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--ch-primary);
}

hr {
    border: none;
    border-top: 2px dashed var(--ch-accent);
    opacity: 0.3;
    margin: var(--ch-spacing-md) 0;
}

/* Buttons — Earthy Warm */
.ch-btn,
button,
input[type="submit"],
.button,
.woocommerce a.button,
.woocommerce button.button {
    font-family: var(--ch-font-body);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.875rem 2rem;
    border: 2px solid var(--ch-accent);
    background: var(--ch-accent);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--ch-radius);
}

.ch-btn:hover,
button:hover,
input[type="submit"]:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background: var(--ch-primary);
    border-color: var(--ch-primary);
    color: #ffffff;
}

/* Product Cards */
.ch-product-card,
.woocommerce ul.products li.product {
    background: #ffffff;
    border: 1px solid rgba(212, 129, 59, 0.15);
    border-radius: var(--ch-radius-lg);
    padding: var(--ch-spacing-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ch-product-card:hover,
.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(92, 61, 46, 0.1);
}

/* WooCommerce Price */
.woocommerce .price,
.woocommerce .amount {
    color: var(--ch-accent);
    font-weight: 600;
    font-family: var(--ch-font-body);
}

/* Shop Filters Sidebar */
.widget-area-shop-filters {
    background: #ffffff;
    border-right: 2px solid rgba(212, 129, 59, 0.15);
    padding: var(--ch-spacing-md);
}

.widget-area-shop-filters .widget-title {
    font-family: var(--ch-font-heading);
    color: var(--ch-primary);
    font-size: 1.125rem;
    margin-bottom: var(--ch-spacing-sm);
    padding-bottom: var(--ch-spacing-xs);
    border-bottom: 2px solid var(--ch-accent);
}

/* Sale Badge */
.woocommerce span.onsale {
    background: var(--ch-accent);
    color: #ffffff;
    border-radius: var(--ch-radius);
    font-family: var(--ch-font-body);
    font-weight: 600;
}

/* Cart */
.woocommerce .cart-collaterals .cart_totals {
    background: #ffffff;
    border: 1px solid rgba(212, 129, 59, 0.15);
    border-radius: var(--ch-radius-lg);
    padding: var(--ch-spacing-md);
}

/* Footer */
.ch-footer {
    background: var(--ch-primary);
    color: var(--ch-bg);
    padding: var(--ch-spacing-lg) 0;
}

.ch-footer a {
    color: var(--ch-accent);
}

/* Utility */
.ch-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--ch-spacing-md);
}

.ch-section {
    padding: var(--ch-spacing-xl) 0;
}

/* Elementor Overrides */
.elementor-page body,
body.elementor-page {
    background-color: var(--ch-bg);
}

.elementor-widget-heading .elementor-heading-title {
    font-family: var(--ch-font-heading);
}

.elementor-widget-text-editor {
    font-family: var(--ch-font-body);
}
