/* ==========================================================
   NAV MEGA MENU
========================================================== */

#navMegaMenu{
  margin-top: 14px;
}

.nav-mega-menu {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.nav-mega-menu.active {
  display: block;
}

.nav-mega-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}



/* ==========================================================
   SORT DROPDOWN
========================================================== */

.sort-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--color-dark-blue);
  z-index: 1060;
  min-width: 230px;
  overflow: hidden;
  padding: 8px 0;
}

.sort-dropdown.active {
  display: block;
}

.sort-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--color-grey59);
  transition: background 0.15s;
}

.sort-option:hover {
  background: var(--color-light-grey);
}

.sort-option.active {
  color: var(--color-grey38);
}

.sort-option-label {
  flex: 1;
}

.sort-option.active .sort-option-label {
  font-weight: 600;
}

.sort-option-check {
  color: var(--color-dark-aqua);
  opacity: 0;
  flex-shrink: 0;
}

.sort-option.active .sort-option-check {
  opacity: 1;
}


/* ==========================================================
   SEARCH DROPDOWN
========================================================== */

.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  z-index: 1060;
  overflow: hidden;
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--color-dark-blue);
}

.search-dropdown.active {
  display: block;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 8px 48px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
}

.search-dropdown-item:nth-child(odd) {
  background: #f8fafa;
}

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

.search-dropdown-item:hover {
  background: #e8f3f3;
}

.search-dropdown-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  background: #f5f5f5;
}

.search-dropdown-ref {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark-aqua);
  line-height: 1.3;
}

.search-dropdown-name {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-grey38);
  line-height: 1.3;
}

.search-dropdown-empty {
  padding: 16px;
  text-align: center;
  color: var(--color-grey93);
  font-size: 14px;
}


/* ==========================================================
   USER DROPDOWN
========================================================== */

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--color-dark-blue);
  z-index: 1060;
  min-width: 340px;
  overflow: hidden;
  padding: 32px 45px;
}

.user-dropdown.active {
  display: block;
}


.user-dropdown-area-label {
  display: block;
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--color-light-aqua);
  margin-bottom: 8px;
}

.user-dropdown-greeting {
  font-size: 27px;
  font-weight: 700;
  color: var(--color-grey38);
  line-height: 1.3;
}

.user-dropdown-nav {
  display: flex;
  flex-direction: column;
  padding: 20px 0 0 0;
  gap: 32px;
}

.user-dropdown-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 19px;
  font-weight: 400;
  color: var(--color-grey59);
  position: relative;
  transition: padding-left 0.2s ease, color 0.15s;
}

.user-dropdown-link .nav-dot {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-dark-aqua);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.user-dropdown-link:hover,
.user-dropdown-link.active {
  color: var(--color-grey38);
  font-weight: 700;
  padding-left: 13px;
}

.user-dropdown-link:hover .nav-dot,
.user-dropdown-link.active .nav-dot {
  opacity: 1;
}

.user-dropdown-link.active {
  font-weight: 600;
}




/* ==========================================================
   CARD HOVER
========================================================== */

.card-hover {
  background-color: var(--color-light-grey);
}

.card-hover:hover, .product-card.in-cart{
  background-color: white;
  border: 1px solid var(--color-dark-blue);
  box-shadow: 0px 0px 12px 6px #4D919212;
}


/* ==========================================================
   CARDS DE INFORMAÇÃO
========================================================== */

.info-card {
  background-color: var(--color-light-grey);
  border-radius: 16px;
  padding: 16px;
}

.info-cards {
  margin-bottom: 200px;
}


/* ==========================================================
   BOTÕES
========================================================== */

.btn-transparent {
  border: 1px solid var(--color-light-aqua);
  padding: 13px 56px;
  background: none;
  border-radius: 42px;
}

.btn-white {
  border: none;
  padding: 4px 8px;
  background: white;
  border-radius: 42px;
}

.btn-light-grey {
  border: 1px solid var(--color-light-blue);
  padding: 8px;
  background: var(--color-light-grey);
  border-radius: 33px;
}

.btn-light-grey:hover {
  border: 1px solid var(--color-light-blue);
  background: var(--color-white);
}

.btn-aqua {
  padding: 12px 39px;
  border-radius: 41px;
  border: none;
  background: var(--color-light-aqua);
  color: #fff;
}

.btn-carrinho {
  border: none;
  padding: 6px 12px;
  background: var(--color-light-aqua);
  border-radius: 42px;
  display: flex;
  gap: 8px;
}

.btn-carrinho-mobile {
  border: none;
  padding: 6px 12px;
  background: var(--color-light-aqua);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.btn-whatsapp-desktop {
  border: none;
  padding: 6px 12px;
  background: var(--color-green);
  border-radius: 42px;
  display: flex;
  gap: 8px;
}

.item-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
}

.item-remove:hover {
  background-color: var(--color-light-grey);
}


/* ==========================================================
   PAGINAÇÃO — DOTS
========================================================== */

.pagination-wrapper {
  padding: 1.5rem 1.75rem;
  display: inline-block;
}

.pag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.pag-row:last-child {
  margin-bottom: 0;
}

.pag-item {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-grey93);
  border: none;
  background: transparent;
  transition: background 0.15s;
}

.pag-item:hover {
  border: 1px solid var(--color-light-blue);
  background: none;
  color: var(--color-grey93);
}

.pag-item.active {
  border: 1.5px solid #d1d5db;
  color: var(--color-grey38);
  font-weight: 500;
}

.pag-item.active-filled {
  border: 1px solid var(--color-light-blue);
  background-color: var(--color-light-grey);
  color: var(--color-grey38);
}

.page-numbers.current {
    border: 1px solid #E2EEEE;
    background: #F8FAFA;
    width: 36px;
    height: 36px;
    border-radius: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-family: Outfit;
    font-size: 16px;
}

.pag-dots {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-grey93);
}


/* ==========================================================
   PAGINAÇÃO — LISTA
========================================================== */

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination li a,
.pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark-grey);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.pagination li a:hover {
  background: var(--color-second-light-grey);
  color: var(--color-black);
}

.pagination li.active a {
  background: var(--color-black);
  color: #fff;
  pointer-events: none;
}

.pagination li.arrow:first-child a svg {
  transform: scale(-1, 1);
}

.pagination li.arrow a {
  font-size: 18px;
  color: var(--color-dark-grey);
}

.pagination li.arrow a:hover {
  background: var(--color-second-light-grey);
  color: var(--color-black);
}

.pagination li.arrow.active a {
  background: var(--color-black);
  color: var(--color-white);
}

.pagination li.arrow.disabled a {
  color: var(--color-light-grey);
  cursor: not-allowed;
  pointer-events: none;
}


/* ==========================================================
   CARD PRODUTO
========================================================== */

.product-card {
  background: #f3f3f3;
  border-radius: 16px;
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.promo {
  color: var(--color-red);
  background-color: transparent;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.5s ease;
}

.favorite {
  font-size: 20px;
  cursor: pointer;
  color: var(--color-grey93);
  background: none;
  border: none;
}

.product-image {
  text-align: center;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(219px * 1.1);
}

.product-image img {
  object-fit: contain;
  transition: transform 0.5s ease;
  transform: scale(1);
   max-height: 220px;
    max-width: 220px;
    mix-blend-mode: multiply;

}

.product-ref {
  color: var(--color-light-aqua);
  background-color: transparent;
  padding: 0;
  border-radius: 8px;
  transition: all 0.5s ease;
}

.product-title {
  color: var(--color-grey38);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 40px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-grey38);
}

.old-price {
  text-decoration: line-through;
  color: var(--color-grey93);
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  height: 36px;
}

.qty-btn {
  width: 42px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: white;
}

.qty-btn:hover {
  background: var(--color-dark-grey);
  color: var(--color-grey38);
}

.qty-input {
  height: 100%;
  width: 70px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--color-dark-blue);
  background-color: transparent;
  

}

.cart-btn {
  margin-left: auto;
  background: var(--color-grey59);
  color: white;
  border-radius: 36px;
  padding: 10px 26px;
  border: none;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
}

/* Hover no card muda estado do promo e ref */
.product-card:hover .promo,
.product-card.in-cart .promo {
  background-color: var(--color-red);
  color: white;
}

.product-card:hover .product-ref span,
.product-card.in-cart .product-ref span {
  background-color: var(--color-light-aqua);
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

/* Botão carrinho — estado hover e active */
.product-card:hover .cart-btn,
.cart-btn.active {
  background-color: var(--color-light-aqua);
  color: white;
}

.cart-btn::before {
  content: "";
  position: absolute;
  left: 22%;
  top: 34%;
  width: 16px;
  height: 16px;
  background-image: url("/WEBSITE/imgs/icons/arrow-front-cart.svg");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateX(-10px);
  transition: 0.2s ease;
}

.cart-btn svg {
  transition: 0.2s ease;
}

.product-card:hover .cart-btn::before,
.cart-btn.active::before {
  opacity: 1;
  transform: translateX(0);
}

.cart-btn.active::before {
  background-image: url("/WEBSITE/imgs/icons/check-circle-fill.svg");
}

.product-card:hover .cart-btn svg,
.cart-btn.active svg {
  transform: translateX(10px);
}


/* ==========================================================
   SLIDE MARCAS
========================================================== */

.mySwiperMarcas .swiper-wrapper {
  align-items: center;
}

.mySwiperMarcas {
  margin-bottom: 200px;
  padding: 20px 0;        /* reduz a altura */
  background: #fff;
  box-shadow: 0 12px 12px 6px #4D919212,     /* baixo */
            0 -12px 12px 6px #4D919212;    /* cima */
  
}

.container-fluid:has(.mySwiperMarcas) {
  --bs-gutter-x: 0;
}

.mySwiperMarcas .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 0 30px;        /* substitui o antigo spaceBetween — zona arrastável */
  box-sizing: border-box;
}

.mySwiperMarcas .swiper-slide img {
  max-height: 60px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  padding: 0;
}


/* ==========================================================
   NEWSLETTER
========================================================== */

.newsletter-container {
  background-color: var(--color-light-grey);
  padding: 86px 0px;
}


/* ==========================================================
   SWIPER — SETAS DE NAVEGAÇÃO
========================================================== */

.swiper-nav-wrapper {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

/* Reset posição default do Swiper */
.swiper-button-prev,
.swiper-button-next {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: 1;
  width: 32px !important;
  height: 32px !important;
}

/* Remove setas default do Swiper */
.swiper-button-next svg.swiper-navigation-icon,
.swiper-button-prev svg.swiper-navigation-icon {
  display: none;
}

.swiper-button-prev::before,
.swiper-button-next::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--color-light-grey);
  border: 1px solid var(--color-light-blue);
  border-radius: 50%;
  opacity: 0;
  z-index: -1;
}

.swiper-button-prev:hover::before,
.swiper-button-next:hover::before {
  opacity: 1;
}

.swiper-nav-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.swiper-button-next:after,
.swiper-button-prev:after,
.swiper-rtl .swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
  content: '' !important;
}


/* =========================
  MODAL ALERT
=========================== */
#alert-container {
  position: fixed;
  top: 100px;
  right: 100px;
  z-index: 1050;
}

#alert-container .alert {
  background-color: var(--color-dark-aqua); /* cor que quiseres */
  color: #ffffff; /* muda cor do texto */
  border: none; /* opcional, remove borda */
}

.alert-dismissible .btn-close {
  --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e");
  --bs-btn-close-opacity: 1;
}

@media (max-width: 992px) {
  .newsletter-container {
  background-color: var(--color-light-grey);
  padding: 0px 0px;
  padding-bottom: 84px;
  padding-top:32px;
}

.mySwiperMarcas{
  margin-bottom: 100px;
}


/* ==========================================================
   MENU SEARCH
========================================================== */
.search-dropdown-item {
  gap: 12px;
  padding: 8px 8px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
}


/* ==========================================================
   PAGINAÇÃO
========================================================== */

.pagination-wrapper {
  padding: 1.5rem 0rem;
  display: inline-block;
}

}