.custom-auth-modal { position: fixed; inset: 0; display: none; z-index: 999999; }
.custom-auth-modal.is-open { display: block; }
.custom-auth-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.custom-auth-dialog { position: relative; max-width: 460px; margin: 8vh auto 0; background: #fff; padding: 24px; z-index: 2; }
.custom-auth-close { position: absolute; right: 10px; top: 8px; border: 0; background: transparent; font-size: 24px; line-height: 1; }
.custom-auth-title { margin-bottom: 16px; margin-top: 12px; text-align: center; }
.custom-auth-tabs { display: flex; border-bottom: 1px solid #ddd; margin-bottom: 16px; }
.custom-auth-tab { flex: 1; border: 0; background: transparent; padding: 10px; border-bottom: 2px solid transparent; }
.custom-auth-tab.is-active { border-bottom-color: #000; font-weight: 700; }
.custom-auth-panel { display: none; }
.custom-auth-panel.is-active { display: block; }

.remind-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  background: #1f1f1f;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999999;
}

.remind-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-my-account .my-account-navigation .my-account-nav-logout {
  width: 100%;
  text-align: left;
  padding: 0;
  background: transparent;
  border: 0;
  color: inherit;
}

.page-my-account .my-account-navigation .my-account-nav-logout:hover,
.page-my-account .my-account-navigation .my-account-nav-logout:focus {
  color: #cb8161;
}

.page-my-account .my-account-logout-inline {
  background: transparent;
  border: 0;
  padding: 0;
  color: #cb8161;
  cursor: pointer;
}

.page-my-account .my-account-form-check {
  margin-top: 30px;
}

.page-my-account .my-account-inline-form {
  display: inline;
}

/* Product details: make "Add to cart" match template */
.shop-details .buttons .add-to-cart-wrap .btn-add-to-cart .btn-add-to-cart-submit {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  line-height: 50px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
}

.shop-details .buttons .add-to-cart-wrap .btn-add-to-cart .btn-add-to-cart-submit:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Wishlist active state (pink/red heart) */
.shop-details .buttons .btn-wishlist.is-active .product-btn,
.shop-details .buttons .btn-wishlist.is-active .product-btn i {
  color: #cb8161;
}

.shop-details .buttons .btn-wishlist .product-btn i {
  margin-right: 8px;
}

/* Product cards: highlight active wishlist icon/button */
.products-entry .product-button .btn-wishlist.is-active .product-btn,
.products-entry .product-button .btn-add-to-wishlist.is-active .product-btn {
  background: #cb8161 !important;
  border-color: #cb8161 !important;
  color: #fff !important;
}

.products-entry .product-button .btn-wishlist.is-active .product-btn::before,
.products-entry .product-button .btn-add-to-wishlist.is-active .product-btn::before {
  color: #fff !important;
}

.products-entry .product-button .btn-add-to-cart.is-active .product-btn {
  background: #cb8161 !important;
  border-color: #cb8161 !important;
  color: #fff !important;
}

.products-entry .product-button .btn-add-to-cart.is-active .product-btn::before {
  color: #fff !important;
}

/* Header categories dropdown */
#main-navigation .menu .menu-item-has-children {
  position: relative;
}

#main-navigation .menu .menu-item-has-children .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1200;
}

#main-navigation .menu .menu-item-has-children:hover .sub-menu,
#main-navigation .menu .menu-item-has-children:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#main-navigation .menu .menu-item-has-children .sub-menu li a {
  display: block;
  padding: 8px 16px;
  white-space: nowrap;
}

/* Contact page email card */
.page-contact .contact-email-card {
  background: #fff;
  border: 1px solid #ece7e1;
  text-align: center;
  border-radius: 10px;
  padding: 26px 30px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.page-contact .contact-email-icon {
  width: 56px;
  height: 56px;
  margin:0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(203, 129, 97, 0.12);
  color: #cb8161;
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 4px;
}

.page-contact .contact-email-content h2 {
  margin: 0 0 6px;
}

.page-contact .contact-email-content p {
  margin: 0 0 6px;
  color: #6f6f6f;
}

.page-contact .contact-email-link {
  font-size: 18px;
  font-weight: 600;
  color: #1b1b1b;
}

.page-contact .contact-email-link:hover {
  color: #cb8161;
}

@media (max-width: 575.98px) {
  .page-contact .contact-email-card {
    padding: 20px;
    gap: 14px;
  }

  .page-contact .contact-email-link {
    font-size: 16px;
  }
}

/* Home promo dual banners: equal height */
.home .block-banners.layout-6 .banner-wrapper.banners {
  height: 70vh;
  min-height: 420px;
}

.home .block-banners.layout-6 .banner-wrapper.banners .banner-image,
.home .block-banners.layout-6 .banner-wrapper.banners .banner-image a {
  display: block;
  height: 100%;
}

.home .block-banners.layout-6 .banner-wrapper.banners .banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991.98px) {
  .home .block-banners.layout-6 .banner-wrapper.banners {
    height: 55vh;
    min-height: 320px;
  }
}
