/* ============================================================
   single.css — página individual de produto
   ============================================================ */

/* Garante que a página inteira não gere scroll horizontal */
body { overflow-x: hidden; }

.single-wrapper {
    max-width: 1240px;
    margin: 48px auto 80px;
    padding: 0 24px;
    overflow: hidden;
}

/* BREADCRUMB */
.single-breadcrumb {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    color: #999;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.single-breadcrumb a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}
.single-breadcrumb a:hover { color: #111; text-decoration: none; }
.single-breadcrumb span:last-child { color: #111; font-weight: 600; }

/* LAYOUT DOIS PAINÉIS */
.single-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
    /* min-width:0 é essencial para que filhos grid não estourem */
    min-width: 0;
}

/* Cada célula do grid também precisa de min-width:0 */
.single-content > * {
    min-width: 0;
    overflow: hidden;
}

/* BADGE CARRINHO NA NAVBAR */
.cw-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #111;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* GALERIA SWIPER */
.single-galeria {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    min-width: 0;
}

.gallery-top {
    width: 100%;
    height: 480px;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}
.gallery-top .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    overflow: hidden;
}
.gallery-top .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    object-fit: contain;
}
.gallery-thumbs {
    height: 80px;
    box-sizing: border-box;
    padding: 4px 0;
}
.gallery-thumbs .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.5;
    cursor: pointer;
    border-radius: 3px;
    overflow: hidden;
}
.gallery-thumbs .swiper-slide-active { opacity: 1; }
.gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Setas do Swiper — remove ícone nativo (::after) e estiliza o botão */
.swiper-button-next,
.swiper-button-prev {
    background: rgba(0,0,0,0.35) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 3px !important;
    top: 50% !important;
    margin-top: -18px !important;
}
/* Suprime o ícone nativo do Swiper 4 */
.swiper-button-next::after,
.swiper-button-prev::after {
    display: none !important;
}
/* Usa background-image para as setas (não depende de FA) */
.swiper-button-next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M1 1l8 7-8 7' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 10px !important;
}
.swiper-button-prev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M9 1L1 8l8 7' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 10px !important;
}

.single-sem-imagem { width: 100%; height: 100%; background: #e0e0e0; }

/* Descrição completa abaixo da galeria+info */
.single-descricao-completa {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e0e0e0;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

@media (max-width: 768px) {
    .gallery-top { height: 280px; }
    .gallery-thumbs { height: 60px; }
}

.single-miniaturas {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.miniatura {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 3px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.65;
}
.miniatura:hover { opacity: 1; }
.miniatura.ativa { border-color: #111; opacity: 1; }

/* INFORMAÇÕES */
.single-info { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }

.single-titulo {
    font-family: 'Raleway', sans-serif !important;
    font-size: clamp(22px, 2.5vw, 36px) !important;
    font-weight: 800 !important;
    color: #111 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

.single-categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.single-tag-cat {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #555;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.single-tag-cat:hover { background: #111; color: #fff; text-decoration: none; }

.single-descricao {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}
.single-descricao p { margin-bottom: 10px; }
.single-descricao br { display: block; content: ""; margin: 4px 0; }

/* AÇÕES */
.single-acoes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.single-btn-orcamento {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #111;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.single-btn-orcamento:hover { background: #333; color: #fff; text-decoration: none; }

.single-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s;
}
.single-btn-whatsapp:hover { background: #1eba58; color: #fff; text-decoration: none; }

/* VOLTAR */
.single-voltar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
    margin-top: 8px;
}
.single-voltar:hover { color: #111; text-decoration: none; }

/* RESPONSIVO */
@media (max-width: 900px) {
    .single-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .single-wrapper { margin-top: 32px; }
    .miniatura { width: 64px; height: 64px; }
}
