/*
Theme Name: Bilupplysningen Theme
Theme URI: https://bilupplysningen.se
Author: Internal
Description: Production-ready base theme optimized for Elementor Pro and WooCommerce.
Version: 1.0.0
Text Domain: bilupp
*/

:root {
    --color-primary-dark: #1E293B;
    --color-primary-accent: #D9792C;
    --color-secondary-gray: #94A3B8;
    --color-neutral-light: #E7E7E7;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Hind', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--color-primary-dark);
    background-color: var(--color-neutral-light);
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

/* YMM Widget Styles */
.bilupp-ymm-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}
.bilupp-ymm-form select, .bilupp-ymm-form button {
    padding: 12px;
    border: 1px solid var(--color-secondary-gray);
    border-radius: 4px;
    font-family: var(--font-body);
    flex: 1;
    min-width: 150px;
}
.bilupp-ymm-form select:disabled {
    background-color: var(--color-neutral-light);
    color: var(--color-secondary-gray);
    cursor: not-allowed;
}
.bilupp-ymm-form select.loading {
    opacity: 0.5;
    cursor: wait;
}
.bilupp-ymm-form button {
    background-color: var(--color-primary-dark);
    color: var(--color-neutral-light);
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}
.bilupp-ymm-form button:hover {
    background-color: var(--color-primary-accent);
    color: var(--color-primary-dark);
}
.bilupp-ymm-error {
    color: red;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 10px;
}

/* WooCommerce Fallback Grid */
.bilupp-shop-archive .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
}
@media (max-width: 1024px) { .bilupp-shop-archive .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bilupp-shop-archive .products { grid-template-columns: 1fr; } }

li.product {
    background: #fff;
    border: 1px solid var(--color-secondary-gray);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}
li.product h2.woocommerce-loop-product__title {
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: bold;
}
li.product .button.add_to_cart_button {
    background-color: var(--color-primary-accent) !important;
    color: var(--color-primary-dark) !important;
    text-transform: uppercase;
    font-weight: bold;
    display: block;
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
}