
/* Estilos para o novo layout da página de detalhes do produto */
.product-header-sections {
    position: relative;
    z-index: 0;
    width: 100%;
    margin-bottom: 40px;
}

.background-bars {
    position: relative;
    z-index: 0;
    width: 100%;
}

.product-header-bar-yellow {
    background: var(--gradient-primary);
    height: 90px;
    position: relative;
    z-index: 0;
    width: 100%;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 9px;
}

.product-header-bar-gray {
    background: var(--bs-gray-200);
    height: 120px;
    position: relative;
    z-index: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 9px;
}

.bar-separator {
    height: 10px;
    width: 100%;
}

.product-image-overlay-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 34%;
    z-index: 3;
    height: 100%;
}

/* Garante que no mobile a estrutura seja flexível */
@media (max-width: 768px) {
    .product-header-sections {
        position: relative;
    }
    
    .background-bars {
        position: relative;
    }
}

.product-image-overlay {
    text-align: center;
    padding: 20px;
    top: -100px;
}

.product-description-below-bar {
    /* background: #fff; */
    padding: 30px 0;
    margin-top: 0;
    width: 100%;
    position: relative;
    z-index: 0;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.05); */
}

.product-description-content h3 {
    font-size: 1.2rem;
    color: #23235b;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-description-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    text-align: justify;
}

.product-specifications {
    padding-left: 20px !important;
}

.product-specifications .spec-item {
    margin-bottom: 12px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.product-specifications .spec-header {
    background: var(--primary-600);
    color: #ffffff !important;
    padding: 10px 15px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    display: flex !important;
    align-items: center !important;
}

.product-specifications .spec-icon {
    margin-right: 10px !important;
    font-size: 0.9rem !important;
    color: #ffffff !important;
    width: 16px !important;
    text-align: center !important;
}

.product-specifications .spec-content {
    background: #ffffff !important;
    padding: 12px 15px !important;
    font-size: 0.8rem !important;
    color: #333 !important;
    font-weight: normal !important;
    line-height: 1.5 !important;
    min-height: 20px !important;
}

.product-main-title {
    font-size: 1.9rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.1 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.principio-ativo-section {
    margin-top: 20px;
}

.principio-label {
    font-size: 1.1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.principio-underline {
    width: 80px;
    height: 3px;
    background: #000;
    margin: 8px 0;
    border-radius: 2px;
}

.principio-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #23235b;
    text-transform: uppercase;
    display: block;
    margin-top: 5px;
}

.product-image-overlay {
    text-align: center;
    position: relative;
    z-index: 3;
}

.product-image-overlay .main-image-container {
    max-width: 251px;
    margin: 0 auto;
    position: relative;
}

.product-image-overlay .main-image-container img {
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    transition: transform 0.3s ease;
}

.product-image-overlay .main-image-container img:hover {
    transform: translateY(-5px);
}

.thumbnail-images {
    margin-top: 20px;
}

.thumbnail {
    cursor: pointer;
    padding: 3px;
    transition: all 0.3s ease;
}

.thumbnail img {
    border-radius: 0;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: transparent;
}

.thumbnail.active img {
    border-color: #23235b;
    box-shadow: none;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .product-header-bar-yellow,
    .product-header-bar-gray {
        height: 100px;
    }
    
    .product-main-title {
        font-size: 2rem !important;
        text-align: center;
    }
    
    .principio-ativo-section {
        text-align: center;
    }
    
    /* Reorganiza a estrutura para mobile - imagem primeiro */
    .product-header-sections {
        display: flex;
        flex-direction: column;
    }
    
    .product-image-overlay-container {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: auto;
        order: -1; /* Coloca a imagem primeiro */
        margin-bottom: 20px;
        background: #fff;
        padding: 20px 0;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .product-image-overlay {
        padding: 0;
        top: auto;
    }
    
    .product-image-overlay .main-image-container {
        max-width: 250px;
    }
    
    .background-bars {
        order: 1; /* Coloca as barras depois da imagem */
    }
    
    .product-description-below-bar {
        order: 3; /* Coloca a descrição por último */
    }
    
    /* Reorganiza as colunas internas para mobile */
    .product-description-below-bar .row {
        display: flex;
        flex-direction: column;
    }
    
    .product-description-below-bar .col-md-8 {
        order: 2; /* Descrição do produto fica depois das especificações */
    }
    
    .product-description-below-bar .col-md-4 {
        order: 1; /* Especificações ficam antes da descrição */
    }
    
    .product-specifications {
        padding-left: 0 !important;
        margin-top: 20px !important;
    }
    
    .product-specifications .spec-item {
        margin-bottom: 10px !important;
    }
    
    .product-specifications .spec-header {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
    
    .product-specifications .spec-content {
        padding: 10px 12px !important;
    }
    
    .product-specifications .spec-icon {
        font-size: 0.8rem !important;
        margin-right: 8px !important;
    }
}

@media (max-width: 576px) {
    .product-header-bar-yellow,
    .product-header-bar-gray {
        height: 80px;
    }
    
    .product-main-title {
        font-size: 1.8rem !important;
    }
    
    .principio-value {
        font-size: 1.1rem;
    }
    
    .product-image-overlay .main-image-container {
        max-width: 200px;
    }
    
    .product-image-overlay-container {
        padding: 15px 0;
        margin-bottom: 15px;
    }
    
    .thumbnail-images {
        margin-top: 15px;
    }
}