/* ========== ESTILOS GERAIS ========== */
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Plus Jakarta Sans", sans-serif;
}


a{
    text-decoration: none;
    color: inherit;
}


a:hover{
	text-decoration: none;
}
body {
    background: #f8f6fc;
    margin: 0;
    padding: 0;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #6a1b9a;
    padding: 15px 25px;
    position: relative;
   
    min-height: 60px;
}

/* ========== VERSÃO DESKTOP ========== */
.nav-desktop {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.delivery-location{
    display: flex;
    align-items: end;
    margin-left: 20px;
    color: #e3e6e6;
    font-size: 10px !important;
}

.search-bar-container {
    position: relative;
    flex: 1;
    margin-left: 20px;
    margin-right: 3px;
}

.search-bar{
    display: flex;
    align-items: center;
    background: white;
    color: #6a1b9a;
    border-radius: 4px;
    width: 100%;
}

.search-bar-category{
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 5px;
    background-color: #e6e6e6;
    border-radius: 4px 0 0 4px;
    flex-shrink: 0;
}

.search-bar-category p{
    
    font-size: 13px;
    color: #000000;
    font-family: 'Poppins';
    white-space: nowrap;
}

.search-bar-input{
    border: none;
    outline: none;
    padding: 10px 15px;
    width: 100%;
    font-size: 13px;
}

.search-bar-icon{
    padding: 10px 15px;
    background-color: #ffffff;
    border-radius: 0 4px 4px 0;
    flex-shrink: 0;
}

#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

#search-results.show {
    display: block;
}

.language-selector{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
    flex-shrink: 0;
}

.language-selector p{
    color: white;
}

#results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#results-list li {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    cursor: pointer;
}

#results-list li:hover {
    background: #f8f5ff;
}

#results-list li i {
    color: #6a1b9a;
    font-size: 14px;
}

#results-list li .result-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#results-list li .result-title {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

#results-list li .result-category {
    font-size: 12px;
    color: #666;
}

.custom-button {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.custom-button:hover {
    color: #e3e6e6;
    text-decoration: none;
}

.custom-button i {
    color: inherit;
}

.account-info{
    margin-left: 10px;
    color: white;
    font-size: 10px;
}

.space{
    margin-right: 10px;
}

.badge {
    background-color: #E91E63;
    color: white;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 12px;
    position: relative;
    top: -10px;
    left: -8px;
}

/* ========== VERSÃO MOBILE ========== */
.nav-mobile {
    display: none;
    width: 100%;
}

.mobile-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    flex: 0 0 auto;
}



.mobile-login-center {
    flex: 1;
    text-align: center;
    margin: 0 10px;
    color: #fff;
    font-size: 13px;
}

.mobile-login-center .custom-button {
    font-size: 14px;
    white-space: nowrap;
}

.mobile-right-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

.mobile-search-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.mobile-cart {
    position: relative;
}



.mobile-login-center span {
    font-size: 14px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    display: inline-block;
}

/* ========== BARRA DE PESQUISA MOBILE CORRIGIDA ========== */
.search-bar-container.mobile-search {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #6a1b9a;
    display: none;
    z-index: 1001;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.search-bar-container.mobile-search.active {
    display: flex;
}

/* Container centralizado para o conteúdo da pesquisa */
.mobile-search-content {
    width: 100%;
    max-width: 100%;
    padding: 80px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    overflow: hidden;
}

/* Barra de pesquisa mobile - OCUPA TODA LARGURA */
.mobile-search-form {
    width: 100%;
    max-width: 100%;
}

.mobile-search-form .search-bar {
    width: 100%;
    background: white;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
}

.mobile-search-form .search-bar-category {
    padding: 15px;
    background: #f8f8f8;
    border-radius: 12px 0 0 12px;
    flex-shrink: 0;
}

.mobile-search-form .search-bar-input {
    padding: 15px;
    background: transparent;
    border: none;
    width: 100%;
    flex: 1;
}

.mobile-search-form .search-bar-icon {
    padding: 15px;
    background: transparent;
    color: #6a1b9a;
    border-radius: 0 12px 12px 0;
    flex-shrink: 0;
}

/* Botão fechar na pesquisa mobile */
.mobile-search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1002;
}

.mobile-search-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Título da pesquisa mobile */
.mobile-search-title {
    color: white;
    text-align: center;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
    width: 100%;
}

/* ========== LISTA DE RESULTADOS MOBILE - IDÊNTICA AO DESKTOP ========== */
#mobile-search-results {
    width: 100%;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    display: none;
    max-height: 60vh;
    overflow-y: auto;
}

#mobile-search-results.show {
    display: block;
}

#mobile-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mobile-results-list li {
  gap: 7px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    cursor: pointer;
}

#mobile-results-list li:last-child {
    border-bottom: none;
}

#mobile-results-list li:hover {
    background: #f8f5ff;
}

#mobile-results-list li i {
    margin-right: 0px;
    color: #6a1b9a;
    font-size: 14px;
    flex-shrink: 0;
}

#mobile-results-list li .result-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#mobile-results-list li .result-title {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

#mobile-results-list li .result-category {
    font-size: 12px;
    color: #666;
}

/* Estado quando não há resultados */
#mobile-results-list .no-results {
    padding: 20px 16px;
    text-align: center;
    color: #666;
    font-style: italic;
}

#mobile-results-list .no-results:hover {
    background: white;
}


/* ========== RESPONSIVIDADE CORRIGIDA ========== */


/* Animações para modais */
.modalt {
    transition: all 0.4s ease-in-out;
}

.modalt.closing {
    opacity: 0;
    transform: scale(0.9);
}

.modalt.show {
    opacity: 1;
    transform: scale(1);
}


/* TABLET GRANDE (1025px a 1350px) - Mantém desktop com ajustes */
@media (max-width: 1350px) and (min-width: 1025px) {
    .nav-desktop {
        display: flex;
    }
    
    .nav-mobile {
        display: none;
    }
    
    nav {
        padding: 12px 20px;
    }
    

    .search-bar-category {
            padding: 10px 20px;
    }
    

    
    .search-bar-input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .language-selector {
        gap: 8px;
    }
    
    .custom-button {
        font-size: 12px;
    }
    

    
    .account-info {
        margin-left: 8px;
    }
}

/* TABLET (768px a 1024px) - Layout tablet otimizado */
@media (max-width: 1024px) and (min-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .nav-mobile {
        display: block;
    }
    
    nav {
        padding: 12px 15px;
        min-height: 55px;
    }
    
    /* Ajustes específicos para tablet */
    .mobile-layout {
        gap: 20px;
    }
    
    .nav-logo img {
        width: 155px !important;
    }
    
    .mobile-login-center .custom-button,
    .mobile-login-center span {
        font-size: 15px;
    }
    
    .mobile-right-icons {
        gap: 20px;
    }
    
    .mobile-search-toggle {
        font-size: 20px;
    }
    
    .mobile-search-content {
        padding: 90px 30px 30px 30px;
    }
    
    .mobile-search-form .search-bar {
        max-width: 600px;
        margin: 0 auto;
    }
    
    #mobile-search-results {
       
        margin: 15px auto 0 auto;
    }
}

/* CELULAR (até 767px) */
@media (max-width: 767px) {
    .nav-desktop {
        display: none;
    }
    
    .nav-mobile {
        display: block;
    }
    
    nav {
        padding: 10px 15px;
        min-height: 50px;
    }
    
    .mobile-layout {
        gap: 8px;
    }
    
  .nav-logo img {
        width: 155px !important;
    }
    
    .mobile-login-center .custom-button,
    .mobile-login-center span {
        font-size: 14px;
    }
    
    .mobile-right-icons {
        gap: 12px;
    }
    
    .mobile-search-toggle {
        font-size: 16px;
        width: 28px;
        height: 28px;
    }
    
    /* Ajustes finos para mobile */
    .mobile-search-content {
        padding: 70px 15px 15px 15px;
    }
    
    .mobile-search-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .mobile-search-form .search-bar {
        border-radius: 7px;
    }
    
    .mobile-search-form .search-bar-category {
        padding: 12px 15px;
    }
    
    .mobile-search-form .search-bar-category p {
        font-size: 14px;
    }
    
    .mobile-search-form .search-bar-input {
        padding: 12px 15px;
    }
    
    .mobile-search-form .search-bar-icon {
        padding: 12px 15px;
    }
    
    .mobile-search-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    #mobile-results-list li {
        padding: 10px 15px;
    }
    
    #mobile-results-list li .result-title {
        font-size: 13px;
    }
    
    #mobile-results-list li .result-category {
        font-size: 11px;
    }
}

/* DESKTOP MUITO GRANDE (acima de 1350px) */
@media (min-width: 1351px) {
    .nav-desktop {
        display: flex;
    }
    
    .nav-mobile {
        display: none;
    }
    
    .search-bar-container {
        max-width: 900px;
    }
}

/* ========== ANIMAÇÕES ========== */
.search-bar-container.mobile-search {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Previne scroll do body quando pesquisa está aberta */
body.search-open {
    overflow: hidden;
}

/* Scrollbar personalizada para resultados */
#mobile-search-results::-webkit-scrollbar {
    width: 6px;
}

#mobile-search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 8px 8px 0;
}

#mobile-search-results::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#mobile-search-results::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Garante que todos os elementos ocupem toda a largura */
.search-bar-container.mobile-search,
.mobile-search-content,
.mobile-search-form,
.mobile-search-form .search-bar {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Remove qualquer padding ou margin extra */
.mobile-search-form form {
    width: 100%;
    margin: 0;
    padding: 0;
}
/* CSS */
.em-alta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: #6a1b9a; /* Roxo */
  color: #fff;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 6px;
  text-transform: uppercase;
  cursor: default;
  transition: background-color 0.2s ease;
}

.em-alta i {
  font-size: 1rem;
}

.em-alta:hover {
  background-color: #7b1fa2; /* tom mais claro ao passar mouse */
}

.bottom-nav {
    background-color: #6a1b9aed;
    color: white;
    display: flex;
    align-items: center;
    padding: 7px 25px;
    font-size: 14px;
    gap: 18px;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.bottom-nav > div:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Área de carrossel com botões */
.carousel-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.carousel-btn {
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
    transition: background .16s, transform .12s, opacity .16s;
    z-index: 2;
}
.carousel-btn:hover {
    background: #fff;
    color: #6a1b9a;
}
.carousel-btn.hide {
    opacity: 0;
    pointer-events: none;
}

/* Carrossel */
.category-carousel {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    padding-bottom: 2px;
    flex: 1;
}
.category-carousel::-webkit-scrollbar {
    display: none;
}

/* Itens */
.category-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: color .18s, transform .12s;
}
.category-item i {
    font-size: 12px;
    opacity: 0.85;
}
.category-item:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

.category-item.active {
     color: #ffd700;
    transform: translateY(-2px);
}
/* Sistema de Modais Premium - Design Extraordinário */
:root {
  --primary-color: #8a5cf7;
  --primary-light: #a37bff;
  --primary-dark: #6f42c1;
  --secondary-color: #ff7b54;
  --secondary-light: #ff9770;
  --secondary-dark: #e05e3a;
  --accent-color: #00c9a7;
  --accent-light: #2be8c5;
  --accent-dark: #00a58a;
  --dark-color: #1e1e2e;
  --light-color: #f8f9ff;
  --gray-bg: #f5f6ff;
  --border-radius: 8px;
  --box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Estrutura Base */
.modalt {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(138 92 247 / 21%);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  animation: fadeIn 0.4s ease-out;
  padding: 10px 0; /* Reduzido para subir mais */
  box-sizing: border-box;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modalt-dialog {
  position: relative;
  margin: 0 auto;
  max-width: 480px;
  width: 90%;
  top: 3%;
  animation: floatIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes floatIn {
  0% { transform: translateY(30px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.modalt-content {
  position: relative;
  background: #000;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  border: none;
  transform: perspective(1000px);
}

/* Cabeçalho */
.modalt-header {
  padding: 1.6rem 2rem;
  background: #fff;
  color: #000000;
  border-bottom: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgb(138 92 247 / 19%);
}

.modalt-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: var(--font-family);
  text-align: center;
  flex: 1;
 /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.close {
  position: absolute;
  right: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #000;
  font-size: 2rem;
  font-weight: 300;
  opacity: 0.9;
  transition: var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
  padding: 0;
}

.close:hover {
  opacity: 1;
  transform: translateY(-50%) rotate(90deg) scale(1.1);
  background: rgba(255, 255, 255, 0.15);
}



/* Corpo */
.modalt-body {
  padding: 2.2rem;
  font-family: var(--font-family);
  background: white;
  border-bottom: 1px solid #f0f0f5;
}

/* Formulários */
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  transition: var(--transition);
  background-color: var(--gray-bg);
  margin-bottom: 0.75rem;
  font-family: var(--font-family);
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(138, 92, 247, 0.15);
  background-color: white;
  outline: none;
}

label.col-form-label {
  font-weight: 500;
  color: #555;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.9rem;
}

/* Botões Principais */
.btn-primaryt {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  background: #6a1b9a;
  color: white;
  width: 100%;
  margin-bottom: 0.0rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(138, 92, 247, 0.25);
  letter-spacing: 0.5px;
  z-index: 1;
}

.btn-primaryt:hover {
  background: #8c25cc;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(138, 92, 247, 0.4);
}

.btn-primaryt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  opacity: 0;
  z-index: -1;
  transition: var(--transition);
}

.btn-primaryt:hover::before {
  opacity: 1;
}

/* Botões Secundários */
.btn-secondary {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  background: #000000e6;
  color: white;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.25);
  letter-spacing: 0.5px;
  z-index: 1;
}

.btn-secondary:hover {
  background: #4e4e4ee6;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

/* Botão Esqueci Senha */
.btn-forgot-password {
  display: block;
  text-align: center;
  margin: 1rem 0;
  padding: 0.7rem;
  background: transparent;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(138, 92, 247, 0.3);
  border-radius: var(--border-radius);
  transition: var(--transition);
  width: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-forgot-password:hover {
  background: rgba(138, 92, 247, 0.05);
  color: var(--primary-dark);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(138, 92, 247, 0.1);
}

.btn-forgot-password::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(138, 92, 247, 0.1), transparent);
  transition: 0.5s;
}

.btn-forgot-password:hover::after {
  left: 100%;
}

/* Caixas de Informação */
.info-box {
  background: linear-gradient(135deg, rgba(248, 249, 255, 0.8), rgba(240, 242, 255, 0.9));
  border-radius: var(--border-radius);
  padding: 0.7rem;
  margin-bottom: 0.8rem;
  margin-top: 10px;
  border: 1px solid rgba(138, 92, 247, 0.1);
  backdrop-filter: blur(5px);
}

.info-text {
  font-size: 0.73rem;
  color: #000000;
  margin: 0.2rem 0 0 0;
  margin-bottom: 10px;
}

.topo-text-check{
    font-size: 0.80rem;
    font-weight: 600;
    color: #000021;
}
.b-link{
    color: #8a5cf7;
}
.b-link:hover{
    color: #00002167;
}
.alert-danger-topo {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #e91e631c;
    color: var(--warning);
    border: 1px solid #f7258500;
    font-size: 15px;
}

.alert-sucess-topo {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    font-size: 15px;
}

/* Checkbox */
.terms-check {
  display: flex;
  align-items: center;
  margin-bottom: 0rem;
  font-size: 0.95rem;
  color: #555;
}

.form-check-input {
    width: 1.0em;
    height: 1.0em;
    margin-right: 0.6em;
    margin-top: 5px;
    background-color: white;
    border: 2px solid #d1d1e0;
    border-radius: 4px;
    appearance: none;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70%;
  box-shadow: 0 2px 8px rgba(138, 92, 247, 0.3);
}

/* Modal de Sucesso */
#myModal .modalt-content {
  border: 2px solid var(--accent-color);
  background: linear-gradient(135deg, rgba(248, 249, 255, 0.95), rgba(240, 255, 250, 0.98));
}

.success-message {
  color: var(--dark-color);
  font-size: 1.2rem;
  margin: 1.2rem 0;
  font-weight: 600;
}

.footer-message {
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 500;
}

/* Efeitos Globais */
.btn-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.loading-icon {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
  color: #666;
  font-size: 0.95rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .modalt-dialog {
    top: 2%;
    width: 94%;
  }
  
  .modalt-header {
    padding: 1.4rem;
  }
  
  .modalt-body {
    padding: 1.8rem;
  }
  
  .close {
    right: 1.2rem;
    font-size: 1.8rem;
  }
  
  .btn-primaryt, .btn-secondary {
    padding: 0.85rem 1.5rem;
  }
}

/* Back Button */
.modalt-back-btn {
  position: absolute;
  left: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  line-height: 1;
  padding: 0;
}

.modalt-back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

/* Design Premium para Resultados */
.trending-header {
    padding: 12px 16px;
    background: linear-gradient(to right, #6a1b9a, #8e44ad);
    border-radius: 8px 8px 0 0;
}

.trending-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trending-icon {
    font-size: 16px;
}

.trending-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 8px;
}

.premium-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.premium-result-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.premium-result-item:hover {
    background: #f9f5ff;
    transform: translateX(3px);
}

.premium-result-item:last-child {
    border-bottom: none;
}

.result-icon-container {
    width: 36px;
    height: 36px;
    background: rgba(106, 27, 154, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #6a1b9a;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-title {
    display: block;
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-clicks {
    display: block;
    font-size: 11px;
    color: #718096;
    margin-top: 3px;
}

.result-clicks i {
    color: #e74c3c;
    margin-right: 4px;
}

.result-arrow {
    color: #a0aec0;
    transition: all 0.3s ease;
}

.premium-result-item:hover .result-arrow {
    color: #6a1b9a;
    transform: translateX(3px);
}

.no-results {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.no-results-icon {
    font-size: 40px;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.no-results-text {
    color: #718096;
    font-size: 14px;
    margin: 0;
}


.spaco{
  margin-right: 12px;
}


/* Carrinho */


    /* Overlay do carrinho */
.cart-overlay {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.cart-overlay.active {
    right: 0;
}

.cart-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 62%);
    z-index: 9999;
    display: none;
}

.cart-overlay-backdrop.active {
    display: block;
}

/* Header do carrinho */
.cart-header {
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.cart-header h3 {
    margin: 0;
    color: #6a1b9a;
    font-size: 18px;
    font-weight: 600;
}

.close-cart {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.3s;
}

.close-cart:hover {
    background: #e9ecef;
}

/* Conteúdo do carrinho */
.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.cart-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    transition: background 0.3s;
}

.cart-item:hover {
    background: #f8f9fa;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 5px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.cart-item-price {
    color: #0a58ca;
    font-weight: 600;
    font-size: 14px;
}

.remove-item {
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    padding: 8px;
    border-radius: 3px;
    transition: background 0.3s;
}

.remove-item:hover {
    background: #f9f9f9;
    color: #ccc;
}

/* Footer do carrinho */
.cart-footer {
    padding: 2px 20px;
    border-top: 2px solid #f0f0f0;
    background: #f8f9fa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: #6a1b9a;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
    margin-bottom: 10px;
}

.checkout-btn:hover {
    background: #6a1b9ae8;
}

.checkout-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Carrinho vazio */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-cart i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

.empty-cart p {
    margin: 0;
    font-size: 16px;
}

/* Mensagem de sucesso */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    z-index: 11000;
    display: none;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.success-message.active {
    display: flex;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 33% { content: '.'; }
    34%, 66% { content: '..'; }
    67%, 100% { content: '...'; }
}

/* Responsivo */
@media (max-width: 480px) {
    .cart-overlay {
        width: 100%;
        right: -100%;
    }
    
    .cart-item {
        padding: 12px;
    }
    
    .nova-compra-cta-buttons {
        flex-direction: column;
    }
}

/* Mensagens dentro do overlay */
.cart-message {
    padding: 12px 15px;
    margin: 0 15px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.cart-message.active {
    display: flex;
}

.cart-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cart-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cart-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajuste no conteúdo do carrinho para acomodar mensagens */
.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 10px;
}

/* Close button da mensagem */
.message-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    margin-left: auto;
    padding: 5px;
    border-radius: 3px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.message-close:hover {
    opacity: 1;
    background: rgba(0,0,0,0.1);
}

/* Seção de descontos */
.cart-discounts {
    padding: 2px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.discount-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
}

.discount-item.positive {
    color: #27ae60;
    font-weight: 500;
}

.discount-item.negative {
    color: #e74c3c;
}

.discount-item .discount-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.discount-item .discount-badge {
    background: #0a58ca;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.discount-item .discount-badge.success {
    background: #27ae60;
}

.discount-item .discount-badge.warning {
    background: #FF5722;
}

.discount-value {
    font-weight: 600;
}

/* Total final */
.cart-total-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 2px solid #e9ecef;
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

/* Valor original riscado */
.original-price {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 14px;
    font-weight: normal;
    margin-left: 8px;
}

/* Mensagem de economia */
.savings-message {
    text-align: center;
    padding: 10px;
    background: #d5f4e6;
    color: #155724;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 13px;
    font-weight: 500;
}
/* Mensagem de economia */
.savings-message-d {
    text-align: center ;
    padding: 10px;
    background: rgb(0 20 255 / 8%);
    color: #333;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 12px;
    font-weight: 500;
}

/* Info de desconto */
.discount-info {
    font-size: 11px;
    color: #6c757d;
    margin-top: 2px;
}
.cupom-simple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
}

.cupom-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.cupom-message i {
    font-size: 16px;
}

.cupom-message strong {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 4px;
}


/*avaliação*/

/* SISTEMA DE AVALIAÇÃO - LAYOUT INFORMATIVO */
.container-avaliacao {
    display: flex;
    align-items: center;
    /*justify-content: center;*/
    gap: 4px;
    /*margin: 12px 0;*/
   /* padding: 10px 16px;*/
  /*  background: #f8fafc;*/
    border-radius: 8px;
  /*  border: 1px solid #e2e8f0;*/
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-left: 9px;
    margin-top: 2px;
}

.nota-media {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    
}

.estrela-destaque {
    color: #f59e0b;
    font-size: 14px;
    font-weight: 700;
    min-width: 30px;
    margin-top: -2px;
}

.contador-avaliacao {
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
    margin-left: auto; /* Isso empurra para a direita */
    text-align: right;
    margin-right: 10px;
    min-width: 30px; /* Garante um tamanho mínimo */
}

.sem-avaliacao-texto {
    color: #94a3b8;
    font-size: 14px;
    font-style: italic;
}

/* Badge para avaliações TOP */
.badge-avaliacao {
    position: absolute;
    top: -6px;
    right: -8px;
    background: rgb(255 2 2 / 79%);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow:  0 2px 8px rgb(0 0 0 / 13%);
}

/* Versão compacta para mobile */
@media (max-width: 768px) {
    .container-avaliacao {
        padding: 8px 12px;
        gap: 6px;
    }
    
    .nota-media {
        font-size: 14px;
    }
    
    .estrela-destaque {
        font-size: 16px;
    }
    
    .contador-avaliacao {
        font-size: 12px;
    }
}

/*.avaliacao-produto {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 5px;
    margin: 0px 0;
    font-size: 12px;
    width: 100%;
}
*/
.avaliacao-produto {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 5px;
    margin: 0px 0;
    font-size: 12px;
    width: 100%;
}

.nota-avaliacao {
    font-weight: bold;
    color: #ff9800;
}

.total-avaliacoes {
    color: #666;
    font-size: 11px;
}

.sem-avaliacao {
    color: #999;
    font-style: italic;
}

/* ESTILOS PARA MENSAGEM DE LOGIN BONITA */
.login-alert-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 350px;
    max-width: 450px;
    animation: slideInRight 0.5s ease-out;
}

.login-alert-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #ff6b6b;
    color: white;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.login-alert-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcf7f);
}

.login-alert-icon {
    font-size: 24px;
    color: #ffd93d;
    flex-shrink: 0;
}

.login-alert-text h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.login-alert-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

.login-alert-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: white;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.login-alert-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Animação de entrada */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .login-alert-message {
        min-width: unset;
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}

/* ESTILO PARA O BOTÃO DO CARRINHO CLICÁVEL */
.header-cart {
    cursor: pointer;
    margin-top: -2px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1px;
    padding: 8px 1px;
    border-radius: 8px;
    position: relative;
}

.header-cart:hover {
    
    transform: translateY(-2px);
}

.header-cart .fa-shopping-cart {
   
    color: #ffffff;
}

.tamanho-icone{
    font-size: 1.0rem;
}

.header-cart-count {
    background-color: #E91E63;
    color: white !important;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border: 0px solid white;
}
  /* ---------- Estilos da notificação (performática) ---------- */
  .msg-login {
    position: fixed;
    top: 12px;
    right: 15px;
    z-index: 99999;
    background: linear-gradient(135deg, #26913d 0%, #149c1fd3 100%);;
    color: #fff;
    padding: 12px 16px;
    border-radius: 5px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    font-size: 14px;
    display: block;              /* sempre presente no DOM */
    transform: translateX(120%); /* começa fora (à direita) */
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s;
    pointer-events: auto;
    max-width: 320px;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
  }

  /* estado visível */
  .msg-login.show {
    transform: translateX(0);
    opacity: 1;
  }

  .msg-login .msg-text {
    display: inline-block;
    vertical-align: middle;
    color: white;
        flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
  }

  .msg-login .msg-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    margin-left: 12px;
    padding: 0 6px;
  }

  .msg-login .msg-close:hover { opacity: 0.9; }

  /* mobile: posição inferior para ficar mais legível */
  @media (max-width: 768px) {
    .msg-login {
      
      right: 16px;
      max-width: calc(100% - 40px);
      padding: 10px 14px;
      font-size: 13px;
      transform: translateX(120%); /* mesma animação */
    }
  }

  .sair{
    margin-top: -3px;
  }

  .link-hover {
  display: inline-block;
  position: relative;
  color: #fffffff5; /* Roxo elegante */
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background-color: #ffc107;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.link-hover:hover {
  color: #f1f1f1; /* Tom mais escuro no hover */
}

.link-hover:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.icon-color{
filter: brightness(0) invert(0);
background-color:#000;
}