/* Fontes e Base */
body {
    font-family: "Montserrat", sans-serif;
    background-color: #fafbfc; /* Fundo levemente off-white para destacar elementos brancos */
}

/* Utilitários Gerais */
.font-montserrat { font-family: "Montserrat", sans-serif; }
.cursor-pointer { cursor: pointer; }
.icon-hover { transition: transform 0.2s, color 0.2s; }
.icon-hover:hover { transform: scale(1.1); color: #53af01 !important; }

/* Topo 0 e Topo 1 */
.topo-0 { background-color: #121212; padding: 8px 0; }
.texto-topo-0 { margin: 0; font-size: 12px; letter-spacing: 1px; font-weight: 600; color: #fff; }

/* =========================================
   NOVO HEADER NUTSHOES
========================================= */
.nut-header {
  position: relative;
  background-color: #791ed1; /* Roxo vibrante principal */
  font-family: 'Montserrat', sans-serif;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Faixa roxa escura superior */
.nut-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background-color: #51009e; /* Roxo escuro do topo */
  z-index: 1;
}

.nut-header-content {
  position: relative;
  z-index: 2;
}

.nut-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 36px;
}

/* Efeito da aba recuada no topo (Folder Tab) */
.nut-logo-tab {
  background-color: #791ed1;
  padding: 0 24px;
  border-radius: 10px 10px 0 0;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Ajustes mobile da aba */
@media (max-width: 767px) {
    .nut-logo-tab {
        margin-left: 10px;
        padding: 0 15px;
    }
}

/* Estilo do Logo (NutShoes) */
.nut-logo-text {
  font-style: italic;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -1px;
  color: #fff;
  line-height: 1;
  padding-top: 2px;
}

.nut-top-links {
  display: flex;
  gap: 18px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.nut-top-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.nut-top-links a:hover {
  opacity: 1;
}

/* Barra de Busca */
.nut-search input {
  font-weight: 500;
  font-size: 14px;
  box-shadow: none !important;
  color: #333;
}
.nut-search input::placeholder {
  color: #888;
}

/* Badge Amarelo do Carrinho */
.nut-badge {
  background-color: #dfff00;
  color: #000;
  font-weight: 800;
  font-size: 12px;
  padding: 0.25em 0.5em;
  border: 2px solid #791ed1; /* Borda roxa para sobrepor o ícone */
  transform: translate(-40%, -40%) !important;
}

/* Menu Inferior Desktop */
.nut-bottom-nav nav a {
    transition: opacity 0.2s;
    font-size: 13px;
    letter-spacing: 0.5px;
}
.nut-bottom-nav nav a:hover {
    opacity: 0.7;
}

.topo-1 { background-color: #fff; padding: 15px 0; border-bottom: 1px solid #f0f0f0; }

.nav-link-custom {
    color: #2b2b2b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}
.nav-link-custom:hover { color: #53af01; }

/* Área Principal - Topo 2 */
.topo-2 { padding: 40px 0; position: relative; }

/* Galeria e Thumbnails */
.gallery-wrapper {
    border-radius: 16px;
    background: #fff;
}
.product-thumbnails {
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin-top: 10px;
}
.product-thumbnails::-webkit-scrollbar { display: none; }
.thumb-item {
    width: auto;
    height: 80px;
    /*object-fit: cover;
    cursor: pointer;*/
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
    background-color: #f8f9fa;
}
.thumb-item:hover { opacity: 0.8; transform: translateY(-2px); }
.thumb-active {
    border: 2px solid #121212 !important;
    opacity: 1 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Títulos, Preços e Tags */
.titulo { font-size: 34px; line-height: 1.2; color: #121212; letter-spacing: -0.5px; }
.subitutlo { font-size: 22px; line-height: 1.4; color: #121212; font-weight: 600; margin-bottom: 20px; }
.texto { font-size: 16px; line-height: 1.6; color: #4a4a4a; font-weight: 400; margin-bottom: 25px; }

.texto-novo { background-color: #6c757d; font-size: 12px; font-weight: 500; }
.exclusivo { background-color: #002F6C; color: #CCF2FF; font-size: 11px; font-weight: bold; }
.oferta {
    color: #000; font-size: 11px; font-weight: bold;
    background: linear-gradient(90deg, #ffe600 0%, #ffd000 50%, #ffb300 100%);
    animation: flashGradient 3s linear infinite; background-size: 300% 100%;
}

/* Botões de Cores (Pílulas Modernas) */
.color-variant { font-size: 0.9rem; padding: 0.5rem 1rem; transition: all 0.2s ease; }
.color-variant:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.color-variant.active { box-shadow: 0 4px 12px rgba(0,0,0,0.15); border-color: transparent !important; }

/* Elementos de Urgência / Frete (Cards macios) */
.restam, .restam2 {
    display: flex; align-items: center; gap: 12px;
    box-sizing: border-box; transition: transform 0.2s ease;
}
.restam2:hover { transform: translateY(-2px); }
.texto-restam { font-size: 14px; color: #333; margin: 0; line-height: 1.4; }
.img-correios { height: 35px; width: auto; }

/* Botão de Compra "Pulse" Focado em Conversão */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(83, 175, 1, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(83, 175, 1, 0); }
    100% { box-shadow: 0 0 0 0 rgba(83, 175, 1, 0); }
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #53af01 0%, #3e8700 100%);
    border: none;
    border-radius: 12px !important; /* Arredondamento moderno */
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #459200 0%, #326d00 100%);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(83, 175, 1, 0.3) !important;
}
.add-to-cart-btn:active { transform: scale(0.96); }

/* Caixas de Compre Mais e Economize (Accordion Moderno) */
.custom-divider::before {
    content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px;
    background-color: #e0e0e0; z-index: -1;
}
.offer-box {
    transition: all 0.3s ease;
    background-color: #fff;
    border: 2px solid transparent !important;
}
.offer-box:hover { border-color: #c3e6cb !important; box-shadow: 0 6px 16px rgba(0,0,0,0.06) !important; }
.offer-box-active {
    border: 2px solid #28a745 !important;
    background-color: #f6fcf8 !important; /* Fundo super suave de sucesso */
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.1) !important;
}
.custom-radio { transform: scale(1.2); }
.img-selo { height: 50px; position: absolute; top: -20px; right: 15px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }
.bg-success-light { background-color: #d1e7dd; }

.offer-details { display: none; animation: fadeInOffer 0.4s ease; }
.offer-box-active .offer-details { display: block; }
@keyframes fadeInOffer {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pagamentos (RTE) */
.rte {
    padding: 10px 8px !important;
    gap: 5px !important;
    flex-wrap: nowrap !important;
}
.rte .payment-icon {
    width: 28px !important;
    height: 18px !important;
    flex: 0 1 auto !important;
    min-width: 0;
}

/* Rodapé - Formas de pagamento e Loja verificada */
.payment-badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 254px;
}
.payment-badges-grid .payment-icon { width: 46px; height: 29px; display: block; overflow: hidden; }
.store-verified-badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-verified-badge { display: flex; align-items: center; gap: 6px; }
.store-verified-badge svg { flex: 0 0 auto; }
.store-verified-badge .label { line-height: 1.15; text-align: left; }
@media (max-width: 767.98px) {
    .payment-badges-grid, .store-verified-badges { margin-left: auto; margin-right: auto; justify-content: center; }
}
@media (min-width: 768px) {
    .payment-badges-grid.justify-content-md-end { margin-left: auto; }
    .store-verified-badges.justify-content-md-end { justify-content: flex-end; }
}

/* Seção Depoimentos (Masonry Otimizado) */
.topo-depo { background-color: #fdfdfd; padding: 70px 0; border-top: 1px solid #f0f0f0; }
.verified-badge { background-color: #121212; color: #fff; font-size: 0.5rem; padding: 3px 4px; border-radius: 50%; }

.masonry-grid { column-count: 4; column-gap: 1.5rem; }
.review-card {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 100%;
    background: #fff;
    border: 1px solid #f2f2f2 !important;
    border-radius: 16px !important; /* Estilo Apple/Moderno */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06) !important;
}
.review-img { border-radius: 16px 16px 0 0; object-fit: cover; max-height: 250px; }

/* Botão de Carregar Mais Reviews */
#loadMoreBtnContainer button {
    border-radius: 25px !important;
    transition: all 0.3s;
}
#loadMoreBtnContainer button:hover { background-color: #121212; color: #fff; }

/* Sticky Buy Bar */
.sticky-buy-bar {
    position: fixed; bottom: 0; left: 0; width: 100%; z-index: 1050;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #eaeaea;
    transform: translateY(110%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sticky-buy-bar.show-bar { transform: translateY(0); }

/* Responsividade Aprimorada */
@media screen and (min-width: 768px) {
    .parado { position: sticky; top: 40px; z-index: 10; }
    .border-md-end { border-right: 1px solid #eaeaea; }
}
@media screen and (max-width: 992px) { .masonry-grid { column-count: 3; } }
@media screen and (max-width: 768px) {
    .masonry-grid { column-count: 2; }
    .titulo { font-size: 26px; }
}
@media screen and (max-width: 576px) {
    .masonry-grid { column-count: 1; }
    .topo-2 { padding: 25px 0; }
    .thumb-item { width: 75px; height: 75px; }
}



/* Animação suave para os novos reviews carregados */
.review-card.show-animated {
    animation: slideUpFade 0.4s ease-out forwards;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ativa o Sticky apenas no Desktop. No mobile, flui normalmente */
@media screen and (min-width: 768px) {
    .parado {
        position: sticky;
        top: 30px; 
        z-index: 10; /* Garante que as fotos fiquem por cima do fundo ao rolar */
    }
}

@media screen and (max-width: 600px) {
    .topo-2 {
        padding: 20px 0;
    }
    .thumb-item {
        width: 85px;
        height: 85px;
    }
}

/* =========================================
   CORREÇÕES DE LAYOUT (COLE NO FINAL DO CSS)
========================================= */

/* 1. Corrige o tênis gigante na caixa de ofertas */
.img-rounded {
    height: 40px;
    width: 50px;
    object-fit: cover;
    border-radius: 6px;
}

/* 2. Corrige o fundo branco do rodapé */
.rodape {
    background-color: #5c00c4;
    padding: 40px 0 20px 0;
}

/* Garante que o CNPJ/copyright do rodapé nunca fique escondido atrás
   da barra fixa de compra (sticky-buy-bar) nem do botão do WhatsApp,
   que ficam sobrepostos na parte de baixo da tela. */
.rodape-footer {
    padding-bottom: 130px;
}
@media screen and (max-width: 576px) {
    .rodape-footer { padding-bottom: 150px; }
}
.rodape-legal p { line-height: 1.7; }
.rodape-legal p:first-child { margin-bottom: 10px !important; }

/* 3. Corrige o estilo e cores do Logo ZafiOUTLET */
.oz-logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
    white-space: nowrap;
    color: #171717;
}
.oz-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1.5px solid #b88a2b;
    border-radius: 50%;
    color: #b88a2b;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    margin-right: 3px;
}
.oz-logo-zafi, .oz-logo-outlet {
    font-family: Montserrat, sans-serif;
    font-weight: 800;
}
.oz-logo-zafi {
    color: #171717;
    font-size: 25px;
    letter-spacing: -1.1px;
}
.oz-logo-outlet {
    color: #b88a2b;
    font-size: 25px;
    letter-spacing: .35px;
}