/* FortSeg - Home Modern Styles 
    Paleta: Laranja (#FF5E04), Azul Escuro (#002d5b), Cinza Suave (#f8f9fa)
*/

:root {
    --primary: #FF5E04;
    --primary-hover: #e05203;
    --dark-blue: black;
    --text-main: #333;
    --text-muted: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --radius: 16px;
}

/* --- Ajustes Gerais de Seção --- */
.section-home{
    padding: 60px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* --- Banner Principal (Ajuste de Altura) --- */
.mySwiper {
    width: 100%;
    height: 300px;
    background: #eee;
}

.mySwiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .mySwiper { height: 500px; }
}

/* --- Produtos em Destaque & Carrossel --- */
.destaque-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.destaque-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-blue);
}

.ver-todos {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.ver-todos:hover {
    border-color: var(--primary);
}

.product-swiper-container {
    position: relative;
    padding: 0 10px;
}

/* Customização das Setas Swiper */
.swiper-button-next, .swiper-button-prev {
    color: var(--dark-blue) !important;
    background: white;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 16px !important;
    font-weight: bold;
}

/* --- Modern Product Card (Estilo Apple) --- */
.card-produto {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f0f0f0;
}

.card-produto:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.foto-wrapper {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #fdfdfd;
    border-radius: 12px;
}

.foto-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.card-produto h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 10px 0;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-area {
    margin: 15px 0;
}

.price-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

/* Controle de Quantidade Moderno */
.qty-control {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 10px;
    padding: 5px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.qty-control button {
    width: 30px;
    height: 30px;
    border: none;
    background: white;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.qty-control button:hover { background: var(--primary); color: white; }

.qty-input {
    background: transparent;
    border: none;
    text-align: center;
    width: 40px;
    font-weight: 700;
}

/* Botões de Ação do Card */

.actions-grid{
    width: 230px;
}

/* Garante que o container de ações não use grid fixo que empilha */
.actions-wrapper {
    display: flex !important;
    flex-direction: column !important;
}

/* Força os botões a ficarem na mesma linha */
.buttons-row {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
}

/* Remove larguras fixas de 100% que podem vir do home-styles.css */
.btn-buy, .btn-details {
    width: auto !important; 
    margin: 0 !important;
}

/* Estilo do controle de quantidade para ocupar a largura toda acima dos botões */
.qty-control {
    width: 100%;
    margin-bottom: 4px;
}

.btn-details {
    background: var(--bg-light);
    color: var(--dark-blue);
    text-align: center;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-buy {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-buy:hover { background: var(--primary-hover); }

/* --- Categorias Modernas --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
}

.category-card-modern {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: 0.3s;
}

.category-card-modern:hover {
    background: var(--dark-blue);
    transform: translateY(-5px);
}

.category-icon-wrapper {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
}

.category-card-modern:hover .category-icon-wrapper,
.category-card-modern:hover span {
    color: white;
}

.category-card-modern span {
    font-weight: 700;
    color: var(--dark-blue);
}

/* --- Seção Sobre --- */
.sobre-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

@media (min-width: 1024px) {
    .sobre-section { flex-direction: row; }
}

.sobre-image-container { flex: 1; }
.sobre-image-container img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.sobre-content { flex: 1; }
.sobre-tag {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
}

.sobre-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-blue);
    margin: 15px 0;
    line-height: 1.2;
}

.btn-sobre {
    display: inline-block;
    padding: 14px 28px;
    background: var(--dark-blue);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-sobre:hover { background: var(--primary); }

/* --- Contato & WhatsApp Grid --- */
.contato-grid-new {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .contato-grid-new { grid-template-columns: repeat(3, 1fr); }
}

.card-item {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    transition: 0.3s;
}

.card-item:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.btn-whatsapp {
    display: block;
    margin-top: 20px;
    background: var(--primary);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
}

/* --- FAQ Moderno (Accordion) --- */
.faq-wrapper-new { max-width: 800px; margin: 60px auto 0; }
.faq-title-new {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-blue);
}

.faq-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #f0f0f0;
}

.faq-trigger {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--dark-blue);
    cursor: pointer;
}

.faq-content {
    padding: 0 20px 20px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    display: none; /* Controlado pelo JS */
}

/* Classe utilitária para o JS mostrar o conteúdo */
.faq-card.active .faq-content {
    display: block;
}

.faq-card.active .faq-trigger i {
    transform: rotate(45deg);
    color: var(--primary);
}