.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;
}

/* Estilos para o contador de itens */
.group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.group-header h2 {
    flex: 1;
}

.items-counter {
    background-color: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.items-counter.warning {
    background-color: #f39c12;
    animation: pulse-warning 0.5s ease-out;
}

@keyframes pulse-warning {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* 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;
}