/* /assets/css/style.css - Adaptación estilo Mercado Libre / Autopartes Pro */
:root {
    --color-primary: #e60000; /* Rojo branding */
    --color-secondary: #fff159; /* Amarillo MELI */
    --color-action: #3483fa; /* Azul botones MELI */
    --color-action-hover: #2968c8;
    --color-bg: #ebebeb; /* Fondo gris claro */
    --color-bg-card: #ffffff;
    --color-text: #333333;
    --color-text-muted: #999999;
    --color-success: #00a650;
    --color-danger: #e60000;
    
    --font-title: 'Roboto Flex', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    --border-radius: 4px;
    --box-shadow: 0 1px 2px 0 rgba(0,0,0,.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.35;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.header-top {
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}

.header-top__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px var(--spacing-md);
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-title);
    font-weight: 900;
    font-size: 1.4rem;
    color: #111;
}

.brand span {
    color: var(--color-primary);
    margin-left: 4px;
}

.search-bar {
    display: flex;
    flex-grow: 1;
    max-width: 600px;
    margin: 0 var(--spacing-lg);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.1);
    border-radius: 2px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 2px 0 0 2px;
}

.search-bar button {
    background-color: var(--color-action);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    border-radius: 0 2px 2px 0;
    font-weight: bold;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.action-link {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sub Nav */
.header-nav {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 0;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
    padding: 2px var(--spacing-md);
    white-space: nowrap;
    scrollbar-width: none;
}
.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background-color: #f1f5f9;
    color: #334155;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.nav-chip:hover, .nav-chip.active {
    background-color: var(--color-action);
    color: #ffffff;
    border-color: var(--color-action);
}

/* Hero Banner */
.hero {
    background-color: #1a1a1a;
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero__inner {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero__title {
    font-family: var(--font-title);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

.hero__title span {
    color: var(--color-primary);
}

.hero__desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
}

/* Vehicle Selector */
.vehicle-selector {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-top: -30px;
    position: relative;
    z-index: 10;
    box-shadow: var(--box-shadow);
}

.vehicle-selector__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.vehicle-selector__header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.selector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: var(--spacing-md);
    align-items: end;
}

.selector-field label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 4px;
}

.selector-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

/* Section Titles */
.section-title {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 300;
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title b {
    font-weight: 600;
}

/* Product Grid (4 Columns Layout) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Product Cards Redesign - Autopartes Corsa Premium (Compact Vertical Spacing) */
/* Product Cards Redesign - Autopartes Corsa Premium (45%-50% Image Area, Overlays, Clean Spacing) */
.product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    position: relative;
    padding: 0;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px -4px rgba(0, 0, 0, 0.09), 0 3px 6px -2px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

/* Image Container (Aspect-Ratio 1:1, Edge-to-Edge, 45-50% Card Height) */
.product-card__img-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    margin-bottom: 0;
}

.product-card__image-container,
.product-card__img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;          /* Fuerza caja cuadrada uniforme */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;    /* Fondo uniforme */
    overflow: hidden;
    border-radius: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom: 1px solid #f1f5f9;
}

.product-card__image-container img,
.product-card__img-container img,
.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;          /* Escala la foto proporcionalmente sin recortar */
    padding: 12px;                /* Relleno directo para un encuadre pulido */
    box-sizing: border-box;
    transition: transform 0.25s ease;
}

.product-card:hover .product-card__image-container img,
.product-card:hover .product-card__img-container img,
.product-card:hover .product-card__img {
    transform: scale(1.06);
}

/* Overlays on Image */
.badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d90429;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 0;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.product-card__wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #f1f5f9;
    color: #64748b;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: color 0.2s, background 0.2s, transform 0.2s;
}

.product-card__wishlist:hover {
    color: #ef4444;
    background: #ffffff;
    transform: scale(1.1);
}

/* Product Info Section (Padded 14px-16px) */
.product-card__info {
    padding: 14px 14px 16px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card__sku {
    font-size: 0.72rem;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.product-card__title-link {
    text-decoration: none;
    color: inherit;
}

.product-card__title {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
    transition: color 0.15s ease;
}

.product-card:hover .product-card__title {
    color: #1e60d5;
}

/* Compatibility Badge / Text */
.product-card__compatibility {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 6px 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.3;
}

.product-card__compatibility-text {
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__compatibility-text strong {
    color: #1e293b;
    font-weight: 700;
}

/* Price Section */
.product-card__price-section {
    margin-bottom: 10px;
}

.product-card__price-old {
    font-size: 0.75rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
    margin-bottom: 2px;
}

.product-card__price {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
    line-height: 1;
}

/* Footer & Button CTA Full-Width in Multi-Column Grid */
.product-card__footer-row {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.product-card__form {
    margin-top: 0;
    width: 100%;
    display: block;
}

.btn-add {
    background-color: #1e60d5;
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 14px;
    min-height: 40px;
    border-radius: 0;
    border: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(30, 96, 213, 0.2);
}

.btn-add:hover {
    background-color: #1a52b8;
    box-shadow: 0 4px 12px rgba(30, 96, 213, 0.35);
    transform: translateY(-1px);
}

.btn-add:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

/* Footer Refined Style - Autopartes Corsa (Matching Reference Design) */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    color: #444444;
    padding: 50px 0 25px;
    font-size: 0.88rem;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.footer-brand__title {
    font-family: var(--font-title);
    font-weight: 900;
    font-size: 1.3rem;
    color: #111111;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.footer-brand__badge {
    background-color: #e60000;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.footer-brand__desc {
    color: #666666;
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.footer-certified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2b6cb0;
    font-weight: 600;
    font-size: 0.85rem;
}

.footer-section__title {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 800;
    color: #111111;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.footer-section__title::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 14px;
    background-color: #e60000;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #555555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #e60000;
}

.footer-payments__text {
    color: #666666;
    margin-bottom: 16px;
    line-height: 1.4;
    font-size: 0.85rem;
}

.payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-badge {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #333333;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.payment-badge.green {
    color: #00a650;
    border-color: #b7ebc6;
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8rem;
    color: #777777;
}

.footer-bottom__links {
    display: flex;
    gap: 20px;
}

.footer-bottom__links a {
    color: #666666;
    text-decoration: none;
}

.footer-bottom__links a:hover {
    color: #e60000;
}

/* ==========================================================================
   StitchMCP Autopartes Pro Design System - Catalog & Product Detail
   ========================================================================== */

/* Global Top Compatibility Notification Bar */
.top-homologation-bar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
    font-size: 0.82rem;
    color: #4b5563;
}
.top-homologation-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.top-homologation-bar__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #1a1a1e;
    text-transform: uppercase;
    font-size: 0.78rem;
}
.top-homologation-bar__icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #ebf3ff;
    color: #1e60d5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.top-homologation-bar__stock {
    color: #00a650;
    font-weight: 700;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}
.top-homologation-bar__stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00a650;
    display: inline-block;
}

/* Catalog Title & Header Banner */
.catalog-banner {
    padding: 16px 0 24px;
}
.catalog-banner__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}
.catalog-banner__title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 900;
    color: #1a1a1e;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.catalog-banner__subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 4px;
}
.catalog-banner__badges {
    display: flex;
    gap: 8px;
}
.tag-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tag-badge--gray {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
}
.tag-badge--blue {
    background: #ebf3ff;
    border: 1px solid #bfdbfe;
    color: #1e60d5;
}

/* Sticky Header Wrapper */
.sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-bottom: 2px solid var(--color-primary);
}

/* Catalog Layout Grid (20% Sidebar Filters / 80% Main Catalog Grid) */
.catalog-grid-layout {
    display: grid;
    grid-template-columns: 20% 1fr;
    gap: 20px;
    margin-bottom: 50px;
}
@media (max-width: 992px) {
    .catalog-grid-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Filter Column (Sticky Filters) */
.filter-sidebar {
    position: sticky;
    top: 155px;
    align-self: start;
    max-height: calc(100vh - 165px);
    overflow-y: auto;
    padding-right: 4px;
    z-index: 100;
}

.filter-sidebar::-webkit-scrollbar {
    width: 5px;
}
.filter-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.filter-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

/* Sidebar Filter Cards */
.filter-card {
    background: #ffffff;
    border: 1px solid #e2e4e8;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.filter-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f3;
    margin-bottom: 12px;
}
.filter-card__title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #1a1a1e;
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-card__badge-green {
    background: #e6f7ed;
    color: #00a650;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}
.filter-field {
    margin-bottom: 12px;
}
.filter-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #4b5563;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}
.filter-field select, .filter-field input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #f8f9fa;
    font-size: 0.85rem;
    color: #1a1a1e;
    outline: none;
    transition: border 0.15s, background 0.15s;
}
.filter-field select:focus, .filter-field input[type="text"]:focus {
    border-color: #1e60d5;
    background: #ffffff;
}

/* Facet Checkbox Item */
.facet-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.facet-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #333338;
    cursor: pointer;
}
.facet-item input[type="checkbox"] {
    accent-color: #1e60d5;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.facet-item__count {
    font-size: 0.72rem;
    color: #9ca3af;
}

/* Price Range Selector */
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.price-input-box {
    flex: 1;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 4px 8px;
}
.price-input-box span {
    display: block;
    font-size: 0.62rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 700;
}
.price-input-box input {
    width: 100%;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 0.85rem;
    color: #1a1a1e;
    outline: none;
}

/* WhatsApp Technical Assistance Card */
.whatsapp-help-card {
    background: #ffffff;
    border: 1px solid #e2e4e8;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.whatsapp-help-card__header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #d90429;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
}
.whatsapp-help-card__desc {
    font-size: 0.8rem;
    color: #55555c;
    margin: 8px 0;
    line-height: 1.4;
}
.whatsapp-help-card__link {
    color: #1e60d5;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.whatsapp-help-card__link:hover {
    text-decoration: underline;
}

/* Catalog Toolbar */
.catalog-toolbar {
    background: #ffffff;
    border: 1px solid #e2e4e8;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.catalog-toolbar__count {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1e;
    text-transform: uppercase;
}
.catalog-toolbar__count span {
    color: #1e60d5;
}
.catalog-toolbar__controls {
    display: flex;
    align-items: center;
    gap: 12px;
}
.catalog-toolbar__select {
    background: #f8f9fa;
    border: 1px solid #d1d5db;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a1a1e;
    outline: none;
}

/* Active Filter Chips */
.active-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1a1a1e;
}
.chip--green {
    background: #e6f7ed;
    border-color: #a7f3d0;
    color: #00a650;
}
.chip__close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1;
}
.chip__close:hover {
    color: #d90429;
}

/* ==========================================================================
   Product Detail Page Styles (producto.php)
   ========================================================================== */

.detail-layout-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}
@media (max-width: 992px) {
    .detail-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Media Display Frame */
.media-hero-card {
    background: #ffffff;
    border: 1px solid #e2e4e8;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}
.media-hero-card__badge-group {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    z-index: 2;
}
.badge-racing {
    background: #1a1a1e;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.badge-discount-detail {
    background: #d90429;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.media-hero-card__img {
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.media-hero-card:hover .media-hero-card__img {
    transform: scale(1.06);
}
.gallery-thumbs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.thumb-btn {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90px;
    transition: border 0.15s, box-shadow 0.15s;
}
.thumb-btn.active, .thumb-btn:hover {
    border-color: #1e60d5;
    box-shadow: 0 0 0 2px rgba(30, 96, 213, 0.2);
}
.thumb-btn img {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
}
.thumb-btn span {
    font-size: 0.65rem;
    color: #6b7280;
    font-weight: 600;
    margin-top: 4px;
}

/* Traceability Bar */
.traceability-card {
    background: #ffffff;
    border: 1px solid #e2e4e8;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: #4b5563;
}
.traceability-card__codes strong {
    color: #1e60d5;
}

/* Commercial Buy-Box Container */
.buy-box-card {
    background: #ffffff;
    border: 1px solid #e2e4e8;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.buy-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6e6e6;
}
.brand-official-tag {
    background: #d90429;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.buy-box-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}
.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}
.rating-stars {
    color: #ffb800;
    font-size: 1rem;
    letter-spacing: 1px;
}
.oem-sku-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.8rem;
}
.oem-sku-item span {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 700;
}
.oem-sku-item strong {
    font-family: monospace;
    font-size: 0.88rem;
    color: #0f172a;
}

/* Key Specs Box */
.key-specs-card {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 14px;
}
.key-specs-card__title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.specs-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    list-style: none;
    font-size: 0.82rem;
    color: #333333;
}
.specs-checklist li {
    display: flex;
    align-items: center;
    gap: 6px;
}
.specs-checklist li::before {
    content: "✓";
    color: #00a650;
    font-weight: 900;
}

/* Price & Installment Module */
.price-module {
    background: #f8f9fa;
    border: 1px solid #ededed;
    border-radius: 8px;
    padding: 16px;
}
.price-old-line {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: line-through;
}
.price-hero {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.installments-text {
    color: #00a650;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Vehicle Compatibility Box */
.vehicle-fitment-box {
    border: 2px solid rgba(0, 166, 80, 0.3);
    background: #ffffff;
    border-radius: 8px;
    padding: 14px;
}
.vehicle-fitment-box__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.fitment-tag {
    color: #00a650;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}
.vehicle-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    font-size: 0.82rem;
    color: #333338;
}

/* Quantity Selector & Action Buttons */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    background: #f5f5f7;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px;
}
.qty-btn {
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.qty-input {
    width: 48px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 800;
    font-size: 1rem;
    color: #0f172a;
}
.btn-buy-now {
    background: #3483fa;
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    padding: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
    box-shadow: 0 2px 4px rgba(52, 131, 250, 0.2);
}
.btn-buy-now:hover {
    background: #2968c8;
}
.btn-add-cart-outline {
    background: #ffffff;
    color: #3483fa;
    border: 1px solid #3483fa;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}
.btn-add-cart-outline:hover {
    background: #f0f7ff;
}

/* Value Props Row */
.value-props-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
@media (max-width: 992px) {
    .value-props-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .value-props-grid {
        grid-template-columns: 1fr;
    }
}
.value-prop-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 12px;
}
.value-prop-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ebf3ff;
    color: #1e60d5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.value-prop-card__text strong {
    display: block;
    font-size: 0.88rem;
    color: #0f172a;
}
.value-prop-card__text span {
    font-size: 0.78rem;
    color: #6b7280;
}

/* Material Symbols & FontAwesome Industrial Icon Utilities */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 1.15em;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

/* WhatsApp Floating Action Button (FAB) */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background-color: #25D366;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-fab i {
    font-size: 1.5rem;
}

.whatsapp-fab:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
    color: #ffffff !important;
}

@media (max-width: 640px) {
    .whatsapp-fab__label {
        display: none;
    }
    .whatsapp-fab {
        padding: 14px;
        border-radius: 50%;
        bottom: 16px;
        right: 16px;
        box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5);
    }
    .whatsapp-fab i {
        font-size: 1.6rem;
    }
}

.icon-blue { color: #1e60d5; }
.icon-red { color: #d90429; }
.icon-green { color: #00a650; }
.icon-amber { color: #ffb800; }
.icon-slate { color: #64748b; }

/* Pagination Styles */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pagination__btn:hover {
    background: #1e60d5;
    color: #ffffff;
    border-color: #1e60d5;
}
.pagination__pages {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pagination__page:hover {
    border-color: #1e60d5;
    color: #1e60d5;
}
.pagination__page--active {
    background: #1e60d5;
    color: #ffffff !important;
    border-color: #1e60d5;
}
.pagination__dots {
    color: #94a3b8;
    font-weight: 700;
    padding: 0 4px;
}

/* Mobile Optimization - 2 Columns Grid, Mobile Search Bar & Toolbar */
.mobile-sub-toolbar {
    display: none;
}

@media (max-width: 992px) {
    .filter-sidebar {
        display: none;
        position: static;
        max-height: none;
        margin-bottom: 16px;
    }
    .filter-sidebar.is-open {
        display: block !important;
        animation: fadeIn 0.25s ease-out;
    }
    .mobile-sub-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-around;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 10px 0;
        margin-bottom: 14px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .mobile-sub-toolbar__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: none;
        border: none;
        color: #1e60d5;
        font-size: 0.88rem;
        font-weight: 700;
        cursor: pointer;
        width: 48%;
    }
    .mobile-sub-toolbar__divider {
        width: 1px;
        height: 20px;
        background: #e2e8f0;
    }
}

@media (max-width: 768px) {
    .top-homologation-bar,
    .header-nav,
    .catalog-toolbar {
        display: none !important;
    }
    .header-top__inner {
        flex-wrap: wrap;
        padding: 10px 14px;
        gap: 10px;
    }
    .brand {
        font-size: 1.25rem;
    }
    .header-actions {
        gap: 10px;
    }
    .header-actions .action-link span:not(.material-symbols-outlined) {
        display: none;
    }
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-shadow: 0 2px 6px rgba(0,0,0,0.06);
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        overflow: hidden;
    }
    .search-bar input {
        padding: 10px 12px;
        font-size: 0.88rem;
    }
    .search-bar button {
        padding: 0 14px;
        font-size: 0.82rem;
        font-weight: 700;
    }
}

@media (max-width: 640px) {
    .product-card {
        border-radius: 0;
    }
    .product-card__image-container img,
    .product-card__img-container img,
    .product-card__img {
        padding: 6px;
    }
    .badge-discount {
        top: 6px;
        left: 6px;
        font-size: 0.62rem;
        padding: 2px 5px;
        border-radius: 0;
    }
    .product-card__wishlist {
        top: 6px;
        right: 6px;
        width: 26px;
        height: 26px;
        border-radius: 0;
    }
    .product-card__wishlist .material-symbols-outlined {
        font-size: 1rem !important;
    }
    .product-card__info {
        padding: 8px 8px 10px 8px;
    }
    .product-card__sku {
        font-size: 0.62rem;
        margin-bottom: 2px;
    }
    .product-card__title {
        font-size: 0.78rem;
        line-height: 1.25;
        height: 2rem;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .product-card__compatibility {
        padding: 3px 6px;
        margin-bottom: 6px;
        font-size: 0.65rem;
        border-radius: 0;
    }
    .product-card__compatibility-text {
        font-size: 0.65rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .product-card__price-old {
        font-size: 0.68rem;
    }
    .product-card__price {
        font-size: 0.98rem;
    }
    .product-card__footer-row {
        margin-top: auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .product-card__form {
        width: 100%;
    }
    .product-card__form .btn-add {
        padding: 6px 4px;
        font-size: 0.75rem;
        height: 34px;
        border-radius: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .catalog-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Layout View Mode Toggle Buttons */
.view-toggle-group {
    display: flex;
    align-items: center;
    gap: 3px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.view-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.view-toggle-btn .material-symbols-outlined {
    font-size: 1.2rem;
}
.view-toggle-btn:hover {
    color: #1e60d5;
}
.view-toggle-btn.active {
    background: #ffffff;
    color: #1e60d5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* List Mode View (1 Fila estilo Mercado Libre) */
.product-grid--list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.product-grid--list .product-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 0;
}

.product-grid--list .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Left Image Box (Fixed 110px - 120px) */
.product-grid--list .product-card__img-link {
    width: 120px !important;
    min-width: 120px !important;
    height: 120px !important;
    flex-shrink: 0;
    display: block;
}

.product-grid--list .product-card__image-container,
.product-grid--list .product-card__img-container {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 0 !important;
    border-right: 1px solid #f1f5f9 !important;
    border-bottom: none !important;
    background-color: #ffffff;
    position: relative;
}

.product-grid--list .product-card__image-container img,
.product-grid--list .product-card__img-container img,
.product-grid--list .product-card__img {
    padding: 6px !important;
}

.product-grid--list .badge-discount {
    top: 6px;
    left: 6px;
    font-size: 0.62rem;
    padding: 2px 5px;
    border-radius: 0;
}

/* Right Content Box */
.product-grid--list .product-card__info {
    flex: 1;
    min-width: 0;
    padding: 10px 14px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-grid--list .product-card__header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.product-grid--list .product-card__sku {
    font-size: 11px !important;
    color: #64748b !important;
    font-weight: 600;
    margin-bottom: 0 !important;
}

.product-grid--list .product-card__wishlist {
    position: relative;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.product-grid--list .product-card__title {
    font-size: 0.95rem !important;
    font-weight: 700;
    color: #0f172a !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
    height: auto !important;
    max-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Compatibility Box in List Mode - Soft Gray #F1F5F9 with Car Icon */
.product-grid--list .product-card__compatibility {
    background: #f1f5f9 !important;
    border-radius: 0 !important;
    padding: 6px 10px !important;
    margin-bottom: 8px !important;
    font-size: 0.78rem !important;
    color: #334155 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 6px !important;
    border: none !important;
}

.product-grid--list .product-card__compatibility-text {
    white-space: normal !important;
    line-height: 1.35 !important;
    font-size: 0.78rem !important;
    color: #334155 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer Section in List Mode */
.product-grid--list .product-card__footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}

.product-grid--list .product-card__price-section {
    margin-bottom: 0;
}

.product-grid--list .product-card__price-old {
    font-size: 0.72rem !important;
    color: #94a3b8 !important;
}

.product-grid--list .product-card__price {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #1e60d5 !important;
}

.product-grid--list .product-card__form {
    margin-top: 0;
    width: auto !important;
}

.product-grid--list .product-card__form .btn-add {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    height: 34px !important;
    border-radius: 0 !important;
    min-height: 34px !important;
    width: auto !important;
}

@media (max-width: 480px) {
    .product-grid--list .product-card__img-link {
        width: 105px !important;
        min-width: 105px !important;
        height: 105px !important;
    }
    .product-grid--list .product-card__info {
        padding: 8px 10px !important;
    }
    .product-grid--list .product-card__title {
        font-size: 0.85rem !important;
    }
    .product-grid--list .product-card__compatibility {
        padding: 4px 8px !important;
        font-size: 0.72rem !important;
        border-radius: 0 !important;
    }
    .product-grid--list .product-card__price {
        font-size: 1rem !important;
    }
    .product-grid--list .product-card__form .btn-add {
        padding: 4px 8px !important;
        font-size: 0.72rem !important;
        height: 30px !important;
        border-radius: 0 !important;
        width: auto !important;
    }
}

/* Regla universal: sin esquinas redondeadas en todas las cards de productos y sus elementos */
.product-card,
.product-card *,
.product-card::before,
.product-card::after {
    border-radius: 0 !important;
}




