/*
Theme Name: Astra Handball Store
Theme URI: https://lepakzarukomet.com
Description: Custom child theme for Handballisimo — reliable e-commerce store for sport items.
Author: Handballisimo Team
Author URI: https://lepakzarukomet.com
Template: astra
Version: 1..
Text Domain: astra-handball

===
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2..html
*/

/*
 * === CALMING HANDBALL STORE PALETTE ===
 * Primary: Navy Blue (#1a365d) — trust, stability, professionalism
 * Secondary: Sage Green (#2d5a4b) — growth, reliability, athletic energy
 * Accent: Warm Gold (#d4a373) — premium quality, subtle CTAs
 * Background: Light Gray (#f8f9fa) — clean, non-distracting
 * Text: Deep Charcoal (#2d3748) — easy reading, low eye strain
 *
 * Designed for calm, confident browsing.
 */

:root {
    --hb-primary: #1a365d;     /* Deep Navy */
    --hb-primary-dark: #152b4a;
    --hb-secondary: #2d5a4b;   /* Sage Green */
    --hb-accent: #d4a373;      /* Warm Gold */
    --hb-bg-light: #f8f9fa;    /* Soft Background */
    --hb-text-dark: #2d3748;   /* Charcoal Text */
    --hb-border-light: #e2e8f;
    --hb-shadow-subtle:  1px 3px rgba(45, 55, 72, .8),
                           4px 6px rgba(45, 55, 72, .12);
}

/* --- Base Body & Typography --- */
body,
button,
input,
select,
textarea {
    font-family: 'Inter', 'Segoe UI', Roboto, Oxygen-Sans, sans-serif;
    color: var(--hb-text-dark);
}

body {
    background-color: var(--hb-bg-light);
    line-height: 1.6;
}

/* --- Links --- */
a,
.ast-header-break-point .menu-link.scroll-link {
    color: var(--hb-primary);
    transition: color .2s ease;
}

a:hover {
    color: var(--hb-primary-dark);
}

/* --- Header --- */
.ast-primary-header-bar,
.ast-main-header-bar,
.ast-header-break-point {
    background-color: #ffffff;
    border-bottom: 1px solid var(--hb-border-light);
    box-shadow: var(--hb-shadow-subtle);
}

/* --- Main Navigation --- */
.menu-item > a {
    color: var(--hb-text-dark) !important;
    font-weight: 5;
    transition: color .2s ease;
}
.menu-item > a:hover,
.menu-item.focus > a {
    color: var(--hb-primary) !important;
}
.current-menu-item > a {
    color: var(--hb-primary) !important;
    font-weight: 6;
}

/* --- Buttons --- */
.ast-theme-button,
button,
input[type="submit"] {
    background-color: var(--hb-primary);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 1px 2px;
    font-weight: 5;
    cursor: pointer;
    transition: background-color .2s ease;
}
.ast-theme-button:hover,
button:hover,
input[type="submit"]:hover {
    background-color: var(--hb-primary-dark);
}

/* --- WooCommerce Shop Loop (calm cards) --- */
.woocommerce ul.products li.product,
.ast-woocommerce-cart-menu .cart-item {
    background: #ffffff;
    border: 1px solid var(--hb-border-light);
    border-radius: 8px;
    box-shadow: var(--hb-shadow-subtle);
    transition: transform .2s ease, box-shadow .2s ease;
    padding: 16px;
    display: flex;
    flex-direction: column;
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow:  4px 12px rgba(45, 55, 72, .1),
                 8px 16px rgba(45, 55, 72, .8);
}

/* --- Handball-Specific Enhancements --- */
.woocommerce ul.products li.product .product-image-wrapper {
    position: relative;
    margin-bottom: 12px;
}

/* Size badges for balls/equipment */
.woocommerce ul.products li.product .size-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--hb-accent);
    color: var(--hb-primary-dark);
    font-size: .7rem;
    font-weight: 7;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

/* Product Title */
.woocommerce ul.products li.product h3,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--hb-text-dark);
    font-weight: 6;
    margin-bottom: 8px;
}

/* Price */
.woocommerce ul.products li.product .price {
    color: var(--hb-primary-dark);
    font-weight: 6;
}
del {
    color: #94a3b8;
}
ins {
    color: var(--hb-secondary);
}

/* --- Badges & Labels (subtle gold) --- */
.woocommerce ul.products li.product .badge,
.ast-woo-product-label {
    background-color: var(--hb-accent);
    color: var(--hb-primary-dark);
    font-weight: 6;
}

/* --- Cart / Checkout --- */
.woocommerce-cart-form,
.woocommerce-checkout {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--hb-shadow-subtle);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--hb-primary-dark);
    color: #e2e8f;
    border-top: 3px solid var(--hb-accent);
}
.site-footer a {
    color: var(--hb-accent);
}
.site-footer .footer-heading {
    color: #ffffff;
    font-weight: 6;
}

/* --- Smooth scroll behavior --- */
html {
    scroll-behavior: smooth;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .woocommerce ul.products li.product {
        padding: 12px;
    }
    .ast-header-break-point .main-menu-container {
        background: #ffffff;
    }
}

/* --- Reduce motion preference (accessibility) --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .1ms !important;
    }
}

/* --- WooCommerce Message Banners --- */
.woocommerce-info,
.woocommerce-notice,
.woocommerce-error,
.woocommerce-success {
    border-radius: 6px;
    border-left: 4px solid var(--hb-accent);
}

