.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    padding: 8px;
    transition: opacity 0.2s ease;
    font-size: 16px;
}

.back-button:hover {
    opacity: 0.8;
}
.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff !important;
    text-decoration: none !important;
    padding: 8px 12px !important;
    transition: opacity 0.2s ease;
    font-size: 16px;
    background: transparent !important;
}

.back-button:hover {
    opacity: 0.9;
}

.back-button svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    display: inline-block;
}

.back-button span {
    font-size: 16px;
}

/* Hide any leftover icon elements or pseudo-elements that may draw a square */
.product-header .back-button i,
.product-header .back-button::before,
.product-header .back-button::after,
.product-header .back-button [class*="fa-"],
.product-header .back-button [role="img"] {
    display: none !important;
    background: none !important;
    content: none !important;
}

/* Ensure no background image or border shows */
.product-header .back-button {
    background-image: none !important;
    border: none !important;
}

/* If another stylesheet sets a fixed-position .voltar, prefer this header button */
.product-header .back-button {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
}

/* === Esconder visualmente marcas 'Grátis' em itens gratuitos === */
/* Remove visualmente o texto 'Grátis' somente para itens que têm data-price="0" */
.option-item[data-price="0"] .item-info .item-price,
.option-item[data-price="0"] .tag-gratis {
    display: none !important;
}

/* Carousel styles */
#product-carousel {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 6px;
    background: #f7f7f7;
}
.carousel-track {
    display: flex;
    transition: transform 300ms ease;
    will-change: transform;
}
.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.carousel-slide img {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-indicators {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.7);
    cursor: pointer;
}
.carousel-indicators button.active { background: rgba(255,255,255,1); }

@media (max-width: 600px) {
    #product-carousel { max-width: 100%; }
    .carousel-slide img { max-height: 300px; }
}
