/* Utilidades personalizadas para la Single Page Application (SPA) */
body {
    scroll-behavior: smooth;
}

/* Sistema de Vistas */
.view {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.view.active-view {
    display: block;
    animation: fadeInView 0.4s forwards;
}

@keyframes fadeInView {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efectos visuales de productos en Catálogo */
.product-card-img {
    transition: transform 0.6s ease;
}

.product-card:hover .product-card-img {
    transform: scale(1.06);
}

.badge-oferta {
    background-color: #c19b54;
    color: white;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    text-transform: uppercase;
    border-radius: 0 0 4px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Efecto hover sutil para miniaturas de la vista producto */
.thumbnail-img {
    transition: opacity 0.2s;
    cursor: pointer;
}
.thumbnail-img:hover {
    opacity: 0.7;
}
.thumbnail-active {
    border: 2px solid #c19b54;
    opacity: 1 !important;
}

/* Efecto Zoom Modal para ocultar el scrollbar trasero */
body.modal-open {
    overflow: hidden;
}

.admin-input {
    display: block;
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.625rem 0.75rem;
    font-weight: 400;
}

.admin-input:focus {
    outline: 2px solid #c19b54;
    outline-offset: 1px;
}

#btn-buy-wsp:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

#app-content {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}
