/* ===================================================================
   PÁGINA DE PRODUTO - Desktop Moderno (>768px)
   Layout limpo, centralizado e profissional
   =================================================================== */

@media screen and (min-width: 769px) {
    /* Container Principal da Página de Produto */
    #ProductDetails,
    .PrimaryProductDetails {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        padding: 30px;
        margin: 20px auto;
        max-width: 1200px;
    }

    /* Layout em Grid - Imagem à Esquerda, Detalhes à Direita */
    #ProductDetails .BlockContent > table,
    .PrimaryProductDetails .BlockContent > table {
        width: 100%;
        border-collapse: collapse;
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 40px;
        align-items: start;
    }

    #ProductDetails table td,
    .PrimaryProductDetails table td {
        border: none;
        padding: 0;
        vertical-align: top;
    }

    /* Coluna da Imagem - Centralizada */
    #ProductDetails table td[rowspan],
    .ProductThumb {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        padding: 20px;
        background: #fafafa;
        border-radius: 12px;
    }

    /* Imagem Principal do Produto */
    .ProductThumb img,
    #ProductDetails .ProductThumb img {
        max-width: 100%;
        height: auto;
        max-height: 500px;
        object-fit: contain;
        border-radius: 8px;
        margin: 0 auto;
        display: block;
    }

    /* Texto de Zoom */
    .ProductThumb center,
    .ProductThumb div[style*="font-size:10px"] {
        margin-top: 12px;
        font-size: 12px !important;
        color: #666;
        font-style: italic;
    }

    /* Carrossel de Miniaturas */
    .ImageCarouselBox {
        margin: 20px auto 0 auto !important;
        width: 100%;
        max-width: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .ProductTinyImageList {
        overflow: hidden;
        max-width: 300px;
    }

    .ProductTinyImageList ul {
        display: flex;
        gap: 8px;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .ProductTinyImageList li {
        flex-shrink: 0;
    }

    .ProductTinyImageList img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        border: 2px solid #e0e0e0;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .ProductTinyImageList img:hover {
        border-color: #c00;
        transform: scale(1.05);
    }

    /* Setas do Carrossel */
    #ImageScrollPrev,
    #ImageScrollNext {
        width: 30px;
        height: 30px;
        background: #fff;
        border: 2px solid #e0e0e0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    #ImageScrollPrev:hover,
    #ImageScrollNext:hover {
        background: #c00;
        border-color: #c00;
    }

    #ImageScrollPrev img,
    #ImageScrollNext img {
        filter: brightness(0) saturate(100%);
    }

    #ImageScrollPrev:hover img,
    #ImageScrollNext:hover img {
        filter: brightness(0) saturate(100%) invert(1);
    }

    /* Coluna de Detalhes - Organizada */
    .TituloProd {
        font-size: 28px !important;
        font-weight: 700 !important;
        color: #333 !important;
        line-height: 1.3 !important;
        margin: 0 0 16px 0 !important;
        text-align: left !important;
    }

    /* Avaliação do Produto */
    #ProductDetails td:has(img[src*="IcoRating"]) {
        margin: 12px 0;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: #666;
    }

    /* Informações do Produto (Marca, Disponibilidade) */
    .ProductMain {
        margin: 20px 0;
    }

    .ProductMain b {
        color: #333;
        font-weight: 600;
    }

    .ProductMain a {
        color: #c00;
        text-decoration: none;
        font-weight: 500;
    }

    .ProductMain a:hover {
        text-decoration: underline;
    }

    /* Preço do Produto */
    .ProductPrice,
    .VariationProductPrice {
        font-size: 32px !important;
        font-weight: 700 !important;
        color: #27ae60 !important;
        font-style: normal !important;
        display: block !important;
        margin: 16px 0 !important;
        text-align: left !important;
    }

    /* Preço Antigo (De:) */
    .valorde {
        font-size: 16px;
        color: #999;
        text-decoration: line-through;
        margin-bottom: 8px;
    }

    /* Botão COMPRAR - Moderno e Destacado */
    .ProductActionAdd,
    .ProductDetailsAddToCart {
        margin: 24px 0;
        display: flex;
        justify-content: flex-start;
        gap: 12px;
        align-items: center;
        flex-direction: column;
    }

    .ProductActionAdd a,
    .ProductActionAdd button,
    .botao-comprar {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        background: #c00 !important;
        color: #fff !important;
        padding: 16px 32px !important;
        border-radius: 30px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        border: none !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 4px 12px rgba(192,0,0,0.3) !important;
        min-width: 200px !important;
    }

    .ProductActionAdd a:hover,
    .ProductActionAdd button:hover,
    .botao-comprar:hover {
        background: #a00 !important;
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 16px rgba(192,0,0,0.4) !important;
    }

    .ProductActionAdd a:active,
    .ProductActionAdd button:active,
    .botao-comprar:active {
        transform: translateY(-1px) !important;
        box-shadow: 0 3px 8px rgba(192,0,0,0.3) !important;
    }

    /* Esconder imagem do botão */
    .ProductActionAdd img {
        display: none !important;
    }

    /* Ícone do carrinho antes do texto */
    .ProductActionAdd a::before,
    .ProductActionAdd button::before,
    .botao-comprar::before {
        content: '' !important;
        display: inline-block !important;
        width: 20px !important;
        height: 20px !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        flex-shrink: 0 !important;
    }

    /* Texto "COMPRAR" */
    .ProductActionAdd a::after,
    .ProductActionAdd button::after,
    .botao-comprar::after {
        content: 'COMPRAR' !important;
        display: inline !important;
    }

    /* Esconder conteúdo original */
    .ProductActionAdd a > *,
    .ProductActionAdd button > * {
        display: none !important;
    }

    /* Seletor de Quantidade */
    .qtde-adicionar-carrinho {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 16px 0;
    }

    .qtde-carrinho {
        width: 80px !important;
        padding: 12px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        text-align: center !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 8px !important;
        background: #fff !important;
    }

    .qtde-carrinho:focus {
        border-color: #c00 !important;
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(192,0,0,0.1) !important;
    }

    /* Botões de Quantidade (+/-) */
    .botao-quantidade-wrap {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .botao-quantidade {
        width: 32px;
        height: 32px;
        background: #f5f5f5;
        border: 1px solid #ddd;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .botao-quantidade:hover {
        background: #c00;
        border-color: #c00;
    }

    .botao-quantidade svg {
        width: 14px;
        height: 14px;
        fill: #666;
        transition: fill 0.2s ease;
    }

    .botao-quantidade:hover svg {
        fill: #fff;
    }

    /* Opções de Pagamento - Cards Modernos */
    .ProductDetailsGrid,
    .DetailRow {
        margin: 20px 0;
    }

    /* Botão WhatsApp - Desktop */
    .botao-whatsapp {
        margin-top: 16px;
        text-align: left;
    }

    .botao-whatsapp a,
    .whatsapp-product-btn-page,
    button.whatsapp-product-btn-page[type="button"] {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        background: #25D366 !important;
        color: #fff !important;
        padding: 14px 28px !important;
        border-radius: 25px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        border: none !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 3px 10px rgba(37,211,102,0.3) !important;
    }

    .botao-whatsapp a:hover,
    .whatsapp-product-btn-page:hover,
    button.whatsapp-product-btn-page[type="button"]:hover {
        background: #1da851 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 14px rgba(37,211,102,0.4) !important;
    }
    
    .whatsapp-product-btn-page svg,
    button.whatsapp-product-btn-page[type="button"] svg {
        width: 20px !important;
        height: 20px !important;
        fill: white !important;
    }

    /* Tabs de Descrição/Comentários */
    .ProductDescriptionContainer,
    .ProductReviewsContainer {
        margin-top: 40px;
        padding-top: 30px;
        border-top: 2px solid #f0f0f0;
    }

    /* Esconder warnings do PHP */
    body > b,
    body > font[size="1"] {
        display: none !important;
    }

    /* Warning específico */
    b:has(font[color="red"]) {
        display: none !important;
    }
}
