/* ==========================================================================
   PRODUTO DETALHE — MakeSolutions E-commerce
   Author: Eng. Cesario Monteiro | JNSOFT ENGENHARIA
   ========================================================================== */

.pd-wrap { padding: 90px 0 60px; }

/* GALERIA */
.pd-galeria { margin-bottom: 30px; }
.pd-img-principal {
    background: #f8f9fa;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    margin-bottom: 12px;
}
.pd-img-main {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.pd-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pd-thumb-item {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 2px solid #e8ecf0;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
}
.pd-thumb-item:hover { border-color: #E07B00; }
.pd-thumb-item.active { border-color: #E07B00; box-shadow: 0 0 0 2px rgba(224,123,0,0.25); }

/* INFO */
.pd-info { padding-left: 20px; }
.pd-cat {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #E07B00;
}
.pd-nome {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin: 8px 0 4px;
    line-height: 1.2;
}
.pd-sku {
    font-size: 12px;
    color: #a0aec0;
    margin-bottom: 20px;
}

/* PRECO */
.pd-preco-box { margin-bottom: 20px; }
.pd-preco-de {
    font-size: 16px;
    color: #a0aec0;
    text-decoration: line-through;
    display: block;
    margin-bottom: 2px;
}
.pd-preco-por {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #E07B00;
}

/* DESCRICAO */
.pd-descricao {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8ecf0;
}

/* ESTOQUE */
.pd-estoque { margin-bottom: 16px; }
.pd-em-estoque { color: #38a169; font-weight: 600; font-size: 14px; }
.pd-em-estoque .fa { margin-right: 4px; }
.pd-sem-estoque { color: #e53e3e; font-weight: 600; font-size: 14px; }
.pd-sem-estoque .fa { margin-right: 4px; }

/* BOTAO COMPRAR */
.pd-btn-comprar {
    display: block;
    width: 100%;
    text-align: center;
    background: #E07B00;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    margin-bottom: 24px;
}
.pd-btn-comprar:hover {
    background: #c96d00;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(224,123,0,0.3);
}
.pd-btn-disabled {
    background: #cbd5e0 !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* FRETE */
.pd-frete {
    background: #f8f9fa;
    border: 1px solid #e8ecf0;
    border-radius: 8px;
    padding: 16px;
}
.pd-frete h5 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2d3748;
    margin: 0 0 10px;
}
.pd-frete h5 .fa { color: #E07B00; margin-right: 6px; }
.pd-frete-form {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.pd-cep-input {
    max-width: 160px;
    font-size: 15px;
    letter-spacing: 1px;
}
.pd-btn-frete {
    background: #2d3748;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 20px;
}
.pd-btn-frete:hover { background: #1a202c; color: #fff; }
.pd-frete small a { color: #E07B00; }
.pd-frete-result .table { margin-bottom: 0; }
.pd-frete-result .table td, .pd-frete-result .table th { padding: 6px 8px; }

/* VAZIO */
.pd-vazio {
    text-align: center;
    padding: 100px 0;
    color: #a0aec0;
}
.pd-vazio .fa { font-size: 64px; display: block; margin-bottom: 16px; }
.pd-vazio h3 { color: #2d3748; }

/* RESPONSIVE */
@media (max-width: 991px) {
    .pd-info { padding-left: 0; margin-top: 20px; }
    .pd-nome { font-size: 26px; }
    .pd-preco-por { font-size: 28px; }
}
@media (max-width: 767px) {
    .pd-wrap { padding: 80px 0 40px; }
    .pd-img-main { max-height: 300px; }
    .pd-thumb-item { width: 56px; height: 56px; }
}
