/* ============================================
   Variables
   ============================================ */
:root {
    --shop-primary:    #1a1a2e;
    --shop-accent:     #f5a623;
    --shop-text:       #2d2d2d;
    --shop-muted:      #6c757d;
    --shop-bg:         #f8f9fa;
    --shop-card-hover: translateY(-4px);
    --transition:      0.2s ease;
}

/* ============================================
   Base
   ============================================ */
body {
    background-color: var(--shop-bg);
    color: var(--shop-text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

/* Evita que cualquier elemento rompa el ancho */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ============================================
   Header / Navbar
   ============================================ */
.shop-header .navbar {
    padding-top: .75rem;
    padding-bottom: .75rem;
}

/* ============================================
   Hero Banner
   ============================================ */
.hero-banner {
    min-height: 450px;
    background: linear-gradient(135deg, var(--shop-primary) 0%, #16213e 60%, #0f3460 100%);
}

/* ============================================
   Secciones
   ============================================ */
.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    position: relative;
    padding-bottom: .5rem;
    margin-bottom: 1.25rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    background: var(--shop-accent);
    margin-top: .4rem;
    border-radius: 2px;
}

/* ============================================
   Product Card
   ============================================ */
.product-card {
    transition: transform var(--transition), box-shadow var(--transition);
    border-radius: .75rem !important;
    overflow: hidden;
}

.product-card:hover {
    transform: var(--shop-card-hover);
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}

.product-card__img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 1/1;
    max-height: 220px;
}

.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .75rem;
    transition: transform .3s ease;
}

.product-card:hover .product-card__img {
    transform: scale(1.05);
}
.filter-brand{
    max-height: 400px;
    overflow-y: auto;
}
/* ============================================
   Categorías card (home)
   ============================================ */
.card-categoria {
    transition: transform var(--transition), box-shadow var(--transition);
    border-radius: .75rem !important;
}

.card-categoria:hover {
    transform: var(--shop-card-hover);
    box-shadow: 0 6px 18px rgba(0,0,0,.1) !important;
    border-color: var(--shop-accent) !important;
}

/* ============================================
   Galería producto
   ============================================ */
.product-gallery-main {
    width: 100%;
    height: 380px;
    object-fit: contain;
    background: #fff;
    padding: 1.25rem;
    display: block;
}

@media (max-width: 767.98px) {
    .product-gallery-main {
        height: 260px;
    }
}

.product-thumb {
    width: 72px;
    height: 72px;
    object-fit: contain;
    cursor: pointer;
    padding: 4px;
    transition: border-color var(--transition);
}

.product-thumb:hover,
.product-thumb.border-dark {
    border-color: var(--shop-primary) !important;
}

/* ============================================
   Descripción larga del producto
   ============================================ */
.product-description img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Carrito badge animado
   ============================================ */
.carrito-badge {
    font-size: .65rem;
    min-width: 1.2rem;
    transition: transform .15s ease;
}

.carrito-badge.bump {
    transform: scale(1.4);
}

/* ============================================
   Tabla carrito
   ============================================ */
#tabla-carrito td {
    vertical-align: middle;
}

/* ============================================
   Footer
   ============================================ */
footer .footer-link:hover {
    color: var(--shop-accent) !important;
    opacity: 1 !important;
}

/* ============================================
   Utilities
   ============================================ */
.btn-dark {
    background-color: var(--shop-primary);
    border-color: var(--shop-primary);
}

.btn-dark:hover {
    background-color: #0f3460;
    border-color: #0f3460;
}

@media (max-width: 575.98px) {
    .hero-banner {
        min-height: 240px;
    }
    .hero-banner h1 {
        font-size: 1.8rem;
    }
}
