/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a; /* Negro profundo */
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

/* ===== PALETA DE COLORES ===== */
:root {
    --gold-primary: #FFD700;      /* Dorado brillante */
    --gold-dark: #D2691E;         /* Chocolate dorado (tu color original) */
    --gold-border: #B8860B;       /* Dorado oscuro para bordes */
    --bg-dark: #0a0a0a;
    --bg-card: #121212;
    --text-light: #ffffff;
    --text-gray: #E0E0E0;
    --text-gold: #FFD700;
    --text-gold-dark: #D2691E;
}

/* ===== CABECERA ===== */
header.bg-black-gold {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-bottom: 2px solid var(--gold-border);
    padding: 1rem 0;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.1);
}

header h1.text-black-gold {
    color: #000;
    text-shadow: 
        0 0 5px var(--gold-primary),
        0 0 10px var(--gold-primary),
        0 0 15px var(--gold-primary),
        0 0 20px var(--gold-primary);
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 2rem;
    text-transform: uppercase;
}

/* ===== BANNER PRINCIPAL ===== */
.banner-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 20%),
                radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.1) 0%, transparent 20%);
}

.banner-title {
    font-size: 2.5rem;
    color: var(--text-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    margin-bottom: 1rem;
}

.banner-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BUSCADOR ===== */
.search-bar {
    max-width: 500px;
    margin: 2rem auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1a1a1a;
    border: 2px solid var(--gold-border);
    color: var(--text-light);
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

/* ===== MENÚ DE CATEGORÍAS ===== */

/* ===== TARJETAS DE PRODUCTO ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--bg-card);
    border: 2px solid var(--gold-border);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(210, 105, 30, 0.2);
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
    border-color: var(--gold-primary);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom: 2px solid var(--gold-border);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--text-gold);
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.price {
    color: var(--text-gold);
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    margin-top: 0.5rem;
}

/* ===== PRECIO EN LA TARJETA (efecto etiqueta) ===== */
.price-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--gold-dark);
    color: white;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-dark);
    border-top: 2px solid var(--gold-border);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ===== BOTONES ===== */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.5);
}

.btn-outline-gold {
    color: var(--text-gold);
    border: 2px solid var(--text-gold);
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--text-gold);
    color: #000;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .banner-title {
        font-size: 2rem;
    }
    .card-img-top {
        height: 150px;
    }
    .price {
        font-size: 1rem;
    }
    .category-menu {
        flex-direction: column;
        align-items: center;
    }
}
/* ===== MENÚ DE CATEGORÍAS (dorado elegante) ===== */
.category-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFD700; /* Dorado brillante */
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.category-item:hover,
.category-item.active {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    transform: scale(1.05);
}

.category-item i {
    font-size: 1rem;
    color: #FFD700;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-item:hover::before,
.category-item.active::before {
    opacity: 1;
}
.bg-black-gold {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.text-gold {
    color: #FFD700;
}
/* ===== Tabla - Estilo Black Gold ===== */

/* Fondo oscuro para el cuerpo de la tabla */
.bg-black-gold {
    background: #121212 !important;
}

/* Texto claro */
.text-light {
    color: #ffffff !important;
}

/* Badge de categoría en dorado */
.badge.bg-gold {
    background: linear-gradient(135deg, #D2691E 0%, #FFD700 100%) !important;
    color: #000 !important;
    font-weight: bold;
    border-radius: 20px;
    padding: 0.4em 0.8em;
}

/* Precios en dorado */
.text-gold {
    color: #FFD700 !important;
    font-weight: bold;
}

/* Botón de edición en dorado */
.btn-gold {
    background: linear-gradient(135deg, #D2691E 0%, #FFD700 100%) !important;
    color: #000 !important;
    border: none !important;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

/* Hover en filas */
.table-hover tbody tr:hover {
    background-color: rgba(255, 215, 0, 0.05) !important;
    color: #ffffff !important;
}

/* Código de barras (mejor legibilidad) */
code {
    background: #1a1a1a;
    color: #FFD700;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}
/* ===== MENÚ DE CATEGORÍAS (dorado elegante) ===== */
.category-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem; /* Reducido de 1.5rem para móvil */
    margin: 1rem 0; /* Reducido de 1.5rem */
    padding: 0.5rem 0; /* Reducido de 1rem */
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFD700;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.category-item:hover,
.category-item.active {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    transform: scale(1.05);
}

.category-item i,
.category-item .material-symbols-outlined {
    font-size: 1rem;
    color: #FFD700;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-item:hover::before,
.category-item.active::before {
    opacity: 1;
}

/* ===== RESPONSIVE - MÓVIL: Hacerlo más compacto y evitar espacio excesivo ===== */
@media (max-width: 768px) {
    .category-menu {
        gap: 0.5rem; /* Aún más compacto en móvil */
        margin: 0.5rem 0;
        padding: 0.25rem 0;
        flex-direction: row; /* Horizontal en lugar de vertical */
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .category-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .category-item .material-symbols-outlined {
        font-size: 0.9rem;
    }
    
    /* Si quieres forzar una sola fila en móvil (opcional) */
    .category-menu {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
.fixed-bottom-float {
    z-index: 1030;
}
#floatingCategorySelector select {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
}
}