/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
}

/* HEADER - Fiel ao Magalu Mobile */
.header {
    background-color: #ffffff;
    color: #000;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-btn {
    background: none;
    border: none;
    color: #000;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.logo {
    font-size: 18px;
    font-weight: bold;
	color: #000;
}

.logo img {
    transform: translateY(3px); /* Ajuste fino para centralização vertical */
}

.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    color: #000;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

/* Ícones - Usando texto/unicode para simular o visual */
.heart-icon::before { content: ""; }
.cart-icon::before { content: ""; }
.profile-icon::before { content: ""; }

/* SEARCH BAR .search-container {
    background-color: #fff;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    flex: 1;
    border: 1px solid #ddd;
    outline: none;
    padding: 8px;
    font-size: 14px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.search-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
}

/* CEP SECTION */
.cep-section {
    background-color: #ffffff;
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cep-icon::before { content: ""; }

.cep-text {
    flex: 1;
    font-size: 13px;
    color: #000;
}

.cep-btn {
    background: none;
    border: none;
    color: #000; /* Cor branca para o SVG */
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
}

/* FILTERS SECTION */
.filters-section {
    background-color: #fff;
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.filter-btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    color: #333;
}

.filter-btn:hover {
    background-color: #eee;
}

.full-badge {
    background-color: #000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* RESULTS HEADER */
.results.header {
    background-color: #000;
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.results-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.results-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* PRODUCTS GRID - Fiel ao Magalu Mobile */
.products-container {
    padding: 8px; /* Espaçamento menor para mobile */
    background-color: #f5f5f5;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colunas para mobile */
    gap: 8px; /* Espaçamento menor entre os cards */
}

.product-card {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 150px; /* Altura fixa para uniformidade */
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.full-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #000;
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.product-info {
    padding: 10px;
}

.product-title {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.3;
    min-height: 30px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-rating {
    font-size: 11px;
    color: #ffa500;
    margin-bottom: 4px;
}

.product-price {
    font-size: 14px;
    font-weight: bold;
    color: #000000; /* Cor azul do Magalu */
    margin-bottom: 3px;
}

.product-original-price {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 3px;
}

.product-installment {
    font-size: 11px;
    color: #666;
    margin-bottom: 3px;
}

.product-discount {
    font-size: 11px;
    color: #0076ff;
    margin-bottom: 6px;
}

.product-badge {
    display: inline-block;
    background-color: #e8f4ff;
    color: #0076ff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-top: 4px;
}

/* MORE INFO SECTION */
.more-info-section {
    background-color: #fff;
    margin-top: 12px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.more-info-header {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.more-info-header:hover {
    background-color: #f9f9f9;
}

.more-info-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.more-info-toggle {
    font-size: 18px;
    color: #999;
    transition: transform 0.3s;
}

.more-info-toggle.open {
    transform: rotate(180deg);
}

.more-info-content {
    display: none;
    padding: 0 12px 12px 12px;
    border-top: 1px solid #eee;
}

.more-info-content.open {
    display: block;
}

.info-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #666;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item a {
    color: #0076ff;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

/* FOOTER */
.footer {
    background-color: #1a1a1a;
    color: #fff;
	padding: 20px 0;
    margin-top: 0;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.footer-title:hover {
    color: #0076ff;
}

.footer-toggle {
    font-size: 16px;
    transition: transform 0.3s;
}

.footer-toggle.open {
    transform: rotate(180deg);
}

.footer-links {
    display: none;
    list-style: none;
}

.footer-links.open {
    display: block;
}

.footer-link {
    padding: 6px 0;
    font-size: 12px;
    color: #ccc;
}

.footer-link a {
    color: #ccc;
    text-decoration: none;
}

.footer-link a:hover {
    color: #0076ff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 15px;
    font-size: 11px;
    color: #999;
    text-align: center;
}

/* ===== PRODUCT DETAIL PAGE STYLES ===== */

.product-detail-container {
    max-width: 100%;
    background-color: #fff;
    padding-bottom: 120px;
}

.product-detail-header {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #000;
    position: sticky;
    top: 60px;
    z-index: 99;
}
.back-btn {
    background: none;
    border: none;
    color: #fff;6ff;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.product-detail-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}  flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* PRODUCT IMAGE CAROUSEL */
.product-detail-images {
    width: 100%;
    background-color: #f5f5f5;
    padding: 20px 0;
    text-align: center;
}

.product-detail-image {
    width: 100%;
	height: 400px;
    margin-bottom: 15px;
    overflow-x: scroll; /* Habilita o scroll horizontal */
    scroll-snap-type: x mandatory; /* Habilita o snap ao deslizar */
    display: flex; /* Permite que as imagens fiquem lado a lado */
    -webkit-overflow-scrolling: touch; /* Para iOS */
}

.product-detail-image img {
    min-width: 100%; /* Cada imagem ocupa 100% da largura do contêiner */
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start; /* Faz a imagem parar no início ao deslizar */
}

.image-thumbnails {
    display: flex;
    gap: 8px;
	overflow-x: auto;
	padding-bottom: 10px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch; /* Para iOS */
}

.image-thumbnail {
    width: 60px;
    height: 60px;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
	flex-shrink: 0;
	scroll-snap-align: start;
}

.image-thumbnail.active {
    border-color: #0076ff;
}

.image-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PRODUCT INFO DETAIL */
.product-detail-info {
    padding: 12px;
}

.product-detail-title-main {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-detail-seller {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.product-detail-rating {
    font-size: 14px;
    color: #ffa500;
    margin-bottom: 15px;
}

.product-detail-price-section {
    margin-bottom: 15px;
}

.product-detail-price {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 5px;
}

.product-detail-installment {
    font-size: 13px;
    color: #666;
}

.payment-options {
    margin-bottom: 15px;
}

.payment-options a {
    font-size: 13px;
    color: #0076ff;
    text-decoration: none;
    font-weight: 600;
}

.shipping-info {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.shipping-info-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.shipping-info-icon {
    font-size: 18px;
}

.shipping-info-link {
    color: #0076ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

/* ACTION BUTTONS DETAIL */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-add-cart {
    background-color: #00C000; /* Verde Magalu */ /* Verde */
    color: #fff;
    border: none;
    padding: 14px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-cart.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-buy-now {
    background-color: #fff; /* Fundo branco */
    color: #00C000; /* Texto verde */
    border: 1px solid #00C000; /* Borda verde */
    padding: 14px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-contact {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    padding: 14px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none; /* Para o link Comprar Agora */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* STORE INFO DETAIL */
.store-info {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.store-info-header {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.store-icon {
    font-size: 30px;
}

.store-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.store-badge {
    font-size: 12px;
    color: #666;
}

.store-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
    text-align: center;
}

.store-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.store-stat-value {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.store-stat span:last-child {
    font-size: 11px;
    color: #999;
}

.store-actions {
    display: flex;
    gap: 8px;
}

.store-action-btn {
    flex: 1;
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* TABS DETAIL */
.product-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #ddd;
    padding: 0 12px;
    margin-bottom: 15px;
    overflow-x: auto;
}

.product-tab {
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.product-tab.active {
    color: #0076ff;
    border-bottom-color: #0076ff;
}

.product-tab-content {
    display: none;
    padding: 0 12px;
    margin-bottom: 15px;
}

.product-tab-content.active {
    display: block;
}

/* FIXED BOTTOM BAR - New Structure */
.fixed-bottom-button {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px; /* Padding ajustado */
    background-color: #fff;
    border-top: 1px solid #eee;
    z-index: 99;
    display: flex; /* Usar flexbox para alinhar preço e botão */
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.price-info {
    display: flex;
    align-items: baseline; /* Alinha o preço e o "no Pix" */
    line-height: 1.2;
    justify-content: center;
    gap: 5px; /* Espaçamento entre o preço e o "no Pix" */
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.price-integer {
    font-size: 20px;
    font-weight: bold;
    color: #000000; /* Azul Magalu */
}

.price-decimal {
    font-size: 12px;
    font-weight: 600;
    color: #000000; /* Azul Magalu */
}

.price-label {
    font-size: 12px;
    color: #666;
    /* Removido margin-top para alinhar horizontalmente */
}

.btn-buy-now-fixed {
    flex-shrink: 0; /* Não encolher o botão */
    width: 50%; /* Ocupar metade da largura */
    background-color: #00C000; /* Verde Magalu */
    color: #fff;
    border: none;
    padding: 12px 16px; /* Padding ajustado */
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-buy-now-fixed:hover {
    background-color: #00A000;
}

/* FOOTER - Mantido o layout anterior */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px 12px;
    margin-top: 0;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.footer-toggle {
    font-size: 16px;
    transition: transform 0.3s;
}

.footer-toggle.open {
    transform: rotate(180deg);
}

.footer-links {
    display: none;
    list-style: none;
}

.footer-links.open {
    display: block;
}

.footer-link {
    padding: 6px 0;
    font-size: 12px;
    color: #ccc;
}

.footer-link a {
    color: #ccc;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 15px;
    font-size: 11px;
    color: #999;
    text-align: center;
}

/* RESPONSIVE */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ===== RELATED PRODUCTS STYLES ===== */

.related-products {
    background-color: #fff;
    margin-top: 12px;
    padding-top: 12px;
}

.related-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    padding: 0 12px 12px 12px;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colunas para mobile */
    gap: 8px; /* Espaçamento menor entre os cards */
    padding: 0 12px 12px 12px;
}

/* Ajuste de formatação na descrição do produto */
.product-tab-content h3 {
    margin-bottom: 4px;
}

/* Banner Placeholder */
.banner-placeholder {
    width: 100%;
    background-color: #eee; /* Cor de fundo para visualização */
    text-align: center;
    line-height: 100px;
    color: #333;
    font-weight: bold;
    margin-bottom: 0; /* Removendo margem inferior */
}

/* Ajuste de borda na tabela de características técnicas */
.product-tab-content table tr {
    border-bottom: 1px solid #eee;
}

/* Botão Desativado (Cinza) */
.btn-disabled {
    background-color: #ccc !important; /* Cinza claro */
    color: #666 !important; /* Texto cinza escuro */
    cursor: not-allowed !important; /* Indica que não é clicável */
}
