@media (max-width: 768px) {
  * {
    --bs-gutter-x: 0 !important;
  }

  .main {
    padding: 0 10px;
    /* Reduz padding lateral para ganhar espaço */
  }

  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Ajuste para seções não ficarem coladas */
  section {
    padding: 40px 0 !important;
  }

  /* Se o banner principal for muito alto, a gente limita */
  .carousel-item img {
    height: 50vh !important;
    object-fit: cover;
  }

  /* Esconde elementos desnecessários no mobile para limpar o UX */
  .top-header .text-end {
    display: none;
  }

  .destaques-header,
  .cta-content,
  .brincos-header {
    margin-bottom: 2rem;
    text-align: center;
  }

  .destaques-title {
    font-size: 1.8rem;
  }

  .destaques-subtitle {
    font-size: 0.95rem;
    margin: 0 auto;
  }

  /* Faz o card ocupar 75% da largura para mostrar que tem mais pro lado */
  .produto-card-minimal {
    width: 75vw;
    gap: 15px;
  }

  .carrossel-wrapper {
    gap: 20px;
    padding-bottom: 20px;
    padding-left: 10px;
    /* Margemzinha pra não colar no canto */
  }

  .produto-imagem-wrap img {
    height: auto;
    /* Deixa o aspect-ratio 1/1 agir */
    max-height: 278px;
  }

  .produto-nome {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  #carouselHome {
    width: 100%;
    border-radius: 0;
    margin-top: 0;
  }

  .carousel-item img {
    height: 280px;
  }

  .carousel-caption {
    display: none;
  }

  .carousel-caption .btn-primary,
  .carousel-caption p {
    display: none;
  }

  .carousel-caption {
    display: block;
    width: 0%;
    margin: -5px 0 0 0 !important;
  }

  .carousel-caption h5 {
    font-size: 1.9rem;
    width: 240px;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  .container-panel {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding-bottom: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 10px;
  }

  .address-grid {
    grid-template-columns: 1fr;
  }

  .table-pedidos {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .table-pedidos td {
    padding-right: 20px;
  }

  .sumir-mobile,
  .box-pc,
  .logo-marca {
    display: none;
  }

  .box-mobile,
  .logo-marca-mobile {
    display: flex;
  }

  .header-principal {
    height: 63.8px;
  }

  .logo-marca-mobile .logo-completa {
    max-height: 43px !important;
    position: relative;

  }

  .header-principal.header-scrolled .campo-busca-hidden {
    width: 240px !important;
  }

  .cupom-card {
    flex-direction: column-reverse;
    text-align: center;
    padding: 25px 20px;
  }

  .cupom-info {
    padding-right: 0;
    margin-top: 20px;
  }

  .cupom-imagem-wrapper {
    width: 150px;
    height: 150px;
  }

  .cupom-btn {
    justify-content: center;
  }

  .cta-container-interno {
    flex-direction: column;
    gap: 40px;
  }

  .cta-content {
    padding-right: 0;
  }

  .cta-title {
    font-size: 2.2rem;
  }

  .cta-image-col {
    display: none;
  }

  .rainha-slide {
    padding: 0 20px;
    /* Adiciona margem lateral no celular */
  }

  .rainha-card {
    max-width: 340px;
  }

  .rainha-details {
    max-width: 340px;
  }

  .rainha-watermark {
    font-size: 4rem;
    letter-spacing: 5px;
  }

  .rainha-col.divider {
    padding-left: 15px;
    margin-left: 15px;
  }

  .brinco-card {
    flex: 0 0 220px;
  }

  .brincos-title {
    font-size: 1.8rem;
  }

  .atendimento-item {
    width: 260px;
    margin-bottom: 0;
  }

  .atendimento-track {
    animation-duration: 25s;
  }

  .item-mini-histórico a,
  .item-mini-histórico-active {
    font-size: 0.7rem;
  }

  .progress-bar-v2 {
    font-size: .5rem;
    gap: 15px;
  }

  .progress-bar-v2 span {
    font-size: 1.5rem !important;
  }

  .progress-line {
    width: 10px;
    height: 2px;
    border-radius: 50%;
  }

  .table-carrinho thead {
    display: none;
  }

  .table-carrinho,
  .table-carrinho tbody {
    display: block;
    width: 100%;
  }

  .table-carrinho tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    padding: 15px 0 15px 120px;
    /* border-bottom: 1px solid #eaeaea; */
    min-height: 110px;
  }

  .table-carrinho td {
    display: block;
    border: none;
    padding: 0;
  }

  .produto-info-cell {
    display: block;
  }

  .produto-img-v2 {
    position: absolute;
    left: 0;
    top: 15px;
    width: 100px;
    height: 100px;
    object-fit: contain;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 4px;
  }

  .a-carrinho {
    display: none;
  }

  .table-carrinho td:nth-child(1) {
    width: 100%;
    margin-bottom: auto;
  }

  .produto-info-cell>div {
    padding-right: 30px;
  }

  .produto-titulo-v2 {
    font-size: 0.95rem;
    color: #333;
    font-weight: 400;
    line-height: 1.3;
    text-decoration: none;
    margin-bottom: 2px;
  }

  .estoque-status {
    margin-top: 0;
  }

  .table-carrinho td:nth-child(3) {
    order: 2;
    width: auto;
    margin-right: 15px;
  }

  .table-carrinho td:nth-child(2) {
    order: 3;
    width: auto;
    font-size: 0.85rem;
    color: #666;
  }

  .table-carrinho td:nth-child(2)::after {
    content: " un";
  }

  .table-carrinho td:nth-child(4) {
    order: 4;
    width: auto;
    margin-left: auto;
  }

  .item-preco-total {
    font-size: 1.05rem;
    color: #000;
    font-weight: 700;
  }

  .table-carrinho td:nth-child(4) button {
    position: absolute;
    top: 15px;
    right: 0;
    color: #e88d82;
    font-size: 1.3rem;
    padding: 0;
  }

  .qty-control-v2 {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .qty-btn-v2 {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    padding: 0 5px;
    font-weight: bold;
  }

  .qty-btn-v2:first-child {
    color: #999;
  }

  .qty-btn-v2:last-child {
    color: #e88d82;
  }

  .qty-input-v2 {
    width: 25px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    padding: 0;
  }

  .custom-scrollbar,
  .card-pedidos,
  .card-resumo-pedidos,
  .card-vitrine {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .ajuda-card {
    padding: 0;
  }

  .cx-btn-menu-cliente {
    flex-direction: row !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overflow-x: auto;

    button {
      flex-direction: column;
      height: 100%;
      justify-content: center;
      background: var(--bs-gray-200) !important;
    }

    span {
      font-size: 1.5rem !important;
    }

    p {
      text-align: center !important;
      font-size: .8rem;
    }

    .btn-sair {
      flex-direction: column;
      width: 106px;
      height: 104px;
      border: none !important;
      background-color: #dc35452e;
      margin: 0 !important;
      border-radius: 8px !important;
      justify-content: center;
    }
  }

  .cx-mobile-menu-cliente {
    width: 100% !important;
  }

  .address-grid {
    display: block !important;
  }

  .address-box {
    margin-bottom: 1rem;
  }

  .table-pedidos thead {
    display: none;
  }

  /* 2. Transforma as linhas em blocos flexíveis (Cards) */
  .table-pedidos,
  .table-pedidos tbody {
    display: block;
    width: 100%;
  }

  .table-pedidos tr {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  }

  .table-pedidos td {
    display: block;
    border: none;
    padding: 5px 0;
    text-align: left !important;
    /* Reseta o alinhamento padrão */
  }

  /* 3. Coluna 1: Número do Pedido e Itens (Topo Esquerdo) */
  .table-pedidos td:nth-child(1) {
    width: 50%;
    order: 1;
    font-size: 1.1rem;
  }

  /* 4. Coluna 2: Data (Topo Direito) */
  .table-pedidos td:nth-child(2) {
    width: 50%;
    order: 2;
    text-align: right !important;
    font-size: 0.85rem;
    padding-top: 8px;
    /* Alinha com o texto do pedido */
  }

  /* 5. Coluna 5: Valor Total (Abaixo do cabeçalho do card) */
  .table-pedidos td:nth-child(5) {
    width: 100%;
    order: 3;
    font-size: 1.15rem;
    padding: 15px 0;
    margin-bottom: 10px;
    border-bottom: 1px dashed #eaeaea;
    /* Linha divisória */
  }

  .table-pedidos td:nth-child(5)::before {
    content: "Total: ";
    font-weight: normal;
    font-size: 0.9rem;
    color: #888;
  }

  /* 6. Coluna 3: Status de Pagamento (Metade Esquerda) */
  .table-pedidos td:nth-child(3) {
    width: 50%;
    order: 4;
  }

  .table-pedidos td:nth-child(3)::before {
    content: "Pagamento";
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
  }

  /* 7. Coluna 4: Status de Entrega (Metade Direita) */
  .table-pedidos td:nth-child(4) {
    width: 50%;
    order: 5;
    text-align: right !important;
  }

  .table-pedidos td:nth-child(4)::before {
    content: "Entrega";
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
  }

  /* 8. Coluna 6: Botão Ver Detalhes (Fundo do Card) */
  .table-pedidos td:nth-child(6) {
    width: 100%;
    order: 6;
    margin-top: 20px;
  }

  .table-pedidos td:nth-child(6) button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background-color: #f8f9fa;
    /* Cinza bem clarinho */
    color: #333;
    border: 1px solid #ddd !important;
    font-weight: 600;
    font-size: 0.9rem !important;
    transition: 0.3s;
  }

  .table-pedidos td:nth-child(6) button:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color) !important;
  }

  /* Limpa a caixa por fora (Content-card) para não ter padding duplo no mobile */
  .content-card {
    padding: 15px;
    border: none;
    background: transparent;
  }

  .custom-toast-container {
    min-width: 240px !important;
    max-width: 300px !important;

    #toastTitle {
      font-size: 1rem !important;
      margin-bottom: 0 !important;
    }

    #toastMessage {
      font-size: 0.7rem !important;
    }
  }

  .cx-cadastro-dados {
    justify-content: space-between;

    .cx-separar {
      width: 49% !important;
    }
  }


}

@media (max-width: 991px) {
  .newsletter-box {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
    gap: 30px;
  }

  .newsletter-title {
    font-size: 2.2rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-btn {
    padding: 16px 35px;
  }

  .menu-lista {
    display: none;
  }

  .barra-busca {
    display: none;
  }

  .cabecalho-topo {
    display: none;
  }

  .site-footer {
    padding: 50px 0 20px;
  }

  .footer-col {
    margin-bottom: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .faq-container {
    flex-direction: column;
    gap: 40px;
  }

  .faq-left {
    max-width: 100%;
    text-align: center;
  }
}