/* ==========================================================================
   Sumivolt · Frontend / eCommerce Theme
   Identidad corporativa aplicada a la tienda online
   ========================================================================== */

:root {
    --sumivolt-azul-noche: #0B2F55;
    --sumivolt-verde-energia: #55D27A;
    --sumivolt-grafito: #1E252B;
    --sumivolt-gris-tecnico: #EEF2F4;
    --sumivolt-blanco: #FFFFFF;
    --sumivolt-borde: #D1D9E0;
    --sumivolt-texto-secundario: #43474E;
    --sumivolt-fondo-app: #F6FAFC;
    --sumivolt-azul-hover: #001A36;
    --sumivolt-verde-hover: #45B865;
}

/* --- Base typography --- */
body, .oe_website_sale {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    color: var(--sumivolt-grafito);
    background-color: var(--sumivolt-blanco);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', system-ui, -apple-system, sans-serif !important;
    color: var(--sumivolt-azul-noche);
    letter-spacing: -0.01em;
}

h1 {
    font-weight: 800;
    font-size: clamp(2.125rem, 5vw, 3rem);
    line-height: 1.15;
}

h2 {
    font-weight: 700;
    font-size: clamp(1.75rem, 3.5vw, 2rem);
    line-height: 1.25;
}

h3 {
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.33;
}

/* --- Website Header / Navbar --- */
header#top .navbar {
    background-color: var(--sumivolt-azul-noche) !important;
    border-bottom: 2px solid var(--sumivolt-verde-energia);
    font-family: 'Inter', system-ui, sans-serif;
    box-shadow: 0 1px 3px rgba(11, 47, 85, 0.06);
}

header#top .navbar .nav-link,
header#top .navbar .navbar-brand {
    color: var(--sumivolt-blanco) !important;
    font-weight: 500;
}

header#top .navbar .nav-link:hover {
    color: var(--sumivolt-verde-energia) !important;
}

/* --- Footer --- */
#footer {
    background-color: var(--sumivolt-grafito) !important;
    color: var(--sumivolt-gris-tecnico);
}

#footer h5,
#footer .text-muted {
    color: var(--sumivolt-gris-tecnico) !important;
}

#footer a {
    color: var(--sumivolt-verde-energia) !important;
    text-decoration: none;
}

#footer a:hover {
    color: var(--sumivolt-verde-hover) !important;
}

/* --- Primary CTA buttons --- */
.btn-primary,
a.btn-primary {
    background-color: var(--sumivolt-verde-energia) !important;
    border-color: var(--sumivolt-verde-energia) !important;
    color: var(--sumivolt-azul-noche) !important;
    font-weight: 600;
    border-radius: 8px;
    transition: all 200ms ease;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
a.btn-primary:hover, a.btn-primary:focus, a.btn-primary:active {
    background-color: var(--sumivolt-verde-hover) !important;
    border-color: var(--sumivolt-verde-hover) !important;
    box-shadow: 0 4px 12px rgba(85, 210, 122, 0.20) !important;
    transform: translateY(-1px);
}

/* --- Secondary buttons --- */
.btn-secondary,
a.btn-secondary {
    background-color: var(--sumivolt-blanco) !important;
    border: 1.5px solid var(--sumivolt-azul-noche) !important;
    color: var(--sumivolt-azul-noche) !important;
    font-weight: 500;
    border-radius: 8px;
}

.btn-secondary:hover,
a.btn-secondary:hover {
    background-color: var(--sumivolt-azul-noche) !important;
    color: var(--sumivolt-blanco) !important;
}

/* --- Product Cards --- */
.oe_product_cart {
    border: 1px solid var(--sumivolt-borde);
    border-radius: 12px;
    overflow: hidden;
    transition: all 200ms ease;
    background: var(--sumivolt-blanco);
}

.oe_product_cart:hover {
    box-shadow: 0 8px 24px rgba(11, 47, 85, 0.08);
    transform: translateY(-2px);
}

.oe_product_cart .product_price {
    color: var(--sumivolt-azul-noche);
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.oe_product_cart .oe_product_image {
    border-radius: 12px 12px 0 0;
}

/* --- Category sidebar --- */
.products_categories a {
    color: var(--sumivolt-grafito);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 150ms ease;
}

.products_categories a:hover,
.products_categories a.active {
    background-color: rgba(85, 210, 122, 0.08);
    color: var(--sumivolt-azul-noche);
}

/* --- Add to cart button --- */
.a-submit, .js_add_cart_variants .btn {
    background-color: var(--sumivolt-verde-energia) !important;
    border-color: var(--sumivolt-verde-energia) !important;
    color: var(--sumivolt-azul-noche) !important;
    font-weight: 600;
    border-radius: 8px;
}

/* --- Cart badge --- */
.my_cart_quantity {
    background-color: var(--sumivolt-verde-energia) !important;
    color: var(--sumivolt-azul-noche) !important;
    font-weight: 700;
}

/* --- Breadcrumb --- */
.breadcrumb {
    background-color: transparent;
}

.breadcrumb .breadcrumb-item a {
    color: var(--sumivolt-texto-secundario);
}

.breadcrumb .breadcrumb-item.active {
    color: var(--sumivolt-azul-noche);
    font-weight: 600;
}

/* --- Product detail page --- */
#product_detail h1 {
    color: var(--sumivolt-azul-noche);
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 700;
}

#product_detail .product_price .oe_price .oe_currency_value {
    color: var(--sumivolt-azul-noche);
    font-size: 2rem;
    font-weight: 800;
}

/* --- Checkout steps --- */
.wizard .nav-link.active {
    background-color: var(--sumivolt-verde-energia) !important;
    color: var(--sumivolt-azul-noche) !important;
    font-weight: 600;
}

.wizard .nav-link.done {
    background-color: var(--sumivolt-azul-noche) !important;
    color: var(--sumivolt-blanco) !important;
}

/* --- Input fields --- */
.form-control:focus {
    border-color: var(--sumivolt-verde-energia) !important;
    box-shadow: 0 0 0 0.2rem rgba(85, 210, 122, 0.15) !important;
}

/* --- Portal --- */
.o_portal .breadcrumb {
    background-color: var(--sumivolt-gris-tecnico);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

/* --- Alerts --- */
.alert-success {
    background-color: #E8F8EE;
    border-color: #55D27A;
    color: #006D33;
}

.alert-warning {
    background-color: #FEF5E5;
    border-color: #F5B84B;
    color: #8B5A00;
}

.alert-danger {
    background-color: #FDECEC;
    border-color: #D94A4A;
    color: #93000A;
}

/* --- Scrollbar custom --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--sumivolt-gris-tecnico);
}

::-webkit-scrollbar-thumb {
    background: var(--sumivolt-borde);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sumivolt-texto-secundario);
}

/* --- Odoo Website Editor overrides --- */
#wrapwrap {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Link colors --- */
a {
    color: var(--sumivolt-azul-noche);
}

a:hover {
    color: var(--sumivolt-verde-energia);
}

/* --- Website top bar (edit bar) --- */
.o_main_components_container .o_we_website_top_actions .btn-primary {
    background-color: var(--sumivolt-verde-energia) !important;
    border-color: var(--sumivolt-verde-energia) !important;
    color: var(--sumivolt-azul-noche) !important;
}
