/* Product Details - App Store Style */
.product-details {
    padding-top: 160px; /* Reduzido para dar espaço ao H1 principal */
    padding-bottom: 80px;
}

/* Título principal movido para fora da grid */
.product-details > .container > h1 {
    font-size: 3.5rem;
    color: var(--azul-escuro);
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

/* Nova Grid Principal */
.app-store-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Coluna principal mais larga, sidebar mais estreita */
    gap: 50px;
    align-items: flex-start; /* Alinha os itens no topo */
}

/* Coluna principal (Esquerda) */
.main-content .product-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 12px; /* Bordas arredondadas para um visual moderno */
}

.main-content .product-icon {
    font-size: 150px;
    color: var(--azul-primario);
    text-align: center;
}

/* Seção de Descrição */
.description-section {
    margin-top: 40px;
}
.description-section h2 {
    font-size: 1.8rem;
    color: var(--azul-escuro);
    margin-bottom: 15px;
}
.description-section p {
    font-size: 1.1rem;
    color: var(--cinza-escuro);
    line-height: 1.7;
    margin-bottom: 20px;
}
.features-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}
.features-list li {
    font-size: 1rem;
    color: var(--cinza);
    margin-bottom: 12px;
}
.features-list li i {
    color: var(--verde);
    margin-right: 10px;
}

/* Barra Lateral (Direita) */
.sidebar-actions {
    position: -webkit-sticky; /* Para Safari */
    position: sticky;
    top: 115px; /* Distância do topo ao rolar */
}

/* Card de Download */
.download-section {
    background-color: var(--azul-bg, #f4f7fc);
    padding: 30px;
    border-radius: 15px;
    text-align: left; /* Alinhar texto à esquerda */
    border: 1px solid #e0e6f1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.download-section h3 {
    font-size: 1.5rem;
    color: var(--azul-escuro);
    margin-bottom: 10px;
}
.download-section p {
    font-size: 1rem;
    color: var(--cinza-escuro);
}

/* Container de botões na sidebar */
.download-section .btn-container {
    display: flex;
    flex-direction: column; /* Botões um embaixo do outro */
}

.download-section .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    width: 100%; /* Ocupar toda a largura do container */
}

/* Ícones de plataforma */
.platform-icons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 25px;
}
.platform-icons i {
    font-size: 2rem;
    color: #aab8c2; /* Cor mais sutil */
    transition: color 0.2s;
}
.platform-icons i:hover {
    color: var(--azul-primario);
}

/* Estilos do Carrossel de Miniaturas */
.carousel-indicators.thumbnails {
    position: static;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.carousel-indicators.thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 8px; /* Bordas arredondadas */
    transition: all 0.3s;
}
.carousel-indicators.thumbnails img.active {
    border-color: var(--azul-primario, #007bff);
    transform: scale(1.1);
}

/* ---------------------------------------------------------
   BASE GERAL DO MARKDOWN — AJUSTADO PARA .description-section
---------------------------------------------------------- */

.description-section p {
    margin: 1rem 0;
}

.description-section strong {
    font-weight: 700;
    color: #000;
}

/* ---------------------------------------------------------
   TÍTULOS
---------------------------------------------------------- */

.description-section h1,
.description-section h2,
.description-section h3 {
    font-family: inherit;
    margin: 2rem 0 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.description-section h1 { font-size: 2rem; }
.description-section h2 { font-size: 1.6rem; }
.description-section h3 { font-size: 1.3rem; }

/* ---------------------------------------------------------
   LINKS
---------------------------------------------------------- */

.description-section a {
    color: #007aff;
    font-weight: 600;
    text-decoration: none;
}

.description-section a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   BLOCKQUOTE
---------------------------------------------------------- */

.description-section blockquote {
    border-left: 4px solid #007aff;
    padding: 0.8rem 1rem;
    margin: 1.5rem 0;
    background: #f6faff;
    color: #444;
    font-style: italic;
    border-radius: 4px;
}

.description-section blockquote strong {
    font-style: normal;
}


/* ---------------------------------------------------------
   IMAGENS
---------------------------------------------------------- */

.description-section img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

/* ---------------------------------------------------------
   CÓDIGOS (inline e bloco)
---------------------------------------------------------- */

.description-section code {
    background: #f3f3f3;
    padding: 3px 5px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.description-section pre code {
    display: block;
    padding: 1rem;
    border-radius: 6px;
    background: #1e1e1e;
    color: #f8f8f2;
    overflow-x: auto;
}

/* ---------------------------------------------------------
   ALERTAS
---------------------------------------------------------- */

.description-section .alert {
    padding: 1rem;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.description-section .alert-info {
    background: #eaf6ff;
    border-left: 4px solid #0a84ff;
}

.description-section .alert-warning {
    background: #fff8e6;
    border-left: 4px solid #ffb300;
}

.description-section .alert-error {
    background: #ffe8e8;
    border-left: 4px solid #ff3b30;
}

/* --- RESPONSIVIDADE --- */

/* Tablets e Telas Menores */
@media (max-width: 992px) {
    .app-store-layout {
        grid-template-columns: 1fr; 
		gap: 0px;
    }
    .sidebar-actions {
        position: static; 
        margin-top: 30px; 
    }
    .product-details > .container > h1 {
        font-size: 2.5rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .product-details > .container > h1 {
        font-size: 2rem;
    }
    .download-section {
        padding: 20px;
    }
    .download-section .btn {
        font-size: 1rem;
    }
    .platform-icons i {
        font-size: 1.8rem;
    }
}