/**
 * Estilos Frontend da Página Single Produto — Componentes Azevedo
 * Identidade Visual: Clean + Industrial + Profissional + Minimalista
 */

:root {
    --az-black: #000000;
    --az-dark-surface: #070A0E;
    --az-dark-panel: #111418;
    --az-white: #FFFFFF;
    --az-primary: #E31E24;
    --az-primary-hover: #C71419;
    --az-wpp: #25D366;
    --az-wpp-hover: #1EBE5D;
    --az-ink: #1A1A1A;
    --az-muted: #5D6268;
    --az-border: #E5E7EB;
    --az-bg-light: #F9FAFB;
    --az-gold: #D97706;
    --az-font-heading: 'Montserrat', sans-serif;
    --az-font-body: 'Inter', sans-serif;
}

.azevedo-product-single-wrapper {
    font-family: var(--az-font-body);
    color: var(--az-ink);
    background-color: var(--az-white);
    padding: 2rem 1.5rem 4rem;
}

.azevedo-single-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: var(--az-font-body);
}

/* Breadcrumb Minimalista */
.azevedo-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--az-muted);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--az-border);
}

.azevedo-breadcrumb a {
    color: var(--az-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.azevedo-breadcrumb a:hover {
    color: var(--az-primary);
}

.azevedo-breadcrumb .sep {
    color: #CBD5E1;
}

.azevedo-breadcrumb .current {
    color: var(--az-ink);
    font-weight: 600;
}

/* Grid Principal de 2 Colunas */
.azevedo-single-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 3.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .azevedo-single-main-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Coluna 1: Galeria de Fotos */
.azevedo-single-col-media {
    position: sticky;
    top: 20px;
}

.azevedo-gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.azevedo-main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--az-bg-light);
    border: 1px solid var(--az-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
}

.azevedo-main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.azevedo-main-image-container:hover img {
    transform: scale(1.04);
}

.azevedo-zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.azevedo-no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    height: 100%;
    gap: 8px;
}

.azevedo-thumbs-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.azevedo-thumb-item {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    background: var(--az-bg-light);
    transition: all 0.2s ease;
    opacity: 0.7;
}

.azevedo-thumb-item:hover {
    opacity: 1;
    border-color: #CBD5E1;
}

.azevedo-thumb-item.is-active {
    opacity: 1;
    border-color: var(--az-primary);
    box-shadow: 0 0 0 1px var(--az-primary);
}

.azevedo-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Coluna 2: Informações Comerciais */
.azevedo-single-col-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Badges */
.azevedo-badges-wrapper {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.azevedo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: 4px;
    text-transform: uppercase;
}

.azevedo-badge-bestseller {
    background: #111418;
    color: #FCD34D;
    border: 1px solid rgba(252, 211, 77, 0.3);
}

.azevedo-badge-new {
    background: var(--az-primary);
    color: #FFFFFF;
}

.azevedo-single-categories {
    margin-top: -4px;
}

.azevedo-category-tag {
    font-family: var(--az-font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--az-primary);
}

.azevedo-single-title {
    font-family: var(--az-font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--az-black);
    margin: 0;
    letter-spacing: -0.02em;
}

@media (max-width: 600px) {
    .azevedo-single-title {
        font-size: 1.75rem;
    }
}

/* Código de Referência Interna */
.azevedo-single-ref {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    background-color: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 3px 10px;
    margin-top: 0.35rem;
    margin-bottom: 0.85rem;
    letter-spacing: 0.02em;
    width: fit-content;
}

.azevedo-single-ref .azevedo-ref-label {
    font-weight: 700;
    color: #0F172A;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Breve Descrição com Suporte a Rich Text */
.azevedo-single-short-desc {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.azevedo-single-short-desc p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.65;
    margin: 0 0 0.85rem 0;
}

.azevedo-single-short-desc p:last-child {
    margin-bottom: 0;
}

.azevedo-single-short-desc strong,
.azevedo-single-short-desc b {
    color: var(--az-black);
    font-weight: 600;
}

.azevedo-single-short-desc em,
.azevedo-single-short-desc i {
    font-style: italic;
}

.azevedo-single-short-desc ul,
.azevedo-single-short-desc ol {
    margin: 0.5rem 0 0.85rem 1.25rem;
    padding-left: 0.5rem;
}

.azevedo-single-short-desc li {
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

.azevedo-single-short-desc a {
    color: var(--az-primary);
    text-decoration: underline;
    transition: color 0.2s;
}

.azevedo-single-short-desc a:hover {
    color: var(--az-primary-hover);
}

/* Ficha Rápida B2B */
.azevedo-quick-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: var(--az-bg-light);
    border: 1px solid var(--az-border);
    border-radius: 8px;
    padding: 14px 16px;
    margin: 0.5rem 0;
}

@media (max-width: 600px) {
    .azevedo-quick-specs {
        grid-template-columns: 1fr;
    }
}

.azevedo-spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.azevedo-spec-item i {
    font-size: 18px;
    color: var(--az-primary);
}

.azevedo-spec-item div {
    display: flex;
    flex-direction: column;
}

.azevedo-spec-item strong {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--az-muted);
}

.azevedo-spec-item span {
    font-size: 13px;
    font-weight: 600;
    color: var(--az-ink);
}

/* CTA WhatsApp de Alta Conversão */
.azevedo-whatsapp-action-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0.5rem;
}

.azevedo-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--az-wpp);
    color: #FFFFFF !important;
    text-decoration: none;
    font-family: var(--az-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 1rem 1.75rem;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.azevedo-btn-whatsapp:hover {
    background-color: var(--az-wpp-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

.azevedo-wpp-icon {
    font-size: 24px;
}

.azevedo-btn-arrow {
    font-size: 14px;
    transition: transform 0.2s;
}

.azevedo-btn-whatsapp:hover .azevedo-btn-arrow {
    transform: translateX(4px);
}

.azevedo-whatsapp-subtext {
    font-size: 12px;
    color: var(--az-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.azevedo-whatsapp-subtext i {
    color: var(--az-primary);
}

/* Seção de Descrição Completa e Ficha Técnica */
.azevedo-single-tabs-section {
    background: #FFFFFF;
    border: 1px solid var(--az-border);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .azevedo-single-tabs-section {
        padding: 1.5rem;
    }
}

.azevedo-tabs-header {
    border-bottom: 2px solid var(--az-border);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
}

.azevedo-tab-title {
    font-family: var(--az-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--az-black);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.azevedo-tab-title i {
    color: var(--az-primary);
}

.azevedo-tab-content,
.azevedo-single-detailed-desc,
.azevedo-single-full-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: #334155;
}

.azevedo-tab-content p,
.azevedo-single-detailed-desc p,
.azevedo-single-full-desc p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.azevedo-tab-content p:last-child,
.azevedo-single-detailed-desc p:last-child,
.azevedo-single-full-desc p:last-child {
    margin-bottom: 0;
}

.azevedo-tab-content h2,
.azevedo-tab-content h3,
.azevedo-tab-content h4,
.azevedo-single-detailed-desc h2,
.azevedo-single-detailed-desc h3,
.azevedo-single-detailed-desc h4,
.azevedo-single-full-desc h2,
.azevedo-single-full-desc h3,
.azevedo-single-full-desc h4 {
    font-family: var(--az-font-heading);
    color: var(--az-black);
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.azevedo-tab-content h2,
.azevedo-single-detailed-desc h2,
.azevedo-single-full-desc h2 {
    font-size: 1.35rem;
    border-bottom: 1px solid var(--az-border);
    padding-bottom: 0.4rem;
}

.azevedo-tab-content h3,
.azevedo-single-detailed-desc h3,
.azevedo-single-full-desc h3 {
    font-size: 1.2rem;
}

.azevedo-tab-content h4,
.azevedo-single-detailed-desc h4,
.azevedo-single-full-desc h4 {
    font-size: 1.05rem;
    color: #1e293b;
}

.azevedo-tab-content ul,
.azevedo-single-detailed-desc ul,
.azevedo-single-full-desc ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.azevedo-tab-content ol,
.azevedo-single-detailed-desc ol,
.azevedo-single-full-desc ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.azevedo-tab-content li,
.azevedo-single-detailed-desc li,
.azevedo-single-full-desc li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.azevedo-tab-content strong,
.azevedo-tab-content b,
.azevedo-single-detailed-desc strong,
.azevedo-single-detailed-desc b,
.azevedo-single-full-desc strong,
.azevedo-single-full-desc b {
    color: var(--az-black);
    font-weight: 600;
}

.azevedo-tab-content blockquote,
.azevedo-single-detailed-desc blockquote,
.azevedo-single-full-desc blockquote {
    border-left: 4px solid var(--az-primary);
    padding: 0.75rem 1.25rem;
    margin: 1.25rem 0;
    background: #F8FAFC;
    color: #475569;
    font-style: italic;
    border-radius: 0 6px 6px 0;
}

.azevedo-tab-content table,
.azevedo-single-detailed-desc table,
.azevedo-single-full-desc table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.95rem;
}

.azevedo-tab-content th,
.azevedo-tab-content td,
.azevedo-single-detailed-desc th,
.azevedo-single-detailed-desc td,
.azevedo-single-full-desc th,
.azevedo-single-full-desc td {
    padding: 10px 14px;
    border: 1px solid var(--az-border);
    text-align: left;
}

.azevedo-tab-content th,
.azevedo-single-detailed-desc th,
.azevedo-single-full-desc th {
    background-color: #F8FAFC;
    font-weight: 700;
    color: var(--az-black);
}

.azevedo-tab-content img,
.azevedo-single-detailed-desc img,
.azevedo-single-full-desc img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Seção Produtos Relacionados & Carrossel */
.azevedo-related-section {
    margin-top: 3rem;
}

.azevedo-related-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.75rem;
}

.azevedo-eyebrow {
    font-family: var(--az-font-heading);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--az-primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.azevedo-related-title {
    font-family: var(--az-font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--az-black);
    margin: 0;
}

.azevedo-swiper-nav-buttons {
    display: flex;
    gap: 8px;
}

.azevedo-swiper-prev,
.azevedo-swiper-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--az-border);
    background: #FFFFFF;
    color: var(--az-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.azevedo-swiper-prev:hover,
.azevedo-swiper-next:hover {
    background: var(--az-black);
    color: #FFFFFF;
    border-color: var(--az-black);
}

/* Cards do Carrossel */
.azevedo-related-swiper {
    padding-bottom: 2.5rem !important;
}

.azevedo-product-card {
    background: #FFFFFF;
    border: 1px solid var(--az-border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.azevedo-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: #CBD5E1;
}

.azevedo-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--az-bg-light);
    overflow: hidden;
}

.azevedo-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.azevedo-product-card:hover .azevedo-card-img-wrap img {
    transform: scale(1.05);
}

.azevedo-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #CBD5E1;
}

.azevedo-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

.azevedo-card-badge.bestseller {
    background: #111418;
    color: #FCD34D;
}

.azevedo-card-badge.new {
    background: var(--az-primary);
    color: #FFFFFF;
}

.azevedo-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.azevedo-card-cat {
    font-family: var(--az-font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--az-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.azevedo-card-title {
    font-family: var(--az-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.azevedo-card-title a {
    color: var(--az-black);
    text-decoration: none;
    transition: color 0.2s;
}

.azevedo-card-title a:hover {
    color: var(--az-primary);
}

.azevedo-card-desc {
    font-size: 0.88rem;
    color: #64748B;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.azevedo-card-actions {
    display: flex;
    width: 100%;
}

.azevedo-card-btn-view {
    width: 100%;
    text-align: center;
    background: #F8F9FA !important;
    color: #111111 !important;
    border: 1px solid #E2E8F0 !important;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    box-sizing: border-box;
}

.azevedo-card-btn-view:hover {
    background: #111111 !important;
    color: #FFFFFF !important;
    border-color: #111111 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.azevedo-card-btn-wpp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--az-wpp);
    color: #FFFFFF;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s, transform 0.2s;
}

.azevedo-card-btn-wpp:hover {
    background: var(--az-wpp-hover);
    transform: scale(1.05);
}

.azevedo-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--az-primary) !important;
}

/* Lightbox Modal */
.azevedo-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.azevedo-lightbox-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.azevedo-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.azevedo-lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    color: #FFFFFF;
    font-size: 36px;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
