/**
 * Single Product Styles
 * Mobile-first
 */

/* Container Principal */
.candini-product {
    width: 100%;
    max-width: 100%;
    background: #FFFFFF;
    overflow-x: hidden; /* Previne scroll horizontal */
    box-sizing: border-box;
}

/* Garante que o body não permita scroll horizontal nesta página */
body.single-product {
    overflow-x: hidden;
    max-width: 100%;
}

.candini-product__container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
    width: 100%;
}

/* Mobile: Tudo empilhado */
.candini-product__gallery,
.candini-product__content {
    width: 100%;
}

.candini-product__content > * {
    margin-bottom: 20px;
}

.candini-product__content > *:last-child {
    margin-bottom: 0;
}

/* Produtos Relacionados */
.candini-product__related {
    max-width: 1500px;
    margin: 40px auto 0;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Tablet */
@media (min-width: 768px) {
    .candini-product__container {
        padding: 24px;
    }
    
    .candini-product__related {
        padding: 0 24px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .candini-product__container {
        display: grid;
        grid-template-columns: minmax(0, 45%) minmax(0, 55%); /* Galeria menor, conteúdo maior - minmax garante que respeite limites */
        gap: 48px;
        padding: 48px 32px;
        max-width: 1500px;
        box-sizing: border-box;
        width: 100%;
        overflow-x: hidden; /* Previne overflow horizontal */
        align-items: start; /* CRÍTICO: Alinha ambas as colunas no topo */
    }
    
    /* Galeria - Regras consolidadas */
    .candini-product__gallery {
        min-width: 0; /* CRÍTICO: permite que o grid respeite os limites */
        max-width: 100%;
        box-sizing: border-box;
        position: sticky;
        top: 0px;
        align-self: start; /* Alinha no topo do grid */
        height: auto;
        overflow: visible; /* Permite que a imagem defina o espaço */
        display: flex;
        flex-direction: column;
    }
    
    /* Conteúdo - Regras corrigidas */
    .candini-product__content {
        min-width: 0; /* CRÍTICO: permite que o grid respeite os limites */
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden; /* Previne scroll horizontal */
        align-self: start; /* CRÍTICO: Alinha no topo do grid */
        word-wrap: break-word; /* Quebra palavras longas */
        overflow-wrap: break-word; /* Quebra palavras longas */
    }
    
    /* Garante que todos os elementos filhos respeitem os limites */
    .candini-product__content > * {
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden; /* Previne overflow em cada elemento */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .candini-product__related {
        padding: 0 32px; /* ALINHADO com o container (32px) */
        box-sizing: border-box;
        max-width: 1500px;
        width: 100%;
    }
    
    /* Galeria principal - altura automática baseada na imagem */
    .candini-product-gallery {
        height: auto; /* Altura baseada na imagem */
        overflow: visible;
        display: flex;
        flex-direction: column;
    }
    
    .candini-gallery-main {
        width: 100%;
        height: auto; /* Altura baseada na imagem */
        overflow: visible;
        display: block;
        background: transparent; /* Sem background */
    }
    
    .candini-gallery-main .swiper-wrapper {
        height: auto; /* Altura automática baseada na imagem */
    }
    
    .candini-gallery-main .swiper-slide {
        height: auto; /* Altura automática baseada na imagem */
        display: block;
        padding: 0;
        background: transparent; /* Sem background */
    }
    
    .candini-gallery-main__image {
        width: 100%;
        height: auto; /* Altura natural da imagem - SEM LIMITES */
        max-width: 100%;
        object-fit: contain; /* MOSTRA IMAGEM COMPLETA SEM CORTAR */
        display: block;
    }
    
    /* Thumbnails fixos no final */
    .candini-gallery-thumbs {
        flex: 0 0 auto;
        margin-top: 20px;
    }
}

/* Desktop Large */
@media (min-width: 1400px) {
    .candini-product__container {
        grid-template-columns: minmax(0, 45%) minmax(0, 55%); /* Mantém proporção com minmax para prevenir overflow */
        gap: 60px;
        padding: 60px 40px;
        overflow-x: hidden; /* Previne overflow */
    }
    
    .candini-product__related {
        padding: 0 40px; /* ALINHADO com o container (40px) */
    }
}

/* ================================
   GALERIA DE FOTOS
================================ */

.candini-product-gallery {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Galeria Principal */
.candini-gallery-main {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: transparent; /* Sem background cinza */
    margin-bottom: 12px;
    cursor: zoom-in;
    order: 1;
}

.candini-gallery-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* Sem background cinza */
}

.candini-gallery-main__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Preenche todo o espaço sem deixar vazios */
}

/* Thumbnails - SEMPRE EMBAIXO (horizontal) */
.candini-gallery-thumbs {
    width: 100%;
    display: block;
    order: 2;
}

.candini-gallery-thumbs .swiper-wrapper {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.candini-gallery-thumbs .swiper-slide {
    width: 70px !important;
    height: 70px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s;
    opacity: 0.6;
    background: #F5F5F5;
}

.candini-gallery-thumbs .swiper-slide:hover {
    opacity: 0.8;
}

.candini-gallery-thumbs .swiper-slide-thumb-active {
    border-color: var(--color-primary);
    opacity: 1;
}

.candini-gallery-thumbs__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tablet/Desktop - Apenas ajuste de tamanho */
@media (min-width: 768px) {
    .candini-gallery-main {
        margin-bottom: 16px;
    }
    
    .candini-gallery-thumbs .swiper-wrapper {
        gap: 12px;
    }
    
    .candini-gallery-thumbs .swiper-slide {
        width: 80px !important;
        height: 80px;
    }
}

@media (min-width: 1024px) {
    .candini-gallery-main {
        margin-bottom: 20px;
    }
    
    .candini-gallery-thumbs .swiper-wrapper {
        gap: 16px;
    }
    
    .candini-gallery-thumbs .swiper-slide {
        width: 90px !important;
        height: 90px;
    }
}

/* ================================
   LIGHTBOX
================================ */

.candini-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999 !important; /* Z-index muito alto para ficar acima de todo conteúdo */
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px;
    isolation: isolate; /* Cria um novo contexto de empilhamento */
}

.candini-lightbox.is-active {
    display: flex;
}

.candini-lightbox__content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.candini-lightbox__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Botão Fechar */
.candini-lightbox__close {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 100001;
}

.candini-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Setas de Navegação */
.candini-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 100001;
}

.candini-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.candini-lightbox__prev {
    left: 15px;
}

.candini-lightbox__next {
    right: 15px;
}

@media (min-width: 768px) {
    .candini-lightbox {
        padding: 80px 40px 40px;
    }
    
    .candini-lightbox__close {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .candini-lightbox__nav {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .candini-lightbox__prev {
        left: 20px;
    }
    
    .candini-lightbox__next {
        right: 20px;
    }
}

/* Ajuste específico para Laptop/Desktop */
@media (min-width: 1024px) {
    .candini-lightbox__close {
        display: flex; /* Garante que está visível */
        top: 130px; /* 100px original + 30px para não ficar atrás do header */
        right: 40px;
    }
}

/* ================================
   PRODUCT INFO - Título e Preços
================================ */

.candini-product-info {
    padding: 0;
    margin-bottom: 24px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Mobile e Tablet: padding superior */
@media (max-width: 1023px) {
    .candini-product-info {
        padding-top: 20px;
    }
}

/* Título */
.product-title {
    margin: 0 0 20px 0;
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #16121C;
}

/* Container de Preços */
.product-price {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Preço Regular (riscado) */
.price-regular {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-regular .price-label {
    font-size: 14px;
    color: #999999;
}

.price-regular .price-value {
    font-size: 15px;
    color: #999999;
    text-decoration: line-through;
}

/* Preço Promocional / Principal */
.price-sale {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.price-sale .price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.price-sale .price-suffix {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-primary);
}

/* Badge de Desconto */
.price-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: var(--color-primary);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Parcelamento */
.price-installment {
    font-size: 13px;
    color: #666666;
    margin-top: 4px;
}

.price-installment strong {
    color: #16121C;
    font-weight: 600;
}

/* Tablet */
@media (min-width: 768px) {
    .product-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .price-regular .price-value {
        font-size: 16px;
    }
    
    .price-sale .price-value {
        font-size: 28px;
    }
    
    .price-sale .price-suffix {
        font-size: 16px;
    }
    
    .price-badge {
        font-size: 14px;
        padding: 8px 14px;
    }
    
    .price-installment {
        font-size: 14px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .product-title {
        font-size: 28px;
    }
    
    .price-sale .price-value {
        font-size: 32px;
    }
}

/* ================================
   VARIAÇÕES - Tamanho e Cor
================================ */

.candini-product-variations {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible; /* Permite que elementos filhos não sejam cortados */
}

.variation-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible; /* Permite que elementos filhos não sejam cortados */
    min-height: fit-content; /* Garante altura suficiente */
}

.variation-label {
    font-size: 15px;
    font-weight: 600;
    color: #16121C;
    margin: 0;
}

.variation-selected-color {
    font-weight: 400;
    color: #666666;
}

.variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible; /* Permite que scale e box-shadow não sejam cortados */
    padding: 6px 6px; /* Espaço vertical e lateral para acomodar scale(1.1) + box-shadow(4px) */
    min-height: fit-content; /* Garante altura suficiente */
}

/* Tamanhos - Quadrados */
.variation-option--size {
    min-width: 50px;
    height: 50px;
    padding: 0 12px;
    background: #FFFFFF;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    color: #16121C;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.variation-option--size:hover {
    border-color: #CCCCCC;
}

.variation-option--size.is-selected {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(49, 7, 117, 0.05);
}

.variation-option--size:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Cores - Bolinhas */
.variation-option--color {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    flex-shrink: 0;
    z-index: 0; /* Garante que fica abaixo do lightbox */
}

/* Quando o lightbox está ativo, as bolinhas ficam abaixo */
body:has(.candini-lightbox.is-active) .variation-option--color {
    z-index: -1;
}

.variation-option--color:hover {
    transform: scale(1.1);
}

.variation-option--color.is-selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--color-primary);
}

.variation-option--color:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ================================
   GUIA DE MEDIDAS
================================ */

.candini-product__size-guide {
    margin-bottom: 24px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.btn-size-guide {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-size-guide:hover {
    color: var(--color-black);
}

.btn-size-guide i {
    flex-shrink: 0;
    font-size: 16px;
}

/* Modal Guia de Medidas */
.size-guide-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.size-guide-modal.is-active {
    display: block;
}

.size-guide-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.size-guide-modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.size-guide-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #E0E0E0;
}

.size-guide-modal__header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #16121C;
}

.size-guide-modal__close {
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    color: #666666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.size-guide-modal__close:hover {
    background: #F5F5F5;
}

.size-guide-modal__body {
    padding: 20px;
    overflow-y: auto;
}

/* Tabela */
.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.size-guide-table th,
.size-guide-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #E0E0E0;
}

.size-guide-table th {
    background: #F5F5F5;
    font-weight: 600;
    color: #16121C;
    font-size: 14px;
}

.size-guide-table td {
    font-size: 14px;
    color: #666666;
}

.size-guide-tips {
    padding: 16px;
    background: #F9F9F9;
    border-radius: 8px;
}

.size-guide-tips p {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #16121C;
}

.size-guide-tips ul {
    margin: 0;
    padding-left: 20px;
}

.size-guide-tips li {
    font-size: 13px;
    color: #666666;
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .variation-option--size {
        min-width: 56px;
        height: 56px;
        font-size: 16px;
    }
    
    .variation-option--color {
        width: 28px;
        height: 28px;
    }
    
    .variation-options--color {
        padding: 8px 8px; /* Mais espaço para bolinhas maiores (28px) com scale e box-shadow */
    }
}

/* ================================
   AÇÕES - Quantidade e Botões
================================ */

.candini-product-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Form dentro de .candini-product-actions - Mobile */
.candini-product-actions > form.cart {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Quantidade */
.product-quantity {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quantity-label {
    font-size: 15px;
    font-weight: 600;
    color: #16121C;
    margin: 0;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    width: fit-content;
}

.quantity-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    color: #666666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quantity-btn:hover {
    color: var(--color-primary);
    background: rgba(49, 7, 117, 0.05);
}

.quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quantity-input {
    width: 60px;
    height: 44px;
    border: none;
    border-left: 1px solid #E0E0E0;
    border-right: 1px solid #E0E0E0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #16121C;
    appearance: textfield;
    -moz-appearance: textfield;
    background: transparent;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Mensagem de Validação */
.product-validation-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.product-validation-message.is-error {
    background: #FFF3F3;
    color: #D32F2F;
    border: 1px solid #FFCDD2;
}

.product-validation-message.is-success {
    background: #F1F8F4;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

/* Botão Adicionar ao Carrinho */
.btn-add-to-cart {
    width: 100%;
    padding: 16px 24px;
    background: var(--color-primary);
    border: none;
    border-radius: 6px;
    color: #FFFFFF;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px; /* Altura fixa para igualar com botão WhatsApp (mobile) */
    box-sizing: border-box;
}

.btn-add-to-cart:hover {
    background: var(--color-black);
}

.btn-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-add-to-cart .btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Botão WhatsApp */
.btn-whatsapp {
    width: 100%;
    padding: 16px 24px;
    background: #25D366;
    border: 2px solid #25D366;
    border-radius: 6px;
    color: #FFFFFF;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px; /* Altura fixa para igualar com botão Adicionar ao Carrinho (mobile) */
    box-sizing: border-box;
}

.btn-whatsapp:hover {
    background: #1FA855;
    border-color: #1FA855;
    color: #FFFFFF;
}

.btn-whatsapp svg {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .candini-product-actions {
        flex-direction: row;
        align-items: flex-end;
        gap: 16px;
        flex-wrap: wrap;
        max-width: 100%; /* Garante que não ultrapasse */
        box-sizing: border-box;
    }
    
    /* Form dentro de .candini-product-actions deve herdar flex */
    .candini-product-actions > form.cart {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        gap: 16px;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .product-quantity {
        flex: 0 0 auto;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .quantity-selector {
        height: 54px; /* Mesma altura do botão (18px padding top + 18px padding bottom + 18px line-height = 54px) */
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .product-validation-message {
        width: 100%;
        order: 3;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .candini-product-actions > form.cart > .btn-add-to-cart,
    .btn-add-to-cart {
        flex: 1 1 auto;
        min-width: 200px;
        width: auto;
        max-width: 100%; /* Garante que não ultrapasse */
        height: 54px; /* Altura fixa para alinhar com quantidade */
        box-sizing: border-box;
    }
    
    .candini-product-actions > form.cart > .btn-whatsapp,
    .btn-whatsapp {
        width: 100%;
        max-width: 100%; /* Garante que não ultrapasse */
        order: 4;
        box-sizing: border-box;
    }
    
    .quantity-btn {
        width: 48px;
        height: 54px; /* Mesma altura do container */
    }
    
    .quantity-input {
        height: 54px; /* Mesma altura do container */
        width: 70px;
        border-left: 1px solid #E0E0E0;
        border-right: 1px solid #E0E0E0;
        box-sizing: border-box;
    }
    
    .btn-add-to-cart,
    .btn-whatsapp {
        font-size: 16px;
        padding: 18px 28px;
    }
}

/* ================================
   PRODUCT META - Frete, Badges, Compartilhar
================================ */

.candini-product-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

/* Calcular Frete */
.shipping-calculator {
    padding: 20px;
    background: #F9F9F9;
    border-radius: 8px;
}

.shipping-calculator__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #16121C;
    margin-bottom: 12px;
}

.shipping-calculator__label svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

.shipping-calculator__form {
    display: flex;
    gap: 8px;
}

.shipping-calculator__input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 15px;
    color: #16121C;
    transition: border-color 0.2s;
}

.shipping-calculator__input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.shipping-calculator__button {
    padding: 12px 24px;
    background: var(--color-primary);
    border: none;
    border-radius: 6px;
    color: #FFFFFF;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.shipping-calculator__button:hover {
    background: var(--color-black);
}

.shipping-calculator__results {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E0E0E0;
}

.shipping-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F0F0F0;
}

.shipping-option:last-child {
    border-bottom: none;
}

.shipping-option__name {
    font-size: 14px;
    font-weight: 600;
    color: #16121C;
}

.shipping-option__details {
    display: flex;
    gap: 12px;
    align-items: center;
}

.shipping-option__price {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
}

.shipping-option__time {
    font-size: 13px;
    color: #666666;
}

/* Badges de Confiança - Cards Clean */
.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: none;
}

.trust-badge:hover {
    border: none;
    box-shadow: none;
}

.trust-badge__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    color: var(--color-primary);
}

.trust-badge__icon svg {
    width: 20px;
    height: 20px;
}

.trust-badge__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.trust-badge__title {
    font-size: 15px;
    font-weight: 600;
    color: #16121C;
    line-height: 1.3;
}

.trust-badge__subtitle {
    font-size: 13px;
    color: #666666;
    line-height: 1.4;
}

/* Compartilhar */
.product-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-share__label {
    font-size: 15px;
    font-weight: 600;
    color: #16121C;
}

.product-share__buttons {
    display: flex;
    gap: 8px;
}

.share-button {
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 2px solid #E0E0E0;
    border-radius: 50%;
    color: #666666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.share-button:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.share-button--whatsapp:hover {
    border-color: #25D366;
    color: #25D366;
}

.share-button--facebook:hover {
    border-color: #1877F2;
    color: #1877F2;
}

.share-feedback {
    font-size: 13px;
    color: #4CAF50;
    font-weight: 500;
    margin-left: 8px;
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* ================================
   DESCRIÇÃO - Accordion
================================ */

.candini-product-description {
    border-top: 1px solid #E0E0E0;
    padding-top: 24px;
}

.accordion-item {
    border-bottom: 1px solid #E0E0E0;
}

.accordion-header {
    width: 100%;
    padding: 20px 0;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    color: #16121C;
    text-align: left;
}

.accordion-icon {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.is-open {
    max-height: 2000px;
    padding-bottom: 20px;
}

.accordion-content p {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

/* Outras Informações */
.product-info-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 13px;
    font-weight: 600;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 15px;
    color: #16121C;
}

@media (min-width: 768px) {
    .shipping-calculator__form {
        max-width: 400px;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 12px;
    }
    
    .product-info-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .info-item {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (min-width: 1024px) {
    .trust-badges {
        flex-direction: column;
        gap: 12px;
    }
}

/* ================================
   PRODUTOS RELACIONADOS
================================ */

.candini-related-products {
    width: 100%;
    padding: 40px var(--container-padding, 16px);
}

.related-products__title {
    font-family: var(--font-family, 'Galano Grotesque', sans-serif);
    font-size: var(--font-size-xl, 20px);
    font-weight: var(--font-semibold, 600);
    line-height: var(--line-height-tight, 1.2);
    color: var(--color-black, #16121C);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Swiper Container */
.related-products-swiper {
    width: 100%;
    overflow: visible;
    position: relative;
}

.related-products-swiper .swiper-wrapper {
    display: flex;
}

.related-products-swiper .swiper-slide {
    width: auto;
    height: auto;
}

/* Paginação - Dots */
.related-pagination {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    width: 100%;
}

.related-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
}

.related-pagination .swiper-pagination-bullet-active {
    background: var(--color-primary, #310775);
    width: 24px;
    border-radius: 4px;
}

/* Esconde setas de navegação padrão do Swiper */
.related-products-swiper .swiper-button-prev,
.related-products-swiper .swiper-button-next {
    display: none !important;
}

/* Mobile (0-767px) */
@media screen and (max-width: 767px) {
    .candini-related-products {
        padding: 32px var(--container-padding, 16px);
    }

    .related-products__title {
        font-size: var(--font-size-lg, 18px);
        margin-bottom: var(--spacing-md, 24px);
    }

    .related-products-swiper {
        padding: 0 0 0 var(--container-padding, 16px);
    }

    .related-products-swiper .swiper-slide {
        width: 85%;
    }

    .related-pagination {
        margin-top: 20px;
    }
}

/* Tablet (768px-1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .candini-related-products {
        padding: 48px var(--container-padding, 24px);
    }

    .related-products__title {
        font-size: var(--font-size-xl, 20px);
        margin-bottom: var(--spacing-lg, 32px);
    }

    .related-products-swiper {
        padding: 0 0 0 var(--container-padding, 24px);
    }

    .related-pagination {
        margin-top: 24px;
    }
}

/* Laptop (1024px-1399px) */
@media screen and (min-width: 1024px) and (max-width: 1399px) {
    .candini-related-products {
        padding: 60px var(--container-padding, 32px);
    }

    .related-products__title {
        font-size: var(--font-size-2xl, 24px);
        margin-bottom: var(--spacing-xl, 48px);
    }

    .related-products-swiper {
        padding: 0 0 0 var(--container-padding, 32px);
    }

    .related-pagination {
        margin-top: 24px;
    }
}

/* Desktop (1400px+) */
@media screen and (min-width: 1400px) {
    .candini-related-products {
        padding: 80px var(--container-padding, 48px);
    }

    .related-products__title {
        font-size: var(--font-size-2xl, 24px);
        margin-bottom: var(--spacing-xl, 48px);
    }

    .related-products-swiper {
        padding: 0 0 0 var(--container-padding, 48px);
    }

    .related-pagination {
        margin-top: 24px;
    }
}





/* Fix: Garantir que cores do botão customizado tenham prioridade */
.candini-product-actions .btn-add-to-cart,
.candini-product-actions .btn-add-to-cart.button,
.candini-product-actions .btn-add-to-cart.button.alt,
.candini-product-actions .btn-add-to-cart.single_add_to_cart_button {
    background: var(--color-primary) !important;
    color: #FFFFFF !important;
    opacity: 1;
}

.candini-product-actions .btn-add-to-cart:hover {
    background: var(--color-black) !important;
}

.candini-product-actions .btn-add-to-cart:disabled,
.candini-product-actions .btn-add-to-cart.disabled,
.candini-product-actions .btn-add-to-cart.wc-variation-selection-needed {
    background: #CCCCCC !important;
    color: #666666 !important;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Quando habilitado (variação selecionada) */
.candini-product-actions .btn-add-to-cart:not(:disabled):not(.disabled) {
    background: var(--color-primary) !important;
    color: #FFFFFF !important;
    opacity: 1;
    cursor: pointer;
}

.candini-product-actions .btn-add-to-cart:not(:disabled):not(.disabled):hover {
    background: var(--color-black) !important;
}