/*
Theme Name: Cartemio Store Theme
Theme URI: https://cartemio.com
Description: Specialty Food & Beverages and Kitchen Essentials store child theme for Cartemio.
Author: Cartemio Design Team
Author URI: https://cartemio.com
Template: astra
Version: 1.0.0
Text Domain: astra-child-cartemio
*/

:root {
    --cartemio-cream: #FBF9F4;
    --cartemio-cream-warm: #F4EFE6;
    --cartemio-forest: #1E392A;
    --cartemio-forest-dark: #14271C;
    --cartemio-forest-light: #2C523C;
    --cartemio-charcoal: #22252A;
    --cartemio-charcoal-light: #4A4F55;
    --cartemio-muted: #6E747B;
    --cartemio-border: #E6DFD5;
    --cartemio-terracotta: #C26343;
    --cartemio-terracotta-hover: #A64E31;
    --cartemio-sand: #EFE9DE;
    --cartemio-font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --cartemio-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

body {
    background-color: var(--cartemio-cream);
    color: var(--cartemio-charcoal);
    font-family: var(--cartemio-font-sans);
    line-height: 1.6;
}

h1, h2, h3, h4, .ast-archive-description .ast-archive-title {
    font-family: var(--cartemio-font-serif);
    color: var(--cartemio-forest);
    font-weight: 600;
}

/* Brand Button Styles */
.button, 
button, 
input[type="button"], 
input[type="reset"], 
input[type="submit"],
.woocommerce #respond input#submit, 
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button,
.woocommerce #respond input#submit.alt, 
.woocommerce a.button.alt, 
.woocommerce button.button.alt, 
.woocommerce input.button.alt {
    background-color: var(--cartemio-forest) !important;
    color: #FFFFFF !important;
    border: 1px solid var(--cartemio-forest) !important;
    border-radius: 4px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.02em !important;
    transition: all 0.25s ease-in-out !important;
    text-transform: none !important;
}

.button:hover, 
button:hover, 
input[type="button"]:hover, 
input[type="submit"]:hover,
.woocommerce #respond input#submit:hover, 
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover, 
.woocommerce a.button.alt:hover, 
.woocommerce button.button.alt:hover, 
.woocommerce input.button.alt:hover {
    background-color: var(--cartemio-forest-dark) !important;
    border-color: var(--cartemio-forest-dark) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(30, 57, 42, 0.15) !important;
}

/* Accent Buttons */
.button.button-accent,
.woocommerce a.button.button-accent {
    background-color: var(--cartemio-terracotta) !important;
    border-color: var(--cartemio-terracotta) !important;
}

.button.button-accent:hover,
.woocommerce a.button.button-accent:hover {
    background-color: var(--cartemio-terracotta-hover) !important;
    border-color: var(--cartemio-terracotta-hover) !important;
}

/* Header & Navigation Styling */
.main-header-bar {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid var(--cartemio-border) !important;
}

.main-navigation a {
    color: var(--cartemio-charcoal) !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
}

.main-navigation a:hover {
    color: var(--cartemio-forest) !important;
}

/* Product Card Styling */
.woocommerce ul.products li.product, 
.woocommerce-page ul.products li.product {
    background: #FFFFFF;
    border: 1px solid var(--cartemio-border);
    border-radius: 8px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover, 
.woocommerce-page ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(30, 57, 42, 0.08);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--cartemio-font-serif);
    color: var(--cartemio-forest);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 6px;
    min-height: 2.6em;
}

.woocommerce ul.products li.product .price {
    color: var(--cartemio-charcoal) !important;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.woocommerce ul.products li.product .price ins {
    color: var(--cartemio-terracotta);
    text-decoration: none;
    font-weight: 700;
}

.woocommerce ul.products li.product .price del {
    color: var(--cartemio-muted);
    font-size: 0.9em;
}

.woocommerce span.onsale {
    background-color: var(--cartemio-terracotta) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
    min-height: auto !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Cart & Checkout Cleanups */
.woocommerce-checkout #customer_details {
    margin-bottom: 24px;
}

.woocommerce table.shop_table {
    border: 1px solid var(--cartemio-border);
    border-radius: 6px;
    background: #FFFFFF;
}

.woocommerce table.shop_table th {
    background-color: var(--cartemio-cream-warm);
    color: var(--cartemio-forest);
    font-family: var(--cartemio-font-serif);
    font-weight: 600;
}
