/**
 * Minimal bridge for Next.js markup differences vs landing-page-fe.
 * Legacy often used <button>; Next uses <a>/<Link> for navigation CTAs.
 * Do not add redesign rules here — only neutralize UA defaults.
 */

a.view-details-btn,
a.view-new-details-btn,
a.view-activity-details-btn,
a.view-details-btn-small,
a.category-btn,
a.new-detail-social-icon-a {
  text-decoration: none;
}

/* Recruitment submenu + mobile menu: neutralize Next/Link / <a> UA styles */
.submenu a,
.submenu a:visited,
.submenu a:hover,
.submenu a:active,
.menu-moblie #submenu a,
.menu-moblie #submenu a:visited,
.menu-moblie #submenu a:hover,
.menu-moblie #submenu a:active {
  text-decoration: none;
  color: inherit;
}

.submenu a .text {
  text-decoration: none;
}
.header-active .submenu a .text,
.submenu#no-banner a .text,
.menu-moblie #submenu a .text,
.menu-moblie #submenu .text {
  text-decoration: none;
  color: #525252;
}

.menu-moblie .content-text.active .text,
.menu-moblie .text.active {
  color: #014d40;
  font-weight: 600;
}

/* Hamburger: no white chip behind icon */
.icon-menu-inActive,
.icon-menu-inActive img,
#menu-icon {
  background: transparent !important;
  box-shadow: none;
  border: none;
  border-radius: 0;
}

a.view-details-btn,
a.view-new-details-btn,
a.view-activity-details-btn {
  color: var(--Color-Neutral-Neutral---900, #171717);
}

a.view-details-btn.active,
a.category-btn.active {
  color: #fff;
}

a.view-details-btn-small {
  color: var(--Color-Brand-Brand---900, #014d40);
}

button.new-detail-social-icon-a,
button.copy-url-btn {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
}

/* "Trước" / "Sau" are longer than page-number pills (28px) */
.product-list-pagination-btn > p {
  width: auto;
  min-width: 28px;
}

/* Next Link wraps product cards; keep title styles from landing-page.css */
a.product-list-item,
a.product-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.section-news-card {
  text-decoration: none;
  color: inherit;
  display: flex;
}

a.section-commitment-card.swiper-slide {
  text-decoration: none;
  color: inherit;
}

a.logo-header-link {
  display: contents;
}

/* Header nav: match legacy span styles for crawlable <a> links */
.content-right-header > a {
  color: #525252;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  cursor: pointer;
  transition: color 0.3s ease;
  overflow: hidden;
  position: relative;
  text-transform: uppercase;
  text-decoration: none;
}

.content-right-header > a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  transition: width 0.6s ease;
  z-index: 0;
  border-radius: 12px;
}

.content-right-header > a:hover::before {
  width: 100%;
}

/* Scroll state: legacy styles target `span`, now nav is `<a>` */
.header-active .content-right-header a .text {
  color: #525252;
}

.header-active .content-right-header a:hover .text {
  color: #014d40;
  text-shadow: 0.5px 0 0 currentColor;
}

.menu-moblie > a.content-text {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  text-decoration: none;
  color: inherit;
}

/* Product detail: legacy used <button id="view-all">; Next uses <Link> */
.product-detail-favorite-btn a#view-all,
a#view-all.font-family-Montserrat {
  font-size: var(--fs-18);
  font-weight: var(--fw-medium);
  line-height: 18px;
  color: var(--Color-Brand-Brand---800, #026d60);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  display: inline;
  padding: 0;
  margin: 0;
}

/* Override global `h5` (font-weight 600 / uppercase) — landing-page.css product-title */
.product-list-item .product-title h5,
.product-card .product-title h5 {
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #262626;
  text-transform: none;
}

/* Toast: slide in from right (landing-page-fe cart.js) */
.cart-notification {
  animation: cartNotificationSlideIn 0.3s ease-out;
}

.cart-notification.is-leaving {
  animation: cartNotificationSlideOut 0.3s ease-in forwards;
}

@keyframes cartNotificationSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes cartNotificationSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}
