/* =================================================
 * FAZZIONE PRODUCT GRID
 * ================================================= */
.fz-pg-widget {
    --fz-pg-gap: 16px;
    position: relative;
    width: 100%;
}
.fz-pg-widget *,
.fz-pg-widget *::before,
.fz-pg-widget *::after {
    box-sizing: border-box;
}

.fz-pg-notice {
    padding: 24px;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    text-align: center;
    color: #666;
    border-radius: 8px;
}

/* ============ GRID ============ */
.fz-pg-grid {
    display: grid;
    width: 100%;
}
.fz-pg-card-wrap.fz-pg-hidden { display: none; }
.fz-pg-card-wrap.fz-pg-show {
    display: block;
    animation: fzPgFadeIn .4s ease;
}
@keyframes fzPgFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============ CARD ============ */
.fz-pg-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.fz-pg-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}

/* ============ IMAGEM + HOVER ============ */
.fz-pg-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #fff;
    border-radius: 12px 12px 0 0;
}
/* Aspect ratio default por data-attribute (caso CSS do Elementor não carregue) */
.fz-pg-image-wrap[data-aspect="1/1"]  { aspect-ratio: 1/1; }
.fz-pg-image-wrap[data-aspect="4/5"]  { aspect-ratio: 4/5; }
.fz-pg-image-wrap[data-aspect="3/4"]  { aspect-ratio: 3/4; }
.fz-pg-image-wrap[data-aspect="2/3"]  { aspect-ratio: 2/3; }
.fz-pg-image-wrap[data-aspect="4/3"]  { aspect-ratio: 4/3; }
.fz-pg-image-wrap[data-aspect="16/9"] { aspect-ratio: 16/9; }
.fz-pg-image-wrap[data-aspect="auto"] {
    aspect-ratio: unset;
    height: auto;
}
.fz-pg-image-wrap[data-aspect="auto"] .fz-pg-img {
    position: static;
    height: auto;
}
.fz-pg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .4s ease, transform .6s ease;
}
.fz-pg-img-hover {
    opacity: 0;
}
.fz-pg-card:hover .fz-pg-img-main {
    opacity: 0;
}
.fz-pg-card:hover .fz-pg-img-hover {
    opacity: 1;
    transform: scale(1.03);
}

/* Sem imagem de hover → zoom suave */
.fz-pg-card:hover .fz-pg-img-main:only-of-type {
    opacity: 1;
    transform: scale(1.04);
}

/* ============ BADGE ============ */
.fz-pg-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    background: #fff;
    color: #0F2A33;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    z-index: 2;
    letter-spacing: 0.2px;
}
.fz-pg-badge.is-discount {
    background: #2BC4D9;
    color: #fff;
    font-size: 12px;
}
.fz-pg-badge.is-discount strong {
    font-size: 14px;
    margin-left: 4px;
}

/* ============ INFO ============ */
.fz-pg-info {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.fz-pg-name {
    font-size: 15px;
    font-weight: 600;
    color: #0F2A33;
    margin: 0;
    line-height: 1.35;
    /* Limita a 2 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============ STARS ============ */
.fz-pg-stars {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 1;
}
.fz-pg-stars-bg,
.fz-pg-stars-fg {
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
}
.fz-pg-stars-bg {
    color: #E5E7EB;
    position: relative;
}
.fz-pg-stars-fg {
    color: #FFB400;
    position: absolute;
    inset: 0;
    overflow: hidden;
    white-space: nowrap;
}
.fz-pg-stars {
    position: relative;
}
.fz-pg-stars-count {
    color: #64748B;
    font-size: 12px;
    margin-left: 4px;
    position: relative;
    z-index: 1;
}

/* ============ PREÇO ============ */
.fz-pg-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 16px;
}
.fz-pg-price-old {
    color: #94A3B8;
    text-decoration: line-through;
    font-size: 13px;
    font-weight: 500;
}
.fz-pg-price-now,
.fz-pg-price-regular {
    color: #0F2A33;
    font-weight: 700;
    font-size: 18px;
}
.fz-pg-price-regular .price { color: inherit; font-weight: inherit; }
.fz-pg-price-regular del { color: #94A3B8; font-weight: 500; margin-right: 6px; }
.fz-pg-price-regular ins { background: none; text-decoration: none; }

/* ============ ECONOMIZE ============ */
.fz-pg-save {
    align-self: flex-start;
    background: #E8F9F1;
    color: #0F8755;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

/* ============ SWATCHES ============ */
.fz-pg-swatches {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.fz-pg-swatch,
.fz-pg-swatch-more {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08), inset 0 0 0 2px #fff;
}
.fz-pg-swatch-more {
    background: #fff;
    color: #64748B;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 0 0 1px #cbd5e1;
}

/* ============ VER MAIS ============ */
.fz-pg-load-more-wrap {
    text-align: center;
    margin-top: 28px;
}
.fz-pg-load-more {
    background: #2BC4D9;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}
.fz-pg-load-more:hover {
    background: #0A4A5C;
    transform: translateY(-1px);
}

/* ============ SLIDER ============ */
.fz-pg-slider {
    position: relative;
    width: 100%;
}
.fz-pg-slider-viewport {
    overflow: hidden;
    width: 100%;
}
.fz-pg-slider-track {
    display: flex;
    transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.fz-pg-slide {
    flex-shrink: 0;
    box-sizing: border-box;
}

.fz-pg-arrow {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    background: #fff;
    color: #0A4A5C;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, transform .25s ease;
}
.fz-pg-prev { left: -10px; }
.fz-pg-next { right: -10px; }
.fz-pg-arrow:hover {
    background: #0A4A5C;
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.fz-pg-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}
.fz-pg-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, transform .2s ease;
}
.fz-pg-dot.active { background: #2BC4D9; transform: scale(1.2); }

/* ============ PAGINAÇÃO WC (modo arquivo atual) ============ */
.fz-pg-pagination {
    margin-top: 28px;
}
.fz-pg-pagination .woocommerce-pagination {
    text-align: center;
}
.fz-pg-pagination .woocommerce-pagination ul.page-numbers {
    display: inline-flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.fz-pg-pagination .woocommerce-pagination ul.page-numbers li {
    display: block;
}
.fz-pg-pagination .woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: #fff;
    color: #0F2A33;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background .2s ease, color .2s ease;
    border: 1px solid #E5E7EB;
}
.fz-pg-pagination .woocommerce-pagination .page-numbers:hover {
    background: #2BC4D9;
    color: #fff;
    border-color: #2BC4D9;
}
.fz-pg-pagination .woocommerce-pagination .page-numbers.current {
    background: #2BC4D9;
    color: #fff;
    border-color: #2BC4D9;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .fz-pg-arrow { width: 38px; height: 38px; font-size: 22px; }
    .fz-pg-prev { left: -4px; }
    .fz-pg-next { right: -4px; }
}

@media (max-width: 768px) {
    .fz-pg-info { padding: 12px 8px; gap: 6px; }
    .fz-pg-name { font-size: 13.5px; }
    .fz-pg-price-now,
    .fz-pg-price-regular { font-size: 16px; }
    .fz-pg-badge { font-size: 10px; padding: 6px 8px; }
    .fz-pg-load-more { padding: 12px 24px; font-size: 13px; }
}

@media (max-width: 480px) {
    .fz-pg-name {
        -webkit-line-clamp: 3;
        font-size: 12.5px;
    }
    .fz-pg-swatch,
    .fz-pg-swatch-more { width: 16px; height: 16px; }
    .fz-pg-arrow {
        width: 32px; height: 32px; font-size: 18px;
        top: 30%;
    }
}
