/* ============================================================
   custom-store.css — E-Commerce Autopartes
   Diseño: Minimalista Blue · Estilo Carzone
   Sistema: ActiveIZZO / Laravel
   Versión: 3.0
   Paleta: Azul profundo #1B4FD8 · Fondo #F5F6FA · Blanco #FFF
============================================================ */

/* ─────────────────────────────────────────────────────────
   0. OVERRIDES CRÍTICOS — HEADER/NAV DEL SISTEMA AIZ
   Estos !important sobreescriben los style="" inline del blade
───────────────────────────────────────────────────────── */

/* Top bar (idioma/moneda) */
.top-navbar,
.top-navbar[style],
.top-background-color-visibility,
.top-background-color-visibility[style] {
    background-color: #f8faff !important;
    border-bottom: 1px solid #e5e7eb !important;
}
.top-navbar a,
.top-text-color-visibility,
.top-text-color-visibility[style] {
    color: #6b7280 !important;
}

/* Header medio (logo + búsqueda) */
header.middle-background-color-visibility,
header.middle-background-color-visibility[style],
.middle-background-color-visibility {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(27, 79, 216, 0.06) !important;
}
.middle-text-color-visibility,
.middle-text-color-visibility[style] {
    color: #1f2937 !important;
}

/* Barra inferior (categorías/nav) */
.bottom-background-color-visibility,
.bottom-background-color-visibility[style],
.aiz-bottom-header {
    background-color: #1b4fd8 !important;
}
.bottom-text-color-visibility,
.bottom-text-color-visibility[style] {
    color: #ffffff !important;
}

/* Links de la nav inferior — texto blanco */
.bottom-background-color-visibility a,
.aiz-bottom-header a {
    color: #ffffff !important;
}
.bottom-background-color-visibility a:hover,
.aiz-bottom-header a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Carrito badge en nav inferior */
.bottom-background-color-visibility .nav-cart-btn,
.bottom-background-color-visibility .text-primary {
    color: #ffffff !important;
}

/* Logo del sitio — forzar color azul oscuro */
.site-logo img {
    max-height: 44px;
}
.navbar-brand img {
    max-height: 44px;
}

/* Botones flotantes — quitar rojo, usar azul */
.aiz-floating-buttons .btn,
#aiz-floating-buttons .btn {
    background-color: #1b4fd8 !important;
    border-color: #1b4fd8 !important;
    box-shadow: 0 4px 14px rgba(27, 79, 216, 0.35) !important;
}
#aiz-floating-buttons .btn:hover {
    background-color: #1640b0 !important;
}

/* Botones circulares flotantes laterales */
.floating-chat-btn,
.aiz-circle-btn {
    background-color: #1b4fd8 !important;
    border-color: #1b4fd8 !important;
}

/* Dropdown de usuario */
.aiz-user-top-menu .nav-item .nav-link:hover,
.aiz-user-top-menu .dropdown-item:hover {
    color: #1b4fd8 !important;
    background: #eef2ff !important;
}

/* Dropdown categorías nav inferior */
.bottom-background-color-visibility .dropdown-menu {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(27, 79, 216, 0.12);
}
.bottom-background-color-visibility .dropdown-item {
    color: #1f2937 !important;
}
.bottom-background-color-visibility .dropdown-item:hover {
    background: #eef2ff !important;
    color: #1b4fd8 !important;
}

/* Eliminar el fa-shopping-bag rojo/naranja */
.nav-cart-count {
    background: #1b4fd8 !important;
}

/* ─────────────────────────────────────────────────────────
   FOOTER — Override del dark hardcodeado (#212129 → azul oscuro)
─────────────────────────────────────────────────────── */
.footer-widget[style*="212129"],
.footer-widget[style*="background-color: #212129"],
section.footer-widget {
    background-color: #0f2a6e !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
.aiz-accordion-panel[style*="212129"],
.aiz-accordion-panel[style*="background-color: #212129"] {
    background-color: #0f2a6e !important;
}
.footer-widget a {
    color: rgba(255, 255, 255, 0.75) !important;
    transition: color 0.2s;
}
.footer-widget a:hover {
    color: #ffffff !important;
}
.footer-widget .text-white,
.footer-widget .text-light {
    color: rgba(255, 255, 255, 0.9) !important;
}
.footer-widget .border-bottom {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ─────────────────────────────────────────────────────────
   1. VARIABLES CSS
───────────────────────────────────────────────────────── */
:root {
    /* Colores de marca */
    --primary: #1b4fd8;
    --primary-hover: #1640b0;
    --primary-soft: #eef2ff;
    --primary-medium: #3b82f6;
    --primary-dark: #0f2a6e;

    /* Alias semánticos de autopartes */
    --ap-blue: #1b4fd8;
    --ap-blue-hover: #1640b0;
    --ap-blue-soft: #eef2ff;
    --ap-blue-medium: #3b82f6;
    --ap-dark: #0f2a6e;
    --ap-gray: #6b7280;
    --ap-border: #e5e7eb;
    --ap-bg: #f5f6fa;
    --ap-white: #ffffff;
    --ap-text: #1f2937;
    --ap-text-light: #374151;

    /* Espaciados y formas */
    --ap-radius: 14px;
    --ap-radius-md: 10px;
    --ap-radius-sm: 8px;
    --ap-radius-xs: 6px;
    --ap-radius-pill: 50px;

    /* Sombras */
    --ap-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --ap-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --ap-shadow-hover: 0 8px 24px rgba(27, 79, 216, 0.12);
    --ap-shadow-lg: 0 16px 40px rgba(27, 79, 216, 0.18);

    /* Transición estándar */
    --ap-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

    /* Colores de estado */
    --ap-success: #10b981;
    --ap-warning: #f59e0b;
    --ap-danger: #ef4444;
    --ap-info: #06b6d4;

    /* Legados (compatibilidad con sistema AIZ) */
    --store-radius: var(--ap-radius);
    --store-radius-sm: var(--ap-radius-sm);
    --store-shadow: var(--ap-shadow);
    --store-shadow-md: var(--ap-shadow-md);
    --store-shadow-lg: var(--ap-shadow-lg);
    --store-border: var(--ap-border);
    --store-bg-light: var(--ap-bg);
    --store-text-muted: var(--ap-gray);
    --store-transition: var(--ap-transition);
    --soft-primary: rgba(27, 79, 216, 0.08);
}

/* ─────────────────────────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--ap-bg);
    font-family:
        "Public Sans",
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        sans-serif;
    color: var(--ap-text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--ap-blue);
    text-decoration: none;
    transition:
        color var(--ap-transition),
        opacity var(--ap-transition);
}

a:hover {
    color: var(--ap-blue-hover);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ─────────────────────────────────────────────────────────
   3. LAYOUT GENERAL
───────────────────────────────────────────────────────── */
.aiz-main-wrapper {
    background: var(--ap-bg);
    min-height: 100vh;
}

section {
    background: transparent;
}

.container-fluid {
    padding-left: 20px;
    padding-right: 20px;
}

/* ─────────────────────────────────────────────────────────
   4. HEADER & NAVBAR
───────────────────────────────────────────────────────── */
.navbar {
    background: var(--ap-white) !important;
    border-bottom: 1px solid var(--ap-border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    padding-top: 0;
    padding-bottom: 0;
}

/* Top header bar */
.aiz-topbar {
    background: var(--primary-dark) !important;
    border-bottom: none;
    font-size: 12px;
}

.aiz-topbar a {
    color: rgba(255, 255, 255, 0.85);
}

.aiz-topbar a:hover {
    color: #ffffff;
}

/* Logo / sitename */
.navbar-brand,
.site-name {
    color: var(--ap-dark) !important;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

/* Nav links */
.navbar .nav-link {
    color: var(--ap-text-light) !important;
    font-weight: 500;
    font-size: 13.5px;
    padding: 0.65rem 0.85rem;
    transition: color var(--ap-transition);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--ap-blue) !important;
}

.navbar .nav-item.active > .nav-link {
    color: var(--ap-blue) !important;
    font-weight: 600;
}

/* Barra de búsqueda en header */
.store-search-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--ap-border);
    border-radius: var(--ap-radius-sm);
    overflow: hidden;
    background: var(--ap-white);
    transition:
        border-color var(--ap-transition),
        box-shadow var(--ap-transition);
}

.store-search-wrap:focus-within {
    border-color: var(--ap-blue);
    box-shadow: 0 0 0 3px rgba(27, 79, 216, 0.12);
}

.store-search-wrap .form-control {
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 13.5px;
    color: var(--ap-text);
    padding: 0.5rem 0.85rem;
    box-shadow: none !important;
    outline: none;
}

.store-search-wrap .form-control::placeholder {
    color: #9ca3af;
}

.store-search-wrap .btn {
    border: none;
    border-radius: 0;
    background: var(--ap-blue);
    color: #ffffff;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    font-size: 13px;
    transition: background var(--ap-transition);
}

.store-search-wrap .btn:hover {
    background: var(--ap-blue-hover);
    color: #ffffff;
}

/* Cart / wishlist badge */
.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--ap-blue);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    border: 2px solid #ffffff;
}

/* ─────────────────────────────────────────────────────────
   5. MENÚ DE CATEGORÍAS (DROPDOWN/FLYOUT)
───────────────────────────────────────────────────────── */
.aiz-category-menu {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-sm);
    overflow: hidden;
    box-shadow: var(--ap-shadow-md);
}

.aiz-category-menu .category-nav-element > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: var(--ap-text);
    font-size: 13.5px;
    font-weight: 500;
    border-bottom: 1px solid var(--ap-border);
    transition:
        background var(--ap-transition),
        color var(--ap-transition);
}

.aiz-category-menu .category-nav-element > a:last-child {
    border-bottom: none;
}

.aiz-category-menu .category-nav-element:hover > a {
    background: var(--ap-blue-soft);
    color: var(--ap-blue);
}

.sub-cat-menu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-sm);
    box-shadow: var(--ap-shadow-hover);
    display: none;
    z-index: 999;
    padding: 6px 0;
}

.category-nav-element:hover .sub-cat-menu {
    display: block;
}

/* ─────────────────────────────────────────────────────────
   6. HERO / SLIDER PRINCIPAL
───────────────────────────────────────────────────────── */
.home-slider {
    background: var(--ap-blue-soft);
    border-radius: var(--ap-radius);
    overflow: hidden;
}

.home-slider .slick-dots {
    bottom: 14px;
}

.home-slider .slick-dots li button::before {
    color: var(--ap-blue);
    font-size: 10px;
    opacity: 0.4;
}

.home-slider .slick-dots li.slick-active button::before {
    color: var(--ap-blue);
    opacity: 1;
}

.home-slider img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* ─────────────────────────────────────────────────────────
   7. SECCIÓN TÍTULO
───────────────────────────────────────────────────────── */
.section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}

.section-title {
    position: relative;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ap-dark);
    padding-left: 14px;
    margin: 0;
    letter-spacing: -0.01em;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--ap-blue);
    border-radius: 3px;
}

.section-viewall {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ap-blue);
    white-space: nowrap;
    text-decoration: none;
    transition:
        color var(--ap-transition),
        opacity var(--ap-transition);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.section-viewall:hover {
    color: var(--ap-blue-hover);
    opacity: 0.9;
    text-decoration: none;
}

/* ─────────────────────────────────────────────────────────
   8. TARJETA DE PRODUCTO (.aiz-card-box)
───────────────────────────────────────────────────────── */
.aiz-card-box {
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    overflow: hidden;
    background: var(--ap-white);
    box-shadow: var(--ap-shadow);
    transition:
        box-shadow var(--ap-transition),
        border-color var(--ap-transition),
        transform var(--ap-transition);
    position: relative;
    height: 100%;
}

.aiz-card-box:hover {
    box-shadow: var(--ap-shadow-hover);
    border-color: rgba(27, 79, 216, 0.35);
    transform: translateY(-2px);
}

/* Imágenes del producto */
.aiz-card-box .product-main-image,
.aiz-card-box .product-hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition:
        opacity var(--ap-transition),
        transform var(--ap-transition);
}

.aiz-card-box:hover .product-main-image {
    opacity: 0;
}

.aiz-card-box .product-hover-image {
    opacity: 0;
}

.aiz-card-box:hover .product-hover-image {
    opacity: 1;
}

/* Botón "Añadir al carrito" */
.aiz-card-box .cart-btn {
    display: block;
    width: 100%;
    padding: 9px 12px;
    background: var(--ap-blue);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: var(--ap-radius-sm);
    cursor: pointer;
    transition:
        background var(--ap-transition),
        transform var(--ap-transition);
    letter-spacing: 0.02em;
}

.aiz-card-box .cart-btn:hover {
    background: var(--ap-blue-hover);
    color: #ffffff;
    transform: none;
}

/* Iconos hover (wishlist, comparar, etc.) */
.aiz-p-hov-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(8px);
    transition:
        opacity var(--ap-transition),
        transform var(--ap-transition);
    z-index: 5;
}

.aiz-card-box:hover .aiz-p-hov-icon {
    opacity: 1;
    transform: translateX(0);
}

.aiz-p-hov-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: 50%;
    color: var(--ap-gray);
    font-size: 14px;
    box-shadow: var(--ap-shadow-md);
    transition:
        background var(--ap-transition),
        border-color var(--ap-transition),
        color var(--ap-transition),
        transform var(--ap-transition);
}

.aiz-p-hov-icon a:hover {
    background: var(--ap-blue);
    border-color: var(--ap-blue);
    color: #ffffff;
    transform: scale(1.08);
}

.aiz-p-hov-icon a:hover svg path,
.aiz-p-hov-icon a:hover svg g path {
    fill: #ffffff;
}

/* ─────────────────────────────────────────────────────────
   9. BADGES DE PRODUCTO
───────────────────────────────────────────────────────── */
.badge-product-discount,
.badge-product-new,
.badge-product-auction {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    line-height: 1.4;
    z-index: 4;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-product-discount {
    background: var(--ap-blue);
    color: #ffffff;
}

.badge-product-new {
    background: var(--ap-success);
    color: #ffffff;
    top: 36px;
}

.badge-product-auction {
    background: var(--ap-warning);
    color: #ffffff;
}

/* Badges generales */
.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: var(--ap-radius-xs);
    letter-spacing: 0.02em;
}

.badge-primary {
    background: var(--ap-blue);
    color: #ffffff;
}

.badge-success {
    background: var(--ap-success);
    color: #ffffff;
}

.badge-warning {
    background: var(--ap-warning);
    color: #ffffff;
}

.badge-danger {
    background: var(--ap-danger);
    color: #ffffff;
}

.badge-soft-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.badge-soft-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.badge-soft-info {
    background: rgba(6, 182, 212, 0.1);
    color: #0891b2;
}

.badge-soft-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: var(--ap-radius-xs);
}

.badge-soft-primary {
    background: var(--ap-blue-soft);
    color: var(--ap-blue);
}

/* ─────────────────────────────────────────────────────────
   10. CATEGORÍAS GRID
───────────────────────────────────────────────────────── */
.cat-grid-item {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-md);
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition:
        box-shadow var(--ap-transition),
        border-color var(--ap-transition),
        transform var(--ap-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ap-text);
}

.cat-grid-item:hover {
    box-shadow: var(--ap-shadow-hover);
    border-color: rgba(27, 79, 216, 0.35);
    transform: translateY(-3px);
    color: var(--ap-blue);
}

.cat-grid-img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--ap-blue-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition:
        background var(--ap-transition),
        transform var(--ap-transition);
}

.cat-grid-item:hover .cat-grid-img {
    background: rgba(27, 79, 216, 0.15);
    transform: scale(1.05);
}

.cat-grid-img img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.cat-grid-name {
    font-size: 11.5px;
    font-weight: 600;
    color: inherit;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
}

/* ─────────────────────────────────────────────────────────
   11. FLASH DEALS
───────────────────────────────────────────────────────── */
.flash-deal-header {
    background: var(--ap-dark);
    padding: 14px 20px;
    border-radius: var(--ap-radius) var(--ap-radius) 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.flash-deal-section {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    overflow: hidden;
    box-shadow: var(--ap-shadow);
}

.flash-deal-section .flash-deal-header {
    border-radius: var(--ap-radius) var(--ap-radius) 0 0;
}

.flash-icon {
    color: var(--ap-warning);
    font-size: 20px;
    flex-shrink: 0;
}

/* Countdown chips */
.aiz-count-down-box .count-down-single {
    background: rgba(27, 79, 216, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--ap-radius-xs);
    padding: 4px 10px;
    text-align: center;
    min-width: 46px;
    color: #ffffff;
}

.aiz-count-down-box .count-down-single span {
    display: block;
    font-size: 10px;
    font-weight: 500;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

/* ─────────────────────────────────────────────────────────
   12. PROMO BANNERS
───────────────────────────────────────────────────────── */
.promo-banner-item {
    border-radius: var(--ap-radius);
    overflow: hidden;
    display: block;
    position: relative;
    box-shadow: var(--ap-shadow);
    transition:
        box-shadow var(--ap-transition),
        transform var(--ap-transition);
}

.promo-banner-item:hover {
    box-shadow: var(--ap-shadow-hover);
    transform: translateY(-2px);
}

.promo-banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.promo-banner-item:hover img {
    transform: scale(1.02);
}

/* ─────────────────────────────────────────────────────────
   13. MARCAS / BRANDS
───────────────────────────────────────────────────────── */
.brand-card {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-md);
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition:
        box-shadow var(--ap-transition),
        border-color var(--ap-transition),
        transform var(--ap-transition);
    text-decoration: none;
    color: var(--ap-text);
}

.brand-card:hover {
    box-shadow: var(--ap-shadow-hover);
    border-color: rgba(27, 79, 216, 0.3);
    transform: translateY(-2px);
    color: var(--ap-blue);
}

.brand-card img {
    max-width: 100px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter var(--ap-transition);
}

.brand-card:hover img {
    filter: grayscale(0%);
}

.brand-card p {
    font-size: 12px;
    font-weight: 600;
    color: var(--ap-gray);
    margin: 0;
    transition: color var(--ap-transition);
}

.brand-card:hover p {
    color: var(--ap-blue);
}

/* ─────────────────────────────────────────────────────────
   14. NEWSLETTER
───────────────────────────────────────────────────────── */
.newsletter-section {
    background: var(--ap-blue);
    /* Gradiente azul muy sutil, mismo color base */
    background-image: linear-gradient(135deg, #1b4fd8 0%, #1640b0 100%);
    border-radius: var(--ap-radius);
    padding: 48px 32px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.newsletter-section::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.newsletter-section h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.newsletter-section p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.newsletter-section .form-control {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border-radius: var(--ap-radius-sm);
    padding: 10px 16px;
    font-size: 14px;
    backdrop-filter: blur(4px);
    transition:
        border-color var(--ap-transition),
        background var(--ap-transition);
}

.newsletter-section .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-section .form-control:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: none;
    color: #ffffff;
    outline: none;
}

.newsletter-section .btn-newsletter {
    background: #ffffff;
    color: var(--ap-blue);
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 26px;
    border: none;
    border-radius: var(--ap-radius-sm);
    cursor: pointer;
    transition:
        background var(--ap-transition),
        color var(--ap-transition),
        box-shadow var(--ap-transition),
        transform var(--ap-transition);
    white-space: nowrap;
}

.newsletter-section .btn-newsletter:hover {
    background: var(--ap-blue-soft);
    color: var(--ap-blue-hover);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* ─────────────────────────────────────────────────────────
   15. FILTROS SIDEBAR
───────────────────────────────────────────────────────── */
.filter-sidebar {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    padding: 20px;
    box-shadow: var(--ap-shadow);
}

.filter-title {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ap-gray);
    margin-bottom: 10px;
}

.filter-section {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--ap-border);
}

.filter-section:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

/* Checkboxes con acento azul */
.filter-section
    .custom-checkbox
    .custom-control-input:checked
    ~ .custom-control-label::before {
    background-color: var(--ap-blue);
    border-color: var(--ap-blue);
}

.filter-section
    .custom-checkbox
    .custom-control-input:focus
    ~ .custom-control-label::before {
    box-shadow: 0 0 0 3px rgba(27, 79, 216, 0.15);
}

/* Range slider azul */
.irs--flat .irs-bar {
    background: var(--ap-blue) !important;
}

.irs--flat .irs-handle > i:first-child {
    background-color: var(--ap-blue) !important;
}

.irs--flat .irs-from,
.irs--flat .irs-to,
.irs--flat .irs-single {
    background-color: var(--ap-blue) !important;
}

.irs--flat .irs-from::before,
.irs--flat .irs-to::before,
.irs--flat .irs-single::before {
    border-top-color: var(--ap-blue) !important;
}

/* ─────────────────────────────────────────────────────────
   16. PAGINACIÓN
───────────────────────────────────────────────────────── */
.aiz-pagination {
    margin-top: 2rem;
}

.aiz-pagination .pagination {
    gap: 4px;
    flex-wrap: wrap;
}

.pagination .page-item.active .page-link {
    background: var(--ap-blue);
    border-color: var(--ap-blue);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(27, 79, 216, 0.3);
}

.pagination .page-link {
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-xs) !important;
    color: var(--ap-text);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    transition:
        background var(--ap-transition),
        border-color var(--ap-transition),
        color var(--ap-transition);
}

.pagination .page-link:hover {
    background: var(--ap-blue-soft);
    border-color: var(--ap-blue);
    color: var(--ap-blue);
}

/* ─────────────────────────────────────────────────────────
   17. BOTONES GENERALES
───────────────────────────────────────────────────────── */
.btn-primary {
    background: var(--ap-blue) !important;
    border-color: var(--ap-blue) !important;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: var(--ap-radius-sm);
    transition:
        background var(--ap-transition),
        border-color var(--ap-transition),
        box-shadow var(--ap-transition),
        transform var(--ap-transition);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--ap-blue-hover) !important;
    border-color: var(--ap-blue-hover) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(27, 79, 216, 0.35) !important;
    transform: translateY(-1px);
}

.btn-outline-primary {
    background: transparent !important;
    border: 1.5px solid var(--ap-blue) !important;
    color: var(--ap-blue) !important;
    font-weight: 600;
    border-radius: var(--ap-radius-sm);
    transition:
        background var(--ap-transition),
        color var(--ap-transition);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--ap-blue) !important;
    color: #ffffff !important;
    border-color: var(--ap-blue) !important;
}

.btn-soft-primary {
    background: var(--ap-blue-soft) !important;
    border: 1px solid rgba(27, 79, 216, 0.15) !important;
    color: var(--ap-blue) !important;
    font-weight: 600;
    border-radius: var(--ap-radius-sm);
    transition:
        background var(--ap-transition),
        border-color var(--ap-transition);
}

.btn-soft-primary:hover,
.btn-soft-primary:focus {
    background: rgba(27, 79, 216, 0.15) !important;
    border-color: rgba(27, 79, 216, 0.3) !important;
    color: var(--ap-blue-hover) !important;
}

/* Pill buttons */
.btn-pill {
    border-radius: var(--ap-radius-pill) !important;
}

/* ─────────────────────────────────────────────────────────
   18. CARRUSEL (SLICK)
───────────────────────────────────────────────────────── */
.aiz-carousel .slick-dots li button::before {
    color: var(--ap-blue);
    opacity: 0.3;
    font-size: 8px;
}

.aiz-carousel .slick-dots li.slick-active button::before {
    color: var(--ap-blue);
    opacity: 1;
}

.aiz-carousel .slick-prev,
.aiz-carousel .slick-next {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    box-shadow: var(--ap-shadow-md);
    z-index: 5;
    transition:
        background var(--ap-transition),
        border-color var(--ap-transition);
}

.aiz-carousel .slick-prev:hover,
.aiz-carousel .slick-next:hover {
    background: var(--ap-blue);
    border-color: var(--ap-blue);
}

.aiz-carousel .slick-prev::before,
.aiz-carousel .slick-next::before {
    color: var(--ap-text);
    font-size: 16px;
}

.aiz-carousel .slick-prev:hover::before,
.aiz-carousel .slick-next:hover::before {
    color: #ffffff;
}

/* ─────────────────────────────────────────────────────────
   19. BREADCRUMB
───────────────────────────────────────────────────────── */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 12.5px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--ap-gray);
    padding: 0 6px;
}

.breadcrumb-item.active {
    color: var(--ap-gray);
}

.breadcrumb-item a {
    color: var(--ap-blue);
    transition: color var(--ap-transition);
}

.breadcrumb-item a:hover {
    color: var(--ap-blue-hover);
}

/* ─────────────────────────────────────────────────────────
   20. RATINGS / ESTRELLAS
───────────────────────────────────────────────────────── */
.rating {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 14px;
}

.rating-sm {
    font-size: 12px;
}

.rating .la-star {
    color: #fbbf24;
}

.rating .la-star-o {
    color: #d1d5db;
}

/* ─────────────────────────────────────────────────────────
   21. DETALLE DE PRODUCTO
───────────────────────────────────────────────────────── */
.product-detail-image-box {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    padding: 24px;
    box-shadow: var(--ap-shadow);
}

.product-detail-price {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--ap-blue);
    letter-spacing: -0.03em;
}

.product-detail-old-price {
    font-size: 1rem;
    color: var(--ap-gray);
    text-decoration: line-through;
    font-weight: 400;
}

/* Chips de especificación para autopartes */
.spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--ap-bg);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-xs);
    padding: 4px 10px;
    font-size: 11.5px;
    color: var(--ap-gray);
    font-weight: 500;
    white-space: nowrap;
}

.spec-chip i,
.spec-chip svg {
    color: var(--ap-blue);
    font-size: 12px;
}

/* ─────────────────────────────────────────────────────────
   22. PANEL DE USUARIO
───────────────────────────────────────────────────────── */
.user-panel-sidebar {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    overflow: hidden;
    box-shadow: var(--ap-shadow);
}

.user-panel-sidebar .nav-link {
    color: var(--ap-text-light);
    padding: 11px 18px;
    font-size: 13.5px;
    font-weight: 500;
    border-bottom: 1px solid var(--ap-border);
    border-radius: 0 !important;
    transition:
        background var(--ap-transition),
        color var(--ap-transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-panel-sidebar .nav-link:last-child {
    border-bottom: none;
}

.user-panel-sidebar .nav-link:hover,
.user-panel-sidebar .nav-link.active {
    background: var(--ap-blue-soft);
    color: var(--ap-blue);
    font-weight: 600;
}

.user-panel-sidebar .nav-link i {
    font-size: 16px;
    color: inherit;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────
   23. CHECKOUT CARD
───────────────────────────────────────────────────────── */
.checkout-card {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    padding: 20px;
    box-shadow: var(--ap-shadow);
}

/* ─────────────────────────────────────────────────────────
   24. MODAL
───────────────────────────────────────────────────────── */
.modal-content {
    border: none;
    border-radius: var(--ap-radius);
    box-shadow: 0 20px 60px rgba(15, 42, 110, 0.18);
}

.modal-header {
    border-bottom: 1px solid var(--ap-border);
    padding: 16px 20px;
}

.modal-footer {
    border-top: 1px solid var(--ap-border);
    padding: 12px 20px;
}

/* ─────────────────────────────────────────────────────────
   25. OFFCANVAS LATERAL
───────────────────────────────────────────────────────── */
.aiz-right-offcanvas-area {
    background: var(--ap-white);
    border-left: 1px solid var(--ap-border);
    border-radius: var(--ap-radius) 0 0 var(--ap-radius);
    box-shadow: -8px 0 32px rgba(15, 42, 110, 0.12);
}

/* ─────────────────────────────────────────────────────────
   26. TOP BANNER
───────────────────────────────────────────────────────── */
.top-banner {
    border-radius: var(--ap-radius);
    overflow: hidden;
}

.sticky-top-bar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: var(--ap-white);
    border-bottom: 1px solid var(--ap-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ─────────────────────────────────────────────────────────
   27. HOVER SCALE IMAGE
───────────────────────────────────────────────────────── */
.hov-scale-img {
    overflow: hidden;
}

.hov-scale-img img {
    transition: transform 0.4s ease;
    display: block;
    width: 100%;
}

.hov-scale-img:hover img {
    transform: scale(1.06);
}

/* ─────────────────────────────────────────────────────────
   28. HOVER SOMBRA / OUTLINE
───────────────────────────────────────────────────────── */
.hov-shadow-out {
    transition: box-shadow var(--ap-transition);
}

.hov-shadow-out:hover {
    box-shadow: var(--ap-shadow-hover);
}

.hov-animate-outline {
    border: 2px solid transparent;
    transition:
        border-color var(--ap-transition),
        box-shadow var(--ap-transition);
}

.hov-animate-outline:hover {
    border-color: var(--ap-blue);
    box-shadow: 0 0 0 3px rgba(27, 79, 216, 0.1);
}

/* ─────────────────────────────────────────────────────────
   29. POSICIONAMIENTO ABSOLUTO (helpers AIZ)
───────────────────────────────────────────────────────── */
.absolute-top-left {
    position: absolute;
    top: 0;
    left: 0;
}

.absolute-top-right {
    position: absolute;
    top: 0;
    right: 0;
}

.absolute-bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
}

.absolute-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
}

.absolute-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ─────────────────────────────────────────────────────────
   30. SKELETON LOADER
───────────────────────────────────────────────────────── */
.skeleton-box {
    background: linear-gradient(90deg, #f0f2f8 25%, #e8eaef 50%, #f0f2f8 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--ap-radius-sm);
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ─────────────────────────────────────────────────────────
   31. PRELOADER
───────────────────────────────────────────────────────── */
.c-preloader {
    position: fixed;
    inset: 0;
    background: var(--ap-white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-preloader .spinner-border {
    color: var(--ap-blue);
}

/* ─────────────────────────────────────────────────────────
   32. FOOTER
───────────────────────────────────────────────────────── */
footer {
    background: var(--ap-dark);
    color: rgba(255, 255, 255, 0.8);
    border-top: none;
}

footer .footer-widget-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 14px;
}

footer .footer-links li {
    margin-bottom: 7px;
    list-style: none;
}

footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    transition: color var(--ap-transition);
    text-decoration: none;
    display: inline-block;
}

footer .footer-links a:hover {
    color: #ffffff;
    padding-left: 3px;
}

/* ─────────────────────────────────────────────────────────
   33. GRID CON COLUMNAS CUSTOM (Row Cols)
───────────────────────────────────────────────────────── */
.row-cols-2 > .col,
.row-cols-2 > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
}

.row-cols-3 > .col,
.row-cols-3 > [class*="col-"] {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
}

.row-cols-4 > .col,
.row-cols-4 > [class*="col-"] {
    flex: 0 0 25%;
    max-width: 25%;
}

/* ─────────────────────────────────────────────────────────
   34. GUTTERS CUSTOM
───────────────────────────────────────────────────────── */
.gutters-5 {
    margin-right: -5px;
    margin-left: -5px;
}

.gutters-5 > .col,
.gutters-5 > [class*="col-"] {
    padding-right: 5px;
    padding-left: 5px;
}

.gutters-10 {
    margin-right: -5px;
    margin-left: -5px;
}

.gutters-10 > .col,
.gutters-10 > [class*="col-"] {
    padding-right: 5px;
    padding-left: 5px;
}

.gutters-16 {
    margin-right: -8px;
    margin-left: -8px;
}

.gutters-16 > .col,
.gutters-16 > [class*="col-"] {
    padding-right: 8px;
    padding-left: 8px;
}

/* ─────────────────────────────────────────────────────────
   35. UTILIDADES DE COLOR
───────────────────────────────────────────────────────── */
.bg-soft-primary {
    background-color: var(--ap-blue-soft) !important;
}

.bg-primary {
    background-color: var(--ap-blue) !important;
}

.bg-dark-blue {
    background-color: var(--ap-dark) !important;
}

.text-primary {
    color: var(--ap-blue) !important;
}

.text-dark-blue {
    color: var(--ap-dark) !important;
}

.text-muted {
    color: var(--ap-gray) !important;
}

.border-primary {
    border-color: var(--ap-blue) !important;
}

/* ─────────────────────────────────────────────────────────
   36. UTILIDADES DE FORMA
───────────────────────────────────────────────────────── */
.rounded-content {
    border-radius: var(--ap-radius-sm) !important;
}

.rounded-pill {
    border-radius: var(--ap-radius-pill) !important;
}

.rounded-12 {
    border-radius: 12px !important;
}

.rounded-14 {
    border-radius: 14px !important;
}

.rounded-16 {
    border-radius: 16px !important;
}

/* ─────────────────────────────────────────────────────────
   37. FONT SIZE UTILITIES (fs-*)
───────────────────────────────────────────────────────── */
.fs-10 {
    font-size: 10px !important;
}
.fs-11 {
    font-size: 11px !important;
}
.fs-12 {
    font-size: 12px !important;
}
.fs-13 {
    font-size: 13px !important;
}
.fs-14 {
    font-size: 14px !important;
}
.fs-15 {
    font-size: 15px !important;
}
.fs-16 {
    font-size: 16px !important;
}
.fs-18 {
    font-size: 18px !important;
}
.fs-20 {
    font-size: 20px !important;
}
.fs-22 {
    font-size: 22px !important;
}
.fs-24 {
    font-size: 24px !important;
}
.fs-28 {
    font-size: 28px !important;
}
.fs-32 {
    font-size: 32px !important;
}
.fs-36 {
    font-size: 36px !important;
}

/* ─────────────────────────────────────────────────────────
   38. FONT WEIGHT UTILITIES (fw-*)
───────────────────────────────────────────────────────── */
.fw-400 {
    font-weight: 400 !important;
}
.fw-500 {
    font-weight: 500 !important;
}
.fw-600 {
    font-weight: 600 !important;
}
.fw-700 {
    font-weight: 700 !important;
}
.fw-800 {
    font-weight: 800 !important;
}
.fw-900 {
    font-weight: 900 !important;
}

/* ─────────────────────────────────────────────────────────
   39. LINE HEIGHT UTILITIES (lh-*)
───────────────────────────────────────────────────────── */
.lh-1 {
    line-height: 1 !important;
}
.lh-1-2 {
    line-height: 1.2 !important;
}
.lh-1-3 {
    line-height: 1.3 !important;
}
.lh-1-4 {
    line-height: 1.4 !important;
}
.lh-1-5 {
    line-height: 1.5 !important;
}
.lh-1-8 {
    line-height: 1.8 !important;
}

/* ─────────────────────────────────────────────────────────
   40. GAP UTILITIES
───────────────────────────────────────────────────────── */
.gap-1 {
    gap: 0.25rem !important;
}
.gap-2 {
    gap: 0.5rem !important;
}
.gap-3 {
    gap: 1rem !important;
}
.gap-4 {
    gap: 1.5rem !important;
}
.gap-5 {
    gap: 2rem !important;
}

/* ─────────────────────────────────────────────────────────
   41. OPACITY UTILITIES
───────────────────────────────────────────────────────── */
.opacity-0 {
    opacity: 0 !important;
}
.opacity-25 {
    opacity: 0.25 !important;
}
.opacity-50 {
    opacity: 0.5 !important;
}
.opacity-60 {
    opacity: 0.6 !important;
}
.opacity-70 {
    opacity: 0.7 !important;
}
.opacity-75 {
    opacity: 0.75 !important;
}
.opacity-80 {
    opacity: 0.8 !important;
}
.opacity-100 {
    opacity: 1 !important;
}

.hov-opacity-100:hover {
    opacity: 1 !important;
}

/* ─────────────────────────────────────────────────────────
   42. HOVER UTILITIES
───────────────────────────────────────────────────────── */
.hov-text-primary:hover {
    color: var(--ap-blue) !important;
}

.hov-bg-light:hover {
    background: var(--ap-bg) !important;
}

.hov-bg-primary:hover {
    background: var(--ap-blue) !important;
    color: #ffffff !important;
}

.hov-border-primary:hover {
    border-color: var(--ap-blue) !important;
}

/* ─────────────────────────────────────────────────────────
   43. TRANSICIÓN
───────────────────────────────────────────────────────── */
.has-transition {
    transition: all var(--ap-transition);
}

/* ─────────────────────────────────────────────────────────
   44. ANIMATE UNDERLINE
───────────────────────────────────────────────────────── */
.animate-underline-primary {
    position: relative;
    display: inline-block;
}

.animate-underline-primary::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--ap-blue);
    transition: width var(--ap-transition);
}

.animate-underline-primary:hover::after {
    width: 100%;
}

.animate-underline-white {
    position: relative;
    display: inline-block;
}

.animate-underline-white::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #ffffff;
    transition: width var(--ap-transition);
}

.animate-underline-white:hover::after {
    width: 100%;
}

/* ─────────────────────────────────────────────────────────
   45. HEIGHT UTILITIES (h-*px)
───────────────────────────────────────────────────────── */
.h-35px {
    height: 35px !important;
}
.h-40px {
    height: 40px !important;
}
.h-48px {
    height: 48px !important;
}
.h-52px {
    height: 52px !important;
}
.h-60px {
    height: 60px !important;
}
.h-70px {
    height: 70px !important;
}
.h-80px {
    height: 80px !important;
}
.h-100px {
    height: 100px !important;
}
.h-120px {
    height: 120px !important;
}
.h-140px {
    height: 140px !important;
}
.h-160px {
    height: 160px !important;
}
.h-180px {
    height: 180px !important;
}
.h-200px {
    height: 200px !important;
}
.h-250px {
    height: 250px !important;
}
.h-300px {
    height: 300px !important;
}
.h-360px {
    height: 360px !important;
}
.h-420px {
    height: 420px !important;
}

/* ─────────────────────────────────────────────────────────
   46. WIDTH UTILITIES (w-*px)
───────────────────────────────────────────────────────── */
.w-35px {
    width: 35px !important;
}
.w-40px {
    width: 40px !important;
}
.w-48px {
    width: 48px !important;
}
.w-60px {
    width: 60px !important;
}
.w-80px {
    width: 80px !important;
}
.w-100px {
    width: 100px !important;
}

/* ─────────────────────────────────────────────────────────
   47. SIZE UTILITIES (size cuadrado)
───────────────────────────────────────────────────────── */
.size-32px {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
}

.size-40px {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
}

.size-48px {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
}

.size-52px {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px;
}

.size-60px {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px;
}

.size-80px {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px;
}

/* ─────────────────────────────────────────────────────────
   48. TEXT TRUNCATE MULTI-LÍNEA
───────────────────────────────────────────────────────── */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─────────────────────────────────────────────────────────
   49. FORMULARIOS GENERALES
───────────────────────────────────────────────────────── */
.form-control {
    border: 1.5px solid var(--ap-border);
    border-radius: var(--ap-radius-sm);
    font-size: 13.5px;
    color: var(--ap-text);
    transition:
        border-color var(--ap-transition),
        box-shadow var(--ap-transition);
    background: var(--ap-white);
}

.form-control:focus {
    border-color: var(--ap-blue);
    box-shadow: 0 0 0 3px rgba(27, 79, 216, 0.12);
    outline: none;
    background: var(--ap-white);
    color: var(--ap-text);
}

.form-control::placeholder {
    color: #9ca3af;
}

.input-group-text {
    background: var(--ap-bg);
    border: 1.5px solid var(--ap-border);
    color: var(--ap-gray);
    font-size: 13px;
}

/* Select2 / Custom Select ajustado */
.select2-container--default .select2-selection--single {
    border: 1.5px solid var(--ap-border) !important;
    border-radius: var(--ap-radius-sm) !important;
    height: 38px !important;
}

.select2-container--default.select2-container--focus
    .select2-selection--single {
    border-color: var(--ap-blue) !important;
    box-shadow: 0 0 0 3px rgba(27, 79, 216, 0.12) !important;
}

.select2-container--default
    .select2-results__option--highlighted[aria-selected] {
    background-color: var(--ap-blue) !important;
}

/* ─────────────────────────────────────────────────────────
   50. TARJETAS GENÉRICAS (card Bootstrap)
───────────────────────────────────────────────────────── */
.card {
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    box-shadow: var(--ap-shadow);
    background: var(--ap-white);
}

.card-header {
    background: var(--ap-white);
    border-bottom: 1px solid var(--ap-border);
    padding: 14px 20px;
    font-weight: 700;
    color: var(--ap-dark);
    border-radius: var(--ap-radius) var(--ap-radius) 0 0 !important;
}

.card-body {
    padding: 20px;
}

.card-footer {
    background: var(--ap-bg);
    border-top: 1px solid var(--ap-border);
    padding: 12px 20px;
    border-radius: 0 0 var(--ap-radius) var(--ap-radius) !important;
}

/* ─────────────────────────────────────────────────────────
   51. TABLE STYLES
───────────────────────────────────────────────────────── */
.table {
    font-size: 13.5px;
    color: var(--ap-text);
}

.table thead th {
    background: var(--ap-bg);
    border-bottom: 2px solid var(--ap-border);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ap-gray);
    padding: 10px 14px;
    white-space: nowrap;
}

.table tbody td {
    border-color: var(--ap-border);
    padding: 11px 14px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: var(--ap-blue-soft);
}

/* ─────────────────────────────────────────────────────────
   52. ALERTS
───────────────────────────────────────────────────────── */
.alert-primary {
    background: var(--ap-blue-soft);
    border-color: rgba(27, 79, 216, 0.2);
    color: var(--ap-blue);
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
    color: #065f46;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
    color: #92400e;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #991b1b;
}

/* ─────────────────────────────────────────────────────────
   53. TOOLTIPS & POPOVERS
───────────────────────────────────────────────────────── */
.tooltip-inner {
    background: var(--ap-dark);
    font-size: 12px;
    border-radius: var(--ap-radius-xs);
    padding: 5px 10px;
}

.bs-tooltip-top .arrow::before,
.bs-tooltip-auto[x-placement^="top"] .arrow::before {
    border-top-color: var(--ap-dark);
}

/* ─────────────────────────────────────────────────────────
   54. DROPDOWN MENUS
───────────────────────────────────────────────────────── */
.dropdown-menu {
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-sm);
    box-shadow: var(--ap-shadow-hover);
    padding: 6px 0;
    font-size: 13.5px;
}

.dropdown-item {
    color: var(--ap-text);
    padding: 8px 16px;
    font-weight: 500;
    transition:
        background var(--ap-transition),
        color var(--ap-transition);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--ap-blue-soft);
    color: var(--ap-blue);
}

.dropdown-item.active,
.dropdown-item:active {
    background: var(--ap-blue);
    color: #ffffff;
}

.dropdown-divider {
    border-color: var(--ap-border);
    margin: 4px 0;
}

/* ─────────────────────────────────────────────────────────
   55. TABS (Bootstrap Nav Tabs)
───────────────────────────────────────────────────────── */
.nav-tabs {
    border-bottom: 2px solid var(--ap-border);
    gap: 4px;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2.5px solid transparent;
    border-radius: 0;
    color: var(--ap-gray);
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 16px;
    margin-bottom: -2px;
    transition:
        color var(--ap-transition),
        border-color var(--ap-transition);
}

.nav-tabs .nav-link:hover {
    color: var(--ap-blue);
    border-bottom-color: rgba(27, 79, 216, 0.3);
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--ap-blue);
    border-bottom-color: var(--ap-blue);
    background: transparent;
    font-weight: 700;
}

/* Pills */
.nav-pills .nav-link {
    border-radius: var(--ap-radius-sm);
    color: var(--ap-text-light);
    font-weight: 500;
    font-size: 13.5px;
    padding: 8px 16px;
    transition:
        background var(--ap-transition),
        color var(--ap-transition);
}

.nav-pills .nav-link:hover {
    background: var(--ap-blue-soft);
    color: var(--ap-blue);
}

.nav-pills .nav-link.active {
    background: var(--ap-blue);
    color: #ffffff;
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────
   56. PROGRESS BAR
───────────────────────────────────────────────────────── */
.progress {
    background: var(--ap-border);
    border-radius: var(--ap-radius-pill);
    height: 6px;
}

.progress-bar {
    background: var(--ap-blue);
    border-radius: var(--ap-radius-pill);
}

/* ─────────────────────────────────────────────────────────
   57. CHIPS / TAGS (filtros, specs, etc.)
───────────────────────────────────────────────────────── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-pill);
    font-size: 12px;
    font-weight: 500;
    color: var(--ap-text-light);
    background: var(--ap-white);
    cursor: pointer;
    transition:
        background var(--ap-transition),
        border-color var(--ap-transition),
        color var(--ap-transition);
    white-space: nowrap;
}

.chip:hover,
.chip.active {
    background: var(--ap-blue-soft);
    border-color: var(--ap-blue);
    color: var(--ap-blue);
}

.chip-sm {
    padding: 2px 8px;
    font-size: 11px;
}

/* ─────────────────────────────────────────────────────────
   58. PRICE TAG
───────────────────────────────────────────────────────── */
.price-current {
    font-weight: 800;
    color: var(--ap-blue);
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.price-old {
    font-weight: 400;
    color: var(--ap-gray);
    text-decoration: line-through;
    font-size: 0.85rem;
}

.price-discount {
    font-weight: 700;
    color: var(--ap-success);
    font-size: 0.8rem;
}

/* ─────────────────────────────────────────────────────────
   59. CANTIDAD / QUANTITY SELECTOR
───────────────────────────────────────────────────────── */
.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--ap-border);
    border-radius: var(--ap-radius-sm);
    overflow: hidden;
}

.qty-selector button {
    background: var(--ap-bg);
    border: none;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ap-text);
    cursor: pointer;
    transition: background var(--ap-transition);
    line-height: 1;
}

.qty-selector button:hover {
    background: var(--ap-blue-soft);
    color: var(--ap-blue);
}

.qty-selector input {
    border: none;
    border-left: 1px solid var(--ap-border);
    border-right: 1px solid var(--ap-border);
    width: 52px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--ap-text);
    padding: 6px 4px;
    outline: none;
    background: var(--ap-white);
}

/* ─────────────────────────────────────────────────────────
   60. IMAGEN DE PRODUCTO (contenedor relativo)
───────────────────────────────────────────────────────── */
.product-image-wrap {
    position: relative;
    overflow: hidden;
    background: var(--ap-bg);
    border-radius: var(--ap-radius-sm) var(--ap-radius-sm) 0 0;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.product-image-wrap:hover img {
    transform: scale(1.05);
}

/* ─────────────────────────────────────────────────────────
   61. SECCIÓN VACÍA (empty state)
───────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--ap-gray);
}

.empty-state svg,
.empty-state i {
    font-size: 48px;
    color: var(--ap-border);
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.empty-state h5 {
    font-weight: 700;
    color: var(--ap-text);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 13.5px;
    color: var(--ap-gray);
    margin-bottom: 20px;
}

/* ─────────────────────────────────────────────────────────
   62. STEPS / WIZARD
───────────────────────────────────────────────────────── */
.steps-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 28px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
}

.step-item::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--ap-border);
    z-index: 0;
}

.step-item:last-child::before {
    display: none;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ap-bg);
    border: 2px solid var(--ap-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--ap-gray);
    position: relative;
    z-index: 1;
    transition:
        background var(--ap-transition),
        border-color var(--ap-transition),
        color var(--ap-transition);
}

.step-item.active .step-circle {
    background: var(--ap-blue);
    border-color: var(--ap-blue);
    color: #ffffff;
}

.step-item.done .step-circle {
    background: var(--ap-success);
    border-color: var(--ap-success);
    color: #ffffff;
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ap-gray);
    text-align: center;
    white-space: nowrap;
}

.step-item.active .step-label {
    color: var(--ap-blue);
}

/* ─────────────────────────────────────────────────────────
   63. RESPONSIVE — Breakpoints
───────────────────────────────────────────────────────── */

/* XS — hasta 575px */
@media (max-width: 575.98px) {
    .newsletter-section {
        padding: 28px 16px;
    }

    .flash-deal-header {
        padding: 12px 14px;
        gap: 8px;
    }

    .aiz-card-box .p-2.p-md-3 {
        padding: 0.5rem !important;
    }

    .section-title {
        font-size: 0.95rem;
    }

    .cat-grid-img {
        width: 46px;
        height: 46px;
    }

    .cat-grid-name {
        font-size: 10.5px;
    }

    .product-detail-price {
        font-size: 1.3rem;
    }

    .newsletter-section h3 {
        font-size: 1.2rem;
    }

    .aiz-count-down-box .count-down-single {
        padding: 3px 7px;
        min-width: 38px;
    }
}

/* SM — hasta 767px */
@media (max-width: 767.98px) {
    .row-cols-sm-3 > .col,
    .row-cols-sm-3 > [class*="col-"] {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .filter-sidebar {
        margin-bottom: 20px;
    }

    .user-panel-sidebar {
        margin-bottom: 20px;
    }
}

/* SM-MD — 768px a 991px */
@media (min-width: 768px) and (max-width: 991.98px) {
    .row-cols-sm-3 > .col,
    .row-cols-sm-3 > [class*="col-"] {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* MD — desde 768px */
@media (min-width: 768px) {
    .h-md-120px {
        height: 120px !important;
    }
    .h-md-140px {
        height: 140px !important;
    }
    .h-md-170px {
        height: 170px !important;
    }
    .h-md-200px {
        height: 200px !important;
    }
    .h-md-315px {
        height: 315px !important;
    }
    .h-md-360px {
        height: 360px !important;
    }
    .h-60px.h-md-80px {
        height: 80px !important;
    }
}

/* LG — desde 992px */
@media (min-width: 992px) {
    .row-cols-lg-4 > .col,
    .row-cols-lg-4 > [class*="col-"] {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .row-cols-lg-8 > .col,
    .row-cols-lg-8 > [class*="col-"] {
        flex: 0 0 12.5%;
        max-width: 12.5%;
    }

    .h-lg-420px {
        height: 420px !important;
    }
    .h-208px.h-lg-315px {
        height: 315px !important;
    }
}

/* XL — desde 1200px */
@media (min-width: 1200px) {
    .row-cols-xl-5 > .col,
    .row-cols-xl-5 > [class*="col-"] {
        flex: 0 0 20%;
        max-width: 20%;
    }

    .row-cols-xl-6 > .col,
    .row-cols-xl-6 > [class*="col-"] {
        flex: 0 0 16.6667%;
        max-width: 16.6667%;
    }
}

/* ─────────────────────────────────────────────────────────
   64. SCROLLBAR CUSTOM (webkit)
───────────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--ap-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--ap-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c4c9d4;
}

/* ─────────────────────────────────────────────────────────
   65. FOCUS VISIBLE (accesibilidad)
───────────────────────────────────────────────────────── */
:focus-visible {
    outline: 2.5px solid var(--ap-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─────────────────────────────────────────────────────────
   66. PRINT
───────────────────────────────────────────────────────── */
@media print {
    .navbar,
    .filter-sidebar,
    .newsletter-section,
    .aiz-right-offcanvas-area {
        display: none !important;
    }

    body {
        background: #ffffff;
        font-size: 12px;
    }

    .aiz-card-box {
        break-inside: avoid;
    }
}

/* ─────────────────────────────────────────────────────────
   67. MICRO-ANIMACIONES EXTRA
───────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse-blue {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(27, 79, 216, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(27, 79, 216, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.4s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.animate-pulse-blue {
    animation: pulse-blue 2s infinite;
}

/* ─────────────────────────────────────────────────────────
   68. DIVIDER
───────────────────────────────────────────────────────── */
.divider {
    border: none;
    border-top: 1px solid var(--ap-border);
    margin: 16px 0;
}

.divider-blue {
    border-top-color: rgba(27, 79, 216, 0.2);
}

/* ─────────────────────────────────────────────────────────
   69. SECCIÓN: TARJETAS DE SPECS AUTOPARTES
───────────────────────────────────────────────────────── */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.spec-card {
    background: var(--ap-bg);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-sm);
    padding: 10px 12px;
    text-align: center;
    transition:
        border-color var(--ap-transition),
        box-shadow var(--ap-transition);
}

.spec-card:hover {
    border-color: rgba(27, 79, 216, 0.3);
    box-shadow: var(--ap-shadow);
}

.spec-card-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ap-gray);
    margin-bottom: 4px;
}

.spec-card-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--ap-dark);
}

/* ─────────────────────────────────────────────────────────
   70. SECCIÓN: COMPATIBILIDAD DE VEHÍCULO
───────────────────────────────────────────────────────── */
.vehicle-compat-bar {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-sm);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    box-shadow: var(--ap-shadow);
    transition: border-color var(--ap-transition);
}

.vehicle-compat-bar:hover {
    border-color: rgba(27, 79, 216, 0.3);
}

.vehicle-compat-bar .compat-icon {
    width: 32px;
    height: 32px;
    background: var(--ap-blue-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ap-blue);
    font-size: 14px;
    flex-shrink: 0;
}

.vehicle-compat-bar .compat-text {
    flex: 1;
    color: var(--ap-text);
    font-weight: 500;
}

.vehicle-compat-bar .compat-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--ap-radius-pill);
}

/* ─────────────────────────────────────────────────────────
   71. MISC — Clases de compatibilidad AIZ extra
───────────────────────────────────────────────────────── */

/* Helpers de z-index */
.z-1 {
    z-index: 1;
}
.z-2 {
    z-index: 2;
}
.z-3 {
    z-index: 3;
}
.z-5 {
    z-index: 5;
}
.z-10 {
    z-index: 10;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer !important;
}
.cursor-default {
    cursor: default !important;
}

/* Sombras directas */
.shadow-sm-blue {
    box-shadow: 0 2px 8px rgba(27, 79, 216, 0.1) !important;
}
.shadow-blue {
    box-shadow: var(--ap-shadow-hover) !important;
}
.shadow-lg-blue {
    box-shadow: var(--ap-shadow-lg) !important;
}
.shadow-none {
    box-shadow: none !important;
}

/* Overflow */
.overflow-x-hidden {
    overflow-x: hidden !important;
}
.overflow-y-auto {
    overflow-y: auto !important;
}

/* Display helpers */
.d-grid {
    display: grid !important;
}
.place-center {
    place-items: center;
    place-content: center;
}

/* Object fit */
.object-contain {
    object-fit: contain !important;
}
.object-cover {
    object-fit: cover !important;
}

/* Aspect ratios */
.ratio-1x1 {
    aspect-ratio: 1 / 1;
}
.ratio-4x3 {
    aspect-ratio: 4 / 3;
}
.ratio-16x9 {
    aspect-ratio: 16 / 9;
}

/* Min heights */
.min-h-screen {
    min-height: 100vh;
}
.min-h-400px {
    min-height: 400px;
}

/* Pointer events */
.pe-none {
    pointer-events: none !important;
}
.pe-auto {
    pointer-events: auto !important;
}

/* User select */
.select-none {
    user-select: none !important;
}

/* White space */
.ws-nowrap {
    white-space: nowrap !important;
}
.ws-normal {
    white-space: normal !important;
}

/* Word break */
.word-break {
    word-break: break-word !important;
}

/* Letter spacing */
.ls-wide {
    letter-spacing: 0.08em !important;
}
.ls-tight {
    letter-spacing: -0.02em !important;
}
.ls-normal {
    letter-spacing: 0 !important;
}

/* ─────────────────────────────────────────────────────────
   FIN — custom-store.css v3.0
   E-Commerce Autopartes · Diseño Minimalista Blue
   © Sistema ActiveIZZO / Laravel
───────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────
   FIX: Dropdown categorías — texto oscuro sobre fondo blanco
   El override del navbar azul estaba haciendo texto blanco
   dentro del dropdown que tiene fondo blanco
───────────────────────────────────────────────────────── */

/* El menú dropdown de categorías tiene fondo blanco, forzar texto oscuro */
.aiz-category-menu,
#click-category-menu,
.hover-category-menu {
    background-color: #ffffff !important;
}

.aiz-category-menu .category-nav-element > a,
.aiz-category-menu .category-nav-element > a .cat-name,
#click-category-menu a,
.hover-category-menu a {
    color: #1f2937 !important;
}

.aiz-category-menu .category-nav-element > a:hover,
.aiz-category-menu .category-nav-element > a:hover .cat-name,
#click-category-menu a:hover,
.hover-category-menu a:hover {
    color: var(--ap-blue) !important;
    background-color: var(--ap-blue-soft) !important;
}

/* Sub-categorías también con texto oscuro */
.sub-cat-menu a,
.sub-cat-menu .text-reset {
    color: #1f2937 !important;
}

.sub-cat-menu a:hover {
    color: var(--ap-blue) !important;
}

/* Mobile sidebar categorías */
.aiz-top-menu-sidebar a {
    color: #1f2937 !important;
}

.aiz-top-menu-sidebar a:hover {
    color: var(--ap-blue) !important;
}

/* ─────────────────────────────────────────────────────────
   FIX: Altura fija en tarjetas de producto para que las
   imágenes siempre sean visibles (sobreescribe img-fit)
───────────────────────────────────────────────────────── */
.aiz-card-box .position-relative.overflow-hidden,
.aiz-card-box .position-relative.img-fit.overflow-hidden {
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
    background: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.aiz-card-box .product-main-image,
.aiz-card-box .product-hover-image {
    max-height: 170px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}
