/* BASE GERAL */
:root {
    --cor-primaria: #fff;
    --cor-secundaria: #000;
    --cor-terciaria: #a1a1a1;
    --cor-texto: #333;
    --cor-destaque: #bdbdbd;
    --cor-footer-destaque: #ffae00;
    --transicao: 0.6s ease;
}
html, body {
    height: 100%;
}

body {
    font-family: 'syncopate', sans-serif;
    background-color: var(--cor-primaria);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Garante que o conteúdo principal se expande */
body > *:not(.main-footer) {
    flex: 1;
}

/* NAVBAR */
.navbar-categorias {
    background-color: var(--cor-primaria);
    padding: 1rem 0;
}
.navbar-lista {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.navbar-lista li a {
    text-decoration: none;
    color: var(--cor-secundaria);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.15rem;
    transition: all 0.6s ease;
}
.navbar-lista li a:hover {
    color: #ccc;
    text-decoration: none;
}

/* FOOTER */
.main-footer {
    background: #555;
    color: #fff;
    padding: 40px 0 0 0;
    font-family: 'Syncopate', sans-serif;
    margin-top: 100px;
    width: 100%;
}
.main-footer .container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
}
.footer-section {
    flex: 1 1 220px;
    min-width: 220px;
    margin-bottom: 24px;
}
.footer-logo h3 {
    font-family: 'Syncopate', sans-serif;
    font-size: 2rem;
    margin-bottom: 12px;
    color: #fff;
    letter-spacing: 0.2rem;
}
.footer-logo a {
    color: var(--cor-footer-destaque);
    margin-right: 12px;
    font-size: 1.5rem;
    transition: color 0.6s;
}
.footer-logo a:hover {
    color: #fff;
}
.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--cor-footer-destaque);
    font-family: 'Montserrat', sans-serif;
}
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-section ul li {
    margin-bottom: 8px;
    transition: color 0.6s;
}
.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.6s;
}
.footer-section ul li a:hover {
    color: var(--cor-footer-destaque);
    text-decoration: none;
}
.footer-bottom {
    text-align: center;
    padding: 18px 0 8px 0;
    border-top: 1px solid #444;
    margin-top: 24px;
    transition: color 0.6s;
    font-size: 0.95rem;
    color: #bbb;
}
.footer-bottom a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.6s;
}
.footer-bottom a:hover {
    color: var(--cor-footer-destaque);
    text-decoration: none;
}
@media (max-width: 900px) {
    .navbar-mobile {
    display: flex;
    justify-content: space-between; /* distribui colapse | logo | conta */
    align-items: center;
    padding: 0.5rem 1rem;
    background: #fff;
    min-height: 48px;
}

.mobile-categorias-btn,
.mobile-user {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 48px;
    font-size: 1.4rem;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
}

.img-logo {
    height: 32px;
    max-height: 32px;
    object-fit: contain;
    display: block;
}
    .footer-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
    }
    .footer-section {
        margin-bottom: 18px;
    }
}

/* PRODUTOS EM GRID */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    width: 100%;
    margin: 0 auto;
}
.card-img-top {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: all var(--transicao);
}
.card-body {
    font-family: 'montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #000;
}
.Checkout .card-body, .Sucesso .card-body, .Pedidos .card-body, .View-Pedido .card-body, .Controle-Site .card-body {
    font-family: 'montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #000;
}
.Cadastro p {
    font-family: 'montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 150px;
    margin-top: 20px;
}
.Postar {
    font-family: 'montserrat', sans-serif;
    font-weight: bold;
}
.H-Conta p, .Checkout p {
    font-family: 'montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #000;
}
.btn-outline-danger {
    color: #6d0000;
    font-weight: 600;
    border: 1px solid #ff0000;
    padding: 10px 20px;
    transition: 0.6s;
}
.btn-outline-warning {
    color: #FFCA2C;
    background-color: #000;
    font-weight: 600;
    padding: 10px 20px;
    transition: 0.6s;
}
.Conta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.Conta .card {
    align-items: center;
    justify-content: space-between;
}
.Conta p {
    font-family: 'montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #000;
    margin-top: 20px;
}
.Cadastro input {
    font-family: 'montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #000;
    width: 100%;
    padding: 5px;
    border: 1px solid #000;
    border-radius: 5px;
}
.card a {
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.produto {
    margin: 0;
    padding: 5px;
}
.produto-container {
    padding: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-content: space-between;
}
.produto-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem;
}
/* Imagens lado a lado */
.produto-imagens {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: fit-content;
    flex-shrink: 0;
}
.produto-imagens img {
    width: 360px;
    height: auto;
    object-fit: contain;
    transition: opacity 0.6s, transform 0.6s;
}
.produto-imagens img.oculto {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}
.produto-detalhes {
    flex: 1;
    width: 360px;
}
.tamanhos button {
    margin-right: 5px;
}
.tamanhos {
    font-size: x-large;
    font-family: 'montserrat', sans-serif;
}
.preco-destaque {
    font-size: 1.5rem;
    color: #000;
    font-weight: bold;
}
.btn-qtd {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 4px 12px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: 0.6s;
}
.btn-qtd:hover {
    background-color: #f0f0f0;
}
.divs {
    gap: 20px;
}
.linkperso {
    color: #000;
    font-weight: 600;
    text-decoration: none;
    transition: 0.6s;
}
.linkperso:hover {
    color: #ff8641;
}
.btn-danger {
    background-color: #000;
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    transition: 0.6s;
}
.btn-danger:hover {
    background-color: #ff8641;
    color: #fff;
}
.btn-secondary {
    background-color: #000;
    color: #fff;
    font-weight: 400;
    border: none;
    padding: 10px 20px;
    transition: 0.6s;
}
.filtro {
    color: #000;
    font-weight: 400;
    font-size: 0.8rem;
    border: none;
    padding: 10px 20px;
    transition: 0.6s;
}
.filtro .form-select {
    color: #000;
    font-size: 0.8rem;
    font-weight: 400;
    border: 1px solid #000;
    padding: 5px 30px;
    transition: 0.6s;
}
.btn-success {
    background: #1f4928;
    color: #fff;
    font-weight: 400;
    border: none;
    padding: 10px 20px;
    transition: 0.6s;
}
.input-qtd {
    width: 60px;
    text-align: center;
    border: 1px solid #ccc;
    padding: 4px;
    margin: 0 5px;
}
.btn-add-carrinho {
    background-color: #000;
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    text-transform: uppercase;
    transition: background-color 0.6s;
}
.btn-add-carrinho:hover {
    background-color: #757575;
}
.btn-custom {
    display: inline-block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-decoration: none;
    background-color: #000;
    transition: all 0.6s ease;
    cursor: pointer;
}
.btn-custom:hover {
    background-color: #b4b4b4;
    color: #000;
    text-decoration: none;
}
.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-container .product-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.6s ease-in-out;
}

.image-container .product-image.back {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.image-container:hover .product-image.front {
    opacity: 0;
}

.image-container:hover .product-image.back {
    opacity: 1;
}
.produtos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
}
.produto-item {
    flex: 1 1 calc(25% - 1.5rem);
    max-width: calc(25% - 1.5rem);
    box-sizing: border-box;
    text-align: center;
}
.product-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    transition: transform 0.6s ease;
}
.product-image:hover {
    transform: scale(1.01);
}
.img-logo {
    height: 45px;
    max-height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.sem-imagem {
    background-color: #6c757d;
    color: #fff;
    padding: 5rem 1rem;
    font-size: 1rem;
}
.produto-cell {
    border: 1px solid #fff;
    padding: 0;
    vertical-align: top;
    width: 25%;
    transition: transform 0.3s ease;
}
.produto-cell:hover {
    transform: translateY(-5px);
}
/* =========================
   RESPONSIVIDADE / BREAKPOINTS
   ========================= */

/* Telas MUITO grandes (≥1400px): aproveitar melhor o espaço */
@media (min-width: 1400px) {
  .navbar-lista { gap: 5rem; }
  .produto-container { padding: 80px; }
  .produto-imagens img { width: 420px; }
  .produtos-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

/* Laptops / desktops médios (900–1399px) */
@media (min-width: 900px) and (max-width: 1399px) {
  .navbar-lista { gap: 3rem; }
  .produto-container { padding: 48px; }
  .produto-imagens img { width: 340px; }
  .produtos-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
  }
  .produto-item {
    flex: 1 1 calc(33.333% - 1.5rem);
    max-width: calc(33.333% - 1.5rem);
  }
}

/* Tablets (600–899px) */
@media (min-width: 600px) and (max-width: 899px) {
  /* NAV */
  .navbar-lista {
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0 16px;
  }
  .navbar-lista li a {
    font-size: 0.95rem;
    letter-spacing: 0.12rem;
  }

  /* PRODUTOS (lista e página de produto) */
  .produtos-container { padding: 1.25rem; gap: 1rem; }
  .produto-item {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
  .produtos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .produto-container {
    padding: 32px;
    gap: 1.25rem;
  }
  .produto-wrapper {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .produto-imagens {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .produto-imagens img {
    width: 48%;
    max-width: 360px;
  }
  .produto-detalhes {
    width: 100%;
    max-width: 640px;
  }

  /* TIPOGRAFIA / BOTÕES */
  .card-body { font-size: 0.95rem; }
  .preco-destaque { font-size: 1.35rem; }
  .btn-custom,
  .btn-add-carrinho,
  .btn-danger,
  .btn-secondary,
  .btn-success {
    width: 100%;
  }

  /* FOOTER (você já tem um @media, aqui é um refinamento) */
  .main-footer .container { padding: 0 16px; }
  .footer-content { gap: 16px; }
}

/* Celulares (≤599px) */
@media (max-width: 599px) {
  /* BASE */
  body { font-size: 16px; }
  :root { --transicao: 0.4s ease; }

  /* NAV */
  .navbar-categorias { padding: 0.5rem 0; }
  .navbar-lista {
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0 12px;
  }
  .navbar-lista li a {
    font-size: 0.9rem;
    letter-spacing: 0.08rem;
    padding: 6px 8px;
  }

  /* GRID DE PRODUTOS */
  .produtos-container {
    padding: 1rem 0.75rem;
    gap: 0.75rem;
  }
  .produto-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .produtos-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .product-image { max-height: 220px; }

  /* PÁGINA DE PRODUTO */
  .produto-container {
    padding: 20px 12px;
    gap: 1rem;
  }
  .produto-wrapper { padding: 0; }
  .produto-imagens {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .produto-imagens img {
    width: 100%;
    max-width: 100%;
  }
  .produto-detalhes {
    width: 100%;
  }
  .tamanhos { font-size: 1rem; }
  .preco-destaque { font-size: 1.2rem; }
  .btn-qtd { padding: 6px 10px; font-size: 16px; }
  .input-qtd { width: 54px; }

  /* FORMULÁRIOS / CONTA */
  .Conta { flex-direction: column; padding: 12px; }
  .Cadastro input { font-size: 0.95rem; }
  .Cadastro p { font-size: 1rem; margin-bottom: 60px; }

  /* FOOTER */
  .footer-logo h3 { font-size: 1.5rem; }
  .footer-section { min-width: 100%; }
  .footer-bottom { font-size: 0.9rem; }
}

/* Preferência de usuários que reduzem movimento */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

