/**
 * WC Vitrine Ultimate - Frontend Styles
 * 
 * Extracted from original inline CSS - DO NOT MODIFY layout/visual properties
 * @version 19.0.0
 */

/* GENERAL */
.wvu-wrapper {
    margin-bottom: 40px;
    position: relative;
}

.wvu-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(2, 1fr);
}

@media(min-width: 768px) {
    .wvu-grid.cols-1 {
        grid-template-columns: 1fr;
    }

    .wvu-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .wvu-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .wvu-grid.cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .wvu-grid.cols-5 {
        grid-template-columns: repeat(5, 1fr);
    }

    .wvu-grid.cols-6 {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media(max-width: 768px) {
    .wvu-grid.cols-1 {
        grid-template-columns: 1fr;
    }
}

.wvu-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: 0.3s;
    width: 100%;
}

.wvu-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* SWIPER FIXES */
.swiper-slide {
    height: auto !important;
    display: flex;
}

/* WISHLIST */
.wvu-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    color: #ccc;
    cursor: pointer;
    transition: 0.2s;
    background: transparent;
    border: none;
}

.wvu-wishlist-btn:hover,
.wvu-wishlist-btn.loved {
    color: #ff4757;
    fill: #ff4757;
    transform: scale(1.1);
}

.wvu-wishlist-btn.loading::before {
    display: none !important;
}

/* CARD ELEMENTS */
.wvu-img {
    display: block;
    padding-top: 100%;
    position: relative;
    width: 100%;
}

.wvu-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =============================================
   BADGES - ESTILO UNIFICADO (Base: Badge Personalizado)
   ============================================= */

/* Estilo Base para TODOS os badges */
.wvu-floating-badges .onsale,
.wvu-floating-badges .wvu-default-woo,
.wvu-floating-badges .wvu-badge-percent,
.wvu-badge-custom {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    text-align: center;
    margin: 0;
}

/* Container dos Badges Flutuantes (sobre a imagem) */
.wvu-floating-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 9;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

/* Badge WooCommerce "OFERTA!" - Cores padrão (sobrescritas via inline style) */
.wvu-floating-badges .onsale,
.wvu-floating-badges .wvu-default-woo {
    background: #77a464;
    color: #fff;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
}

/* Badge Porcentagem "Baixou XX%" - Cores via inline style */
.wvu-floating-badges .wvu-badge-percent {
    background: #e74c3c;
    color: #fff;
}

/* Badge Personalizado - Cores via inline style */
.wvu-badge-custom {
    background: #27ae60;
    color: #fff;
}

.wvu-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wvu-cat {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
}

.wvu-cat a {
    color: inherit;
    text-decoration: none;
}

.wvu-info h4 {
    margin: 5px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.wvu-info h4 a {
    text-decoration: none;
    color: #333;
}

.wvu-rating {
    font-size: 13px;
    margin-bottom: 5px;
}

.wvu-stars-link {
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

.wvu-footer {
    margin-top: auto;
    padding-top: 10px;
}

.wvu-price {
    font-weight: bold;
    color: #333;
    font-size: 15px;
    margin-bottom: 8px;
}

.wvu-btn-prod.loading {
    opacity: 0.5;
    pointer-events: none;
}

.wvu-btn-prod.added::after {
    content: ' ✔';
}

.wvu-btn-prod {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

/* BANNER */
.wvu-banner-card {
    background-size: cover;
    background-position: center;
    justify-content: flex-end;
    min-height: 300px;
    position: relative;
}

.banner-span {
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
    min-height: auto;
}

@media(min-width: 768px) {
    .banner-span {
        grid-column: span 1;
        aspect-ratio: auto;
        min-height: 100%;
    }
}

/* OVERLAY */
.wvu-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
    transition: background 0.3s;
}

.wvu-banner-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    pointer-events: none;
}

.wvu-banner-content * {
    pointer-events: auto;
}

.wvu-btn-banner {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
}