:root {
    --primary: #FF6B00; /* Naranja TuAutoParte */
    --primary-hover: #e65c00;
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    --bg-lighter: #2a2a2a;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --border-color: #333333;
    --success: #00A650;
    --danger: #dc3545;
    --transition: all 0.3s ease;
    --font-main: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TOP BAR */
.top-bar {
    background: #0a0a0a;
    font-size: 0.85rem;
    padding: 8px 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: var(--text-muted);
    margin-right: 15px;
}

.top-bar a:hover {
    color: var(--primary);
}

.top-bar i {
    color: var(--primary);
    margin-right: 5px;
}
/* ── NUEVO HEADER (index.html actual) ── */

/* Contenedor sticky que engloba topbar + header-main + nav */
.head-main {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.head-fix {
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 4px 24px rgba(0,0,0,0.55);
}

/* TOP BAR (new) */
.section-topbar {
    background: #2a73b1; /* Color azul similar al de la imagen */
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.topbar-socials {
    display: flex;
    gap: 15px;
}

.topbar-socials a {
    color: white;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.topbar-socials a:hover {
    opacity: 0.7;
}

/* Slider de anuncios — EFECTO FADE (Exclusividad total) */
.topbar-slider {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 5px;
    z-index: 10;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.slider-arrow:hover {
    opacity: 1;
}

.slider-arrow.prev { left: -30px; }
.slider-arrow.next { right: -30px; }

.topbar-right .admin-link {
    color: white;
    opacity: 0.6;
    font-size: 0.9rem;
}

.topbar-right .admin-link:hover {
    opacity: 1;
}

/* MAIN HEADER ROW: logo | search | utilities */
.header-main-row {
    background: var(--bg-card);
    padding: 14px 0;
}

.header-row-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Logo */
.logo-container {
    flex-shrink: 0;
}

.logo-img {
    height: 60px; /* Reducido 15% (de 70px a 60px) */
    width: auto;
    display: block;
    object-fit: contain;
}

/* Search — Estilo HFI */
.search-box {
    flex: 1;
    max-width: 600px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    padding: 12px 25px;
    padding-right: 50px;
    border: 1px solid #ddd;
    border-radius: 10px; /* Menos redondeado, más rectangular con puntas suaves */
    background: white;
    color: #333;
    font-size: 0.95rem;
    font-family: var(--font-main);
    outline: none;
    transition: var(--transition);
}

.search-box button {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    transition: color 0.2s;
}

.search-box button:hover {
    color: var(--primary);
}

/* BOTONES HEADER */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Utilities (iconos estilo HFI) */
.utilities {
    display: flex;
    gap: 25px;
    align-items: center;
}

.utility-item {
    background: none;
    border: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    padding: 0;
    position: relative;
}

.utility-item i {
    font-size: 1.4rem;
}

.utility-item span {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: none;
}

.utility-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Dropdown Mi Cuenta */
.account-dropdown-wrapper {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 130px;
    width: max-content;
    padding: 5px 0;
    margin-top: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dropdown-menu.active,
.account-dropdown-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.dropdown-menu a {
    display: block;
    padding: 8px 15px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    text-align: center;
}

.dropdown-menu a:hover {
    background: var(--primary); /* Cambiado a naranja para que resalte más, o un color más oscuro si prefiere */
    color: white;
}

.utility-item:hover .utility-link {
    color: var(--primary);
}

/* Carrito especifico con badge */
.cart-icon-wrapper {
    position: relative;
    display: flex;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #2a73b1; /* Azul del topbar */
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Utilities wrapper (cart area) */
.utilities-wrapper {
    flex-shrink: 0;
}

/* NAVBAR CATEGORIAS */
.category-nav {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
}

.nav-links > li > a {
    display: block;
    padding: 15px 0;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
}

.nav-links > li:hover > a, .nav-links > li > a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.dropdown {
    position: relative;
}

.category-nav .dropdown-menu {
    column-count: 2;
    column-gap: 20px;
    min-width: 500px;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 200;
    list-style: none;
    padding: 15px;
}

.category-nav .dropdown-menu li {
    break-inside: avoid;
    display: block;
    margin-bottom: 2px;
}

.category-nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-nav .dropdown-menu li a {
    display: block;
    padding: 6px 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 4px;
    border-bottom: none;
}

.category-nav .dropdown-menu li a:hover {
    background: var(--bg-lighter);
    color: var(--primary);
    padding-left: 15px;
}

/* HERO CAROUSEL */
.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 30px;
}

.carousel-controls {
    position: absolute;
    bottom: 30px;
    right: 50px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* FILTROS */
.filters-section {
    background: #1a1a1a;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.filters {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
    margin-left: 2px;
}

.filters select {
    background: #111;
    color: white;
    border: 1px solid #333;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.filters select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.1);
}

#clearFilters {
    background: transparent;
    color: white;
    border: 1px solid #333;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    height: 45px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    white-space: nowrap;
}

#clearFilters:hover {
    background: #222;
    border-color: #555;
}

/* TITULO SECCION */
.section-title {
    margin: 40px 0 30px;
}

.section-title h3 {
    font-size: 1.3rem;
    font-weight: 400;
    text-transform: uppercase;
    color: white;
    letter-spacing: 0.5px;
}

.title-line {
    height: 4px;
    width: 60px;
    background: var(--primary);
    margin-top: 10px;
    border-radius: 2px;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.producto-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.producto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: var(--primary);
}

.free-shipping-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #00a650;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.producto-imagen {
    height: 220px;
    background: #ffffff; /* Fondo blanco para las imágenes de repuestos */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.producto-imagen img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.producto-card:hover .producto-imagen img {
    transform: scale(1.1);
}

.producto-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.marca-rubro {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.producto-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    flex: 1;
}

.codigo {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-family: monospace;
}

.precio-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.precio {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.product-actions-btns {
    display: flex;
    gap: 8px;
}

.whatsapp-btn-small, .view-btn-small {
    background: var(--bg-lighter);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.whatsapp-btn-small:hover {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.view-btn-small:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* PAGINACION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination button {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pagination button:hover {
    border-color: var(--primary);
}

.pagination button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    overflow-y: auto; /* Permitir scroll si el contenido es largo */
    padding: 20px 0;
}

.modal-content {
    background-color: var(--bg-card);
    margin: 20px auto; /* Reducido margen para dar más espacio */
    width: 95%;
    max-width: 550px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
    animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    background: var(--bg-lighter);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
}

.close {
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--primary);
}

.modal-body {
    padding: 20px;
}

#cartItems {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-total {
    font-size: 1.5rem;
    text-align: right;
    margin-bottom: 20px;
}

.w-100 {
    width: 100%;
}

/* FOOTER */
.footer {
    background: #0a0a0a;
    border-top: 3px solid var(--primary);
    padding-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
    display: block;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col p a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-col p a:hover {
    color: var(--primary);
}

.footer-col i {
    color: var(--primary);
    width: 18px;
    flex-shrink: 0;
    text-align: center;
}

.footer-bottom {
    background: #000;
    padding: 18px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
}

/* MENÚ HAMBURGUESA (oculto en desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    align-items: center;
    gap: 10px;
    font-family: var(--font-main);
    width: 100%;
    text-align: left;
}

.menu-toggle i {
    font-size: 1.2rem;
    color: var(--primary);
}

.nav-container {
    position: relative;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    /* legacy */
    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    /* new header */
    .header-row-inner {
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo-img {
        height: 48px;
    }

    .nav-links {
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 16px;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* top bars */
    .top-bar-inner,
    .topbar-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* new header — stack vertically */
    .header-row-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .logo-container {
        text-align: center;
    }

    .logo-img {
        height: 44px;
        margin: 0 auto;
    }

    .search-box {
        width: 100%;
    }

    .utilities {
        display: flex;
        justify-content: flex-end;
    }

    /* hide cart label on small screens */
    .cart-text {
        display: none;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    /* MENÚ HAMBURGUESA — activación */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg-dark);
        border-top: 1px solid var(--border-color);
        padding: 0 20px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0.25s ease;
        z-index: 300;
    }

    .nav-links.open {
        max-height: 80vh;
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    }

    .nav-links > li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links > li:last-child {
        border-bottom: none;
    }

    .nav-links > li > a {
        padding: 14px 0;
        font-size: 0.9rem;
    }

    /* Dropdowns de categorías en móvil: visibles directamente */
    .category-nav .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: none;
        border-radius: 0;
        min-width: 100%;
        column-count: 1;
        padding: 0 0 0 15px;
        margin: 0;
        display: none;
    }

    .category-nav .dropdown.expanded .dropdown-menu {
        display: block;
    }

    .category-nav .dropdown-menu li a {
        padding: 10px 12px;
        font-size: 0.82rem;
    }
}

/* ESTADO VACÍO (sin filtro activo o sin resultados) */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: var(--text-muted);
    gap: 16px;
    animation: fadeInUp 0.4s ease;
}

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

.empty-state i {
    font-size: 3.5rem;
    color: var(--primary);
    opacity: 0.7;
}

.empty-state h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.empty-state p {
    font-size: 0.95rem;
    max-width: 380px;
    line-height: 1.6;
    margin: 0;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
}

.whatsapp-float i {
    margin-top: 1px;
}

/* MODAL XL */
.modal-xl {
    max-width: 1100px; /* Un poco más ancho para mejor visualización */
    width: 95%;
}

body.modal-open {
    overflow: hidden; /* Evita scroll doble */
}

/* PRODUCT DETAIL GRID */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    padding: 10px;
}

.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-img-wrap {
    background: white;
    border-radius: 12px;
    padding: 20px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.main-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-condition {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.detail-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: white;
}

.detail-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.detail-brand strong, .detail-sku strong {
    color: var(--primary);
}

.detail-price {
    margin-bottom: 30px;
}

.price-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 400;
    color: white;
}

.price-method {
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 600;
}

.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.btn-whatsapp-detail {
    background: transparent;
    color: #25D366;
    border: 1.5px solid #25D366;
    padding: 14px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-whatsapp-detail:hover {
    background: rgba(37, 211, 102, 0.1);
    transform: translateY(-2px);
}

.detail-features {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.detail-features h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.detail-features table {
    width: 100%;
    border-collapse: collapse;
}

.detail-features td {
    padding: 10px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-features tr td:first-child {
    background: var(--bg-lighter);
    font-weight: 600;
    width: 150px;
    color: var(--text-muted);
}

.detail-description {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.detail-description h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.detail-description p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* TOAST NOTIFICATION */
.toast-notification {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--primary);
    animation: toastIn 0.3s ease forwards, toastOut 0.3s ease 2.7s forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translate(-50%, 0); }
    to { opacity: 0; transform: translate(-50%, 20px); }
}

@media (max-width: 850px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    .main-img-wrap {
        height: 300px;
    }
}