/* ================= TEMA OBSIDIAN & TECH ================= */
:root {
    --bg-deep: #050505;
    --bg-card: #0f0f11;
    --primary-blue: #3b82f6; 
    --success-green: #10b981;
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
}

.product-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Breadcrumbs */
.breadcrumbs {
    grid-column: 1 / -1;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.breadcrumbs span { 
    color: white; 
    font-weight: 600; 
}
.breadcrumbs i { 
    font-size: 8px; 
    margin: 0 8px; 
    opacity: 0.5; 
}

/* Galeria */
.gallery-wrapper {
    display: flex;
    gap: 15px;
    position: relative; /* ou simplesmente remova o position */
    top: auto;
}

.thumb-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumb-img {
    width: 70px;
    height: 70px;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
}

.thumb-img:hover, .thumb-img.active {
    border-color: var(--primary-blue);
    opacity: 1;
}

.thumb-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.main-img-box {
    flex: 1;
    background: #151518;
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1;
}

.main-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

/* Info Produto */
.product-info {
    position: relative;
}



.ref-code {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Avaliações */
.rating-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.rating-stars {
    display: flex;
    gap: 2px;
}
.rating-text {
    font-size: 13px;
    color: var(--text-muted);
}
.rating-text strong {
    color: white;
}

/* Preços */
.price-section {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.price-old {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-current {
    font-size: 38px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.price-installments {
    font-size: 14px;
    color: #cbd5e1;
    margin-top: 5px;
}

.price-installments i { 
    color: var(--success-green); 
}

.pix-discount {
    font-size: 12px; 
    color: #4ade80; 
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Disponibilidade */
.stock-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    font-size: 13px;
}
.stock-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #4ade80;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 600;
}
.stock-badge.low {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Tamanhos */
.size-selector { 
    margin-bottom: 30px; 
}
.size-header { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 10px; 
    font-size: 13px; 
}
.guia-medidas { 
    color: var(--primary-blue); 
    text-decoration: underline; 
    cursor: pointer; 
}

.size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-btn {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid var(--border);
    color: white;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
}

.size-btn:hover { 
    border-color: var(--primary-blue); 
}

.size-btn.selected {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.size-btn.esgotado {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255,255,255,0.05);
    border: 1px solid transparent;
}
.size-btn.esgotado:after {
    content: '';
    position: absolute;
    width: 100%; 
    height: 1px;
    background: #ef4444;
    top: 50%; 
    left: 0;
    transform: rotate(-45deg);
}

/* Botão Comprar */
.buy-btn {
    width: 100%;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 20px;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.2);
}

.buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.buy-btn i { 
    font-size: 20px; 
}

.buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 11px;
    color: var(--text-muted);
}

.security-badges span { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

/* Calculadora CEP */
.cep-wrapper {
    margin-top: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 8px;
}

.cep-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cep-form { 
    display: flex; 
    gap: 0; 
    position: relative; 
}

.cep-input {
    flex: 1;
    background: #18181b;
    border: 1px solid var(--border);
    padding: 12px;
    color: white;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-family: monospace;
    font-size: 14px;
}

.cep-btn {
    background: white;
    color: black;
    border: none;
    padding: 0 25px;
    font-weight: 800;
    font-size: 12px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.cep-links {
    margin-top: 8px;
    text-align: right;
}

.cep-links a {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: underline;
}

/* Resultados do Frete */
.frete-result {
    display: none;
    margin-top: 15px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.frete-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 15px;
}

.frete-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.frete-option:last-child { 
    border: none; 
}
.frete-info span { 
    display: block; 
    font-size: 13px; 
    font-weight: 600; 
    color: #e2e8f0; 
}
.frete-info small { 
    color: #94a3b8; 
    font-size: 11px; 
}
.frete-price { 
    color: #4ade80; 
    font-weight: bold; 
}

/* Abas de descrição */
.product-tabs {
    grid-column: 1 / -1;
    margin-top: 60px;
}

.tabs-header {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    padding: 15px 30px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.tab-btn:hover {
    color: white;
}

.tab-btn.active {
    color: white;
}

.tab-btn.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-blue);
}

.tab-content {
    padding: 30px 0;
    display: none;
    line-height: 1.8;
    color: #d1d5db;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.tab-content ul {
    list-style: none;
    padding: 0;
}

.tab-content li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-content li i {
    color: var(--primary-blue);
    width: 20px;
}

/* Avaliações cards */
.avaliacao-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.avaliacao-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.avaliacao-usuario {
    font-weight: 600;
    color: white;
}

.avaliacao-data {
    font-size: 11px;
    color: var(--text-muted);
}

.avaliacao-comentario {
    font-size: 14px;
    line-height: 1.6;
    color: #d1d5db;
}

/* Produtos similares */
.similares-section {
    grid-column: 1 / -1;
    margin-top: 60px;
}

.similares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.similar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    transition: 0.3s;
}

.similar-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.similar-img {
    width: 100%;
    aspect-ratio: 1;
    background: #151518;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.similar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-title {
    font-size: 13px;
    color: white;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

.similar-price {
    font-weight: 700;
    color: white;
    font-size: 16px;
}

/* TOAST */
.toast-hidden {
    position: fixed; 
    top: 20px; 
    right: -350px;
    background: #18181b; 
    border-left: 4px solid var(--success-green);
    padding: 15px 20px; 
    border-radius: 6px; 
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    transition: right 0.5s ease;
}
.toast-visible { 
    right: 20px; 
}
.toast-content { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    color: white; 
}
.toast-icon { 
    color: var(--success-green); 
    font-size: 20px; 
}
.toast-title { 
    font-weight: bold; 
    font-size: 14px; 
    display: block; 
}
.toast-msg { 
    font-size: 12px; 
    color: #ccc; 
}

/* Responsivo */
@media (max-width: 900px) {
    .product-container { 
        grid-template-columns: 1fr; 
        gap: 30px; 
    }
    .gallery-wrapper { 
        flex-direction: column-reverse; 
        position: static; 
    }
    .thumb-list { 
        flex-direction: row; 
        justify-content: center; 
    }
    .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    .tab-btn {
        padding: 12px 20px;
    }
}



.tab-button {
    background-color: #f1f1f1;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
}

.tab-button:hover {
    background-color: #ddd;
}




.tab-button.active {
    background-color: #ccc;
}

.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ccc;
    border-top: none;
}

.thumbnail-item.active,
.thumb-item.active {
    border: 2px solid #007bff;
    opacity: 1;
}

.thumbnail-item,
.thumb-item {
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.thumbnail-item:hover,
.thumb-item:hover {
    opacity: 1;
}