/* ════════════════════════════════════
   GUARIVA VITRINA v1.0
   ════════════════════════════════════ */

.gvv-wrap { font-family: inherit; margin: 32px 0; }

/* ── Encabezado ── */
.gvv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.gvv-titulo {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
    color: #222;
    margin: 0;
    position: relative;
    padding-bottom: 8px;
}
.gvv-titulo::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 48px; height: 3px;
    background: #f57c00;
    border-radius: 2px;
}

/* ── Selector de orden ── */
.gvv-orden-wrap { flex: 0 0 auto; }
.gvv-orden {
    padding: 9px 36px 9px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    background: #fff;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23888'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.gvv-orden:focus { border-color: #f57c00; }

/* ── Pestañas ── */
.gvv-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 20px;
}
.gvv-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.gvv-tab:hover { color: #f57c00; }
.gvv-tab.activo {
    color: #f57c00;
    border-bottom-color: #f57c00;
}
.gvv-tab-cnt {
    background: #f0f0f0;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
    color: #666;
}
.gvv-tab.activo .gvv-tab-cnt {
    background: #fff3e0;
    color: #f57c00;
}

/* ── Grid ── */
.gvv-grid {
    display: grid;
    grid-template-columns: repeat(var(--gvv-cols, 5), 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

/* ── Tarjeta ── */
.gvv-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.gvv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Animación de entrada */
.gvv-card.gvv-visible {
    animation: gvv-fadein 0.35s ease forwards;
}
@keyframes gvv-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gvv-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    z-index: 2;
}

.gvv-img-wrap { display: block; overflow: hidden; }
.gvv-img {
    width: 100%; height: 180px;
    object-fit: cover; display: block;
    transition: transform 0.3s ease;
}
.gvv-card:hover .gvv-img { transform: scale(1.05); }

/* ── Info ── */
.gvv-info {
    padding: 10px 12px 12px;
    display: flex; flex-direction: column;
    flex-grow: 1; gap: 5px;
}
.gvv-cat-label {
    font-size: 10px; color: #aaa;
    text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600;
}
.gvv-title {
    font-size: 13px; font-weight: 600; color: #222;
    text-decoration: none; line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gvv-title:hover { color: #f57c00; text-decoration: none; }

.gvv-prices {
    display: flex; align-items: center;
    gap: 6px; flex-wrap: wrap; margin-top: 2px;
}
.gvv-compare { font-size: 11px; color: #bbb; text-decoration: line-through; }
.gvv-price   { font-size: 16px; font-weight: 800; color: #e53935; }
.gvv-price-na { font-size: 12px; color: #999; font-style: italic; }

.gvv-btn {
    display: inline-flex; align-items: center;
    justify-content: center; gap: 6px;
    margin-top: auto;
    padding: 8px 10px;
    background: #25D366; color: #fff !important;
    border-radius: 8px; font-size: 12px; font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease;
    box-shadow: 0 2px 8px rgba(37,211,102,0.3);
}
.gvv-btn:hover { background: #1ebe57; color: #fff !important; }

/* ── Footer ── */
.gvv-footer { text-align: center; margin-top: 8px; }
.gvv-ver-mas {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #f57c00;
    color: #f57c00;
    border-radius: 30px;
    font-size: 14px; font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.gvv-ver-mas:hover { background: #f57c00; color: #fff; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .gvv-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .gvv-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gvv-tabs { gap: 0; }
    .gvv-tab  { padding: 8px 12px; font-size: 12px; }
    .gvv-header { flex-direction: column; align-items: flex-start; }
    .gvv-orden { width: 100%; }
}
@media (max-width: 400px) {
    .gvv-grid { grid-template-columns: 1fr; }
}
