﻿/* =========================
   PAGE
========================= */

.productos-page {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    animation: fadeUp .35s ease;
}

/* =========================
   HEADER
========================= */

.productos-header-card,
.productos-toolbar-card {
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,.05);
}

.productos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.productos-header__title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.productos-header__icon {
    font-size: 30px;
    color: var(--rz-primary);
}

/* =========================
   TOOLBAR
========================= */

.productos-toolbar {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* SEARCH */
.productos-search {
    position: relative;
    width: 260px;
}

.productos-search__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rz-primary);
}

.productos-search__input {
    width: 100%;
    padding-left: 2.5rem !important;
    border-radius: 14px !important;
    border: 2px solid var(--rz-base-300);
}

/* DROPDOWN */
.productos-dropdown {
    min-width: 200px;
}

/* =========================
   GRID
========================= */

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 260px));
    justify-content: center;
    gap: 1.5rem;
}

/* =========================
   CARD
========================= */

.producto-card {
    border-radius: 18px;
    overflow: hidden;
    background: var(--rz-base-default);
    box-shadow: 0 6px 20px rgba(0,0,0,.05);
    transition: .25s ease;
}

    .producto-card:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 20px 50px rgba(0,0,0,.10);
    }

/* IMAGE */
.producto-card__image {
    position: relative;
    justify-content: center; 
    align-items: center;
    display: flex;
}

    .producto-card__image img {
        width: 70%;
        height: auto;
        min-height: 80px;
        object-fit: contain;
        border-radius: 16px 16px 0 0;
        border-bottom: 1px solid rgba(var(--rz-base-contrast-rgb), .08);
        display: block;
    }

/* PRICE FLOAT */
.producto-precio-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--rz-success);
    color: white;
    padding: .3rem .6rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: .85rem;
}

/* BODY */
.producto-card__body {
    padding: .8rem;
}

.producto-nombre {
    font-weight: 700;
}

.producto-categoria {
    font-size: .8rem;
    color: var(--rz-text-secondary-color);
}

/* ACTIONS */
.producto-card__actions {
    display: flex;
    justify-content: space-around;
    padding: .6rem;
    border-top: 1px solid rgba(var(--rz-base-contrast-rgb), .08);
}

/* =========================
   PAGINACIÓN
========================= */

.productos-pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* =========================
   EMPTY
========================= */

.productos-empty-card {
    max-width: 400px;
    margin: auto;
    text-align: center;
    padding: 2rem;
}

/* =========================
   DARK MODE
========================= */

html.dark .producto-card,
.rz-dark .producto-card {
    background: rgba(var(--rz-base-contrast-rgb), .04);
}
