/* ==================================================
   RESET LOCAL
================================================== */
.ccph-single * {
    box-sizing: border-box;
}

/* ==================================================
   LAYOUT BASE
================================================== */
.ccph-single {
    width: 100%;
    margin: 0 auto;
}

.ccph-single-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.25fr;
    gap: 56px;
    align-items: flex-start;
}

/* ==================================================
   COLUNA ESQUERDA
================================================== */
.ccph-single-left {
    max-width: 100%;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ccph-seller {
    padding-bottom: 10px;
    border-bottom: 2px solid #0081FA; /* ajuste a cor se quiser */
    font-size: 14px;
}


.ccph-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.10;
    color: #0f172a;
}



/* ==================================================
   PREÇOS
================================================== */
/* BLOCO PREÇO */
.ccph-price {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    align-items: start;
}

.ccph-price-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #0081FA;
    margin-bottom: -12px;   /* aproxima do preço */
    line-height: 1;       /* remove espaço fantasma */
}

/* PIX – ESQUERDA */
.ccph-price-pix {
    grid-column: 1;
}

.ccph-price-main {
    font-size: 32px;
    font-weight: 800;
    color: #0081FA;
    line-height: 1;
}

.ccph-price-pix-label {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.ccph-price-pix-desc {
    width: 100%;
    font-size: 13px;
    color: #475569;
}

/* BLOCO CARTÃO */
.ccph-price-card {
    text-align: left;
}

/* Linha "ou R$ X no cartão" */
.ccph-price-card-main {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a; /* mais contraste */
}

/* Parcelamento */
.ccph-price-card .ccph-installments {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}



/* ==================================================
   WHATSAPP HIGHLIGHT
================================================== */
.ccph-whatsapp-highlight {
    background-color: rgb(27, 239, 178);
    color: #003c43;
    width: 100%;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;

    position: sticky;
    top: 12px;
    z-index: 2;
}

.ccph-whatsapp-highlight:hover {
    filter: brightness(0.95);
}

/* ==================================================
   PARCELAMENTO
================================================== */
.ccph-more-installments {
    font-size: 14px;
    color: #0081FA;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ccph-more-installments::after {
    content: "▾";
    font-size: 12px;
    transition: transform .25s ease;
}

.ccph-more-installments.active::after {
    transform: rotate(180deg);
}

/* Caixa das parcelas */
.ccph-installments-box {
    margin-top: 12px;
}

.ccph-installments-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.ccph-installment-item {
    background: #f8fafc;
    padding: 10px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #0f172a;
}


/* ==================================================
   BUY ROW – QUANTIDADE + CTAs
================================================== */
.ccph-buy-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: center;
}



/* ==================================================
   CTAs
================================================== */
.ccph-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.ccph-cta a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    height: 40px;

    padding: 0 16px;
    border-radius: 4px;

    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.ccph-cta .dashicons {
    font-size: 18px;
    line-height: 1;
}


/* ============================
   QUANTITY – CAIXA MARKETPLACE CORRETA
============================ */

.ccph-quantity {
    width: 120px;
    flex-shrink: 0;
}

/* CAIXA EXTERNA */
.ccph-quantity .quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 130px;
    height: 92px;
    background: #d1d5db;
    border-radius: 6px;
}

.ccph-quantity .quantity button.minus,
.ccph-quantity .quantity button.plus {
    width: 32px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: 0;

    font-size: 18px;
    font-weight: 600;
    color: #0f172a;

    cursor: pointer;
}


.ccph-quantity .quantity input.qty {
    width: 100%;
    height: 40px;

    
    background: #d1d5db;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;

    appearance: textfield;
}


/* Remove setinhas nativas */
.ccph-quantity input.qty::-webkit-inner-spin-button,
.ccph-quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}




.ccph-cta .button.ajax_add_to_cart {
    background: #0081FA;
    color: #fff;
}

.ccph-cta .button.ajax_add_to_cart:hover {
    background: #006ad1;
}

.ccph-cta a.ccph-cta-whatsapp {
    background: #16a34a;
    color: #fff;
}

.ccph-cta a.ccph-cta-whatsapp:hover {
    background: #128c3e;
}

/* ==================================================
   CEP
================================================== */
.ccph-shipping {
    display: flex;
    gap: 8px;
}

.ccph-shipping input {
    flex: 1;
    padding: 12px;
    border: 1px solid #0081FA;
    border-radius: 6px;
}

.ccph-shipping button {
    padding: 12px 18px;
    border-radius: 6px;
    background: #0081FA;
    color: #FFF;
    border: 0;
    cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease, transform .1s ease;
}

.ccph-shipping button:hover {
    background: #006ad1; /* tom mais escuro */
    box-shadow: 0 6px 14px rgba(0, 129, 250, 0.25);
    transform: translateY(-1px);
}

.ccph-shipping button:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 129, 250, 0.25);
}


/* ==================================================
   DESCRIÇÃO CURTA
================================================== */
.ccph-short-description {
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
}

/* ==================================================
   COLUNA DIREITA
================================================== */
.ccph-single-right {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.ccph-gallery {
    position: relative;
}

.ccph-gallery img {
    width: 100%;
    border-radius: 14px;
}

.ccph-gallery-main img {
    width: 100%;
    border-radius: 14px;
}

.ccph-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.ccph-thumb {
    border: 2px solid transparent;
    padding: 4px;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

.ccph-thumb img {
    display: block;
    width: 60px;
    height: auto;
}

.ccph-thumb.active {
    border-color: #0081FA;
}

/* ============================
   GALERIA – SLIDE GLOBAL
============================ */

.ccph-gallery-main {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    border-radius: 14px;
}

/* Track */
.ccph-gallery-track {
    display: flex;
}

/* Cada slide */
.ccph-gallery-slide {
    min-width: 100%;
    scroll-snap-align: start;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Imagens */
.ccph-gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

/* Barra de scroll discreta */
.ccph-gallery-main::-webkit-scrollbar {
    height: 6px;
}

.ccph-gallery-main::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.15);
    border-radius: 10px;
}

.ccph-gallery-main::-webkit-scrollbar-track {
    background: transparent;
}

/* REMOVE BACKGROUND DO HELLO ELEMENTOR NAS THUMBS */
.ccph-gallery .ccph-thumb,
.ccph-gallery .ccph-thumb:hover,
.ccph-gallery .ccph-thumb:focus,
.ccph-gallery .ccph-thumb:active,
.ccph-gallery .ccph-thumb:focus-visible {
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}



/* MOBILE = SWIPE */
@media (max-width: 768px) {
    .ccph-gallery-thumbs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

.ccph-badge-off {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #0081FA;
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

/* ==================================================
   ACCORDION
================================================== */
.ccph-accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

.ccph-accordion-header {
    background: none;
    border: 0;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #000000
}

/* ==================================================
   RELACIONADOS
/* ==================================================
   PRODUTOS RELACIONADOS – VERSÃO ESTÁVEL
================================================== */

.ccph-related {
    margin-top: 72px;
    padding: 0 16px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}


.ccph-related h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 28px;
    text-align: center;
    color: #0f172a;
}

/* =========================
   GRID – DESKTOP
========================= */
.ccph-related ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}



/* Remove estilos nativos Woo */
.ccph-related ul.products li.product {
    list-style: none;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

/* =========================
   CARD
========================= */
.ccph-related ul.products li.product {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    transition: box-shadow .25s ease, transform .25s ease;
}

.ccph-related ul.products li.product:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    transform: translateY(-4px);
}

/* =========================
   IMAGEM
========================= */
.ccph-related ul.products li.product a.woocommerce-LoopProduct-link {
    display: block;
    padding: 0;
    background: transparent;
    border-radius: 12px;
    margin-bottom: 14px;
}

.ccph-related ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    background: transparent !important;
    margin: 0 !important;
    border-radius: 10px;
}

/* =========================
   TÍTULO
========================= */
.ccph-related ul.products li.product h2,
.ccph-related ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #0f172a;
    margin: 0 0 10px;
}

/* =========================
   PREÇO
========================= */
.ccph-related ul.products li.product .price {
    font-size: 16px;
    font-weight: 700;
    color: #0081FA;
    margin-bottom: 14px;
}

.ccph-related ul.products li.product .price del {
    color: #94a3b8;
    font-size: 13px;
    margin-right: 6px;
}

.ccph-related ul.products li.product .price ins {
    text-decoration: none;
}

/* =========================
   BOTÃO
========================= */
.ccph-related ul.products li.product a.button {
    margin-top: auto;
    height: 40px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background .2s ease, color .2s ease;
}

.ccph-related ul.products li.product a.button:hover {
    background: #0081FA;
    color: #fff;
}

/* =========================
   BADGE OFERTA – RELATED
========================= */
.ccph-related .onsale {
    display: none;
}

/* Remove estilos estranhos do Woo */
.ccph-related .woocommerce span.onsale {
    margin: 0 !important;
}


/* ==================================================
   MOBILE – SLIDER HORIZONTAL
================================================== */
@media (max-width: 768px) {

    .ccph-related ul.products {
        display: flex !important;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .ccph-related ul.products li.product {
        min-width: 260px;
        scroll-snap-align: start;
    }

    /* Scrollbar discreta */
    .ccph-related ul.products::-webkit-scrollbar {
        height: 6px;
    }

    .ccph-related ul.products::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,.15);
        border-radius: 10px;
    }

    .ccph-related ul.products::-webkit-scrollbar-track {
        background: transparent;
    }
}

/* ==================================================
   MOBILE
================================================== */
@media (max-width: 1024px) {
    .ccph-single-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ccph-title {
        font-size: 22px;
    }

    .ccph-price-main {
        font-size: 26px;
    }
}


/* Container do resultado */
#ccph-shipping-result {
    margin-top: 10px;
    font-size: 14px;
    color: #0f172a;
}

/* Lista de fretes */
.ccph-shipping-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

/* Cada opção de frete */
.ccph-shipping-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;

    font-size: 14px;
}

/* Último item sem borda */
.ccph-shipping-list li:last-child {
    border-bottom: 0;
}


.ccph-description-global {
    width: 100%;
    max-width: 1280px;
    margin: 48px auto 0;
    padding: 0 16px;
}


/* ==================================================
   MOBILE – IMAGEM NO TOPO
================================================== */
@media (max-width: 768px) {

    .ccph-single-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Galeria / imagem primeiro */
    .ccph-single-right {
        order: 1 !important;
    }

    /* Todo o restante depois */
    .ccph-single-left {
        order: 2 !important;
    }

}
