/**
 * Single Product CSS
 * Ficheiro: single-product.css
 * Localização: /wp-content/themes/blocksy-child/assets/css/single-product.css
 */

/* Banner usa mesmas classes do category-banner (já definidas em category-grid.css) */
/* Garantir que o banner tem fundo correto */
.single-product .category-banner {
    background: var(--theme-palette-color-5);
    padding: 60px 0;
    margin-bottom: 40px;
}

.single-product .category-banner-content {
    max-width: 100%;
    margin: 0;
}

.single-product .category-banner-title {
    font-size: 48px;
    font-weight: 400;
    color: var(--theme-palette-color-1);
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

.single-product .category-banner-subtitle {
    font-size: 28px;
    font-weight: 300;
    color: var(--theme-palette-color-2);
    margin: 0;
}

/* Esconder elementos padrão do WooCommerce no topo */
.single-product .woocommerce-breadcrumb {
    display: none;
}

.single-product .product_title {
    display: none !important;
}

.single-product h1.entry-title {
    display: none !important;
}

/* Fundo da página cinza claro #F7F7F7 */
.single-product .site-main {
    background: #F7F7F7;
}

/* Container principal com fundo branco e border-radius - largura total do site */
.single-product-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 40px 0 60px;
}

.product-main-content {
    background: var(--theme-palette-color-8);
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    max-width: 1290px;
    margin: 0 auto;
    width: calc(100% - 80px);
}

/* Coluna esquerda */
.product-left-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-image-wrapper {
    background: var(--theme-palette-color-8);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrapper img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.product-downloads {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-download-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    color: var(--theme-palette-color-1);
    text-decoration: none;
    border-bottom: 1px solid var(--theme-palette-color-2);
    font-size: 15px;
    transition: color 0.3s ease;
}

.product-download-link:hover {
    color: var(--theme-palette-color-2);
}

.product-download-link svg {
    flex-shrink: 0;
}

/* Coluna direita */
.product-right-column {
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 32px;
    font-weight: 400;
    color: var(--theme-palette-color-1);
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
}

.product-short-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--theme-palette-color-1);
    margin-bottom: 30px;
}

.product-short-description p {
    color: var(--theme-palette-color-1);
    margin: 0 0 10px 0;
}

.product-short-description p:last-child {
    margin-bottom: 0;
}

.product-description {
    font-size: 16px;
    line-height: 1.6;
    color: #707070;
}

.product-description p {
    color: #707070;
}

.product-badges {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.product-badge {
    width: auto;
    height: 100px;
    object-fit: contain;
}

.product-video {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.product-video iframe,
.product-video video {
    width: 100%;
    height: 400px;
    border: none;
}

.product-additional-description {
    font-size: 14px;
    line-height: 1.6;
    color: #707070;
}

.product-additional-description p {
    color: #707070;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-main-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
        width: calc(100% - 40px);
        display: flex;
        flex-direction: column;
    }
    
    /* Reordenar elementos - todos os filhos diretos de product-main-content */
    .product-left-column {
        order: 10;
        display: contents; /* Permite que filhos sejam reordenados */
    }
    
    .product-right-column {
        order: 1;
        display: contents; /* Permite que filhos sejam reordenados */
    }
    
    /* Ordem específica de cada elemento */
    .product-title {
        order: 1;
        font-size: 28px;
    }
    
    .product-image-wrapper {
        order: 2;
        margin-bottom: 20px;
    }
    
    .product-short-description {
        order: 3;
    }
    
    .product-badges {
        order: 4;
        flex-wrap: wrap;
    }
    
    .product-badge {
        height: 70px;
    }
    
    .product-video {
        order: 5;
    }
    
    .product-video iframe,
    .product-video video {
        height: 300px;
    }
    
    .product-description {
        order: 6;
    }
    
    .product-downloads {
        order: 7;
    }
    
    .single-product-container {
        padding: 30px 0 40px;
    }
}

@media (max-width: 480px) {
    .product-main-content {
        padding: 20px 15px;
        width: calc(100% - 30px);
    }
    
    .product-badge {
        height: 60px;
    }
    
    .product-title {
        font-size: 24px;
    }
}