/* ==========================================================================
   1. VARIABLES GLOBALES Y CONFIGURACIÓN (Estilo Pelacrash® Premium)
   ========================================================================== */
:root {
    --color-bg: #050505;
    --color-surface: #101010;
    --color-surface-light: #181818;
    --color-accent: #cc0000;       /* Rojo Racing Principal */
    --color-accent-hover: #ff0000; /* Rojo Vibrante */
    --color-accent-dark: #8b0000;  /* Rojo Técnico/Sombra */
    --color-text: #ffffff;
    --color-text-muted: #b0b0b0;
    --border-color: #330000;       /* Borde Rojizo Oscuro */
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

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

/* ==========================================================================
   2. HEADER / NAVBAR COMPARTIDO (Home & Tienda) - ESTÉTICA NEGRO SATINADO
   ========================================================================== */
header, .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 110px;
    background-color: #050507 !important; /* Negro puro */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo img {
    height: 102px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

.logo span {
    color: var(--color-accent);
}

/* Navegación y compactación extrema */
.nav-links {
    display: flex;
    gap: 2px !important; /* Une los botones casi por completo */
    align-items: center;
}

.nav-links a {
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #e1e1e6 !important;
    padding: 6px 10px !important; /* Espacio horizontal compacto */
    transition: color 0.3s ease, transform 0.2s ease !important;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--color-accent) !important; /* Naranja Pelacrash */
}

.nav-links .dropdown {
    margin: 0 !important;
    padding: 0 !important;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icons a, .menu-toggle {
    color: #ffffff !important;
    transition: color 0.3s ease !important;
    font-size: 18px;
}

.nav-icons a:hover, .menu-toggle:hover {
    color: var(--color-accent) !important;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--color-accent) !important;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 900 !important;
    font-family: monospace !important;
    padding: 2px 6px;
    border-radius: 10px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* ==========================================================================
   3. SECCIÓN HERO / ENCABEZADOS (Consistencia Visual & Banners de Motos)
   ========================================================================== */
.hero-home {
    padding: 100px 5%;
    text-align: center;
    min-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(13, 13, 13, 0.4), rgba(13, 13, 13, 0.95)), 
                url('https://images.unsplash.com/photo-1568772585407-9361f9bf3a87?q=80&w=1920') no-repeat center center/cover;
}

.shop-header {
    padding: 60px 5%;
    text-align: center;
    background: linear-gradient(rgba(20,20,20,0.85), var(--color-bg)), url('https://images.unsplash.com/photo-1568772585407-9361f9bf3a87?q=80&w=1920') no-repeat center center/cover;
    border-bottom: 1px solid var(--border-color);
}

.shop-header h1, .hero-home h1 {
    font-size: 42px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.breadcrumbs {
    color: var(--color-text-muted);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   4. BANNERS PREMIUM EVOLUCIONADOS: ALTA INGENIERÍA & MOVIMIENTO CINEMÁTICO
   ========================================================================== */
.page-custom-banner {
    position: relative;
    width: 100%;
    height: 380px; /* Altura más imponente */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #050507;
    border-bottom: 2px solid rgba(255, 85, 0, 0.15);
}

/* Imagen de fondo con zoom fluido y filtro de nitidez */
.page-custom-banner .banner-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 35%;
    z-index: 1;
    filter: contrast(1.1) brightness(0.85);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Superposición cinematográfica: Degradado de carbono y luces asimétricas */
.page-custom-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 85, 0, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, rgba(10, 10, 12, 0.5) 0%, rgba(10, 10, 12, 0.95) 100%);
    z-index: 2;
}

/* Cuadrícula de ingeniería sutil de fondo */
.page-custom-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 2;
    pointer-events: none;
}

/* Contenido del Banner */
.page-custom-banner .banner-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    width: 100%;
    padding: 0 25px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Etiqueta Técnica Superior */
.page-custom-banner .tech-tag {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    background: rgba(255, 85, 0, 0.08);
    border: 1px solid rgba(255, 85, 0, 0.2);
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
}

.page-custom-banner .tech-tag span {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--color-accent);
}

/* Tipografías */
.page-custom-banner h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1.5px;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.05;
}

.page-custom-banner h1 span {
    color: var(--color-accent);
}

.page-custom-banner p {
    color: var(--color-text-muted);
    font-size: clamp(14px, 1.6vw, 17px);
    max-width: 650px;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.page-custom-banner .banner-breadcrumbs {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

.page-custom-banner .banner-breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.page-custom-banner .banner-breadcrumbs a:hover {
    color: var(--color-accent);
}

.page-custom-banner .banner-breadcrumbs span {
    color: var(--color-accent);
    margin: 0 8px;
}

/* --- MOVIMIENTO DINÁMICO HOVER --- */
.page-custom-banner:hover .banner-bg-img {
    transform: scale(1.04);
}

.page-custom-banner:hover .banner-content {
    transform: translateY(-4px);
}

/* ==========================================================================
   5. MENÚ DESPLEGABLE DE MARCAS (DROPDOWN) - OSCURO COMPACTO PRESTIGIO
   ========================================================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0a0a0c !important; /* Negro grafito */
    border: 1px solid rgba(255, 85, 0, 0.2) !important; /* Borde naranja muy sutil */
    min-width: 240px !important;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9) !important;
    z-index: 1000;
    padding: 10px !important;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-brand-item {
    display: flex !important;
    align-items: center !important;
    padding: 8px 14px !important;
    gap: 12px !important;
    text-decoration: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background-color: transparent !important;
    transition: background-color 0.2s ease !important;
}

.dropdown-brand-item:hover {
    background-color: rgba(255, 85, 0, 0.08) !important; /* Destello de pista naranja */
}

.brand-logo-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    background-color: #111115 !important; /* Gris oscuro integrado */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    padding: 3px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.brand-logo-wrapper img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    filter: brightness(0.9) contrast(1.1); 
}

.brand-text-item {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #a0a0a5 !important;
    white-space: nowrap !important;
    transition: color 0.2s ease !important;
}

.dropdown-brand-item:hover .brand-text-item {
    color: #ffffff !important; /* El texto se ilumina en blanco puro */
}

.dropdown-brand-item:hover .brand-logo-wrapper {
    border-color: #ff5500 !important; /* El marco del logo destella en naranja */
    background-color: #16161c !important;
}

/* ==========================================================================
   6. DISTRIBUCIÓN DE LA TIENDA (Sidebar + Grid)
   ========================================================================== */
.shop-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 50px 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.shop-sidebar {
    background-color: var(--color-surface);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
    height: fit-content;
}

.filter-widget {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.filter-widget:last-of-type {
    border-bottom: none;
}

.filter-widget h3 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    color: var(--color-text);
    font-weight: 700;
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 12px;
}

.filter-list li label {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 14px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-list li input[type="checkbox"],
.filter-list li input[type="radio"] {
    margin-right: 12px;
    accent-color: var(--color-accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.filter-list li:hover label {
    color: var(--color-text);
}

/* Buscador Técnico Interno */
.search-box-container {
    position: relative;
    width: 100%;
}

#shopSearchInput {
    width: 100%;
    background-color: var(--color-surface-light);
    border: 1px solid var(--border-color);
    padding: 12px 40px 12px 15px;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
}

#shopSearchInput:focus {
    border-color: var(--color-accent);
}

.search-inside-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
}

.count-badge {
    font-size: 12px;
    color: #555;
    margin-left: auto;
    font-weight: 600;
}

/* Atributos de Color Visuales */
.color-selector-grid {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.color-filter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.color-filter-btn:hover { transform: scale(1.15); }
.color-filter-btn.active-color { border-color: #fff; transform: scale(1.1); }

.btn-color-black { background-color: #111; }
.btn-color-red { background-color: #e62117; }
.btn-color-blue { background-color: #0055ff; }
.btn-color-green { background-color: #00aa44; }

/* Control del Slider de Precio */
.price-range-wrapper {
    padding: 10px 0;
}

#priceRangeSlider {
    width: 100%;
    accent-color: var(--color-accent);
    cursor: pointer;
    background: var(--border-color);
    height: 6px;
    border-radius: 3px;
}

.price-slider-values {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
    color: var(--color-text-muted);
}

#priceSliderValue { color: var(--color-accent); font-size: 15px; }

/* Botón Limpiar/Restablecer Filtros */
.btn-clear {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 1px dashed var(--color-accent);
    color: var(--color-accent);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-clear:hover {
    background-color: var(--color-accent);
    color: #fff;
}

/* ==========================================================================
   7. REJILLA DE PRODUCTOS (Mismo estilo para Destacados en Home y Tienda)
   ========================================================================== */
.shop-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shop-ordering {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.results-count {
    font-size: 14px;
    color: var(--color-text-muted);
}

.orderby {
    background-color: var(--color-surface);
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
    cursor: pointer;
}

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

.product-card {
    background-color: var(--color-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #444;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.product-link-wrapper {
    display: block;
    width: 100%;
    text-decoration: none;
}

.prod-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: #222;
}

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

.prod-info .brand {
    font-size: 11px;
    font-weight: bold;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.prod-info h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--color-text);
    height: 42px; /* Forzar consistencia de altura en títulos */
    overflow: hidden;
}

.prod-info .price {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.prod-variations {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.var-badge {
    background-color: var(--color-surface-light);
    border: 1px solid var(--border-color);
    color: var(--color-text-muted);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
}

.btn-add-cart {
    width: 100%;
    padding: 12px;
    background-color: var(--color-surface-light);
    color: #fff;
    border: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    margin-top: auto;
    transition: var(--transition-smooth);
}

.btn-add-cart:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.stock-status {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 10;
    letter-spacing: 0.5px;
}
.in-stock { background-color: #00aa44; color: #fff; }
.out-stock { background-color: #d97706; color: #fff; }

/* Rejilla de Marcas en página dedicada */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.brand-card {
    background-color: var(--color-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.brand-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 85, 0, 0.15);
}

.brand-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
    transition: var(--transition-smooth);
}

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

.brand-card h3 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: var(--color-text);
}

.brand-card span {
    font-size: 12px;
    color: var(--color-accent);
    font-weight: 600;
}

/* ==========================================================================
   8. ESTILOS CARRITO LATERAL (DRAWER)
   ========================================================================== */
:root {
    --color-drawer-bg: #0f0f12;
    --color-drawer-border: rgba(255, 255, 255, 0.08);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    max-width: 100%;
    height: 100vh;
    background-color: var(--color-drawer-bg);
    border-left: 1px solid var(--color-drawer-border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--color-drawer-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drawer-header h3 span {
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 500;
}

.btn-close-drawer {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-close-drawer:hover {
    color: #fff;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-drawer-border);
}

.drawer-item-img {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-drawer-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-item-img img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.drawer-item-info {
    flex: 1;
}

.drawer-item-info h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 3px;
    color: #fff;
}

.drawer-item-info p {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.drawer-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-drawer-border);
    border-radius: 4px;
    background: rgba(0,0,0,0.2);
}

.drawer-qty-btn {
    background: none;
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    font-size: 10px;
    cursor: pointer;
}

.drawer-qty-input {
    width: 20px;
    text-align: center;
    background: none;
    border: none;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.drawer-item-price {
    font-size: 14px;
    font-weight: 800;
}

.btn-drawer-delete {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
    transition: color 0.2s;
}

.btn-drawer-delete:hover {
    color: #ff3333;
}

.drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--color-drawer-border);
    background-color: rgba(0, 0, 0, 0.2);
}

.drawer-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
}

.drawer-subtotal span:last-child {
    font-size: 20px;
    color: #fff;
}

.drawer-shipping-info {
    font-size: 12px;
    color: #2ecc71;
    margin-bottom: 20px;
}

.drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-drawer-primary {
    background-color: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 15px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-drawer-primary:hover {
    background-color: #ff661a;
    transform: translateY(-1px);
}

.btn-drawer-secondary {
    background: none;
    border: 1px solid var(--color-drawer-border);
    color: var(--color-text);
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-drawer-secondary:hover {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.2);
}

.drawer-empty {
    text-align: center;
    padding: 40px 10px;
    color: var(--color-text-muted);
}

.drawer-empty i {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.2;
}

/* ==========================================================================
   9. RESPONSIVE / ADAPTABILIDAD DE PRECISIÓN PARA PORTÁTILES Y MÓVILES
   ========================================================================== */

/* Ajustes de control para pantallas medianas y laptops (Máx. 1400px) */
@media screen and (max-width: 1400px) {
    header, .navbar {
        padding: 0 20px !important;
        height: 80px !important; /* Estiliza y baja la altura del header */
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .logo img {
        height: 65px !important; /* Compacta el logotipo para evitar empujar el menú */
    }

    .nav-links {
        gap: 0px !important; /* Elimina la separación intermedia para encajar todo */
    }

    .nav-links a {
        font-size: 11.5px !important; /* Disminuye levemente la tipografía */
        padding: 6px 8px !important;  /* Reduce el margen lateral interno */
        letter-spacing: 0.5px !important;
    }

    .nav-links .dropdown a i {
        margin-left: 2px !important;
        font-size: 9px !important;
    }

    .nav-icons {
        gap: 15px !important;
    }

    .nav-icons a {
        font-size: 15px !important;
    }
}

/* Ajustes extra para portátiles muy pequeños (Máx. 1150px) */
@media screen and (max-width: 1150px) {
    .logo img {
        height: 58px !important;
    }
    .nav-links a {
        font-size: 10.5px !important;
        padding: 6px 6px !important;
    }
}

/* Adaptabilidad para Tablets y Dispositivos Móviles (Máx. 992px) */
@media (max-width: 992px) {
    .shop-container {
        grid-template-columns: 1fr;
    }
    
    .menu-toggle {
        display: block !important;
        color: #fff;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0a0a0c !important; /* Desplegable móvil oscuro */
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        gap: 15px !important;
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 14px !important;
        padding: 10px 15px !important;
        width: 100%;
        text-align: left;
    }

    /* Ocultar dropdown hover en móviles */
    .dropdown:hover .dropdown-menu {
        display: none;
    }
}

/* ==========================================================================
   CORRECCIÓN ALINEACIÓN MENÚ MÓVIL
   ========================================================================== */
@media (max-width: 992px) {
    /* Forzamos que el contenedor del dropdown se comporte como un enlace normal */
    .nav-links .dropdown {
        display: block !important;
        width: 100% !important;
    }

    /* Alineamos el texto a la izquierda */
    .nav-links .dropdown > a {
        display: flex !important;
        justify-content: space-between !important;
        width: 100% !important;
        text-align: left !important;
    }

    /* Aseguramos que el sub-menú (las marcas) también respete el flujo */
    .dropdown-menu {
        position: static !important;
        width: 100% !important;
        background: #0d0d0d !important; /* Un tono ligeramente distinto para diferenciar */
        border: none !important;
        box-shadow: none !important;
        padding-left: 10px !important;
    }

    /* Eliminamos el efecto hover que podría causar problemas en táctil */
    .dropdown:hover .dropdown-menu {
        display: none; 
    }
    
    /* Si quieres que se abra al hacer clic, necesitarías un pequeño JS, 
       pero visualmente ya estará alineado a la izquierda */
}