/**
 * Tienda - Fungiverse Crecienta
 *
 * @package Fungiverse
 */

.fv-shop {
    background: var(--fv-bg);
    padding: var(--fv-space-3xl) 0;
}

.fv-shop__inner {
    width: min(100% - (var(--fv-gutter) * 2), var(--fv-container-wide));
    margin: 0 auto;
}

.fv-shop__header {
    margin-bottom: var(--fv-space-xl);
}

.fv-shop__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fv-space-sm);
    font-size: var(--fv-text-sm);
    color: var(--fv-text-muted);
    margin-bottom: var(--fv-space-lg);
}

.fv-shop__breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.fv-shop__intro {
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--fv-space-4xl) var(--fv-space-2xl) var(--fv-space-2xl);
    background: var(--fv-gradient-warm);
    color: var(--fv-text-light);
    border-radius: var(--fv-radius-xl);
}

.fv-shop__eyebrow {
    margin: 0 0 var(--fv-space-sm);
    font-size: var(--fv-text-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fv-kraft-dark);
}

.fv-shop__title {
    margin: 0;
    font-family: var(--fv-font-heading);
    font-size: var(--fv-text-4xl);
    color: var(--fv-text-light);
}

.fv-shop__meta {
    display: flex;
    flex-direction: column;
    gap: var(--fv-space-md);
    color: var(--fv-text-muted);
}

.fv-shop__ordering select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--fv-border);
    border-radius: var(--fv-radius-full);
    padding: 0 var(--fv-space-lg);
    background: #fff;
    color: var(--fv-text);
    font: inherit;
}

.fv-shop__search {
    position: sticky;
    top: calc(var(--fv-space-xl) + 4.5rem);
    z-index: var(--fv-z-sticky);
    display: grid;
    gap: var(--fv-space-md);
    margin-bottom: var(--fv-space-2xl);
    padding: var(--fv-space-lg);
    border: 1px solid var(--fv-border);
    border-radius: var(--fv-radius-xl);
    background: rgba(250, 250, 245, 0.92);
    backdrop-filter: blur(12px);
}

.fv-shop__search-input {
    width: 100%;
    min-height: 54px;
    padding: 0 var(--fv-space-lg);
    border: 1px solid var(--fv-kraft);
    border-radius: var(--fv-radius-full);
    background: #fff;
    color: var(--fv-text);
    font: inherit;
}

.fv-shop__search-input::placeholder {
    color: var(--fv-text-subtle);
}

.fv-shop__search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fv-space-sm);
}

.fv-shop__tag {
    border: 1px solid var(--fv-border);
    border-radius: var(--fv-radius-full);
    background: #fff;
    color: var(--fv-text);
    padding: 0.7rem 1rem;
    font: inherit;
    transition: transform var(--fv-transition-fast), background var(--fv-transition-fast), color var(--fv-transition-fast), border-color var(--fv-transition-fast);
}

.fv-shop__tag:hover,
.fv-shop__tag.is-active {
    transform: translateY(-2px);
    background: var(--fv-kraft);
    border-color: var(--fv-kraft);
    color: var(--fv-bg-dark);
}

.fv-shop__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--fv-space-lg);
}

.fv-product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--fv-border-light);
    border-radius: var(--fv-radius-xl);
    background: #fff;
    overflow: hidden;
    box-shadow: var(--fv-shadow-sm);
    transition: transform var(--fv-transition-base), box-shadow var(--fv-transition-base), border-color var(--fv-transition-base);
}

.fv-product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--fv-shadow-lg);
    border-color: var(--fv-border);
}

.fv-product-card--hidden {
    display: none;
}

.fv-product-card__image-link {
    display: block;
    text-decoration: none;
}

.fv-product-card__image {
    position: relative;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--fv-beige) 0%, var(--fv-bg) 100%);
    overflow: hidden;
}

.fv-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.fv-product-card:hover .fv-product-card__image img {
    transform: scale(1.03);
    transition: transform 400ms ease;
}

.fv-product-card__body {
    display: grid;
    gap: var(--fv-space-sm);
    padding: var(--fv-space-xl);
}

.fv-product-card__title {
    margin: 0;
    font-family: var(--fv-font-heading);
    font-size: var(--fv-text-xl);
    font-weight: 700;
    line-height: 1.2;
    color: var(--fv-text);
}

.fv-product-card__format {
    margin: 0;
    color: var(--fv-text-muted);
    font-size: var(--fv-text-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.fv-product-card__price {
    margin-bottom: var(--fv-space-sm);
    color: var(--fv-red);
    font-size: var(--fv-text-lg);
    font-weight: 700;
}

.fv-product-card__price .price,
.fv-product-card__price .woocommerce-Price-amount {
    color: inherit;
}

.fv-shop__pagination {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fv-space-sm);
    justify-content: center;
    margin-top: var(--fv-space-2xl);
}

.fv-shop__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--fv-border);
    background: #fff;
    color: var(--fv-text);
    text-decoration: none;
}

.fv-shop__page--current {
    background: var(--fv-red);
    border-color: var(--fv-red);
    color: var(--fv-text-light);
}

.fv-shop__empty {
    padding: var(--fv-space-2xl);
    border: 1px dashed var(--fv-border);
    border-radius: var(--fv-radius-xl);
    text-align: center;
    color: var(--fv-text-muted);
}

@media (min-width: 768px) {
    .fv-shop__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .fv-shop__intro {
        flex-direction: row;
        align-items: end;
        justify-content: space-between;
    }

    .fv-shop__meta {
        align-items: flex-end;
        text-align: right;
    }

    .fv-shop__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--fv-space-xl);
    }
}
