/* ==============================================
   ESTILOS DA PÁGINA PRODUTO
   ============================================== */

/* ---- BREADCRUMB ---- */
.breadcrumb {
    background: #f5f5f7;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5ea;
    margin-bottom: 0;
    width: 100%;
    clear: both;
    position: relative;
    z-index: 1;
}

.breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
}

.breadcrumb nav a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #007aff;
    font-weight: 500;
    transition: color 0.3s;
    text-decoration: none;
}

.breadcrumb nav a:hover {
    color: #0055b3;
}

.breadcrumb nav a .material-icons {
    font-size: 18px;
}

.breadcrumb nav .separator {
    color: #8e8e93;
    font-weight: 300;
}

.breadcrumb nav .current {
    color: #1d1d1f;
    font-weight: 500;
}

/* ---- RESPONSIVO DO BREADCRUMB ---- */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 12px 0;
        margin-bottom: 0;
    }
    
    .breadcrumb nav {
        font-size: 13px;
        gap: 5px;
    }
    
    .breadcrumb nav a .material-icons {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 10px 0;
    }
    
    .breadcrumb nav {
        font-size: 12px;
        gap: 4px;
    }
    
    .breadcrumb nav a .material-icons {
        font-size: 14px;
    }
    
    .breadcrumb .container {
        padding: 0 15px;
    }
}

/* ---- DETALHE DO PRODUTO ---- */
.produto-detalhe {
    padding: 0 0 40px;
    background: white;
}

.produto-detalhe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* ---- GALERIA DE IMAGENS ---- */
.produto-galeria {
    position: sticky;
    top: 100px;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #f5f5f7;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: contain;
    flex-shrink: 0;
    padding: 20px;
    background: white;
}

/* Botões do slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.slider-btn .material-icons {
    font-size: 24px;
    color: #1d1d1f;
}

.slider-btn.prev {
    left: 15px;
}

.slider-btn.next {
    right: 15px;
}

/* Dots do slider */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding-bottom: 15px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d1d6;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.slider-dot.active {
    background: #007aff;
    transform: scale(1.3);
}

.slider-dot:hover {
    background: #007aff;
}

/* ---- MINIATURAS (THUMBNAILS) ---- */
.thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding: 5px 0;
    scroll-behavior: smooth;
}

.thumbnails::-webkit-scrollbar {
    height: 4px;
}

.thumbnails::-webkit-scrollbar-track {
    background: #f5f5f7;
    border-radius: 10px;
}

.thumbnails::-webkit-scrollbar-thumb {
    background: #d1d1d6;
    border-radius: 10px;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    background: #f5f5f7;
}

.thumbnail:hover {
    border-color: #007aff;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0,122,255,0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- INFORMAÇÕES DO PRODUTO ---- */
.produto-info-detalhe {
    padding: 10px 0;
}

/* Header do produto */
.produto-header {
    margin-bottom: 25px;
}

.produto-header .badge {
    position: relative;
    top: 0;
    right: 0;
    display: inline-block;
    margin-bottom: 15px;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.produto-header .badge.novo {
    background: #34c759;
}

.produto-header .badge.usado {
    background: #ff9500;
}

.produto-header .badge.recondicionado {
    background: #5856d6;
}

.produto-header h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1d1d1f;
    line-height: 1.2;
}

.produto-header .modelo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8e8e93;
    font-size: 16px;
}

.produto-header .modelo .material-icons {
    font-size: 20px;
}

/* Preço */
.produto-preco {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 2px solid #f5f5f7;
    border-bottom: 2px solid #f5f5f7;
}

.produto-preco .preco {
    font-size: 36px;
    font-weight: 700;
    color: #007aff;
}

.estoque-disponivel,
.estoque-indisponivel {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.estoque-disponivel {
    background: #34c75920;
    color: #34c759;
}

.estoque-indisponivel {
    background: #ff3b3020;
    color: #ff3b30;
}

.estoque-disponivel .material-icons,
.estoque-indisponivel .material-icons {
    font-size: 18px;
}

/* Descrição */
.produto-descricao {
    margin-bottom: 30px;
}

.produto-descricao h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.produto-descricao h3 .material-icons {
    color: #007aff;
    font-size: 22px;
}

.produto-descricao p {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}

/* Características */
.produto-caracteristicas {
    margin-bottom: 30px;
}

.produto-caracteristicas h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.produto-caracteristicas h3 .material-icons {
    color: #007aff;
    font-size: 22px;
}

.produto-caracteristicas ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0;
}

.produto-caracteristicas ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f5f5f7;
    border-radius: 10px;
    font-size: 14px;
    color: #1d1d1f;
}

.produto-caracteristicas ul li .material-icons {
    color: #007aff;
    font-size: 20px;
}

/* ---- BOTÕES DE AÇÃO ---- */
.produto-acoes-detalhe {
    margin-top: 30px;
}

/* Botão Adicionar ao Carrinho */
.btn-comprar-grande {
    width: 100%;
    padding: 18px 24px;
    background: #007aff;
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-comprar-grande:hover:not(:disabled) {
    background: #0055b3;
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0,122,255,0.3);
}

.btn-comprar-grande:disabled {
    background: #d1d1d6;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-comprar-grande .material-icons {
    font-size: 24px;
}

/* Botão Finalizar Compra */
.btn-finalizar-compra {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: #34c759;
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-finalizar-compra:hover {
    background: #28a745;
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(52, 199, 89, 0.3);
    color: white;
}

.btn-finalizar-compra .material-icons {
    font-size: 24px;
}

/* Botões extras (Compartilhar e Favoritar) */
.acoes-extras {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 14px 20px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp .material-icons {
    font-size: 22px;
}

.btn-favorito {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 14px 20px;
    background: #f5f5f7;
    color: #1d1d1f;
    border: 2px solid #e5e5ea;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-favorito:hover {
    border-color: #ff3b30;
    background: #ff3b3010;
    color: #ff3b30;
}

.btn-favorito .material-icons {
    font-size: 22px;
}

.btn-favorito.active {
    border-color: #ff3b30;
    color: #ff3b30;
}

/* ---- RESPONSIVO ---- */

/* Tablets */
@media (max-width: 992px) {
    .produto-detalhe-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .produto-galeria {
        position: relative;
        top: 0;
    }
    
    .slider-wrapper img {
        height: 350px;
    }
    
    .produto-caracteristicas ul {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 12px 0;
        margin-bottom: 20px;
    }
    
    .breadcrumb nav {
        font-size: 13px;
        gap: 5px;
    }
    
    .produto-header h1 {
        font-size: 28px;
    }
    
    .produto-preco .preco {
        font-size: 28px;
    }
    
    .slider-wrapper img {
        height: 280px;
        padding: 15px;
    }
    
    .slider-btn {
        width: 36px;
        height: 36px;
        padding: 8px;
    }
    
    .slider-btn .material-icons {
        font-size: 20px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .produto-caracteristicas ul {
        grid-template-columns: 1fr;
    }
    
    .produto-acoes-detalhe {
        margin-top: 20px;
    }
    
    .btn-comprar-grande,
    .btn-finalizar-compra {
        font-size: 16px;
        padding: 16px;
    }
    
    .acoes-extras {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-whatsapp,
    .btn-favorito {
        padding: 14px;
        font-size: 15px;
    }
}

/* Mobile Pequeno */
@media (max-width: 480px) {
    .breadcrumb nav {
        font-size: 12px;
    }
    
    .breadcrumb nav a .material-icons {
        font-size: 16px;
    }
    
    .produto-header h1 {
        font-size: 24px;
    }
    
    .produto-preco {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .produto-preco .preco {
        font-size: 24px;
    }
    
    .slider-wrapper img {
        height: 220px;
        padding: 10px;
    }
    
    .slider-btn {
        width: 32px;
        height: 32px;
        padding: 6px;
    }
    
    .slider-btn .material-icons {
        font-size: 18px;
    }
    
    .slider-btn.prev {
        left: 8px;
    }
    
    .slider-btn.next {
        right: 8px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .produto-descricao p {
        font-size: 14px;
    }
    
    .produto-caracteristicas ul li {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .btn-comprar-grande,
    .btn-finalizar-compra {
        font-size: 15px;
        padding: 14px;
    }
    
    .btn-whatsapp,
    .btn-favorito {
        font-size: 14px;
        padding: 12px;
    }
}