/* Desktop header cart + account. Matches the region pill: deep teal, gold rim, #04878b accent. */
.sg-header-cart,
.sg-header-auth {
  --sg-auth-teal: #04878b;
  --sg-auth-teal-deep: #01393a;
  --sg-auth-gold: #e7c879;
  --sg-auth-gold-deep: #c39e09;
  --sg-auth-ink: #f6fbfb;
  --sg-auth-muted: rgba(246, 251, 251, 0.72);
  align-self: center;
}

.sg-header-cart {
  margin-left: 10px;
}

.sg-header-cart__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(231, 200, 121, 0.42);
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 18% 8%, rgba(10, 154, 158, 0.45), transparent 42%),
    linear-gradient(135deg, #07483d 0%, #043f37 48%, #02362f 100%);
  box-shadow:
    0 16px 34px rgba(2, 54, 47, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.sg-header-cart__btn:hover,
.sg-header-cart__btn:focus {
  color: #fff;
  border-color: rgba(231, 200, 121, 0.78);
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 240, 188, 0.28), transparent 40%),
    linear-gradient(135deg, #0a9a9e 0%, #04878b 58%, #01393a 100%);
  transform: translateY(-2px);
  outline: none;
}

.sg-header-cart__icon {
  display: block;
  width: 22px;
  height: 22px;
}

#header .header-nav-features .sg-header-cart .cart-info {
  position: absolute;
  top: -4px;
  right: -4px;
  left: auto;
  width: auto;
  margin: 0;
  text-align: center;
}

#header .header-nav-features .sg-header-cart .cart-info .cart-qty {
  position: static;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #f6e7b4 0%, #c39e09 100%);
  color: #01393a;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px #02362f;
}

.sg-header-auth {
  display: flex;
  align-items: center;
  margin-left: 10px;
  position: relative;
  z-index: 30;
}

.sg-header-auth__guest {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sg-header-auth__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sg-header-auth__btn--ghost {
  background: transparent;
  border-color: rgba(231, 200, 121, 0.7);
  color: #f6e7b4;
}

.sg-header-auth__btn--ghost:hover,
.sg-header-auth__btn--ghost:focus {
  background: #04878b;
  border-color: #04878b;
  color: #fff;
  box-shadow: 0 10px 22px rgba(4, 135, 139, 0.28);
  transform: translateY(-2px);
}

.sg-header-auth__btn--solid {
  border-color: rgba(231, 200, 121, 0.42);
  color: #fff;
  background:
    radial-gradient(circle at 18% 8%, rgba(10, 154, 158, 0.45), transparent 42%),
    linear-gradient(135deg, #07483d 0%, #04878b 52%, #01393a 100%);
  box-shadow:
    0 16px 34px rgba(2, 54, 47, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.sg-header-auth__btn--solid:hover,
.sg-header-auth__btn--solid:focus {
  border-color: rgba(231, 200, 121, 0.78);
  color: #fff;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 240, 188, 0.28), transparent 40%),
    linear-gradient(135deg, #0a9a9e 0%, #04878b 58%, #01393a 100%);
  transform: translateY(-2px);
}

.sg-header-auth__account {
  position: relative;
}

.sg-header-auth__avatar-btn {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  appearance: none;
}

.sg-header-auth__avatar,
.sg-header-auth__menu-photo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  background: #01393a;
}

.sg-header-auth__avatar {
  border: 2px solid #e7c879;
  box-shadow: 0 0 0 3px rgba(4, 135, 139, 0.35), 0 10px 20px rgba(1, 57, 58, 0.28);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sg-header-auth__avatar-btn:hover .sg-header-auth__avatar,
.sg-header-auth__account.is-open .sg-header-auth__avatar {
  box-shadow: 0 0 0 4px rgba(231, 200, 121, 0.45), 0 12px 24px rgba(1, 57, 58, 0.32);
  transform: translateY(-1px);
}

.sg-header-auth__status {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2ecc71;
  border: 2px solid #e7c879;
}

.sg-header-auth__menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 280px;
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1200;
}

.sg-header-auth__menu-card {
  position: relative;
  padding: 18px 16px 12px;
  border-radius: 18px;
  background: linear-gradient(165deg, #026266 0%, #01393a 58%, #012e2f 100%);
  border: 1px solid rgba(231, 200, 121, 0.38);
  box-shadow: 0 22px 48px rgba(1, 22, 24, 0.38);
}

.sg-header-auth__menu-card::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 16px;
  width: 12px;
  height: 12px;
  background: #026266;
  border-left: 1px solid rgba(231, 200, 121, 0.38);
  border-top: 1px solid rgba(231, 200, 121, 0.38);
  transform: rotate(45deg);
}

.sg-header-auth__account.is-open .sg-header-auth__menu,
.sg-header-auth__account:hover .sg-header-auth__menu,
.sg-header-auth__account:focus-within .sg-header-auth__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.sg-header-auth__menu-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(231, 200, 121, 0.22);
}

.sg-header-auth__menu-photo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 2px solid #e7c879;
}

.sg-header-auth__menu-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sg-header-auth__eyebrow {
  color: #e7c879;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sg-header-auth__name {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-header-auth__email {
  color: var(--sg-auth-muted);
  font-size: 11px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-header-auth__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  margin: 2px 0;
  border-radius: 12px;
  color: #f6fbfb !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sg-header-auth__item i {
  width: 16px;
  color: #e7c879;
  font-size: 13px;
  text-align: center;
}

.sg-header-auth__item:hover,
.sg-header-auth__item:focus {
  background: rgba(4, 135, 139, 0.35);
  color: #fff !important;
}

.sg-header-auth__item--logout {
  margin-top: 4px;
}

html.sticky-header-active .sg-header-cart__btn,
html.sticky-header-active .sg-header-auth__avatar,
html.sticky-header-active .sg-header-auth__avatar-btn {
  width: 40px;
  height: 40px;
}

html.sticky-header-active .sg-header-auth__btn {
  min-height: 38px;
}
