/* =====================================================================
   BINLOST · Estilos propios (se cargan después de Bootstrap 5)
   ===================================================================== */

:root {
    --bl-primary: #0d6efd;
    --bl-bg: #f3f5f9;
}

body {
    background: var(--bl-bg);
}

/* El atributo hidden siempre gana a las utilidades d-flex / d-block de Bootstrap */
[hidden] {
    display: none !important;
}

/* ---------- Acceso (login / cambio de contraseña) ---------- */
.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.7) 50%, transparent 51%),
        radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,.6) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 64% 72%, rgba(255,255,255,.5) 50%, transparent 51%),
        radial-gradient(1px 1px at 28% 84%, rgba(255,255,255,.5) 50%, transparent 51%),
        radial-gradient(1px 1px at 90% 54%, rgba(255,255,255,.6) 50%, transparent 51%),
        radial-gradient(ellipse at top, #1b2340 0%, #0b0f1c 55%, #05070d 100%);
    background-attachment: fixed;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    border-radius: 1rem;
    border-top: 4px solid #e2a72e !important;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .45) !important;
}

.auth-logo {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 .5rem .75rem rgba(0, 0, 0, .25));
}

.auth-title {
    font-weight: 800;
    letter-spacing: .02em;
    color: #0b0f1c;
}

.auth-footer {
    color: rgba(255, 255, 255, .55);
}

/* ---------- Paneles (admin y cliente) ---------- */
.panel-topbar {
    min-height: 56px;
    z-index: 1030;
}

.panel-layout {
    display: flex;
    min-height: calc(100vh - 56px);
}

.panel-content {
    flex: 1;
    min-width: 0;
    padding: 1.5rem;
}

@media (min-width: 992px) {
    .panel-sidebar {
        width: 250px;
        flex-shrink: 0;
        position: sticky;
        top: 56px;
        height: calc(100vh - 56px);
        overflow-y: auto;
    }
}

@media (max-width: 575.98px) {
    .panel-content {
        padding: 1rem;
    }
}

.sidebar-heading {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    padding: 0 .75rem .4rem;
}

.panel-sidebar .nav-link {
    color: var(--bs-body-color);
    border-radius: .5rem;
}

.panel-sidebar .nav-link:hover {
    background: var(--bs-tertiary-bg);
}

.panel-sidebar .nav-link.active {
    background: var(--bl-primary);
    color: #fff;
}

.brand-logo {
    height: 32px;
    max-width: 120px;
    object-fit: contain;
}

.avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Tarjetas de indicadores */
.stat-card {
    border: 0;
    border-radius: .85rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.9rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
    z-index: 1040;
    transition: transform .15s ease;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.08);
}

.min-w-0 {
    min-width: 0;
}

/* ---------- Catálogo ---------- */
.product-card {
    border: 0;
    border-radius: .85rem;
    overflow: hidden;
    transition: transform .12s ease, box-shadow .12s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .08) !important;
}

.product-card.is-agotado {
    opacity: .65;
}

.product-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #eef2ff, #f8f9fb);
    color: var(--bl-primary);
    font-size: 2.5rem;
    overflow: hidden;
}

/* Nunca más ancha que su tarjeta, sin importar el tamaño real del archivo. */
.product-thumb img {
    display: block;
    max-width: 100%;
}

/* Imagen del detalle: arriba y con altura limitada en móvil; columna completa en escritorio. */
.product-detail-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2ff, #f8f9fb);
    color: var(--bl-primary);
    font-size: 4rem;
}

.product-detail-media img {
    display: block;
    max-width: 100%;
}

@media (min-width: 768px) {
    .product-detail-media {
        height: 100%;
        min-height: 320px;
        font-size: 5rem;
    }
}

.product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-pills::-webkit-scrollbar {
    height: 4px;
}

/* ---------- Checkout ---------- */
.pay-option,
.bank-option {
    cursor: pointer;
    transition: border-color .12s ease, background .12s ease;
}

.pay-option.active {
    border-color: var(--bl-primary) !important;
    background: rgba(13, 110, 253, .05);
}

.pay-option:has(input:disabled) {
    cursor: not-allowed;
    opacity: .7;
}

@media (min-width: 992px) {
    .checkout-summary {
        position: sticky;
        top: 76px;
    }
}

/* ---------- Bóveda ---------- */
.license-key {
    font-size: .95rem;
    color: var(--bs-body-color);
    background: var(--bs-tertiary-bg);
    padding: .35rem .6rem;
    border-radius: .4rem;
    word-break: break-all;
    user-select: all;
}