/**

 * Perfilmil - Página de Produto (Layout Original)

 * Design baseado no site original com UX de e-commerce moderno

 * @version 5.0

 */



/* ==================== CONTAINER PRINCIPAL ==================== */

.perfilmil-product-page {

    background: #f8f9fa;

    padding: 40px 0;

}



.bd-container {

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 20px;

}



.product-container {

    display: grid;

    grid-template-columns: 1fr 1.2fr;

    gap: 50px;

    background: #fff;

    padding: 40px;

    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

}



/* ==================== GALERIA DE IMAGENS ==================== */

.product-gallery {

    position: relative;

}



.main-image {

    position: relative;

    background: #f8f9fa;

    border-radius: 8px;

    overflow: hidden;

    cursor: zoom-in;

}



.main-image a {

    display: block;

    position: relative;

}



.main-image img {

    width: 100%;

    height: auto;

    display: block;

}



.zoom-icon {

    position: absolute;

    bottom: 15px;

    right: 15px;

    background: rgba(0, 0, 0, 0.7);

    color: #fff;

    width: 40px;

    height: 40px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 16px;

    transition: all 0.3s;

    opacity: 0;

}



.main-image:hover .zoom-icon {

    opacity: 1;

}



.sale-badge {

    position: absolute;

    top: 15px;

    left: 15px;

    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);

    color: #fff;

    padding: 8px 15px;

    border-radius: 25px;

    font-weight: 600;

    font-size: 14px;

    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);

    z-index: 10;

}



/* ==================== INFORMAÇÕES DO PRODUTO ==================== */

.product-info {

    display: flex;

    flex-direction: column;

    gap: 25px;

}



.product-header {

    border-bottom: 1px solid #e9ecef;

    padding-bottom: 20px;

}



.product-title {

    font-size: 26px;

    font-weight: 600;

    color: #2d3436;

    margin: 0 0 10px 0;

    line-height: 1.3;

}



.product-code {

    font-size: 14px;

    color: #636e72;

    font-weight: 500;

}



/* ==================== PREÇOS E PARCELAMENTO ==================== */

.product-pricing {

    display: flex;

    flex-direction: column;

    gap: 20px;

}



/* Preço */

.price-wrapper {

    display: flex;

    flex-direction: column;

    gap: 8px;

    padding: 20px;

    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);

    border-radius: 10px;

}



.old-price {

    font-size: 18px;

    color: #95a5a6;

    text-decoration: line-through;

    font-weight: 500;

}



.current-price {

    font-size: 36px;

    font-weight: 700;

    color: #27ae60;

    line-height: 1;

}



/* ==================== WHATSAPP ATENDENTE - DESIGN MODERNO ==================== */

.whatsapp-help {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 20px;

    background: #f0f9ff;

    border-radius: 10px;

    border: 2px solid #25d366;

    position: relative;

    overflow: hidden;

}



.whatsapp-help::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    border: 2px solid #25d366;

    border-radius: 10px;

    animation: pulse-border 2s ease-in-out infinite;

    pointer-events: none;

}



@keyframes pulse-border {

    0%, 100% { opacity: 0.3; transform: scale(1); }

    50% { opacity: 0; transform: scale(1.05); }

}



.whatsapp-button {

    background: none;

    border: none;

    padding: 0;

    cursor: pointer;

    transition: transform 0.3s ease;

    width: 100%;

}



.whatsapp-button:hover {

    transform: translateY(-2px);

}



.whatsapp-button:active {

    transform: translateY(0);

}



.whatsapp-attendant {

    position: relative;

    display: flex;

    align-items: center;

    gap: 16px;

    width: 100%;

}



/* Imagem da Atendente - Redonda e com Borda */

.attendant-image {

    width: 70px;

    height: 70px;

    border-radius: 50%;

    object-fit: cover;

    border: 3px solid #25d366;

    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);

    flex-shrink: 0;

}



/* Container do Balão */

.chat-bubble-container {

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 6px;

}



/* Balão de Mensagem estilo WhatsApp */

.chat-bubble {

    background: white;

    padding: 15px;

    border-radius: 15px;

    border-top-left-radius: 0;

    box-shadow: 0 2px 5px rgba(0,0,0,0.1);

    position: relative;

}



.chat-bubble::before {

    content: '';

    position: absolute;

    left: -10px;

    top: 0;

    width: 0;

    height: 0;

    border-style: solid;

    border-width: 0 10px 10px 0;

    border-color: transparent white transparent transparent;

}



/* Container das Linhas de Texto */

.typing-container {

    display: flex;

    flex-direction: column;

    gap: 8px;

}



/* Animação de Digitação - Linha por Linha */

.typing-line {

    font-size: 13px;

    color: #333;

    line-height: 1.4;

    font-weight: 500;

    overflow: hidden;

    white-space: nowrap;

    border-right: 1px solid #25d366;

    width: 0;

    display: inline-block;

}



.typing-line-1 {

    animation: typing-line1 2s steps(20) 0.5s forwards,

               blink-caret 0.75s step-end 0.5s 3;

}



.typing-line-2 {

    animation: typing-line2 2.5s steps(40) 3s forwards,

               blink-caret 0.75s step-end 3s 4;

}



@keyframes typing-line1 {

    from { width: 0; }

    to { width: 180px; }

}



@keyframes typing-line2 {

    from { width: 0; }

    to { width: 320px; }

}



@keyframes blink-caret {

    from, to { border-color: transparent; }

    50% { border-color: #25d366; }

}



@keyframes blink-caret {

    from, to { border-color: transparent; }

    50% { border-color: #25d366; }

}



.chat-bubble small {

    display: block;

    font-size: 11px;

    color: #636e72;

    margin-top: 6px;

    font-weight: 500;

}



/* ==================== QUANTIDADE ==================== */

}



/* Quantidade */

.quantity-selector {

    display: flex;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;

}



.quantity-selector label {

    font-weight: 600;

    color: #2d3436;

    font-size: 15px;

}



.quantity-controls {

    display: flex;

    align-items: center;

    border: 2px solid #e9ecef;

    border-radius: 8px;

    overflow: hidden;

    background: #fff;

    position: relative;

}



.quantity-btn {

    width: 40px;

    height: 45px;

    background: #f8f9fa;

    border: none;

    cursor: pointer;

    font-size: 18px;

    font-weight: 600;

    color: #2d3436;

    transition: all 0.2s;

    display: flex;

    align-items: center;

    justify-content: center;

}



.quantity-btn:hover {

    background: #27ae60;

    color: #fff;

}



.quantity-btn:active {

    transform: scale(0.95);

}



#quantity {

    width: 80px;

    height: 45px;

    border: none;

    text-align: center;

    font-size: 18px;

    font-weight: 600;

    color: #2d3436;

    background: #fff;

    outline: none;

    -moz-appearance: textfield;

}



#quantity::-webkit-outer-spin-button,

#quantity::-webkit-inner-spin-button {

    -webkit-appearance: none;

    margin: 0;

}



.stock-info {

    font-size: 13px;

    color: #27ae60;

    font-weight: 500;

}



/* Parcelamento */

.installment-info {

    padding: 20px;

    background: #f8f9fa;

    border-radius: 8px;

    border: 1px solid #e9ecef;

}



.installment-highlight {

    font-size: 18px;

    color: #2d3436;

    font-weight: 600;

    padding: 15px;

    background: #fff3cd;

    border-left: 4px solid #ffc107;

    border-radius: 6px;

    margin-bottom: 15px;

    text-align: center;

}



.installment-max,

.installment-value {

    color: #e67e22;

}



/* Tabela de Parcelamento */

.installment-table-container {

    margin-top: 15px;

}



.installment-table {

    width: 100%;

    border-collapse: collapse;

    background: #fff;

    border: 1px solid #e9ecef;

    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

}



.installment-table td {

    padding: 10px 15px;

    font-size: 14px;

    color: #2d3436;

    border-right: 1px solid #e9ecef;

    vertical-align: top;

}



.installment-table td:last-child {

    border-right: none;

}



/* Efeito Zebrado */

.installment-table tr:nth-child(odd) {

    background-color: #f8f9fa;

}



.installment-table tr:nth-child(even) {

    background-color: #ffffff;

}



.installment-table tr:hover {

    background-color: #e3f2fd;

}



.installment-table small {

    display: block;

    color: #636e72;

    font-size: 11px;

    margin-top: 3px;

}



/* ==================== CALCULADORA DE FRETE ==================== */

.shipping-calculator {

    padding: 20px;

    background: #f8f9fa;

    border-radius: 8px;

    border: 1px solid #e9ecef;

}



.cep-input {

    display: flex;

    gap: 10px;

    margin-bottom: 10px;

}



.cep-input input {

    flex: 1;

    padding: 12px 15px;

    border: 2px solid #e9ecef;

    border-radius: 6px;

    font-size: 15px;

    outline: none;

    transition: border-color 0.3s;

}



.cep-input input:focus {

    border-color: #3498db;

}



.calculate-shipping {

    padding: 12px 25px;

    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);

    color: #fff;

    border: none;

    border-radius: 6px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s;

    white-space: nowrap;

}



.calculate-shipping:hover {

    background: linear-gradient(135deg, #2980b9 0%, #1f6391 100%);

    transform: translateY(-2px);

    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);

}



.find-cep {

    font-size: 13px;

    color: #3498db;

    text-decoration: none;

    transition: color 0.3s;

}



.find-cep:hover {

    color: #2980b9;

    text-decoration: underline;

}



#shipping-results {

    margin-top: 15px;

    display: none;

}



/* Resultados do Frete */

.shipping-results-content {

    background: #fff;

    border-radius: 8px;

    padding: 20px;

    border: 2px solid #e9ecef;

}



.shipping-address {

    padding: 12px;

    background: #f8f9fa;

    border-radius: 6px;

    margin-bottom: 15px;

    font-size: 14px;

    color: #495057;

}



.shipping-address i {

    color: #3498db;

    margin-right: 8px;

}



.shipping-options {

    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-bottom: 15px;

}



.shipping-option {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 15px;

    background: #fff;

    border: 2px solid #e9ecef;

    border-radius: 8px;

    transition: all 0.3s;

    cursor: pointer;

}



.shipping-option:hover {

    border-color: #3498db;

    background: #f8fbff;

    transform: translateX(5px);

}



.shipping-method {

    display: flex;

    align-items: center;

    gap: 10px;

}



.shipping-method i {

    font-size: 20px;

    color: #3498db;

}



.shipping-method strong {

    font-size: 15px;

    color: #2c3e50;

}



.shipping-details {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 4px;

}



.shipping-time {

    font-size: 13px;

    color: #6c757d;

}



.shipping-price {

    font-size: 18px;

    font-weight: 700;

    color: #27ae60;

}



.shipping-note {

    padding: 10px;

    background: #fff3cd;

    border-left: 4px solid #ffc107;

    border-radius: 4px;

    font-size: 12px;

    color: #856404;

}



.shipping-note i {

    margin-right: 6px;

}



.shipping-loading {

    padding: 20px;

    text-align: center;

    color: #6c757d;

    font-size: 14px;

}



.shipping-loading i {

    margin-right: 8px;

    color: #3498db;

}



.shipping-error {

    padding: 15px;

    background: #f8d7da;

    border-left: 4px solid #dc3545;

    border-radius: 4px;

    color: #721c24;

    font-size: 14px;

}



.shipping-error i {

    margin-right: 8px;

}



/* ==================== BOTÕES DE COMPRA ==================== */

.buy-buttons {

    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-top: 10px;

}



.buy-now-btn,

.add-to-cart-btn,

.btn-indisponivel {

    padding: 16px 30px;

    border: none;

    border-radius: 8px;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

}



.buy-now-btn {

    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);

    color: #fff;

    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);

}



.buy-now-btn:hover {

    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);

}



.add-to-cart-btn {

    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);

    color: #fff;

    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);

}



.add-to-cart-btn:hover {

    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);

}



.btn-indisponivel {

    background: #95a5a6;

    color: #fff;

    cursor: not-allowed;

}



/* ==================== TABS DO PRODUTO ==================== */

.product-tabs {

    margin-top: 30px;

    border-top: 1px solid #e9ecef;

    padding-top: 30px;

}



.tab-buttons {

    display: flex;

    gap: 10px;

    margin-bottom: 20px;

}



.tab-btn {

    padding: 12px 24px;

    background: #f8f9fa;

    border: 2px solid #e9ecef;

    border-radius: 6px 6px 0 0;

    font-weight: 600;

    color: #636e72;

    cursor: pointer;

    transition: all 0.3s;

}



.tab-btn.active {

    background: #fff;

    border-color: #3498db;

    border-bottom-color: #fff;

    color: #3498db;

}



.tab-content {

    display: none;

    padding: 20px;

    background: #fff;

    border: 2px solid #e9ecef;

    border-radius: 0 6px 6px 6px;

}



.tab-content.active {

    display: block;

}



.product-description {

    line-height: 1.8;

    color: #2d3436;

}



.product-description p {

    margin-bottom: 15px;

}



/* ==================== MODAIS ==================== */

.cep-modal,

.whatsapp-modal,

.zoom-modal {

    display: none;

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background-color: rgba(0, 0, 0, 0.7);

    z-index: 9999;

    justify-content: center;

    align-items: center;

}



.cep-modal-content,

.whatsapp-modal-content {

    background-color: #fff;

    width: 90%;

    max-width: 800px;

    border-radius: 12px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);

    max-height: 90vh;

    overflow-y: auto;

}



.cep-modal-header,

.whatsapp-modal-header {

    padding: 20px 25px;

    border-bottom: 1px solid #e9ecef;

    display: flex;

    justify-content: space-between;

    align-items: center;

    background: #f8f9fa;

    border-radius: 12px 12px 0 0;

}



.cep-modal-header h3,

.whatsapp-modal-header h3 {

    margin: 0;

    color: #2d3436;

    font-size: 20px;

    font-weight: 600;

}



.cep-modal-close,

.whatsapp-modal-close {

    background: none;

    border: none;

    font-size: 28px;

    cursor: pointer;

    color: #636e72;

    line-height: 1;

    transition: color 0.3s;

}



.cep-modal-close:hover,

.whatsapp-modal-close:hover {

    color: #e74c3c;

}



.cep-modal-body,

.whatsapp-modal-body {

    padding: 25px;

}



.whatsapp-attendant-info {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 20px;

    background: #f8f9fa;

    border-radius: 8px;

    margin-bottom: 20px;

}



.modal-attendant-image {

    width: 70px;

    height: 70px;

    border-radius: 50%;

    border: 3px solid #25D366;

    object-fit: cover;

}



.attendant-details strong {

    display: block;

    font-size: 16px;

    color: #2d3436;

    margin-bottom: 5px;

}



.attendant-details span {

    font-size: 13px;

    color: #636e72;

}



.whatsapp-message-preview {

    padding: 20px;

    background: #e8f8f5;

    border-left: 4px solid #25D366;

    border-radius: 6px;

    margin-bottom: 20px;

}



.whatsapp-message-preview p {

    margin: 0 0 10px 0;

    color: #2d3436;

}



.whatsapp-send-button {

    width: 100%;

    padding: 16px;

    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);

    color: #fff;

    border: none;

    border-radius: 8px;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    transition: all 0.3s;

}



.whatsapp-send-button:hover {

    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);

}



/* Modal Zoom */

.zoom-modal {

    padding: 20px;

}



.zoom-close {

    position: absolute;

    top: 20px;

    right: 40px;

    color: #fff;

    font-size: 40px;

    font-weight: bold;

    cursor: pointer;

    z-index: 10000;

}



.zoom-content {

    max-width: 90%;

    max-height: 90%;

    margin: auto;

    display: block;

}



/* ==================== RESPONSIVO ==================== */

@media (max-width: 992px) {

    .product-container {

        grid-template-columns: 1fr;

        gap: 30px;

        padding: 30px 20px;

    }



    .price-container {

        flex-direction: column;

    }



    .whatsapp-attendant {

        flex-direction: column;

        align-items: center;

        text-align: center;

    }



    .chat-bubble::before {

        display: none;

    }

}



@media (max-width: 768px) {

    .product-title {

        font-size: 22px;

    }



    .current-price {

        font-size: 28px;

    }



    .buy-buttons {

        gap: 10px;

    }



    .buy-now-btn,

    .add-to-cart-btn {

        font-size: 14px;

        padding: 14px 20px;

    }



    .cep-input {

        flex-direction: column;

    }



    .calculate-shipping {

        width: 100%;

    }

}

