/* ===================================================================
   Product Cards — [destaques_mes] slider
   =================================================================== */

/* Card base */
.pgb-destaques__slide .product-item {
    text-align: center;
    position: relative;
    padding: 25px;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    contain: layout style;
    border-radius: 12px;
}

/* Imagem */
.pgb-destaques__slide .product-image-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 1 / 1;
    background-color: #fff;
}
.pgb-destaques__slide .product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease-in-out;
    display: block;
}
.pgb-destaques__slide .product-image-wrapper .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
.pgb-destaques__slide .product-image-wrapper:hover .main-image {
    opacity: 0;
}
.pgb-destaques__slide .product-image-wrapper:hover .hover-image {
    opacity: 1;
}

/* Badges */
.pgb-destaques__slide .product-badges-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}
.pgb-destaques__slide .product-badge {
    color: #ffffff;
    padding: 6px 12px;
    font-size: 0.75em;
    font-weight: bold;
    border-radius: 100px;
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pgb-destaques__slide .badge-novidade { background-color: #0056d6; }
.pgb-destaques__slide .badge-eco { background-color: #28a745; }
.pgb-destaques__slide .badge-promocao { background-color: #dc3545; }
.pgb-destaques__slide .badge-best-seller { background-color: #800080; }
.pgb-destaques__slide .badge-apostas { background-color: #ff9a2f; }
.pgb-destaques__slide .badge-destaque { background-color: #28a745; }
.pgb-destaques__slide .badge-sustentavel { background-color: #17a2b8; }
.pgb-destaques__slide .badge-speed { background-color: #fd7e14; }
.pgb-destaques__slide .badge-speed::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url('https://storage.googleapis.com/wordpress-proglobal/sites/1/2025/05/e248b054-bolt-fill-svgrepo-com.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* Swatches de cor */
.pgb-destaques__slide .product-color-swatches {
    margin-bottom: 15px;
}
.pgb-destaques__slide .color-swatches-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.pgb-destaques__slide .color-swatches-row {
    display: grid;
    grid-template-columns: repeat(8, auto);
    gap: 6px;
    justify-content: start;
}
.pgb-destaques__slide .color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #ddd;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.65);
}
.pgb-destaques__slide .swatch-half {
    flex: 1;
    height: 100%;
}
.pgb-destaques__slide .swatch-container {
    position: relative;
    display: inline-flex;
}
.pgb-destaques__slide .swatch-container.hidden {
    display: none;
}

/* Tooltip */
.pgb-destaques__slide .swatch-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background-color: #222;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}
.pgb-destaques__slide .swatch-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}
.pgb-destaques__slide .swatch-container:hover .swatch-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Botao expandir cores */
.pgb-destaques__slide .swatches-expand-button {
    background: #fff !important;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #222 !important;
    padding: 2px 8px;
    transition: color 0.2s ease;
    line-height: 1;
    display: inline-block;
    box-shadow: none;
    text-shadow: none;
    white-space: nowrap;
}
.pgb-destaques__slide .swatches-expand-button:hover {
    color: #222222d8;
    background-color: #fff !important;
}

/* Texto do produto */
.pgb-destaques__slide .product-name-sku {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0px;
    text-align: left;
    color: #222;
    min-height: 2.4em;
}
.pgb-destaques__slide .product-title {
    font-size: 0.9rem;
    text-align: left;
    font-weight: 600;
    margin-bottom: 5px;
}
.pgb-destaques__slide .product-title a {
    color: #222;
    text-decoration: none;
    font-weight: 600;
    text-align: left;
}
.pgb-destaques__slide .product-title a:hover {
    color: #0069A7;
}

/* Preco */
.pgb-destaques__slide .product-price {
    font-weight: 700;
    text-align: left;
    font-size: 0.8rem;
    color: #0069a7;
    margin-bottom: 5px;
    line-height: 1.4rem;
    background-color: #fff;
    width: fit-content;
    padding: 5px 0px !important;
}
.pgb-destaques__slide .iva-label {
    font-size: 0.75em;
    color: #555;
    margin-left: 4px;
    font-weight: 500;
}

/* Quantidade minima */
.pgb-destaques__slide .product-min-quantity {
    font-size: 0.7rem;
    color: #222;
    margin-bottom: 5px;
    text-align: left;
    line-height: 1.4rem;
    width: fit-content;
}

/* Data de entrega */
.pgb-destaques__slide .data-entrega-grelha {
    font-size: 0.7rem;
    color: #222;
    text-align: left;
    line-height: 0.5rem;
    width: fit-content;
}
