/* ========== RESET Y UTILIDADES ========== */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block; }
.mt-5 { margin-top: 3rem; }
.mt-3 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mt-10 { margin-top: 10px; }
.w-auto { width: auto; }
.text-center { text-align: center; }
.btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    border-radius: 0.2rem !important;
}
.btn-visible { display: block; }
.btn-hidden { display: none; }
.fondo {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    min-height: 100vh;
    background-image: url('/static/img/fondo.webp');
    background-size: cover; background-position: center; z-index: -2;
}
@media (max-width: 767px) {
    .fondo { background-image: url('/static/img/movil.webp'); }
}
.main-content { position: relative; z-index: 1; }
#productos { min-height: 500px; }
.productos-container, #productos { margin-top: 30px; }
@media (min-width: 768px) {
    .productos-container, #productos { content-visibility: auto; contain-intrinsic-size: 1px 5000px; }
}

/* ========== CARD GIRATORIA (Productos) ========== */
.card-giratoria {
    perspective: 1000px; height: 500px; width: 100% !important; overflow: hidden;
    background: transparent !important;
}
.card-contenedor {
    position: relative; width: 100%; height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}
.card-front, .card-back {
    position: absolute; width: 100%; height: 100%; backface-visibility: hidden;
    padding: 15px; box-shadow: 0 8px 20px rgb(234 234 234 / 30%);
}
.card-front:hover, .card-back:hover { box-shadow: 0 12px 25px rgba(0,0,0,0.4); }
.card-back {
    transform: rotateY(180deg); display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    overflow-y: auto; overflow-x: hidden; position: relative; width: 100%; box-sizing: border-box;
}
.card-girada { transform: rotateY(180deg); }
.card:hover, .card-giratoria:hover {
    transform: translateY(-5px); will-change: transform, box-shadow;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.card-pressed { transform: scale(0.98); }
.card, .card-giratoria {
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    padding: 12px;
}
.card-giratoria.flipping {
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.8s ease !important;
    pointer-events: none;
}
.btn-girar, .btn-reversa {
    position: absolute; right: 10px; width: 35px; height: 35px; border-radius: 50%;
    background: rgba(255,255,255,0); border: none; color: white; font-size: 26px; z-index: 10;
    display: flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.btn-girar:hover, .btn-reversa:hover { background: rgba(255,255,255,0.1); transform: scale(1.1); }
.btn-reversa { pointer-events: auto; z-index: 20 !important; }
.descripcion-area {
    flex: 1; padding: 10px 80px 80px 80px; overflow-y: auto; text-align: center;
    scrollbar-width: none; -ms-overflow-style: none; overflow-x: hidden; word-wrap: break-word;
}
.descripcion-area::-webkit-scrollbar { display: none; }
.card-back::-webkit-scrollbar, .descripcion-area::-webkit-scrollbar { width: 6px; }
.card-back::-webkit-scrollbar-track, .descripcion-area::-webkit-scrollbar-track { background: transparent; }
.card-back::-webkit-scrollbar-thumb, .descripcion-area::-webkit-scrollbar-thumb {
    background: transparent; border-radius: 3px; transition: background 0.3s ease;
}
.card-back:hover::-webkit-scrollbar-thumb, .descripcion-area:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
}
.card-back, .descripcion-area { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.card-back:hover, .descripcion-area:hover { scrollbar-color: rgba(255, 255, 255, 0.25) transparent; }
.producto-descripcion { font-size: 1rem; line-height: 1.5; color: #f8f9fa; white-space: pre-line; }
.producto-descripcion-vacio { font-size: 1rem; color: #adb5bd; font-style: italic; }
.card-back-footer {
    width: 100%; box-sizing: border-box; padding: 15px; background: rgb(0 0 0 / 30%);
}
.colores-info, .talles-info { display: none; }
.info-visible { display: block; }
.info-hidden { display: none; }

/* ========== FOTOS ADICIONALES ========== */
.fotos-adicionales-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, auto)); gap: 5px; margin-top: 10px;
}
@media (max-width: 767px) {
    .fotos-adicionales-grid {
        display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
        overflow-x: auto !important; width: 100% !important; gap: 8px; padding: 4px 0 12px 0;
        -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;
    }
    .foto-adicional-thumb {
        flex: 0 0 80px !important; width: 80px !important; height: 80px !important;
        scroll-snap-align: start; object-fit: cover; border-radius: 8px;
    }
    .card-giratoria { overflow-x: visible !important; }
    .card-back { overflow-x: hidden !important; }
}
.foto-adicional-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 3px; cursor: pointer; }
.fotos-adicionales img { transition: transform 0.2s; flex-shrink: 0; width: 60px !important; height: 60px !important; }
.card-back .fotos-adicionales {
    display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important;
    overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    gap: 8px; justify-content: center; padding-bottom: 8px; width: 100%; max-width: 100%;
    box-sizing: border-box; scrollbar-width: none; -ms-overflow-style: none;
}
.card-back .fotos-adicionales::-webkit-scrollbar { display: none; }
.card-back .fotos-adicionales img {
    flex-shrink: 0; scroll-snap-align: start; width: 80px; height: 80px;
    object-fit: cover; border-radius: 8px; cursor: pointer;
}
@media (max-width: 767px) {
    .card-back .fotos-adicionales {
        display: flex; flex-wrap: nowrap; justify-content: flex-start;
        grid-auto-flow: unset; grid-auto-columns: unset; scroll-snap-type: x mandatory;
    }
}

/* ========== PRECIOS, OFERTAS, CUOTAS ========== */
.precio-actual { font-size: 1.4rem; font-weight: bold; display: inline; }
.precio-anterior-tachado { text-decoration: line-through; color: #999; font-size: 0.9rem; margin-right: 5px; }
.precio-anterior-visible { display: inline !important; }
.precio-anterior-oculto { display: none; }
.precio-oferta { color: #ff4757; font-weight: bold; }
.oferta-badge {
    position: absolute; top: 10px; left: 10px; background: #ff4757; color: white;
    font-size: 0.8rem; font-weight: bold; padding: 4px 10px; border-radius: 20px; z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); animation: pulseOferta 1.5s infinite;
}
.oferta-badge-visible { display: block !important; }
.oferta-badge-oculto { display: none; }
.cuotas-info { display: inline-block; font-size: 0.9rem; color: white; }
.precio-wrapper { display: flex; align-items: baseline; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }
.ahorro-oculto { display: none; }
@keyframes pulseOferta {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
    50% { transform: scale(1.05); box-shadow: 0 4px 10px rgba(255,71,87,0.5); }
}

/* ========== TARJETAS DE PRODUCTO ========== */
.card-title {
    font-size: 1.1rem !important; font-weight: 600; letter-spacing: -0.3px;
    background: linear-gradient(135deg, #fff, #ddd); background-clip: text;
    -webkit-background-clip: text; color: transparent !important; margin-bottom: 0.5rem !important;
}
.producto-img { width: 100%; height: 180px; object-fit: contain; border-radius: 4px; cursor: pointer; opacity: 1; }
.card-front:hover img { transform: scale(1.02); filter: brightness(1.05) contrast(1.02); }
.lazy-image { transition: opacity 0.3s ease !important; }
.lazy-image.loaded { opacity: 1; }
.img-lazy { opacity: 0; transition: opacity 0.3s ease; }
.img-lazy.loaded { opacity: 1; }
.producto-img.img-loaded { opacity: 1; }
.btn-secondary.btn-sm {
    background: linear-gradient(90deg, #007fff, #1e2a36); border: none; border-radius: 40px;
    padding: 8px 16px; font-weight: 600; letter-spacing: 0.5px; transition: all 0.2s;
}
.btn-secondary.btn-sm:hover {
    background: linear-gradient(90deg, #3e5a6c, #2c3e50); transform: translateY(-2px);
    box-shadow: 0 6px 12px -8px black;
}
.btn-sin-stock { opacity: 0.5; }
.producto-cantidad { width: 70px !important; }
.selector-ancho { min-width: 100px; }
.form-select-sm { font-size: 0.8rem !important; cursor: pointer; }
.form-select-sm option { background-color: #1e1e2f; color: white; }

/* ========== SIDEBAR Y CATEGORÍAS ========== */
.sidebar {
    position: fixed; top: 0; left: -300px; width: 280px; height: 100%; color: #fff;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 4px 0 15px rgba(0,0,0,0.3); border-right: 1px solid rgba(255,255,255,0.1);
    z-index: 1200; transition: left 0.3s ease; overflow-y: auto; padding: 20px;
}
.sidebar.open { left: 0; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; margin-bottom: 15px; }
.sidebar-header h4 { margin: 0; color: #fff; }
.close-sidebar-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: #fff; transition: color 0.2s; }
.close-sidebar-btn:hover { color: #ccc; }
.sidebar-categorias { margin-top: 10px; }
.grupo-sidebar { margin-bottom: 12px; }
.grupo-titulo {
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    padding: 10px 8px; font-weight: bold; background: rgba(255,255,255,0.05);
    border-radius: 6px; transition: background 0.2s;
}
.grupo-titulo:hover { background: rgba(255,255,255,0.1); }
.toggle-subgrupo, .toggle-subsub { font-size: 12px; transition: transform 0.2s; }
.subgrupo-lista, .subsub-lista { display: none; }
.subgrupo-lista.open, .subsub-lista.open { display: block; }
.subgrupo-lista { display: none; margin-left: 16px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,0.2); }
.subgrupo-lista.open { display: block; }
.subgrupo-titulo-secundario {
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    padding: 6px 8px 6px 12px; font-size: 0.9rem; border-radius: 4px; transition: background 0.2s;
}
.subgrupo-titulo-secundario:hover { background: rgba(255,255,255,0.08); }
.toggle-subsub { font-size: 10px; margin-left: 8px; }
.subsub-lista { display: none; margin-left: 20px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,0.15); }
.subsub-lista.open { display: block; }
.subsub-item, .subgrupo-item {
    padding: 4px 0 4px 24px; cursor: pointer; font-size: 0.85rem; border-radius: 4px; transition: background 0.2s;
}
.subsub-item:hover, .subgrupo-item:hover { background: rgba(255,255,255,0.08); }

#vendedoresHeader { cursor: pointer; }
.vendedores-header-clickable { cursor: pointer; transition: color 0.2s; }
.vendedores-header-clickable:hover { color: #ffc107; }
.sidebar-vendedores-header { margin-top: 20px; padding-top: 10px; }
.sidebar-vendedores { margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; }
.sidebar-seccion h5 { font-size: 1rem; margin-bottom: 12px; color: #fff; }
.vendedores-lista { display: flex; flex-direction: column; gap: 12px; }
.vendedor-item {
    display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 8px;
    border-radius: 8px; transition: background 0.2s;
}
.vendedor-item:hover { background: rgba(255,255,255,0.1); }
.vendedor-logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.vendedor-sin-logo {
    width: 40px; height: 40px; background: #333; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.vendedor-info { flex: 1; }
.vendedor-nombre { font-weight: 500; font-size: 0.9rem; color: #fff; }
.vendedor-redes { display: flex; gap: 8px; margin-top: 4px; }
.red-social { color: #ccc; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.red-social:hover { color: #fff; }

/* ========== CARRITO ========== */
#carrito {
    position: fixed; bottom: 80px; right: 20px; padding: 15px; border-radius: 10px;
    width: 320px; z-index: 999; display: none;
}
.modo-oscuro #carrito { background: rgb(33 36 40); color: white; backdrop-filter: blur(120px); }
#carrito.carrito-visible { display: block; }
.carrito-hidden { display: none; }
.carrito-titulo { font-size: 1.4rem !important; }
.carrito-vacio { text-align: center; padding: 1rem; list-style: none; }
.carrito-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; list-style: none; }
.carrito-item-detalle { font-size: 0.9em; color: #666; }
.btn-eliminar-carrito { background: none; border: none; color: red; font-weight: bold; font-size: 16px; cursor: pointer; }
.carrito-contador {
    display: inline-flex; align-items: center; justify-content: center; background: #888;
    color: white; font-size: 12px; font-weight: bold; min-width: 18px; height: 18px;
    border-radius: 9px; padding: 0 4px; margin-left: 4px; transition: background 0.2s;
}
.carrito-contador-gris { background: #888; }
.carrito-contador-naranja { background: #ff4757; }
.pop-animation { animation: pop 0.4s cubic-bezier(0.175,0.885,0.32,1.275); }
@keyframes pop {
    0% { transform: scale(1); } 30% { transform: scale(1.4); } 60% { transform: scale(0.95); } 100% { transform: scale(1); }
}
.carrito-shake { animation: shake 0.3s ease-in-out; }
@keyframes shake {
    0%,100% { transform: rotate(0); } 25% { transform: rotate(10deg); } 75% { transform: rotate(-10deg); }
}
.aviso-multiples-vendedores { margin: 8px 12px; }
.carrito-item-vendedor { font-size: 0.7rem; color: #888; margin-top: 4px; }
.alert-warning { background: #fff3cd; border: 1px solid #ffeeba; color: #856404; border-radius: 4px; }

/* ========== BOTONES FLOTANTES Y GENERALES ========== */
#toggleCarrito {
    position: fixed; bottom: 20px; border: none; right: 20px; z-index: 1000;
    padding: 10px 14px; border-radius: 50px; font-weight: bold; box-shadow: 0 0 5px black; cursor: pointer;
}
#volverArriba.btn-visible { display: block; }
#volverArriba.btn-hidden { display: none; }
#loginToggleBtn.btn-visible { display: block; }
#loginToggleBtn.btn-hidden { display: none; }
.btn-volver-arriba {
    position: fixed; bottom: 20px; left: 20px; z-index: 1000; background-color: white; color: black;
    border: none; border-radius: 50%; width: 40px; display: none; height: 40px; font-size: 20px;
    cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.2); transition: all 0.3s ease; -webkit-tap-highlight-color: transparent;
}
.btn-volver-arriba:hover { background-color: #f0f0f0; transform: scale(1.1); }
.admin-toggle-btn {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 997;
    display: none; background: rgba(0,0,0,0.8); color: white; border: none; padding: 10px 20px;
    border-radius: 20px; cursor: pointer;
}
.login-floating-form {
    position: fixed; bottom: 70px; left: 50%; transform: translateX(-50%); z-index: 999;
    background: rgba(0,0,0,0.9); padding: 15px; border-radius: 10px; width: 250px;
}
.login-floating-form button {
    background: rgba(0,0,0,0.8); color: white; border: 1px solid white; padding: 9px 15px;
    border-radius: 20px; font-size: 14px;
}
#logoutAdminWrapper button {
    font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 14px; padding: 8px 15px;
    border-radius: 30px; border: 1px solid rgba(255,255,255,0.2); background: #212529;
    color: #f8f9fa; box-shadow: 0 0 6px rgba(255,255,255,0.2); transition: all 0.3s ease;
}
.btn-cargar-mas { display: block; width: fit-content; margin: 20px auto 80px auto; height: 40px; text-align: center; }
.btn-grupo {
    font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 14px; padding: 8px 15px;
    border-radius: 30px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05);
    color: white; box-shadow: 0 0 6px rgba(255,255,255,0.2); transition: all 0.3s ease; cursor: pointer;
}
.btn-grupo:hover { background: #fff; color: #333; transform: scale(1.05); }
.btn-nav {
    font-family: 'Raleway', sans-serif; font-size: 13px; font-weight: 600; margin: 6px; padding: 1px 6px;
    border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; background: rgba(255,255,255,0.05);
    color: white; box-shadow: 0 0 6px rgba(255,255,255,0.2); cursor: pointer; transition: all 0.3s ease;
}
.btn-nav:hover { background: #fff; color: #333; transform: scale(1.05); }

/* ========== TICKER Y UBICACIÓN ========== */
.ticker-container {
    color: #dca335; overflow: hidden; white-space: nowrap; padding: 10px 0; font-weight: bold;
    position: relative; width: 100%;
    background: linear-gradient(180deg, transparent 0, transparent 100%),
                radial-gradient(circle at 15% 15%, transparent 0, #00000000 30%),
                radial-gradient(circle at 85% 85%, transparent 0, #00000000 30%);
}
.ticker-text {
    margin-top: 20px; display: inline-block; animation: tickerMove 20s linear infinite;
    padding-left: 100%; font-size: 1.1rem;
}
.ticker-container:hover .ticker-text { animation-play-state: paused; }
@keyframes tickerMove {
    0% { transform: translateX(0); } 100% { transform: translateX(-100%); }
}
.social-icons { margin-top: 40px; display: flex; justify-content: center; gap: 20px; }
.social-icons img { transition: transform 0.3s ease; }
.social-icons img:hover { transform: scale(1.1); filter: drop-shadow(0 0 0 transparent); }

/* ========== TOASTS Y MODALES ========== */
.toast-notificacion {
    position: fixed; bottom: 90px; right: 20px; background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px); color: white; padding: 12px 20px; border-radius: 30px;
    font-family: 'Raleway', sans-serif; font-size: 14px; z-index: 9999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275); transform: translateX(400px);
}
@media (max-width: 480px) {
    .toast-message { font-size: 1rem; padding: 10px 18px; }
}
.toast-message {
    white-space: nowrap; position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8); background: rgba(0,0,0,0.9); color: white;
    padding: 15px 25px; border-radius: 20px; font-family: 'Raleway', sans-serif;
    font-size: 1.2rem; font-weight: bold; z-index: 999999; opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    box-shadow: 0 0 30px rgba(255,255,255,0.7), 0 0 60px rgba(139,92,246,0.5);
    backdrop-filter: blur(10px); border: 2px solid rgba(255,255,255,0.3);
}
.toast-message-visible { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8);
    display: flex; justify-content: center; align-items: center; z-index: 10000;
}
.modal-hidden { display: none !important; }
.modal-visible { display: flex; }
.modal-img { max-width: 90%; max-height: 90%; object-fit: contain; }
.close {
    position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; font-weight: bold;
    cursor: pointer; z-index: 10001;
}
.modal-qr {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    justify-content: center; align-items: center; z-index: 1000;
}
.modal-qr.modal-show, .modal-qr.modal-visible { display: flex; }
.modal-qr-content { position: relative; background: black; padding: 20px; border-radius: 8px; text-align: center; }
.modal-qr-close {
    font-size: 32px; font-weight: bold; line-height: 1; position: absolute; top: 10px; right: 20px;
    color: #aaa; cursor: pointer; transition: color 0.2s; padding: 10px; z-index: 10;
}
.modal-qr-close:hover { color: #fff; }
.modal-buttons { margin-top: 15px; }
#imgModal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8);
    align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.3s ease; opacity: 0;
}
#imgModal.show { display: flex; opacity: 1; }
#imgModal .close { position: absolute; top: 20px; right: 30px; font-size: 40px; color: white; cursor: pointer; }
#modal-img { max-width: 90%; max-height: 90%; object-fit: contain; }
.logo-anim-start { transform: rotateY(360deg) !important; }

/* ========== PEDIDOS ========== */
.pedido-producto-img { width: 32px; height: 32px; object-fit: cover; }
.ver-detalle, .marcar-pagado { color: white !important; }
.ver-detalle:hover, .marcar-pagado:hover { color: white !important; opacity: 0.9; }

/* ========== MISCELÁNEA ========== */
.whatsapp-icono { width: 20px; height: 20px; }
.btn-whatsapp-personalizado { background: #0c6909 !important; color: white !important; }
.costo-envio-texto { font-size: 0.9rem; }
.orden-precio-select { min-width: 210px; }
.envio-linea { list-style: none; margin-top: 8px; border-top: 1px solid #cccccc00; }
.envio-linea-contenido { display: flex; justify-content: space-between; }
.btn-siguiente-datos { display: none; }
.paso-oculto { display: none !important; }
.paso-visible { display: block !important; }
#pasoCarrito.paso-visible, #pasoDireccion.paso-visible, #pasoDatos.paso-visible { display: block !important; }
.vendor-info { font-size: 0.7rem; color: #ccc !important; text-align: center; margin-top: 6px; }
.qr-image { width: 200px; height: 200px; }
.preservar-saltos { white-space: pre-line; word-wrap: break-word; }
.form-select {
    display: block; font-weight: 400; line-height: 1.5; color: #212529; background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 16px 12px;
    border: 1px solid #ced4da; border-radius: 0.25rem; appearance: none;
}
#paginacion button.active { background: #007bff; color: white; border-color: #007bff; }
#paginacion .btn { margin: 0 4px; }
.card-body { padding-top: 1rem !important; }
.oferta-badge, .precio-anterior-tachado, .ahorro, .colores-info, .talles-info { display: none; }
.card-producto .precio-container { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.btn { contain: content; }
.logo, .card img { image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; }
.modo-oscuro { color: white; isolation: isolate; }
h1, h2, h3, .btn, .card { font-family: 'Raleway', sans-serif; }
.subgrupo-titulo-secundario {
    font-weight: normal; padding: 4px 0 4px 20px; color: #ddd; display: flex; justify-content: space-between;
}
.subsub-lista { margin-left: 30px; display: none; }
.subsub-item { padding: 4px 0 4px 20px; cursor: pointer; font-size: 0.85rem; }
.subsub-item:hover { background-color: #222; }
.descripcion-area { white-space: normal; }
.btn-reversa { top: 10px; }
.card-front img, .card-back img { object-fit: contain; border-radius: 4px; cursor: pointer; opacity: 1; }
.table-responsive { overflow-x: auto; margin-top: 1rem; }
.d-flex.justify-content-between { margin-bottom: 1rem; }
.admin-grupos-bar, .admin-subgrupos-bar { scrollbar-width: thin; }
.btn-group-sm .btn { padding: 0.25rem 0.4rem; font-size: 0.8rem; line-height: 1.2; }
.table tbody tr { transition: background-color 0.2s; }
@media (max-width: 768px) {
    .admin-grupos-bar, .admin-subgrupos-bar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.btn-outline-secondary {
    border: 1px dashed #aaa !important; background: transparent !important; color: #ddd !important;
    padding: 0.25rem 0.5rem !important; font-size: 0.875rem !important; border-radius: 0.2rem !important;
}
.btn-outline-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.btn-warning { background: #ffc107; border-color: #ffc107; color: #212529; }
.btn-info { background: #17a2b8 !important; border-color: #17a2b8 !important; color: #fff !important; }
.btn-danger { background: #dc3545; border-color: #dc3545; color: #fff; }
.btn-success { background: #28a745; border-color: #28a745; color: #fff; }
