/* ==========================================================================
   Sumivolt · Shop v3 — Enriched cards, animations, tabs, compatibility
   Brand: Azul Noche #0B2B5B · Verde Energía #43B800 · Grafito #1E252B
   ========================================================================== */

/* ==========================================================================
   1. ANIMATIONS & TRANSITIONS
   ========================================================================== */

/* Fade-in on scroll */
.sv-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}

.sv-card.sv-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.oe_product:nth-child(2) .sv-card { transition-delay: 0.05s; }
.oe_product:nth-child(3) .sv-card { transition-delay: 0.10s; }
.oe_product:nth-child(4) .sv-card { transition-delay: 0.15s; }

/* Card hover */
.sv-card:hover {
    box-shadow: 0 12px 32px rgba(11, 43, 91, 0.10) !important;
    transform: translateY(-4px) !important;
}

/* Button press */
.sv-btn,
.sv-card .sv-badge,
.sv-tabs__btn {
    transition: all 0.2s ease;
}

.sv-btn:active {
    transform: scale(0.97);
}

/* Image hover zoom */
.sv-card .oe_product_image_link img {
    transition: transform 0.4s ease;
}

.sv-card:hover .oe_product_image_link img {
    transform: scale(1.05);
}

/* ==========================================================================
   2. ENRICHED PRODUCT CARDS
   ========================================================================== */

.sv-card {
    border: 1px solid var(--gray-200, #E9ECEF) !important;
    border-radius: 12px !important;
    overflow: hidden;
    background: #fff !important;
}

/* Image area */
.sv-card .oe_product_image {
    background: var(--gray-50, #F8F9FA);
    border-bottom: none;
    aspect-ratio: 4/3;
    position: relative;
}

.sv-card .oe_product_image img {
    mix-blend-mode: multiply;
    padding: 1rem;
    transition: transform 0.4s ease;
}

.sv-card:hover .oe_product_image img {
    transform: scale(1.05);
}

/* Info area */
.sv-card .o_wsale_product_information {
    padding: 1rem !important;
    gap: 0.25rem;
}

/* Title */
.sv-card .o_wsale_products_item_title {
    margin-bottom: 0.25rem !important;
}

.sv-card .o_wsale_products_item_title a {
    font-family: var(--font-body, 'Inter'), system-ui, sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    color: var(--gray-800, #343A40) !important;
    line-height: 1.3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price styling */
.sv-card .product_price .oe_currency_value {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--color-azul-noche, #0B2B5B) !important;
}

.sv-card .product_price {
    margin-top: 0.5rem;
}

/* Add to cart button in card */
.sv-card .a-submit,
.sv-card .js_add_cart_variants .btn {
    background: var(--color-verde-energia, #43B800) !important;
    border-color: var(--color-verde-energia, #43B800) !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    transition: all 0.2s ease !important;
}

.sv-card .a-submit:hover,
.sv-card .js_add_cart_variants .btn:hover {
    background: var(--color-verde-energia-hover, #3AA300) !important;
    border-color: var(--color-verde-energia-hover, #3AA300) !important;
    transform: translateY(-1px);
}

/* --- Badges (overlay on image) --- */
.sv-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.sv-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.6;
    white-space: nowrap;
}

.sv-badge--marca {
    background: var(--gray-700, #495057);
    color: #fff;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sv-badge--sub {
    background: var(--gray-100, #F1F3F5);
    color: var(--gray-600, #6C757D);
    font-size: 10px;
}

.sv-badge--compat {
    background: #E8F8EE;
    color: #006D33;
    font-size: 0.625rem;
}

.sv-badge--acc {
    background: #EEF2F4;
    color: #0B2B5B;
    font-size: 0.625rem;
}

.sv-badge--new {
    background: #43B800;
    color: #0B2B5B;
}

.sv-badge--popular {
    background: #F5B84B;
    color: #1E252B;
}

.sv-badge--closed {
    background: #FDECEC;
    color: #93000A;
    font-size: 0.625rem;
}

/* --- Short description --- */
.sv-card__specs {
    margin-bottom: 0.25rem;
}

.sv-card__specs-text {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #43474E;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Key specs with icons --- */
.sv-card__key-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f2f4;
}

.sv-key-spec {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #0B2B5B;
    background: #f8fafb;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.sv-key-spec__icon {
    width: 12px;
    height: 12px;
    color: #43B800;
    flex-shrink: 0;
}

/* --- CTA in card --- */
.sv-card .sv-price-login {
    margin-top: 0.5rem;
}

.sv-card .sv-price-login .sv-btn--outline {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 8px;
    border: 1.5px solid #43B800;
    color: #0B2B5B;
    font-weight: 600;
    background: #43B800;
    text-decoration: none !important;
}

.sv-card .sv-price-login .sv-btn--outline:hover {
    background: #3AA300 !important;
    border-color: #3AA300 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 184, 0, 0.2);
}

/* ==========================================================================
   3. CATEGORY HEADER
   ========================================================================== */

.sv-category-header {
    background: linear-gradient(135deg, #0B2B5B 0%, #1a4a7a 100%);
    color: #fff;
    padding: 2rem 1.5rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
}

.sv-category-header__title {
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 0 0.25rem;
}

.sv-category-header__count {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ==========================================================================
   4. FILTER SIDEBAR
   ========================================================================== */

/* Accordion headers */
.oe_website_sale .accordion-button {
    font-family: 'Manrope', system-ui, sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    color: #0B2B5B !important;
    padding: 0.75rem 0 !important;
}

.oe_website_sale .accordion-button::after {
    width: 1rem;
    height: 1rem;
}

/* Filter checkboxes */
.oe_website_sale .form-check-label {
    font-size: 0.8125rem !important;
    color: #43474E !important;
    transition: color 0.15s ease;
}

.oe_website_sale .form-check-label:hover {
    color: #0B2B5B !important;
}

.oe_website_sale .form-check-input:checked {
    background-color: #43B800 !important;
    border-color: #43B800 !important;
}

/* Category pills (top bar) */
.o_wsale_products_categories .btn-check + label,
.o_wsale_products_categories .text-decoration-none {
    border-radius: 100px !important;
    padding: 0.375rem 1rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border: 1.5px solid #e5e7eb !important;
    background: #fff !important;
    color: #43474E !important;
}

.o_wsale_products_categories .btn-check:checked + label,
.o_wsale_products_categories .text-decoration-none:hover,
.o_wsale_products_categories .text-decoration-none[aria-current] {
    background: #0B2B5B !important;
    color: #fff !important;
    border-color: #0B2B5B !important;
}

/* ==========================================================================
   5. PRODUCT DETAIL — TABS
   ========================================================================== */

/* ==========================================================================
   5. PRODUCT TABS — SINGLE SOURCE OF TRUTH
   Design reference: SolarEdge/Victron/Amazon product pages
   All other tab CSS blocks in this file are DEAD (overridden here)
   ========================================================================== */

/* --- Container --- */
/* product_full_description sits OUTSIDE section#product_detail (which is .container)
   so we must apply container sizing ourselves to match the page layout */
.sv-product-tabs {
    margin-top: 0 !important;
    padding: 28px 0 0 !important;
    border-top: 1px solid #e5e7eb !important;
    width: 100% !important;
    max-width: 1320px !important; /* Bootstrap .container xl */
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--bs-gutter-x, 0.75rem) !important;
    padding-right: var(--bs-gutter-x, 0.75rem) !important;
    position: relative !important;
    background: transparent !important;
    z-index: 1 !important;
    left: auto !important;
    right: auto !important;
}

#product_details .sv-product-tabs {
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    order: unset !important;
    clear: both !important;
}

.sv-product-tabs-wrapper { display: none !important; }

/* --- Tab navigation bar --- */
.sv-product-tabs .sv-tabs__nav,
.sv-tabs__nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 0 0 !important;
    border-bottom: 2px solid #e5e7eb !important;
    gap: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sv-tabs__nav::-webkit-scrollbar { display: none; }

.sv-product-tabs .sv-tabs__item,
.sv-tabs__item {
    flex-shrink: 0 !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sv-tabs__item::before,
.sv-tabs__item::marker {
    display: none !important;
    content: none !important;
}

/* --- Tab buttons --- */
.sv-product-tabs .sv-tabs__btn,
.sv-tabs__btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 12px 20px !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    letter-spacing: 0.01em !important;
    color: #9ca3af !important;
    background: none !important;
    border: none !important;
    border-bottom: 2.5px solid transparent !important;
    margin-bottom: -2px !important;
    cursor: pointer !important;
    transition: color 0.2s ease, border-color 0.2s ease !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 2 !important;
}

.sv-product-tabs .sv-tabs__btn:hover,
.sv-tabs__btn:hover {
    color: #374151 !important;
    background: transparent !important;
}

.sv-product-tabs .sv-tabs__btn--active,
.sv-tabs__btn--active {
    color: #0B2B5B !important;
    border-bottom-color: #43B800 !important;
}

.sv-tabs__btn::after { display: none !important; }

/* --- Tab badge (document count) --- */
.sv-tabs__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #0B2B5B;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

/* --- Tab content panes --- */
.sv-product-tabs .sv-tabs__content {
    position: relative !important;
    z-index: 1 !important;
}

.sv-product-tabs .sv-tabs__pane,
.sv-tabs__pane {
    padding: 20px 0 !important;
    background: transparent !important;
    border: none !important;
    border-top: none !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
    color: #374151 !important;
    animation: svFadeIn 0.25s ease !important;
}

/* --active class managed by JS — no display override here */

@keyframes svFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Description tab --- */
.sv-tab-desc__short {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.sv-tab-desc__short p {
    font-size: 15px !important;
    color: #1E252B !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

.sv-tab-desc__long {
    font-size: 14px;
    line-height: 1.75;
    color: #4b5563;
}

.sv-tab-desc__long h3,
.sv-tab-desc__long h4 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0B2B5B !important;
    margin: 20px 0 8px !important;
}

.sv-tab-desc__long h3:first-child,
.sv-tab-desc__long h4:first-child {
    margin-top: 0 !important;
}

.sv-tab-desc__long ul {
    padding-left: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.sv-tab-desc__long li {
    position: relative;
    padding-left: 24px !important;
    margin-bottom: 10px !important;
    font-size: 14px !important;
    color: #4b5563 !important;
    line-height: 1.7 !important;
}

.sv-tab-desc__long li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #43B800;
}

.sv-tab-desc__long li::marker {
    display: none !important;
    content: none !important;
}

.sv-tab-desc__long li:last-child {
    margin-bottom: 0 !important;
}

.sv-tab-desc__long li strong {
    color: #1E252B;
}

/* --- Specs tab --- */
.sv-tab-specs__content {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

.sv-tab-specs__content table,
.sv-tabs__pane table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 13.5px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.sv-tab-specs__content table thead th,
.sv-tab-specs__content .table-striped thead th,
.sv-tabs__pane table thead th {
    background: #0B2B5B !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: 10px 14px !important;
    border: none !important;
}

.sv-tab-specs__content table td,
.sv-tab-specs__content table th,
.sv-tabs__pane table td {
    padding: 11px 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 13.5px !important;
    vertical-align: top !important;
}

.sv-tab-specs__content table td:first-child,
.sv-tabs__pane table td:first-child {
    color: #6b7280 !important;
    font-weight: 500 !important;
    width: 42% !important;
    white-space: nowrap !important;
}

.sv-tab-specs__content table td:last-child,
.sv-tabs__pane table td:last-child {
    font-weight: 600 !important;
    color: #1E252B !important;
}

.sv-tab-specs__content table tbody tr:hover,
.sv-tab-specs__content .table-striped tbody tr:hover,
.sv-tabs__pane table tbody tr:hover {
    background: #f8fafc !important;
}

.sv-tab-specs__content table tbody tr:last-child td {
    border-bottom: none !important;
}

/* --- Tab content: headings, lists, paragraphs --- */
.sv-tabs__pane h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0B2B5B !important;
    margin: 20px 0 8px !important;
}

.sv-tabs__pane h3:first-child { margin-top: 0 !important; }

.sv-tabs__pane ul {
    padding-left: 0 !important;
    list-style: none !important;
}

.sv-tabs__pane li {
    position: relative;
    padding-left: 24px !important;
    font-size: 14px !important;
    margin-bottom: 6px !important;
    color: #4b5563 !important;
}

.sv-tabs__pane li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #43B800;
}

.sv-tabs__pane li::marker {
    display: none !important;
    content: none !important;
}

/* --- Empty tab state --- */
.sv-tabs__pane .text-muted {
    text-align: center !important;
    padding: 32px 16px !important;
    font-size: 13px !important;
    color: #9ca3af !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .sv-product-tabs {
        margin-top: 20px !important;
    }
    .sv-product-tabs .sv-tabs__btn,
    .sv-tabs__btn {
        padding: 10px 14px !important;
        font-size: 12.5px !important;
    }
    .sv-product-tabs .sv-tabs__pane,
    .sv-tabs__pane {
        padding: 16px 14px !important;
        border-radius: 0 0 10px 10px !important;
    }
}

@media (max-width: 991px) {
    .sv-product-tabs .sv-tabs__btn,
    .sv-tabs__btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
}

/* ==========================================================================
   6. COMPATIBILITY CARDS
   ========================================================================== */

.sv-compat-section__title {
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #0B2B5B;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.sv-compat-section__title svg {
    color: #43B800;
}

.sv-compat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}

.sv-compat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    text-decoration: none !important;
    color: inherit !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sv-compat-card:hover {
    box-shadow: 0 4px 16px rgba(11, 43, 91, 0.08);
    transform: translateY(-2px);
}

.sv-compat-card__img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: #f8fafb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sv-compat-card__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.sv-compat-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.sv-compat-card__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0B2B5B;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   7. STICKY MOBILE BAR
   ========================================================================== */

.sv-mobile-bar {
    display: none;
}

@media (max-width: 768px) {
    .sv-mobile-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid #e5e7eb;
        padding: 0.5rem 1rem;
        z-index: 1050;
        gap: 0.5rem;
        justify-content: stretch;
        box-shadow: 0 -4px 16px rgba(11, 43, 91, 0.06);
    }

    .sv-mobile-bar__btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.125rem;
        padding: 0.375rem;
        border: none;
        background: none;
        color: #43474E;
        font-size: 0.625rem;
        font-weight: 500;
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.15s ease;
    }

    .sv-mobile-bar__btn:hover,
    .sv-mobile-bar__btn:active {
        background: #EEF2F4;
        color: #0B2B5B;
    }

    .sv-mobile-bar__btn--primary {
        background: #43B800;
        color: #0B2B5B;
        font-weight: 600;
        border-radius: 8px;
    }

    .sv-mobile-bar__btn--primary:hover {
        background: #3AA300;
    }

    .sv-mobile-bar__btn svg {
        width: 20px;
        height: 20px;
    }

    /* Offset body for fixed bar */
    body.sv-has-mobile-bar {
        padding-bottom: 64px;
    }

    /* Cards: 2 col tighter */
    .oe_product {
        padding: 4px !important;
    }

    .sv-card .o_wsale_product_information {
        padding: 0.625rem 0.75rem 0.75rem !important;
    }

    .sv-card__key-specs {
        gap: 0.25rem;
    }

    /* Tabs scroll horizontal */
    .sv-tabs__nav {
        gap: 0;
        padding-bottom: 2px;
    }

    .sv-tabs__btn {
        font-size: 0.8125rem;
        padding: 0.625rem 1rem;
    }

    /* Compat cards stack */
    .sv-compat-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   8. SEARCH BAR POLISH
   ========================================================================== */

.o_wsale_products_searchbar_form {
    margin-bottom: 1rem !important;
}

.o_wsale_products_searchbar_form input[type="search"] {
    border-radius: 100px !important;
    border: 1.5px solid #e5e7eb !important;
    padding: 0.625rem 1.25rem 0.625rem 2.5rem !important;
    font-size: 0.875rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2343474E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 0.875rem center !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.o_wsale_products_searchbar_form input[type="search"]:focus {
    border-color: #43B800 !important;
    box-shadow: 0 0 0 3px rgba(67, 184, 0, 0.12) !important;
    outline: none !important;
}

/* ==========================================================================
   9. PRODUCT DETAIL POLISH
   ========================================================================== */

/* Product image gallery */
.o_wsale_product_images {
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #f8fafb !important;
    border: 1px solid #e5e7eb !important;
}

.o_wsale_product_images img {
    mix-blend-mode: multiply;
}

/* Product title */
#product_detail h1,
.js_product h1 {
    font-family: 'Manrope', system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(1.375rem, 3vw, 1.75rem) !important;
    color: #0B2B5B !important;
    line-height: 1.25 !important;
}

/* Description sale (subtitle) */
#product_detail .text-muted,
.js_product .text-muted {
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Attributes (listed on detail) */
.js_product .list-inline .list-inline-item {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   10. PAGINATION
   ========================================================================== */

.oe_website_sale .pagination {
    gap: 4px;
}

.oe_website_sale .pagination .page-link {
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    color: #0B2B5B !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    transition: all 0.15s ease;
}

.oe_website_sale .pagination .page-item.active .page-link {
    background: #0B2B5B !important;
    border-color: #0B2B5B !important;
    color: #fff !important;
}

.oe_website_sale .pagination .page-link:hover {
    background: #EEF2F4 !important;
}

/* ==========================================================================
   11. LOADING SKELETON
   ========================================================================== */

@keyframes svShimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.sv-skeleton {
    background: linear-gradient(90deg, #f0f2f4 25%, #e5e7eb 50%, #f0f2f4 75%);
    background-size: 400px 100%;
    animation: svShimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

/* ==========================================================================
   12. BREADCRUMB
   ========================================================================== */

.oe_website_sale .breadcrumb {
    background: none !important;
    padding: 0.75rem 0 !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.8125rem;
}

.oe_website_sale .breadcrumb-item + .breadcrumb-item::before {
    content: '›' !important;
    color: #D1D9E0;
}

.oe_website_sale .breadcrumb-item a {
    color: #43474E !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.oe_website_sale .breadcrumb-item a:hover {
    color: #0B2B5B !important;
}

.oe_website_sale .breadcrumb-item.active {
    color: #0B2B5B !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   13. SMOOTH SCROLL
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   14. PRODUCT DETAIL — HIDE ODOO DEFAULT JUNK
   ========================================================================== */

/* Hide "Contact Us" button */
a[href="/contactus"] {
    display: none !important;
}

/* Hide "Terms and Conditions" + "30-day money-back" + shipping text */
a[href="/terms"] {
    display: none !important;
}
p.text-muted:has(a[href="/terms"]) {
    display: none !important;
}
/* Fallback: also hide parent paragraph via JS marker */
.sv-hide {
    display: none !important;
}

/* Hide social share buttons — target the icon container */
.s_share,
.o_share_icons {
    display: none !important;
}

/* Hide search bar on product detail page */
.js_sale .o_wsale_products_searchbar_form,
.o_wsale_product_page .o_wsale_products_searchbar_form {
    display: none !important;
}

/* Hide "Price Range" filter (last accordion item) */
#o_wsale_offcanvas .accordion-item:last-child {
    display: none !important;
}

/* ==========================================================================
   15. CARD CTA — Full green button, not outline
   ========================================================================== */

.sv-card .sv-price-login .sv-btn--outline,
.sv-card .product_price .sv-btn--outline {
    background: #43B800 !important;
    color: #0B2B5B !important;
    border-color: #43B800 !important;
    text-transform: none !important;
    font-size: 0.75rem !important;
    letter-spacing: 0 !important;
}

.sv-card .sv-price-login .sv-btn--outline:hover,
.sv-card .product_price .sv-btn--outline:hover,
.sv-card .sv-price-login .sv-cta-green:hover {
    background: #3AA300 !important;
    color: #fff !important;
    border-color: #3AA300 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 184, 0, 0.2);
}

/* ==========================================================================
   16. CARD — Limit description height, fix name truncation
   ========================================================================== */

/* Product name: 2 lines max, smaller font */
.sv-card .o_wsale_products_item_title a {
    font-size: 0.8125rem !important;
    line-height: 1.25 !important;
    -webkit-line-clamp: 2 !important;
}

/* Description: 1 line max */
.sv-card__specs-text {
    -webkit-line-clamp: 1 !important;
    font-size: 0.6875rem !important;
}

/* Key specs: smaller, tighter */
.sv-key-spec {
    font-size: 0.625rem !important;
    padding: 0.0625rem 0.3125rem !important;
}

/* Card max height: force equal sizing */
.oe_product {
    min-height: 0 !important;
}

.sv-card .o_wsale_product_information {
    /* No max-height — let cards grow naturally */
}

/* ==========================================================================
   17. PRODUCT DETAIL — Better attribute display
   ========================================================================== */

/* Attribute list as inline badges */
#product_detail .list-inline .list-inline-item,
.js_product .list-unstyled li {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #f8fafb;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    margin-bottom: 0.375rem;
    border: 1px solid #e5e7eb;
}

/* ==========================================================================
   18. PLACEHOLDER IMAGE — Category icon for products without image
   ========================================================================== */

.sv-card .oe_product_image_link:has(img[src*="placeholder"]),
.sv-card .oe_product_image_link:has(img:not([src*="image_512"])) {
    background: linear-gradient(135deg, #f0f4f7 0%, #e5eaef 100%) !important;
}

/* [DEAD] Section 19 removed — tabs unified in section 5 */

/* ==========================================================================
   20. LANDING PAGE
   ========================================================================== */

.sv-landing {
    overflow-x: hidden;
}

/* --- Hero --- */
.sv-land-hero {
    position: relative;
    background: linear-gradient(135deg, #0B2B5B 0%, #163d6e 50%, #0B2B5B 100%);
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.sv-land-hero__bg {
    position: absolute;
    inset: 0;
    background: url('/sumivolt_theme/static/src/img/home/hero-warehouse.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.sv-land-hero__content {
    position: relative;
    max-width: 640px;
    z-index: 1;
}

.sv-land-hero__badge {
    display: inline-block;
    background: rgba(67, 184, 0, 0.15);
    color: #43B800;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(67, 184, 0, 0.3);
}

.sv-land-hero__title {
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 2.75rem);
    color: #fff;
    line-height: 1.1;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.sv-land-hero__sub {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin: 0 0 1.5rem;
}

.sv-land-hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.sv-land-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.sv-land-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.sv-land-hero__trust-item svg {
    color: #43B800;
    flex-shrink: 0;
}

/* --- Section titles --- */
.sv-land-section__title {
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    color: #0B2B5B;
    margin: 0 0 1.5rem;
}

.sv-land-section__title--center {
    text-align: center;
}

.sv-land-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sv-land-section__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0B2B5B;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.sv-land-section__link:hover {
    gap: 0.625rem;
    color: #43B800;
}

/* --- Categories --- */
.sv-land-cats {
    padding: 3.5rem 0;
    background: #f8fafb;
}

.sv-land-cats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.sv-land-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.25s ease;
}

.sv-land-cat-card:hover {
    border-color: #43B800;
    box-shadow: 0 8px 24px rgba(67, 184, 0, 0.1);
    transform: translateY(-4px);
}

.sv-land-cat-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EEF2F4 0%, #e5eaef 100%);
    border-radius: 14px;
    margin-bottom: 0.75rem;
    color: #0B2B5B;
}

.sv-land-cat-card:hover .sv-land-cat-card__icon {
    background: linear-gradient(135deg, #E8F8EE 0%, #d0f0da 100%);
    color: #43B800;
}

.sv-land-cat-card__name {
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #0B2B5B;
    margin: 0 0 0.25rem;
}

.sv-land-cat-card__count {
    font-size: 0.75rem;
    color: #43474E;
}

/* --- Product cards (landing) --- */
.sv-land-featured,
.sv-land-new {
    padding: 3.5rem 0;
}

.sv-land-new {
    background: #f8fafb;
}

.sv-land-products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.sv-land-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.25s ease;
}

.sv-land-product-card:hover {
    box-shadow: 0 12px 32px rgba(11, 43, 91, 0.08);
    transform: translateY(-4px);
}

.sv-land-product-card__img {
    aspect-ratio: 4/3;
    background: #f8fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-bottom: 1px solid #f0f2f4;
}

.sv-land-product-card__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.sv-land-product-card__info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex-grow: 1;
}

.sv-land-product-card__badges {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.sv-land-product-card__name {
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: #0B2B5B;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sv-land-product-card__desc {
    font-size: 0.75rem;
    color: #43474E;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sv-land-product-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: auto;
}

.sv-land-product-card__cta {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #43B800;
    transition: color 0.15s ease;
}

.sv-land-product-card:hover .sv-land-product-card__cta {
    color: #0B2B5B;
}

/* --- Promo banner --- */
.sv-land-promo {
    padding: 3.5rem 0;
}

.sv-land-promo__inner {
    background: linear-gradient(135deg, #0B2B5B 0%, #163d6e 100%);
    border-radius: 20px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.sv-land-promo__badge {
    display: inline-block;
    background: rgba(67, 184, 0, 0.15);
    color: #43B800;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(67, 184, 0, 0.3);
}

.sv-land-promo__title {
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 0.75rem;
    line-height: 1.25;
}

.sv-land-promo__text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.sv-land-promo__stats {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sv-land-promo__stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
}

.sv-land-promo__stat-num {
    display: block;
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: #43B800;
}

.sv-land-promo__stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Why Sumivolt --- */
.sv-land-why {
    padding: 3.5rem 0;
}

.sv-land-why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.sv-land-why__card {
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    transition: all 0.25s ease;
}

.sv-land-why__card:hover {
    border-color: #43B800;
    box-shadow: 0 8px 24px rgba(67, 184, 0, 0.08);
}

.sv-land-why__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EEF2F4;
    border-radius: 16px;
    margin: 0 auto 1rem;
    color: #0B2B5B;
}

.sv-land-why__title {
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.0625rem;
    color: #0B2B5B;
    margin: 0 0 0.5rem;
}

.sv-land-why__text {
    font-size: 0.875rem;
    color: #43474E;
    line-height: 1.5;
    margin: 0;
}

/* --- CTA Final --- */
.sv-land-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0B2B5B 0%, #163d6e 100%);
    text-align: center;
}

.sv-land-cta__title {
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: #fff;
    margin: 0 0 0.75rem;
}

.sv-land-cta__text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0 0 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.sv-land-cta__actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* --- Landing mobile --- */
@media (max-width: 768px) {
    .sv-land-hero {
        padding: 3rem 0 2.5rem;
    }

    .sv-land-hero__title {
        font-size: 1.75rem;
    }

    .sv-land-hero__trust {
        flex-direction: column;
        gap: 0.5rem;
    }

    .sv-land-cats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sv-land-products__grid {
        grid-template-columns: 1fr;
    }

    .sv-land-promo__inner {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }

    .sv-land-promo__stats {
        flex-direction: row;
    }

    .sv-land-promo__stat {
        flex: 1;
        padding: 0.75rem;
    }

    .sv-land-why__grid {
        grid-template-columns: 1fr;
    }

    .sv-land-cta {
        padding: 3rem 0;
    }
}

/* ==========================================================================
   21. HOVER FIXES — All buttons and interactive elements
   ========================================================================== */

/* --- Card CTA: SINGLE SOURCE OF TRUTH --- */
.oe_website_sale .sv-price-login a,
.sv-card .sv-price-login a {
    background: #43B800 !important;
    color: #0B2B5B !important;
    border: 1.5px solid #43B800 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    font-size: 0.75rem !important;
    padding: 0.5rem 0.75rem !important;
    display: block !important;
    text-align: center !important;
    text-decoration: none !important;
    width: 100% !important;
    transition: all 0.2s ease !important;
}

.oe_website_sale .sv-price-login a:hover,
.sv-card .sv-price-login a:hover {
    background: #3AA300 !important;
    border-color: #3AA300 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(67, 184, 0, 0.2) !important;
}

/* --- Nav header CTA: fix hover (text was going invisible) --- */
.sv-site-header__actions .sv-btn--primary,
.sv-site-header__actions a {
    background: #43B800 !important;
    color: #0B2B5B !important;
    border: 1.5px solid #43B800 !important;
    transition: all 0.2s ease !important;
}

.sv-site-header__actions .sv-btn--primary:hover,
.sv-site-header__actions a:hover {
    background: #fff !important;
    color: #0B2B5B !important;
    border-color: #fff !important;
}

/* --- Hero outline button: fix hover readability --- */
.sv-btn--outline-light {
    background: transparent !important;
    color: #fff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    transition: all 0.2s ease !important;
}

.sv-btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
}

/* --- "Ya tengo cuenta" link: make it look clickable --- */
.sv-login-required-box .sv-btn--outline {
    border: 1.5px solid #0B2B5B !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.sv-login-required-box .sv-btn--outline:hover {
    background: #0B2B5B !important;
    color: #fff !important;
}

/* --- Topbar link: fix invisible text --- */
.sv-topbar a {
    color: #43B800 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.15s ease !important;
}

.sv-topbar a:hover {
    color: #fff !important;
}

/* --- Landing hero primary CTA hover --- */
.sv-land-hero .sv-btn--primary:hover {
    background: #3AA300 !important;
    color: #fff !important;
}

/* --- Landing CTA final buttons hover --- */
.sv-land-cta .sv-btn--primary:hover {
    background: #3AA300 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(67, 184, 0, 0.3);
}

.sv-land-cta .sv-btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

/* --- Promo banner CTA hover --- */
.sv-land-promo .sv-btn--primary:hover {
    background: #3AA300 !important;
    color: #fff !important;
}

/* --- Compat cards hover feedback --- */
.sv-compat-card:hover {
    border-color: #43B800 !important;
}

/* --- Product detail "Solicitar alta profesional" hover --- */
.sv-login-required-box .sv-btn--primary:hover {
    background: #3AA300 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 184, 0, 0.25);
}

/* --- Tab buttons hover --- */
.sv-tabs__btn:hover {
    color: #0B2B5B !important;
    background: rgba(67, 184, 0, 0.05);
    border-radius: 6px 6px 0 0;
}

/* --- Footer links hover (ensure visibility) --- */
.sv-site-footer a:hover {
    color: #43B800 !important;
}

/* --- Landing section link "Ver todo" hover --- */
.sv-land-section__link:hover svg {
    transform: translateX(3px);
    transition: transform 0.2s ease;
}

/* --- Breadcrumb link hover --- */
.breadcrumb-item a:hover {
    color: #43B800 !important;
}

/* ==========================================================================
   22. TOPBAR — Login + Register
   ========================================================================== */

.sv-topbar__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sv-topbar__login {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.sv-topbar__login:hover {
    color: #fff !important;
}

.sv-topbar__login svg {
    flex-shrink: 0;
}

.sv-topbar__register {
    display: inline-flex;
    align-items: center;
    background: rgba(67, 184, 0, 0.15);
    color: #43B800 !important;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.1875rem 0.625rem;
    border-radius: 100px;
    border: 1px solid rgba(67, 184, 0, 0.3);
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.sv-topbar__register:hover {
    background: rgba(67, 184, 0, 0.25) !important;
    color: #fff !important;
}

@media (max-width: 640px) {
    .sv-topbar span {
        display: none;
    }
    .sv-topbar .sv-container {
        justify-content: center;
    }
    .sv-topbar__right {
        gap: 0.75rem;
    }
    .sv-topbar__register {
        display: none;
    }
}

/* ==========================================================================
   23. CARD STYLE V2 — Unified with WP homepage cards
   ========================================================================== */

/* Card container: 16px radius, subtle shadow, green border on hover */
.sv-card {
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    border: 1px solid #e5e7eb !important;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1),
                box-shadow 0.25s cubic-bezier(.4,0,.2,1),
                border-color 0.25s ease !important;
}

.sv-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.04) !important;
    border-color: #43B800 !important;
}

/* Image area: gradient background, 4:3 aspect */
.sv-card .oe_product_image {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-bottom: none !important;
    aspect-ratio: 4/3 !important;
    position: relative;
    transition: background 0.3s !important;
}

.sv-card:hover .oe_product_image {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
}

.sv-card .oe_product_image img {
    transition: transform 0.3s ease !important;
}

.sv-card:hover .oe_product_image img {
    transform: scale(1.05) !important;
}

/* Badges: position over image */
.sv-card__badges {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 2 !important;
    margin-bottom: 0 !important;
}

/* Badge pills: refined */
.sv-badge--marca {
    background: #fff !important;
    color: #0B2B5B !important;
    border: 1px solid #dbeafe !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
    font-weight: 700 !important;
    font-size: 0.625rem !important;
    letter-spacing: 0.06em !important;
    padding: 3px 10px !important;
    border-radius: 100px !important;
}

.sv-badge--sub {
    background: rgba(255,255,255,0.9) !important;
    color: #43474E !important;
    font-size: 0.5625rem !important;
    padding: 2px 8px !important;
    border-radius: 100px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
}

/* CTA button: full-width green bar at bottom */
.sv-card .sv-price-login {
    margin-top: auto !important;
    padding-top: 0 !important;
}

.oe_website_sale .sv-price-login a,
.sv-card .sv-price-login a {
    background: transparent !important;
    color: #43B800 !important;
    border: none !important;
    border-top: 1px solid #f3f4f6 !important;
    border-radius: 0 0 15px 15px !important;
    font-weight: 700 !important;
    font-size: 0.8125rem !important;
    padding: 10px 0.75rem !important;
    text-align: center !important;
    transition: background 0.2s, color 0.2s !important;
}

.oe_website_sale .sv-price-login a:hover,
.sv-card .sv-price-login a:hover {
    background: #43B800 !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Key specs: pill style */
.sv-key-spec {
    background: #f3f4f6 !important;
    padding: 3px 10px !important;
    border-radius: 100px !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
}

.sv-key-spec__icon {
    color: #43B800 !important;
}

/* Description text */
.sv-card__specs-text {
    font-size: 0.75rem !important;
    -webkit-line-clamp: 2 !important;
    color: #6b7280 !important;
}

/* Product name */
.sv-card .o_wsale_products_item_title a {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

/* ==========================================================================
   24. PRODUCT DETAIL V2 — Premium ficha de producto
   ========================================================================== */

/* Layout: better spacing */
#product_detail,
.oe_website_sale #product_detail {
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
}

/* Image gallery: premium frame */
.o_wsale_product_images {
    border-radius: 20px !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
}

/* Product title: larger, bolder */
#product_detail h1,
.js_product h1 {
    font-family: 'Manrope', system-ui, sans-serif !important;
    font-weight: 800 !important;
    font-size: clamp(1.5rem, 3.5vw, 2rem) !important;
    color: #0B2B5B !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 1rem !important;
}

/* Login required box: card style */
.sv-login-required-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border: 1.5px solid #bbf7d0 !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.25rem !important;
}

.sv-login-required-box strong,
.sv-login-required-box b {
    font-family: 'Manrope', system-ui, sans-serif !important;
    font-size: 1rem !important;
    color: #0B2B5B !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
}

.sv-login-required-box p {
    color: #374151 !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
}

.sv-login-required-box .sv-btn--primary {
    background: #43B800 !important;
    color: #0B2B5B !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0.625rem 1.25rem !important;
    font-weight: 700 !important;
    font-size: 0.8125rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    transition: all 0.2s ease !important;
}

.sv-login-required-box .sv-btn--primary:hover {
    background: #3AA300 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(67, 184, 0, 0.25) !important;
}

.sv-login-required-box .sv-btn--outline {
    background: #fff !important;
    border: 1.5px solid #0B2B5B !important;
    border-radius: 10px !important;
    padding: 0.625rem 1.25rem !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    color: #0B2B5B !important;
    transition: all 0.2s ease !important;
}

/* Attributes: premium badge pills */
#product_detail .list-inline .list-inline-item,
.js_product .list-unstyled li {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
    padding: 0.375rem 0.875rem !important;
    border-radius: 100px !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    border: 1px solid #e5e7eb !important;
    margin-bottom: 0.5rem !important;
    margin-right: 0.375rem !important;
    transition: border-color 0.2s !important;
}

#product_detail .list-inline .list-inline-item:hover,
.js_product .list-unstyled li:hover {
    border-color: #43B800 !important;
}

/* Attribute label: bold green */
#product_detail .list-inline .list-inline-item strong,
.js_product .list-unstyled li strong,
.js_product .list-unstyled li b {
    color: #0B2B5B !important;
    font-weight: 700 !important;
}

/* "Avísame cuando esté disponible" button */
.o_wsale_product_page .btn-primary:not(.sv-btn),
#product_detail .btn-primary:not(.sv-btn) {
    background: #0B2B5B !important;
    border-color: #0B2B5B !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    padding: 0.625rem 1.25rem !important;
    transition: all 0.2s ease !important;
}

#product_detail .btn-primary:not(.sv-btn):hover {
    background: #163d6e !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(11, 43, 91, 0.2) !important;
}

/* [DEAD] Tabs V2 removed — tabs unified in section 5 */

/* Breadcrumb: subtler */
.oe_website_sale .breadcrumb {
    padding: 0.5rem 0 !important;
    margin-bottom: 0 !important;
    font-size: 0.75rem !important;
}

.oe_website_sale .breadcrumb-item a {
    color: #9ca3af !important;
}

.oe_website_sale .breadcrumb-item a:hover {
    color: #43B800 !important;
}

.oe_website_sale .breadcrumb-item.active {
    color: #0B2B5B !important;
    font-weight: 600 !important;
}

/* Compat cards V2: match new card style */
.sv-compat-card {
    border-radius: 14px !important;
    border: 1px solid #e5e7eb !important;
    transition: all 0.25s cubic-bezier(.4,0,.2,1) !important;
}

.sv-compat-card:hover {
    border-color: #43B800 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
}

/* Product detail page — responsive */
@media (max-width: 768px) {
    .sv-login-required-box {
        padding: 1.25rem !important;
    }

    #product_detail h1,
    .js_product h1 {
        font-size: 1.375rem !important;
    }
}

/* ==========================================================================
   25. PRODUCT DETAIL — Attribute selectors as styled pills
   ========================================================================== */

/* Attribute group wrapper */
.o_wsale_product_attribute {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
}

/* Each attribute value pill */
.o_wsale_product_attribute .list-inline-item {
    margin: 0 !important;
}

.o_wsale_product_attribute .form-check {
    display: flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
    padding: 0.375rem 0.875rem !important;
    border-radius: 100px !important;
    border: 1px solid #e5e7eb !important;
    margin: 0 !important;
    transition: border-color 0.2s !important;
    cursor: pointer !important;
}

.o_wsale_product_attribute .form-check:hover {
    border-color: #43B800 !important;
}

/* Hide radio buttons (single values, no choice to make) */
.o_wsale_product_attribute .form-check-input[data-is_single="True"] {
    display: none !important;
}

.o_wsale_product_attribute .form-check-label {
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    cursor: pointer !important;
}

/* Attribute name label (above the list) */
.js_product label.css_attribute_name,
.js_product .mb-1 label {
    font-family: 'Manrope', system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #9ca3af !important;
    margin-bottom: 0.375rem !important;
}

/* [DEAD] Section 26 removed — tabs unified in section 5 */

/* ==========================================================================
   27. PRODUCT DETAIL — Custom attribute badges
   ========================================================================== */

.sv-detail-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.sv-detail-attr {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s;
}

.sv-detail-attr:hover {
    border-color: #43B800;
}

.sv-detail-attr__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
}

.sv-detail-attr__value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0B2B5B;
}

/* Hide Odoo default variant rendering on product detail (we show our own badges) */
.js_product .js_add_cart_variants .variant_attribute {
    display: none !important;
}

/* "Avísame cuando esté disponible" — style properly */
#product_detail a.btn-primary,
.js_product a.btn-primary {
    background: #0B2B5B !important;
    border-color: #0B2B5B !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    padding: 0.625rem 1.5rem !important;
    transition: all 0.2s ease !important;
    color: #fff !important;
}

#product_detail a.btn-primary:hover,
.js_product a.btn-primary:hover {
    background: #163d6e !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(11, 43, 91, 0.2) !important;
}

/* ==========================================================================
   28. CARD CTA V2 — Override to match WP bar style (must beat section 21)
   ========================================================================== */

.oe_website_sale form.sv-card .sv-price-login a,
.oe_website_sale form.sv-card .sv-price-login a.sv-btn--outline,
.oe_website_sale form.sv-card .sv-price-login a.sv-cta-green,
form.sv-card .sv-price-login a {
    background: transparent !important;
    color: #43B800 !important;
    border: none !important;
    border-top: 1px solid #f0f2f4 !important;
    border-radius: 0 0 15px 15px !important;
    font-weight: 700 !important;
    font-size: 0.8125rem !important;
    padding: 10px 0 !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s !important;
    transform: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.oe_website_sale form.sv-card .sv-price-login a:hover,
form.sv-card .sv-price-login a:hover {
    background: #43B800 !important;
    color: #fff !important;
    border-top: 1px solid #43B800 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   29. TOPBAR — Admin + Logout links
   ========================================================================== */

.sv-topbar__admin {
    color: #43B800 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    padding: 2px 10px !important;
    border: 1px solid #43B800 !important;
    border-radius: 100px !important;
    transition: all 0.2s !important;
}

.sv-topbar__admin:hover {
    background: #43B800 !important;
    color: #0B2B5B !important;
}

.sv-topbar__logout {
    color: rgba(255,255,255,0.5) !important;
    text-decoration: none !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    transition: color 0.2s !important;
}

.sv-topbar__logout:hover {
    color: #fff !important;
}

/* ==========================================================================
   30. HEADER ICONS — User, Cart, Admin gear
   ========================================================================== */

.sv-site-header__actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.sv-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #0B2B5B;
    text-decoration: none !important;
    transition: all 0.2s ease;
    position: relative;
}

.sv-header-icon:hover {
    background: #f0fdf4;
    color: #43B800;
}

.sv-header-icon--active {
    color: #43B800;
}

.sv-header-icon--admin {
    color: #6b7280;
}

.sv-header-icon--admin:hover {
    background: #f1f5f9;
    color: #0B2B5B;
}

/* Hide CTA button when logged in — keep only icons */
/* (Solicitar tarifa is hidden for logged users via t-if in template) */

@media (max-width: 768px) {
    .sv-header-icon {
        width: 36px;
        height: 36px;
    }

    .sv-header-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Footer dev credit */
.sv-site-footer__dev {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.35);
    margin-top: 0.25rem;
}
.sv-site-footer__dev a {
    color: rgba(255,255,255,0.5) !important;
    text-decoration: none !important;
}
.sv-site-footer__dev a:hover {
    color: #43B800 !important;
}

/* ==========================================================================
   31. HEADER CART — Odoo native widget styled
   ========================================================================== */

.sv-header-cart {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sv-header-cart .sv-header-icon {
    color: #0B2B5B !important;
    text-decoration: none !important;
}

.sv-header-cart .sv-header-icon:hover {
    background: #f0fdf4 !important;
    color: #43B800 !important;
}

/* Replace FontAwesome cart with our own style */
.sv-header-cart .fa-shopping-cart {
    font-size: 1.25rem !important;
}

/* Badge counter */
.sv-cart-badge {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    background: #43B800 !important;
    color: #0B2B5B !important;
    font-size: 0.625rem !important;
    font-weight: 800 !important;
    min-width: 18px !important;
    height: 18px !important;
    line-height: 18px !important;
    text-align: center !important;
    border-radius: 100px !important;
    padding: 0 4px !important;
    border: 2px solid #fff !important;
}

.sv-cart-badge.d-none {
    display: none !important;
}

/* =============================================
   SECTION 32: Stock availability badges
   ============================================= */
.sv-badge--stock {
    background: #43B800 !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.625rem !important;
    padding: 3px 8px !important;
    border-radius: 100px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

.sv-badge--nostock {
    background: #F5B84B !important;
    color: #1E252B !important;
    font-weight: 700 !important;
    font-size: 0.625rem !important;
    padding: 3px 8px !important;
    border-radius: 100px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

/* ==========================================================================
   COMPATIBLE PRODUCTS v2 — full-width section below product detail
   ========================================================================== */

.sv-compat-section {
    padding: 48px 0;
    background: #fff;
    border-top: 1px solid var(--gray-200, #E9ECEF);
}

.sv-compat-section .sv-compat-section__title {
    font-size: 22px;
    margin-bottom: 8px;
    display: block;
}

.sv-compat-section__subtitle {
    font-size: 14px;
    color: var(--gray-500, #868E96);
    margin-bottom: 24px;
}

.sv-compat-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sv-compat-cat {
    padding: 6px 14px;
    border: 1.5px solid var(--gray-200, #E9ECEF);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600, #6C757D);
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    font-family: 'Inter', system-ui, sans-serif;
}

.sv-compat-cat:hover {
    border-color: var(--color-azul-noche, #0B2B5B);
    color: var(--color-azul-noche, #0B2B5B);
}

.sv-compat-cat.active {
    background: var(--color-azul-noche, #0B2B5B);
    color: #fff;
    border-color: var(--color-azul-noche, #0B2B5B);
}

.sv-compat-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 991px) {
    .sv-compat-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .sv-compat-grid-v2 { grid-template-columns: 1fr; }
}

.sv-compat-card-v2 {
    background: #fff;
    border: 1px solid var(--gray-200, #E9ECEF);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.sv-compat-card-v2:hover {
    box-shadow: 0 4px 16px rgba(11, 43, 91, 0.1);
    transform: translateY(-3px);
}

.sv-compat-card-v2[style*="display: none"] {
    display: none !important;
}

.sv-compat-card-v2__badge-wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.sv-badge--recommended {
    background: var(--color-azul-noche, #0B2B5B);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sv-badge--kit {
    background: var(--color-verde-energia, #43B800);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sv-compat-card-v2__img {
    height: 130px;
    background: var(--gray-50, #F8F9FA);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.sv-compat-card-v2__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.sv-compat-card-v2__info {
    padding: 14px;
}

.sv-compat-card-v2__brand {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400, #ADB5BD);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sv-compat-card-v2__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800, #343A40);
    margin: 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none !important;
}

.sv-compat-card-v2__name:hover {
    color: var(--color-verde-energia, #43B800) !important;
}

.sv-compat-card-v2__reason {
    font-size: 11px;
    color: var(--color-verde-energia, #43B800);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.sv-compat-card-v2__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-azul-noche, #0B2B5B);
}

.sv-compat-card-v2__price span {
    font-size: 11px;
    font-weight: 400;
    color: var(--gray-400, #ADB5BD);
}

/* ==========================================================================
   VOLUME PRICING TABLE — shown on product detail page
   ========================================================================== */

.sv-volume-pricing {
    border: 1px solid var(--gray-200, #E9ECEF);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.sv-volume-pricing__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--color-blue-light, #E7F5FF);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-azul-noche, #0B2B5B);
    border-bottom: 1px solid var(--gray-200, #E9ECEF);
}

.sv-volume-tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 575px) {
    .sv-volume-tiers { grid-template-columns: repeat(2, 1fr); }
}

.sv-volume-tier {
    padding: 12px 14px;
    text-align: center;
    border-right: 1px solid var(--gray-100, #F1F3F5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sv-volume-tier:last-child { border-right: none; }

.sv-volume-tier:hover {
    background: var(--color-verde-light, #E8F7E0);
}

.sv-volume-tier.active {
    background: var(--color-verde-light, #E8F7E0);
    box-shadow: inset 0 -3px 0 var(--color-verde-energia, #43B800);
}

.sv-volume-tier__qty {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500, #868E96);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.sv-volume-tier__price {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-azul-noche, #0B2B5B);
}

.sv-volume-tier__save {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-verde-energia, #43B800);
    margin-top: 2px;
}

/* Hidden price for public users */
.sv-volume-tier__price--hidden {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #9ca3af !important;
    font-style: italic;
}

/* CTA under volume tiers for public */
.sv-volume-pricing__cta {
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.sv-volume-pricing__link {
    font-size: 13px;
    font-weight: 600;
    color: #43B800 !important;
    text-decoration: none !important;
}

.sv-volume-pricing__link:hover {
    text-decoration: underline !important;
}

/* Grid: adapt to 3 columns for 3 tiers (common case) */
.sv-volume-tiers:has(.sv-volume-tier:nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
}

/* ==========================================================================
   STOCK INDICATOR — animated dot + text
   ========================================================================== */

.sv-stock-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
}

.sv-stock-indicator--instock {
    background: var(--color-verde-light, #E8F7E0);
    color: #2D8B00;
}

.sv-stock-indicator--nostock {
    background: var(--gray-100, #F1F3F5);
    color: var(--gray-600, #6C757D);
}

.sv-stock-dot {
    width: 8px;
    height: 8px;
    background: var(--color-verde-energia, #43B800);
    border-radius: 50%;
    animation: sv-pulse 2s infinite;
    flex-shrink: 0;
}

.sv-stock-dot--gray {
    background: var(--gray-400, #ADB5BD);
    animation: none;
}

@keyframes sv-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.sv-stock-qty {
    font-weight: 400;
    color: var(--gray-600, #6C757D);
    margin-left: auto;
    font-size: 12px;
}

/* ==========================================================================
   SHIPPING BOX — 4 rows with icons
   ========================================================================== */

.sv-shipping-box {
    border: 1px solid var(--gray-200, #E9ECEF);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
}

.sv-shipping-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--gray-100, #F1F3F5);
}

.sv-shipping-row:last-child {
    border-bottom: none;
}

.sv-shipping-icon {
    width: 36px;
    height: 36px;
    background: var(--gray-50, #F8F9FA);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.sv-shipping-row strong {
    display: block;
    font-size: 13px;
    color: var(--gray-800, #343A40);
}

.sv-shipping-row span {
    font-size: 12px;
    color: var(--gray-500, #868E96);
}

.sv-shipping-free {
    color: var(--color-verde-energia, #43B800) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    margin-left: auto;
    white-space: nowrap;
}

/* ==========================================================================
   DOWNLOADS — document cards
   ========================================================================== */

.sv-downloads__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-azul-noche, #0B2B5B);
    margin-bottom: 12px;
}

.sv-downloads__grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sv-download-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border: 1px solid var(--gray-200, #E9ECEF);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
    text-decoration: none !important;
    color: inherit !important;
}

.sv-download-card:hover {
    border-color: var(--color-verde-energia, #43B800);
    background: var(--color-verde-light, #E8F7E0);
}

.sv-download-icon {
    width: 40px;
    height: 40px;
    background: var(--color-error, #E53935);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.sv-download-card strong {
    font-size: 13px;
    display: block;
}

.sv-download-card span {
    font-size: 11px;
    color: var(--gray-500, #868E96);
}

/* ==========================================================================
   PRODUCT DETAIL — General polish
   ========================================================================== */

/* Product detail price */
#product_detail .product_price .oe_price .oe_currency_value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-azul-noche, #0B2B5B);
}

/* Product detail title */
#product_detail h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-azul-noche, #0B2B5B);
    line-height: 1.3;
}

/* Breadcrumb clean */
.breadcrumb {
    background: transparent;
    padding: 14px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--gray-100, #F1F3F5);
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--gray-500, #868E96) !important;
}

.breadcrumb-item a:hover {
    color: var(--color-verde-energia, #43B800) !important;
}

.breadcrumb-item.active {
    color: var(--gray-800, #343A40) !important;
    font-weight: 600;
}

/* Detail attributes inline badges */
.sv-detail-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.sv-detail-attr {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--gray-50, #F8F9FA);
    border-radius: 6px;
    font-size: 12px;
}

.sv-detail-attr__label {
    color: var(--gray-500, #868E96);
    font-weight: 500;
}

.sv-detail-attr__value {
    color: var(--color-azul-noche, #0B2B5B);
    font-weight: 600;
}

/* ==========================================================================
   CART & CHECKOUT — Clean table, summary, coherent forms
   ========================================================================== */

/* Cart page layout */
#wrap_cart,
.oe_cart {
    font-family: var(--font-body, 'Inter'), system-ui, sans-serif;
}

/* Cart table */
.oe_cart table thead {
    background: var(--gray-50, #F8F9FA);
}

.oe_cart table thead th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-600, #6C757D);
    padding: 10px 12px;
    border-bottom: 2px solid var(--gray-200, #E9ECEF);
}

.oe_cart table tbody td {
    padding: 16px 12px;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100, #F1F3F5);
}

.oe_cart table tbody tr:hover {
    background: var(--gray-50, #F8F9FA);
}

/* Cart product image */
.oe_cart .td-img img {
    border-radius: 8px;
    border: 1px solid var(--gray-200, #E9ECEF);
}

/* Cart product name */
.oe_cart .td-product_name a {
    font-weight: 600;
    color: var(--color-azul-noche, #0B2B5B) !important;
    font-size: 14px;
}

/* Cart quantity input */
.oe_cart .css_quantity input {
    border: 2px solid var(--gray-200, #E9ECEF);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    width: 56px;
    font-family: var(--font-body, 'Inter');
}

.oe_cart .css_quantity input:focus {
    border-color: var(--color-verde-energia, #43B800);
    box-shadow: 0 0 0 3px rgba(67, 184, 0, 0.12);
}

/* Cart summary / totals */
#cart_total {
    background: var(--gray-50, #F8F9FA);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--gray-200, #E9ECEF);
}

#cart_total table td {
    padding: 8px 0;
    font-size: 14px;
}

#cart_total .oe_cart_summary_total td {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-azul-noche, #0B2B5B);
    padding-top: 16px;
    border-top: 2px solid var(--gray-200, #E9ECEF);
}

/* Checkout button */
.oe_cart a[href="/shop/checkout"],
.oe_cart a[href="/shop/confirm_order"],
.oe_cart .a-submit {
    background: var(--color-verde-energia, #43B800) !important;
    border-color: var(--color-verde-energia, #43B800) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 12px 24px !important;
    transition: all 0.2s ease !important;
    width: 100%;
    text-align: center;
}

.oe_cart a[href="/shop/checkout"]:hover,
.oe_cart .a-submit:hover {
    background: var(--color-verde-energia-hover, #3AA300) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 184, 0, 0.3);
}

/* Checkout wizard steps */
.wizard .nav-link {
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
}

.wizard .nav-link.active {
    background: var(--color-verde-energia, #43B800) !important;
    color: #fff !important;
    font-weight: 600;
}

.wizard .nav-link.done {
    background: var(--color-azul-noche, #0B2B5B) !important;
    color: #fff !important;
}

/* Checkout form inputs */
.checkout_autoformat input,
.checkout_autoformat select {
    border: 2px solid var(--gray-200, #E9ECEF);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--font-body, 'Inter');
    transition: border 0.2s ease;
}

.checkout_autoformat input:focus,
.checkout_autoformat select:focus {
    border-color: var(--color-verde-energia, #43B800);
    box-shadow: 0 0 0 3px rgba(67, 184, 0, 0.12);
    outline: none;
}

.checkout_autoformat label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700, #495057);
}

/* ==========================================================================
   FREE SHIPPING PROGRESS BAR
   ========================================================================== */

.sv-shipping-progress {
    background: var(--color-blue-light, #E7F5FF);
    border-bottom: 1px solid var(--gray-200, #E9ECEF);
    padding: 12px 0;
}

.sv-shipping-progress__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sv-shipping-progress__icon {
    font-size: 20px;
    flex-shrink: 0;
}

.sv-shipping-progress__text {
    font-size: 13px;
    color: var(--color-azul-noche, #0B2B5B);
    flex: 1;
    min-width: 200px;
}

.sv-shipping-progress__text--free {
    color: var(--color-verde-energia, #43B800) !important;
}

.sv-shipping-progress__bar {
    width: 200px;
    height: 6px;
    background: var(--gray-200, #E9ECEF);
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.sv-shipping-progress__fill {
    height: 100%;
    background: var(--color-verde-energia, #43B800);
    border-radius: 3px;
    transition: width 0.5s ease;
}

@media (max-width: 575px) {
    .sv-shipping-progress__bar { width: 100%; }
}

/* ==========================================================================
   CART UPSELL — "Completa tu instalación"
   ========================================================================== */

.sv-cart-upsell {
    border-top: 1px solid var(--gray-200, #E9ECEF);
    padding-top: 24px;
}

.sv-cart-upsell__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-azul-noche, #0B2B5B);
    margin-bottom: 4px;
}

.sv-cart-upsell__subtitle {
    font-size: 13px;
    color: var(--gray-500, #868E96);
    margin-bottom: 16px;
}

.sv-cart-upsell__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 991px) {
    .sv-cart-upsell__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .sv-cart-upsell__grid { grid-template-columns: 1fr 1fr; }
}

.sv-cart-upsell__card {
    border: 1px solid var(--gray-200, #E9ECEF);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
    background: #fff;
}

.sv-cart-upsell__card:hover {
    box-shadow: 0 4px 16px rgba(11, 43, 91, 0.08);
    transform: translateY(-2px);
}

.sv-cart-upsell__img {
    display: block;
    height: 100px;
    background: var(--gray-50, #F8F9FA);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sv-cart-upsell__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.sv-cart-upsell__info {
    padding: 10px;
}

.sv-cart-upsell__brand {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400, #ADB5BD);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sv-cart-upsell__name {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-800, #343A40) !important;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none !important;
    margin: 4px 0;
}

.sv-cart-upsell__price {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-azul-noche, #0B2B5B);
    margin-bottom: 6px;
}

.sv-cart-upsell__price span {
    font-size: 10px;
    font-weight: 400;
    color: var(--gray-400, #ADB5BD);
}

.sv-cart-upsell__add-btn {
    display: block;
    text-align: center;
    padding: 6px 10px;
    background: var(--gray-50, #F8F9FA);
    border: 1.5px solid var(--gray-200, #E9ECEF);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-700, #495057) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.sv-cart-upsell__add-btn:hover {
    border-color: var(--color-verde-energia, #43B800);
    color: var(--color-verde-energia, #43B800) !important;
    background: var(--color-verde-light, #E8F7E0);
}

/* ==========================================================================
   KIT COMPLETO — Bundle card on PDP
   ========================================================================== */

.sv-kit-section {
    margin-bottom: 24px;
}

.sv-kit-card {
    border: 2px solid var(--color-verde-energia, #43B800);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.sv-kit-card__header {
    background: var(--color-verde-light, #E8F7E0);
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200, #E9ECEF);
}

.sv-kit-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-azul-noche, #0B2B5B);
    margin: 0 0 4px;
}

.sv-kit-card__subtitle {
    font-size: 12px;
    color: var(--gray-600, #6C757D);
    margin: 0;
}

.sv-kit-card__items {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sv-kit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--gray-50, #F8F9FA);
    border-radius: 8px;
    flex: 1;
    min-width: 180px;
}

.sv-kit-item--current {
    border: 1.5px solid var(--color-azul-noche, #0B2B5B);
    background: #fff;
}

.sv-kit-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    mix-blend-mode: multiply;
    border-radius: 6px;
    flex-shrink: 0;
}

.sv-kit-item__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sv-kit-item__name {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-800, #343A40) !important;
    text-decoration: none !important;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sv-kit-item__price {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-azul-noche, #0B2B5B);
}

.sv-kit-item__reason {
    font-size: 10px;
    color: var(--color-verde-energia, #43B800);
    font-weight: 500;
}

.sv-kit-item__plus {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-400, #ADB5BD);
    flex-shrink: 0;
}

.sv-kit-card__footer {
    padding: 14px 20px;
    background: var(--gray-50, #F8F9FA);
    border-top: 1px solid var(--gray-200, #E9ECEF);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sv-kit-card__total span {
    font-size: 13px;
    color: var(--gray-600, #6C757D);
    margin-right: 8px;
}

.sv-kit-card__total strong {
    font-size: 22px;
    color: var(--color-azul-noche, #0B2B5B);
}

.sv-kit-card__total small {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-400, #ADB5BD);
}

@media (max-width: 575px) {
    .sv-kit-card__items { flex-direction: column; }
    .sv-kit-item { min-width: 100%; }
    .sv-kit-item__plus { transform: rotate(90deg); }
}

/* ==========================================================================
   URGENCY — Low stock warning + scarcity
   ========================================================================== */

.sv-stock-indicator--urgent {
    background: #FFF3E0;
    color: #E65100;
    animation: sv-urgent-pulse 3s infinite;
}

@keyframes sv-urgent-pulse {
    0%, 100% { background: #FFF3E0; }
    50% { background: #FFE0B2; }
}

/* ==========================================================================
   EXIT-INTENT POPUP
   ========================================================================== */

.sv-popup__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    backdrop-filter: blur(4px);
}

.sv-popup__card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    z-index: 9999;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    animation: sv-popup-in 0.3s ease;
}

@keyframes sv-popup-in {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.sv-popup__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray-400, #ADB5BD);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.sv-popup__close:hover {
    color: var(--gray-800, #343A40);
}

.sv-popup__header {
    text-align: center;
    margin-bottom: 20px;
}

.sv-popup__header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-azul-noche, #0B2B5B);
    margin-bottom: 8px;
}

.sv-popup__header p {
    font-size: 14px;
    color: var(--gray-600, #6C757D);
    margin: 0;
}

.sv-popup__field {
    margin-bottom: 12px;
}

.sv-popup__field input,
.sv-popup__field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200, #E9ECEF);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', system-ui, sans-serif;
    outline: none;
    transition: border 0.2s ease;
    appearance: none;
    background: #fff;
}

.sv-popup__field input:focus,
.sv-popup__field select:focus {
    border-color: var(--color-verde-energia, #43B800);
}

.sv-popup__submit {
    width: 100%;
    padding: 14px;
    background: var(--color-verde-energia, #43B800);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', system-ui, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sv-popup__submit:hover {
    background: var(--color-verde-energia-hover, #3AA300);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 184, 0, 0.3);
}

.sv-popup__legal {
    text-align: center;
    font-size: 11px;
    color: var(--gray-400, #ADB5BD);
    margin-top: 12px;
}

@media (max-width: 575px) {
    .sv-popup { display: none !important; }
}

/* ==========================================================================
   SNIPPET: PROMO BANNER
   ========================================================================== */

.s_sv_promo_banner {
    background: linear-gradient(135deg, #0B2B5B 0%, #061D3F 100%);
}

.sv-promo-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.sv-promo-inline__badge {
    display: inline-block;
    background: rgba(67, 184, 0, 0.15);
    color: #43B800;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.sv-promo-inline__title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.sv-promo-inline__text {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.sv-promo-inline__cta {
    flex-shrink: 0;
    padding: 10px 24px;
    background: #43B800;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sv-promo-inline__cta:hover {
    background: #3AA300;
    transform: translateY(-1px);
}

@media (max-width: 575px) {
    .sv-promo-inline { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   SNIPPET: TRUST BAR
   ========================================================================== */

.s_sv_trust_bar {
    background: #fff;
    border-bottom: 1px solid #E9ECEF;
}

.sv-trust-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.sv-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sv-trust-icon {
    width: 40px;
    height: 40px;
    background: #E8F7E0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sv-trust-item strong {
    display: block;
    font-size: 13px;
    color: #212529;
}

.sv-trust-item span {
    font-size: 12px;
    color: #868E96;
}

@media (max-width: 575px) {
    .sv-trust-grid { gap: 16px; }
    .sv-trust-item { flex: 1 1 45%; }
}

/* ==========================================================================
   SNIPPET: CTA TARIFA
   ========================================================================== */

.s_sv_cta_tarifa {
    background: linear-gradient(135deg, #0B2B5B 0%, #061D3F 100%);
}

.sv-cta-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.sv-cta-inline__text h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.sv-cta-inline__text p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.sv-cta-inline__btn {
    flex-shrink: 0;
    padding: 14px 28px;
    background: #43B800;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sv-cta-inline__btn:hover {
    background: #3AA300;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67,184,0,0.3);
}

@media (max-width: 575px) {
    .sv-cta-inline { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   PDP LAYOUT FIX — Image constrained, tabs clean, better spacing
   ========================================================================== */

/* --- Gallery: limit height, center image, clean frame --- */
#o-carousel-product {
    max-height: 450px !important;
    position: relative !important;
}

#o-carousel-product .carousel-inner {
    max-height: 450px !important;
}

#o-carousel-product .carousel-item {
    max-height: 450px !important;
}

#o-carousel-product .carousel-item img.product_detail_img {
    max-height: 400px !important;
    width: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    padding: 24px !important;
}

.o_wsale_product_images {
    max-height: 480px !important;
    border-radius: 12px !important;
    background: var(--gray-50, #F8F9FA) !important;
    border: 1px solid var(--gray-200, #E9ECEF) !important;
    box-shadow: none !important;
    position: relative !important;
}

/* Remove sticky on gallery (was stretching to match right col) */
#o-carousel-product.position-sticky {
    position: relative !important;
}

/* --- Right column: tighter spacing --- */
#product_details {
    padding-top: 0 !important;
}

#product_detail_main {
    align-items: flex-start !important;
}

/* [DEAD] Tabs/desc/specs/attrs — unified in section 5 above */

/* --- Stock indicator: more compact --- */
.sv-stock-indicator {
    margin-bottom: 12px !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
}

/* --- Shipping box: tighter --- */
.sv-shipping-box {
    margin-top: 16px !important;
    margin-bottom: 16px !important;
}

.sv-shipping-row {
    padding: 10px 14px !important;
}

/* --- Compat section: full-width under tabs --- */
.sv-compat-section {
    margin-top: 0 !important;
    padding: 40px 0 !important;
    border-top: 1px solid var(--gray-200, #E9ECEF) !important;
}

/* --- Kit section: spacing --- */
.sv-kit-section {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

/* --- Mobile PDP fixes --- */
@media (max-width: 991px) {
    #o-carousel-product {
        max-height: 300px !important;
    }
    #o-carousel-product .carousel-item img.product_detail_img {
        max-height: 260px !important;
        padding: 16px !important;
    }
}

/* [DEAD] PDP tabs breakout v1 removed */

/* Kit + Compat sections: container-width, outside product grid */
.sv-kit-section {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

@media (min-width: 768px) {
    .sv-kit-section { padding: 0 32px !important; }
}

@media (min-width: 1024px) {
    .sv-kit-section { padding: 0 64px !important; }
}

.sv-compat-section {
    background: var(--gray-50, #F8F9FA) !important;
}

.sv-compat-section .container {
    max-width: 1200px;
}

/* ==========================================================================
   PDP v3: Taller image + full-width tabs/kit/compat (container-width)
   ========================================================================== */

/* --- Image: taller --- */
#o-carousel-product {
    max-height: 550px !important;
}

#o-carousel-product .carousel-inner {
    max-height: 550px !important;
}

#o-carousel-product .carousel-item {
    max-height: 550px !important;
}

#o-carousel-product .carousel-item img.product_detail_img {
    max-height: 500px !important;
}

.o_wsale_product_images {
    max-height: 580px !important;
}

@media (max-width: 991px) {
    #o-carousel-product,
    #o-carousel-product .carousel-inner,
    #o-carousel-product .carousel-item {
        max-height: 350px !important;
    }
    #o-carousel-product .carousel-item img.product_detail_img {
        max-height: 300px !important;
    }
    .o_wsale_product_images {
        max-height: 380px !important;
    }
}

/* [DEAD] PDP tabs v3-v6 removed — unified in section 5 */

/* ==========================================================================
   PDP CLEANUP — Hide duplicated content, fix layout order
   ========================================================================== */

/* 1. Hide Odoo default description_ecommerce in right column
   (it shows full HTML with specs+palet — we show it in tabs instead) */
#product_details .js_main_product > [t-field="product.description_ecommerce"],
#product_details .js_main_product > div:has(> h3:first-child),
#product_details > div.js_product > div:not([class]):not([id]) > h3,
#product_detail_main #product_details .o_field_html,
#product_details .js_main_product .o_field_html[data-oe-field="description_ecommerce"] {
    display: none !important;
}

/* More targeted: hide any direct child div of js_main_product that contains
   "Características principales" — this is the ecommerce description bleed */

/* 2. Hide duplicate docs in right column (shown in tabs) */
#product_details .sv-downloads {
    display: none !important;
}

/* 3. Hide duplicate attributes at bottom of column
   (Marca: Longi Solar, Potencia: 590Wp — already in sv-detail-attrs) */
#product_details .list-inline.list-unstyled.o_wsale_product_attribute {
    display: none !important;
}

/* 4. Keep tabs in right column but make them visually clean */
#product_details .sv-product-tabs {
    clear: both !important;
}

/* 5. Fix order: stock indicator → add-to-cart → shipping → tabs */
/* Ensure shipping box and stock are compact */
#product_details .sv-shipping-box {
    margin-bottom: 0 !important;
}

/* ==========================================================================
   PDP CLEANUP — Hide duplicate/unwanted Odoo elements
   ========================================================================== */

/* Hide Odoo default elements we replace with custom versions */
#product_detail_main > #product_details > .oe_structure { display: none !important; }
#product_detail_main > #product_details > div[itemprop="description"] { display: none !important; }
#product_detail_main .sv-downloads { display: none !important; }
#product_detail_main .o_wsale_product_attribute { display: none !important; }
#product_detail_main .text-muted[data-oe-field] { display: none !important; }
#product_attributes_simple { display: none !important; }
#product_details .js_product > div[itemprop="description"] { display: none !important; }

/* Hide variant attribute labels (keep functional for add-to-cart) */
#product_details .js_add_cart_variants {
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Keep right column flex layout */
#product_details {
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
}

#product_detail_main { overflow: visible !important; }

/* ==========================================================================
   PDP MOCKUP ALIGNMENT — Brand link, ref, badges overlay, actions
   ========================================================================== */

/* Brand link above title (from sv-detail-attrs) */
.sv-detail-attrs {
    margin-bottom: 4px !important;
    margin-top: 0 !important;
}

/* Product title: match mockup sizing */
#product_detail h1 {
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
}

/* Breadcrumb: lighter */
.breadcrumb {
    font-size: 12px !important;
    padding: 10px 0 !important;
    margin-bottom: 0 !important;
    color: var(--gray-500, #868E96) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/" !important;
    color: var(--gray-400, #ADB5BD) !important;
}

/* Stock indicator: tighter to title */
.sv-stock-indicator {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

/* Qty selector: match mockup (border, larger) */
#product_details .css_quantity {
    border: 2px solid var(--gray-200, #E9ECEF) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

#product_details .css_quantity input.quantity {
    border: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    width: 48px !important;
    text-align: center !important;
}

#product_details .css_quantity .btn {
    background: var(--gray-50, #F8F9FA) !important;
    border: none !important;
    color: var(--gray-700, #495057) !important;
    padding: 8px 12px !important;
}

#product_details .css_quantity .btn:hover {
    background: var(--gray-200, #E9ECEF) !important;
}

/* Wishlist button: cleaner */
#product_details .o_add_wishlist_dyn {
    font-size: 13px !important;
    color: var(--gray-600, #6C757D) !important;
    padding: 8px 0 !important;
}

/* Shipping box: match mockup exactly */
.sv-shipping-box {
    border: 1px solid var(--gray-200, #E9ECEF) !important;
    border-radius: 12px !important;
    margin-top: 12px !important;
}

/* Compatibles section: match mockup spacing */
.sv-compat-section {
    margin-top: 0 !important;
}

/* Compat cards: bigger images */
.sv-compat-card-v2__img {
    height: 150px !important;
    padding: 20px !important;
}

/* [DEAD] Tab typography — unified in section 5 */

/* ==========================================================================
   B2B HINTS — Show price + upgrade CTA
   ========================================================================== */

.sv-b2b-hint {
    margin-top: 4px;
}

.sv-b2b-hint__link {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-verde-energia, #43B800) !important;
    text-decoration: none !important;
}

.sv-b2b-hint__link:hover {
    text-decoration: underline !important;
}

.sv-b2b-upgrade {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1.5px solid #bbf7d0;
    border-radius: 10px;
    padding: 12px 16px;
}

.sv-b2b-upgrade__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sv-b2b-upgrade__text {
    font-size: 13px;
    color: #374151;
}

.sv-b2b-upgrade__text strong {
    color: #0B2B5B;
}

.sv-b2b-upgrade__btn {
    font-size: 12px;
    font-weight: 700;
    color: #43B800 !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.sv-b2b-upgrade__btn:hover {
    text-decoration: underline !important;
}

/* ==========================================================================
   PRICE DISPLAY — Match mockup styling
   ========================================================================== */

#product_details .product_price .oe_price .oe_currency_value,
#product_details .product_price .oe_price {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: var(--color-azul-noche, #0B2B5B) !important;
    font-family: 'Manrope', system-ui, sans-serif !important;
}

#product_details .product_price {
    margin-bottom: 8px !important;
}

/* "+ IVA" note after price */
#product_details .product_price::after {
    content: " + IVA";
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-500, #868E96);
    font-family: 'Inter', sans-serif;
}

/* Old price strikethrough */
#product_details .product_price .text-decoration-line-through {
    font-size: 1rem !important;
    color: var(--gray-400, #ADB5BD) !important;
}

/* ==========================================================================
   PDP MOCKUP v2 — Brand, Ref, Price, Badges, Also-bought
   ========================================================================== */

/* Brand link above title */
.sv-pdp-brand {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500, #868E96);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Ref + EAN below title */
.sv-pdp-ref {
    font-size: 13px;
    color: var(--gray-400, #ADB5BD);
    margin-bottom: 12px;
}

.sv-pdp-ref strong {
    color: var(--gray-600, #6C757D);
    font-weight: 600;
}

/* Price discount line */
.sv-pdp-discount {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -4px;
    margin-bottom: 4px;
}

.sv-pdp-price-old {
    font-size: 16px;
    color: var(--gray-400, #ADB5BD);
    text-decoration: line-through;
}

.sv-pdp-discount-badge {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--color-error, #E53935);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Price per Wp */
.sv-pdp-price-wp {
    font-size: 12px;
    color: var(--gray-500, #868E96);
    margin-bottom: 8px;
}

/* Badges overlay on product image */
.sv-pdp-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    display: flex;
    gap: 6px;
}

.sv-badge--sale {
    background: var(--color-error, #E53935) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 5px !important;
}

/* Also bought section */
.sv-also-bought {
    border-top: 1px solid var(--gray-200, #E9ECEF);
    padding: 40px 0 48px;
}

.sv-also-bought__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-azul-noche, #0B2B5B);
    margin-bottom: 24px;
}

.sv-also-bought__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 991px) {
    .sv-also-bought__grid { grid-template-columns: repeat(2, 1fr); }
}

.sv-also-bought__card {
    background: #fff;
    border: 1px solid var(--gray-200, #E9ECEF);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.sv-also-bought__card:hover {
    box-shadow: 0 4px 16px rgba(11, 43, 91, 0.08);
    transform: translateY(-3px);
}

.sv-also-bought__img {
    display: block;
    height: 140px;
    background: var(--gray-50, #F8F9FA);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.sv-also-bought__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.sv-also-bought__info {
    padding: 14px;
}

.sv-also-bought__brand {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400, #ADB5BD);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sv-also-bought__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800, #343A40) !important;
    text-decoration: none !important;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 4px 0 8px;
}

.sv-also-bought__price {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-azul-noche, #0B2B5B);
}

.sv-also-bought__price span {
    font-size: 11px;
    font-weight: 400;
    color: var(--gray-400, #ADB5BD);
}

/* Add-to-cart button: green, large, match mockup */
#product_details #add_to_cart_wrap .btn-primary,
#product_details .o_we_buy_btn {
    background: var(--color-verde-energia, #43B800) !important;
    border-color: var(--color-verde-energia, #43B800) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 12px 24px !important;
    transition: all 0.2s !important;
}

#product_details #add_to_cart_wrap .btn-primary:hover {
    background: var(--color-verde-energia-hover, #3AA300) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(67, 184, 0, 0.3) !important;
}

/* ==========================================================================
   PDP DEFINITIVE — Match mockup-producto.html EXACTLY
   Ultra-specific selectors to override everything
   ========================================================================== */

/* === PRICE: 36px bold navy === */
.oe_website_sale #product_detail #product_details .product_price,
.oe_website_sale #product_detail .product_price {
    margin-bottom: 4px !important;
    display: block !important;
}

.oe_website_sale #product_detail #product_details .product_price .oe_price,
.oe_website_sale #product_detail .oe_price {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #0B2B5B !important;
    font-family: 'Manrope', system-ui, sans-serif !important;
    line-height: 1.1 !important;
}

.oe_website_sale #product_detail #product_details .product_price .oe_price .oe_currency_value {
    font-size: 36px !important;
    font-weight: 800 !important;
}

/* Remove the ::after "+ IVA" we added before (replace with proper element) */
.oe_website_sale #product_detail #product_details .product_price::after {
    content: none !important;
}

/* === DISCOUNT: old price + badge === */
.oe_website_sale #product_detail .sv-pdp-discount {
    display: flex !important;
    align-items: baseline !important;
    gap: 12px !important;
    margin-bottom: 4px !important;
}

.oe_website_sale #product_detail .sv-pdp-price-old {
    font-size: 18px !important;
    color: #ADB5BD !important;
    text-decoration: line-through !important;
}

.oe_website_sale #product_detail .sv-pdp-discount-badge {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: #E53935 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
}

/* === PRICE/WP === */
.oe_website_sale #product_detail .sv-pdp-price-wp {
    font-size: 13px !important;
    color: #868E96 !important;
    margin-bottom: 12px !important;
}

/* === BRAND === */
.oe_website_sale #product_detail .sv-pdp-brand {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #868E96 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 4px !important;
}

/* === REF + EAN === */
.oe_website_sale #product_detail .sv-pdp-ref {
    font-size: 13px !important;
    color: #ADB5BD !important;
    margin-bottom: 16px !important;
}

.oe_website_sale #product_detail .sv-pdp-ref strong {
    color: #6C757D !important;
}

/* === TITLE === */
.oe_website_sale #product_detail h1[itemprop="name"] {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #0B2B5B !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    font-family: 'Inter', system-ui, sans-serif !important;
}

/* === ORDER: Brand → Title → Ref → Price → Discount → €/Wp → Stock → Volume → Qty+Add === */
/* Ensure correct visual order in flex column */
.oe_website_sale #product_detail #product_details {
    display: flex !important;
    flex-direction: column !important;
}

.oe_website_sale #product_detail .sv-pdp-brand { order: 1 !important; }
.oe_website_sale #product_detail h1[itemprop="name"] { order: 2 !important; }
.oe_website_sale #product_detail .sv-pdp-ref { order: 3 !important; }
.oe_website_sale #product_detail .product_price { order: 5 !important; }
.oe_website_sale #product_detail .sv-pdp-discount { order: 6 !important; }
.oe_website_sale #product_detail .sv-pdp-price-wp { order: 7 !important; }
.oe_website_sale #product_detail .sv-b2b-upgrade { order: 8 !important; }
.oe_website_sale #product_detail .sv-stock-indicator { order: 10 !important; }
.oe_website_sale #product_detail .sv-volume-pricing { order: 11 !important; }
.oe_website_sale #product_detail #o_wsale_cta_wrapper { order: 12 !important; }
.oe_website_sale #product_detail #add_to_cart_wrap { order: 12 !important; }
.oe_website_sale #product_detail .css_quantity { order: 12 !important; }
.oe_website_sale #product_detail .o_add_wishlist_dyn { order: 13 !important; }
.oe_website_sale #product_detail .sv-shipping-box { order: 15 !important; }
.oe_website_sale #product_detail .sv-detail-attrs { order: 16 !important; }
.oe_website_sale #product_detail .sv-product-tabs { order: 20 !important; }

/* Hide Odoo elements we don't want */
.oe_website_sale #product_detail #product_details .oe_structure:not(.sv-product-tabs) { display: none !important; }
.oe_website_sale #product_detail #product_details > div[itemprop="description"] { display: none !important; }
.oe_website_sale #product_detail #product_attributes_simple { display: none !important; }
.oe_website_sale #product_detail .js_add_cart_variants { height: 0 !important; overflow: hidden !important; margin: 0 !important; padding: 0 !important; }

/* === ADD-TO-CART BUTTON: GREEN, LARGE === */
.oe_website_sale #product_detail #add_to_cart_wrap .btn,
.oe_website_sale #product_detail #add_to_cart_wrap .a-submit,
.oe_website_sale #product_detail .js_check_product {
    background: #43B800 !important;
    border-color: #43B800 !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 12px 24px !important;
    flex: 1 !important;
}

.oe_website_sale #product_detail #add_to_cart_wrap .btn:hover,
.oe_website_sale #product_detail .js_check_product:hover {
    background: #3AA300 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(67,184,0,0.3) !important;
}

/* CTA wrapper: flex row like mockup */
.oe_website_sale #product_detail #o_wsale_cta_wrapper {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}

/* Qty selector styling */
.oe_website_sale #product_detail .css_quantity {
    border: 2px solid #E9ECEF !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
}

.oe_website_sale #product_detail .css_quantity input.quantity {
    width: 48px !important;
    height: 44px !important;
    border: none !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.oe_website_sale #product_detail .css_quantity .btn-link {
    width: 40px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #F8F9FA !important;
    border: none !important;
    color: #495057 !important;
    font-size: 18px !important;
    text-decoration: none !important;
}

/* === STOCK INDICATOR: match mockup === */
.oe_website_sale #product_detail .sv-stock-indicator {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 16px !important;
}

/* === VOLUME PRICING: match mockup === */
.oe_website_sale #product_detail .sv-volume-pricing {
    border: 1px solid #E9ECEF !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 16px !important;
}

.oe_website_sale #product_detail .sv-volume-pricing__header {
    background: #E7F5FF !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0B2B5B !important;
    border-bottom: 1px solid #E9ECEF !important;
}

.oe_website_sale #product_detail .sv-volume-tiers {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
}

.oe_website_sale #product_detail .sv-volume-tier {
    padding: 12px 10px !important;
    text-align: center !important;
    border-right: 1px solid #F1F3F5 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.oe_website_sale #product_detail .sv-volume-tier:last-child {
    border-right: none !important;
}

.oe_website_sale #product_detail .sv-volume-tier.active {
    background: #E8F7E0 !important;
    box-shadow: inset 0 -3px 0 #43B800 !important;
}

.oe_website_sale #product_detail .sv-volume-tier__qty {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #868E96 !important;
    text-transform: uppercase !important;
    margin-bottom: 4px !important;
}

.oe_website_sale #product_detail .sv-volume-tier__price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0B2B5B !important;
}

.oe_website_sale #product_detail .sv-volume-tier__save {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #43B800 !important;
}

/* === SHIPPING BOX: match mockup === */
.oe_website_sale #product_detail .sv-shipping-box {
    border: 1px solid #E9ECEF !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-top: 8px !important;
}

.oe_website_sale #product_detail .sv-shipping-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid #F1F3F5 !important;
    font-size: 13px !important;
}

.oe_website_sale #product_detail .sv-shipping-row:last-child { border-bottom: none !important; }
.oe_website_sale #product_detail .sv-shipping-icon { width: 32px; height: 32px; background: #F8F9FA; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.oe_website_sale #product_detail .sv-shipping-row strong { font-size: 13px; color: #343A40; display: block; }
.oe_website_sale #product_detail .sv-shipping-row span { font-size: 12px; color: #868E96; }
.oe_website_sale #product_detail .sv-shipping-free { color: #43B800 !important; font-weight: 600 !important; margin-left: auto !important; white-space: nowrap !important; }

/* Shipping: "Sale hoy" highlight */
.sv-shipping-highlight {
    color: #43B800 !important;
}

/* Shipping: Call button */
.sv-shipping-call {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 6px 14px !important;
    background: #43B800 !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    margin-left: auto !important;
    white-space: nowrap !important;
    transition: background 0.2s !important;
    flex-shrink: 0 !important;
}

.sv-shipping-call:hover {
    background: #3AA300 !important;
    color: #fff !important;
}

.sv-shipping-row--cta {
    background: #F8F9FA !important;
}

/* Hide price-related elements for public (B2B only visible) */
.sv-login-required-box ~ .sv-pdp-discount,
.sv-login-required-box ~ .sv-pdp-price-wp,
.sv-login-required-box ~ .sv-volume-pricing {
    display: none !important;
}

/* ==========================================================================
   PRODUCT GALLERY — Multi-image carousel
   ========================================================================== */

.sv-gallery {
    position: relative;
}

.sv-gallery__main {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.sv-gallery__main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease;
}

.sv-gallery__main-img.sv-gallery--fading {
    opacity: 0.3;
}

.sv-gallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: thin;
}

.sv-gallery__thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border: 2px solid var(--gray-200, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    padding: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sv-gallery__thumb:hover {
    border-color: #43B800;
}

.sv-gallery__thumb--active {
    border-color: #0B2B5B;
    box-shadow: 0 0 0 2px rgba(11, 43, 91, 0.15);
}

.sv-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Tabs badge for document count */
.sv-tabs__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #0B2B5B;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}

/* ==========================================================================
   DOCUMENT CARDS — Typed icons + professional layout
   ========================================================================== */

.sv-docs__grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sv-doc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 10px;
    background: #fff;
    text-decoration: none !important;
    color: #1E252B;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.sv-doc-card:hover {
    border-color: #43B800;
    box-shadow: 0 4px 16px rgba(67, 184, 0, 0.10);
    transform: translateY(-1px);
    color: #1E252B;
}

.sv-doc-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon colors by document type */
.sv-doc-card--datasheet .sv-doc-card__icon {
    background: #EBF5FF;
    color: #0B2B5B;
}

.sv-doc-card--manual .sv-doc-card__icon {
    background: #F0FDF4;
    color: #16a34a;
}

.sv-doc-card--certificate .sv-doc-card__icon {
    background: #FFF7ED;
    color: #ea580c;
}

.sv-doc-card--safety .sv-doc-card__icon {
    background: #FEF2F2;
    color: #dc2626;
}

.sv-doc-card--document .sv-doc-card__icon {
    background: #F3F4F6;
    color: #6b7280;
}

.sv-doc-card__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sv-doc-card__type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sv-doc-card--datasheet .sv-doc-card__type { color: #0B2B5B; }
.sv-doc-card--manual .sv-doc-card__type { color: #16a34a; }
.sv-doc-card--certificate .sv-doc-card__type { color: #ea580c; }
.sv-doc-card--safety .sv-doc-card__type { color: #dc2626; }
.sv-doc-card--document .sv-doc-card__type { color: #6b7280; }

.sv-doc-card__name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sv-doc-card__meta {
    font-size: 12px;
    color: #9ca3af;
}

.sv-doc-card__action {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: background 0.2s ease, color 0.2s ease;
}

.sv-doc-card:hover .sv-doc-card__action {
    background: #43B800;
    color: #fff;
}

@media (max-width: 768px) {
    .sv-doc-card {
        padding: 12px 14px;
        gap: 12px;
    }
    .sv-doc-card__icon {
        width: 40px;
        height: 40px;
    }
    .sv-doc-card__icon svg {
        width: 22px;
        height: 22px;
    }
    .sv-doc-card__name {
        font-size: 13px;
    }
}

/* Legacy download card (keep for backwards compat) */
.sv-download-size {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* Responsive gallery */
@media (max-width: 768px) {
    .sv-gallery__main {
        aspect-ratio: 4 / 3;
        border-radius: 8px;
    }
    .sv-gallery__thumb {
        width: 56px;
        height: 56px;
    }
}
