/* =========================
   HEADER CHÍNH - GENERAL
========================= */
.whb-main-header {
  --col-left-width: 20%;
}

.whb-main-header .container {
  padding: 0;
}

.whb-main-header .whb-row.whb-general-header {
  border-bottom: none;
  overflow: visible;
}

.whb-general-header-inner .wd-header-html>div {
  display: flex;
  align-items: center;
}

/* =========================
   DESKTOP - GRADIENT NỀN
========================= */
[data-elementor-device-mode="desktop"] .whb-general-header {
  background: linear-gradient(to right, var(--via-primary-color) 50%, #fff 50%);
}

[data-elementor-device-mode="desktop"] .whb-general-header-inner .whb-col-left,
[data-elementor-device-mode="desktop"] .whb-general-header-inner .whb-col-center {
  display: flex;
}

/* =========================
   CỘT TRÁI (Logo)
========================= */
.whb-general-header-inner .whb-col-left {
  width: var(--col-left-width);
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 0;
  background-color: rgb(248, 248, 248);
}

.whb-general-header-inner .whb-col-left::before {
  content: '';
  position: absolute;
  inset: 0;

  background:
    url('../../../../assets/images/header-col-left-bg.webp'),
    linear-gradient(to right,
      var(--via-primary-color) 0%,
      var(--via-primary-hover) 60%,
      #ffcc66 100%);

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  border-top-right-radius: calc(var(--wd-header-general-h) / 3);
  z-index: 10;
}

/* =========================
   CỘT GIỮA (Search)
========================= */
.whb-general-header-inner .whb-col-center {
  position: relative;
  background: linear-gradient(to right, #ffcc66, var(--via-primary-color));
}

.whb-general-header-inner .whb-col-center::before {
  content: '';
  position: absolute;
  inset: 0;

  background:
    linear-gradient(to right, rgba(255, 255, 255, 0) 75%, #fff 100%),
    url(../../../../assets/images/header-col-center-bg.webp);

  background-size: cover;
  background-repeat: no-repeat;
  background-position: left;

  border-bottom-left-radius: calc(var(--wd-header-general-h) / 3);
}

/* =========================
   KHI HEADER DÍNH (STICKY)
========================= */
.whb-sticked .whb-general-header-inner .whb-col-left::before {
  border-top-right-radius: calc(var(--wd-header-clone-h) / 3);
}

.whb-sticked .whb-general-header-inner .whb-col-center::before {
  border-bottom-left-radius: calc(var(--wd-header-clone-h) / 3);
}

/* =========================
   CỘT PHẢI (Hotline, Account, Cart)
========================= */
.whb-general-header-inner .whb-col-right {
  background-color: #fff;
}

/* =========================
   LOGO
========================= */
.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--wd-header-general-h) * 0.85);
  aspect-ratio: 1 / 1;
  padding: 8px !important;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  z-index: 11;
  border: 3px solid var(--via-primary-color);
  outline: 3px solid rgba(245, 166, 35, 0.25);
  outline-offset: 3px;
  box-shadow:
    0 0 0 8px rgba(245, 166, 35, 0.1),
    0 6px 20px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(245, 166, 35, 0.1);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    outline 0.3s ease;
  animation: via-logo-glow 3s ease-in-out infinite alternate;
}

@keyframes via-logo-glow {
  0% {
    box-shadow:
      0 0 0 8px rgba(245, 166, 35, 0.08),
      0 6px 20px rgba(0, 0, 0, 0.12),
      inset 0 2px 4px rgba(245, 166, 35, 0.1);
    outline-color: rgba(245, 166, 35, 0.2);
  }

  100% {
    box-shadow:
      0 0 0 10px rgba(245, 166, 35, 0.15),
      0 8px 30px rgba(0, 0, 0, 0.18),
      inset 0 2px 4px rgba(245, 166, 35, 0.15);
    outline-color: rgba(245, 166, 35, 0.35);
  }
}

.site-logo:hover {
  transform: scale(1.08);
  outline: 4px solid rgba(245, 166, 35, 0.4);
  outline-offset: 4px;
  box-shadow:
    0 0 0 10px rgba(245, 166, 35, 0.2),
    0 10px 40px rgba(245, 166, 35, 0.35),
    inset 0 2px 6px rgba(245, 166, 35, 0.15);
  animation: none;
}

.whb-sticked .site-logo {
  width: auto;
  aspect-ratio: 1 / 1;
}

.wd-main-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90%;
  width: auto;
  aspect-ratio: 1 / 1;
}

.wd-main-logo img {
  height: 90%;
  width: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  padding: 0 !important;
}

/* =========================
   SEARCH BAR
========================= */
.wd-header-search-form .searchform {
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  border-radius: 25px;
  position: relative;
  z-index: 1;
}

.wd-header-search-form .searchform .s {
  border-radius: 25px !important;
  padding: 10px 20px !important;
  border: 2px solid var(--via-primary-hover);
  box-shadow: 0 4px 4px rgba(245, 166, 35, 0.15);
  transition: all 0.3s ease;
  font-size: 14px;
}

.wd-header-search-form .searchform .s:focus {
  border-color: var(--via-primary-color) !important;
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.15);
  outline: none;
}

.wd-header-search-form .searchform .searchsubmit {
  background-color: var(--via-primary-color) !important;
  border-radius: 0 25px 25px 0 !important;
  transition: all 0.3s ease;
}

.wd-header-search-form .searchform .searchsubmit:hover {
  background-color: var(--via-primary-hover) !important;
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.4);
}

/* =========================
   MY ACCOUNT
========================= */
.wd-header-my-account .wd-tools-icon {
  transition: color 0.3s ease, transform 0.3s ease;
}

.wd-header-my-account:hover .wd-tools-icon {
  color: var(--via-primary-color) !important;
  transform: scale(1.1);
}

.wd-header-my-account .wd-dropdown-my-account {
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  margin-top: 4px;
}

.wd-header-my-account .wd-dropdown-my-account .wd-sub-menu li a {
  padding: 10px 18px !important;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.wd-header-my-account .wd-dropdown-my-account .wd-sub-menu li a:hover {
  background-color: rgba(245, 166, 35, 0.08) !important;
  padding-left: 24px !important;
  color: var(--via-primary-color) !important;
}

/* =========================
   MOBILE HEADER
========================= */
[data-elementor-device-mode="mobile"] .whb-general-header>.container {
  padding: 0;
}

.whb-mobile-left,
.whb-mobile-right {
  width: 20%;
  background-color: var(--via-primary-color);
  margin: 0 !important;
  transition: background-color 0.3s ease;
}

.whb-mobile-left {
  border-top: 1px solid rgba(129, 129, 129, 0.2);
  border-top-right-radius: calc(var(--wd-header-general-sm-h));
}

.whb-mobile-right {
  border-top: 1px solid rgba(129, 129, 129, 0.2);
  border-top-left-radius: calc(var(--wd-header-general-sm-h));
}

.whb-mobile-center {
  width: 60%;
  justify-content: center;
  border-bottom: 1px solid rgba(129, 129, 129, 0.2);
  border-bottom-left-radius: calc(var(--wd-header-general-sm-h));
  border-bottom-right-radius: calc(var(--wd-header-general-sm-h));
}

/* Mobile nav icon */
.wd-header-mobile-nav .wd-tools-icon {
  transition: color 0.3s ease;
}

.wd-header-mobile-nav:hover .wd-tools-icon {
  color: #fff !important;
}

/* Mobile cart badge */
.whb-mobile-right .wd-header-cart .wd-cart-number {
  background-color: #fff !important;
  color: var(--via-primary-color) !important;
}

/* =========================
   STICKY HEADER ANIMATIONS
========================= */
.whb-clone {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease !important;
}

.whb-sticked .whb-clone {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
}

/* =========================
   SEARCH RESULTS DROPDOWN
========================= */
.wd-search-results-wrapper .wd-search-results {
  border-radius: 12px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  overflow: hidden;
}