/* Common HaeToo header */
#header, #hd, #open-button, #right-side { display: none !important; }

:root {
  --blue-50: #eff6ff;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
}

.ht-header-spacer { height: 80px; }

.ht-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background .3s, box-shadow .3s, border-color .3s;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.ht-header.is-solid {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--gray-200);
  box-shadow: 0 1px 12px rgba(0,0,0,.07);
}
.ht-header__inner {
  display: flex; align-items: center; gap: 0;
  max-width: 100%; margin: 0 auto;
  padding: 0 40px; height: 80px;
}
.ht-logo { display: flex; align-items: center; flex-shrink: 0; }
.ht-logo img { height: 50px; width: auto; display: block; }
.ht-logo > .ht-logo-white { display: block !important; }
.ht-logo > .ht-logo-dark { display: none !important; }
.ht-header.is-solid .ht-logo > .ht-logo-white { display: none !important; }
.ht-header.is-solid .ht-logo > .ht-logo-dark { display: block !important; }

.ht-gnb { margin-left: 32px; display: flex; }
.ht-gnb ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.ht-gnb li { position: relative; }
.ht-gnb a {
  display: inline-flex;
  align-items: center;
  font-size: 18px; font-weight: 600;
  color: rgba(255,255,255,.9);
  transition: color .15s; padding: 3px 0;
  text-decoration: none;
}
.ht-gnb a:hover,
.ht-gnb a.active {
  color: #fff;
}
.ht-header.is-solid .ht-gnb a { color: var(--gray-900); }
.ht-header.is-solid .ht-gnb a:hover { color: var(--gray-900); }
.ht-header.is-solid .ht-gnb a.active,
.ht-header.is-solid .ht-gnb a.active:hover {
  color: var(--blue-600);
}
.ht-gnb__item--has-sub > a::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  opacity: .8;
}
.ht-gnb .ht-gnb__sub {
  position: absolute;
  top: calc(100% + 18px); left: 50%;
  transform: translate(-50%, 8px);
  display: block;
  min-width: 150px;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.ht-gnb .ht-gnb__sub::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -18px;
  height: 18px;
}
.ht-gnb__item--has-sub:hover .ht-gnb__sub,
.ht-gnb__item--has-sub:focus-within .ht-gnb__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.ht-gnb .ht-gnb__sub li { position: static; }
.ht-gnb .ht-gnb__sub a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--gray-800);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.ht-header.is-solid .ht-gnb .ht-gnb__sub a { color: var(--gray-800); }
.ht-gnb .ht-gnb__sub a:hover,
.ht-header.is-solid .ht-gnb .ht-gnb__sub a:hover {
  background: var(--gray-50);
  color: var(--blue-600);
}

.ht-header__right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ht-btn-login {
  padding: 3px 16px; border-radius: 6px;
  font-size: 15px; font-weight: 600;
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.35);
  transition: all .15s;
  text-decoration: none;
}
.ht-btn-login:hover { background: rgba(255,255,255,.15); }
.ht-header.is-solid .ht-btn-login { color: var(--gray-700); border-color: var(--gray-200); }
.ht-header.is-solid .ht-btn-login:hover { background: var(--gray-50); }

.ht-btn-logout {
  padding: 3px 16px; border-radius: 6px;
  font-size: 15px; font-weight: 600;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.2);
  transition: all .15s;
  text-decoration: none;
}
.ht-btn-logout:hover { background: rgba(255,255,255,.12); color: rgba(255,255,255,.95); }
.ht-header.is-solid .ht-btn-logout { color: var(--gray-500); border-color: var(--gray-200); }
.ht-header.is-solid .ht-btn-logout:hover { background: var(--gray-50); color: var(--gray-700); }

.ht-hamburger {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; margin-left: auto;
  padding: 4px 0;
}
.ht-hamburger span {
  display: block; width: 20px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.ht-header.is-solid .ht-hamburger span { background: var(--gray-900); }
.ht-hamburger__label {
  font-style: normal; font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.8); letter-spacing: .04em; margin-top: 1px;
}
.ht-header.is-solid .ht-hamburger__label { color: var(--gray-700); }
.ht-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ht-hamburger.open span:nth-child(2) { opacity: 0; }
.ht-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.ht-mob-overlay {
  display: none; position: fixed; inset: 0; z-index: 299;
  background: rgba(0,0,0,.4);
}
.ht-mob-overlay.is-open { display: block; }
.ht-mob-drawer {
  position: fixed; inset: 0; z-index: 300;
  background: #fff; overflow-y: auto;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.22,1,.36,1);
  -webkit-overflow-scrolling: touch;
}
.ht-mob-drawer.is-open { transform: translateX(0); }
.ht-mob-drawer__inner { display: flex; flex-direction: column; min-height: 100%; }
.ht-mob-drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 60px;
  border-bottom: 1px solid var(--gray-100); flex-shrink: 0;
}
.ht-mob-drawer__logo img { height: 34px; width: auto; display: block; }
.ht-mob-drawer__close {
  width: 36px; height: 36px; border: none; background: none;
  font-size: 22px; color: var(--gray-400); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background .15s, color .15s;
}
.ht-mob-drawer__close:hover { background: var(--gray-100); color: var(--gray-900); }

.ht-mob-products {
  --mob-drawer-gutter: 16px;
  padding: 18px var(--mob-drawer-gutter) 16px;
  background: #fff;
  border-bottom: 1px solid var(--gray-100);
}
.ht-mob-products__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.ht-mob-products__head span { font-size: 13px; font-weight: 900; color: var(--gray-900); }
.ht-mob-products__head a { font-size: 12px; font-weight: 800; color: var(--gray-500); text-decoration: none; }
.ht-mob-products__viewport { overflow: hidden; margin: 0; border-radius: 20px; }
.ht-mob-products__track {
  display: flex;
  transition: transform .42s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.ht-mob-product-slide { flex: 0 0 100%; display: block; text-decoration: none; color: inherit; }
.ht-mob-product-card {
  position: relative;
  min-height: 136px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 14px;
  padding: 22px 16px 20px 20px;
  border-radius: 20px;
  border: 1px solid #dfe6ef;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15,23,42,.065);
  overflow: hidden;
}
.ht-mob-product-card::after {
  content: '';
  position: absolute;
  right: -46px; top: 50%;
  width: 156px; height: 156px;
  border-radius: 50%;
  opacity: .08;
  transform: translateY(-50%);
}
.ht-mob-product-card--sun { background: linear-gradient(135deg, #fff 0%, #f7faff 100%); }
.ht-mob-product-card--green { background: linear-gradient(135deg, #fff 0%, #f5fffb 100%); }
.ht-mob-product-card--coral { background: linear-gradient(135deg, #fff 0%, #fff8f6 100%); }
.ht-mob-product-card--sun::after { background: #2563eb; }
.ht-mob-product-card--green::after { background: #10b981; }
.ht-mob-product-card--coral::after { background: #ff8276; }
.ht-mob-product-card__body,
.ht-mob-product-card__side { position: relative; z-index: 1; }
.ht-mob-product-card__body { min-width: 0; }
.ht-mob-product-card__meta {
  display: inline-flex; align-items: center;
  width: fit-content; max-width: 100%; min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(37,99,235,.09);
  color: var(--blue-700);
  font-size: 11px; font-weight: 900;
  line-height: 1.2; white-space: nowrap;
}
.ht-mob-product-card__name {
  display: block; margin-top: 10px;
  font-size: 21px; font-weight: 900;
  line-height: 1.18; color: var(--gray-900);
}
.ht-mob-product-card__desc {
  display: block; margin-top: 7px;
  font-size: 12.5px; font-weight: 700;
  line-height: 1.45; color: var(--gray-600);
  word-break: keep-all;
}
.ht-mob-product-card__side {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; min-width: 0;
}
.ht-mob-product-card__icon {
  width: 70px; height: 58px;
  object-fit: contain; object-position: center;
  filter: drop-shadow(0 7px 12px rgba(17,24,39,.10));
}
.ht-mob-product-card__rate {
  width: 82px; height: 42px;
  display: inline-flex; align-items: baseline; justify-content: center;
  gap: 1px; border-radius: 14px;
  background: #fff; color: var(--blue-600);
  font-size: 12px; font-weight: 900;
  box-shadow: 0 8px 18px rgba(15,23,42,.08),
              inset 0 0 0 1px rgba(229,231,235,.95);
}
.ht-mob-product-card__rate em {
  font-style: normal; font-size: 26px; line-height: 1; letter-spacing: 0;
}
.ht-mob-products__dots {
  display: flex; justify-content: center; align-items: center;
  gap: 5px; height: 18px; margin-top: 8px;
}
.ht-mob-products__dot {
  width: 5px; height: 5px; padding: 0; border: 0;
  border-radius: 999px; background: var(--gray-300);
  transition: width .2s ease, background .2s ease;
}
.ht-mob-products__dot.is-active { width: 18px; background: var(--gray-900); }

.ht-mob-drawer__auth {
  display: flex; gap: 8px; padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.ht-mob-drawer__auth-btn {
  flex: 1; height: 46px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; transition: background .15s;
  text-decoration: none;
}
.ht-mob-drawer__auth-btn--login,
.ht-mob-drawer__auth-btn--my { background: var(--blue-600); color: #fff; }
.ht-mob-drawer__auth-btn--login:hover { background: var(--blue-700); }
.ht-mob-drawer__auth-btn--logout {
  background: var(--gray-50); color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.ht-mob-drawer__auth-btn--logout:hover { background: var(--gray-100); }

.ht-mob-drawer__nav { padding: 4px 0; }
.ht-mob-drawer__nav-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px; font-size: 16px; font-weight: 600;
  color: var(--gray-900); text-decoration: none;
  border-bottom: 1px solid var(--gray-50);
  transition: background .12s, color .12s;
}
.ht-mob-drawer__nav-item:hover,
.ht-mob-drawer__nav-item:active,
.ht-mob-drawer__nav-item:focus-visible {
  background: var(--gray-50);
  color: var(--gray-900);
}
.ht-mob-drawer__nav-item.is-active {
  background: var(--blue-50);
  color: var(--blue-600);
  font-weight: 800;
}
.ht-mob-drawer__nav-item.is-active .ht-mob-drawer__nav-arr {
  color: var(--blue-600);
}
.ht-mob-drawer__nav-arr { font-size: 18px; color: var(--gray-300); font-weight: 400; }
.ht-mob-drawer__subnav {
  padding: 2px 16px 8px 30px;
  border-bottom: 1px solid var(--gray-50);
}
.ht-mob-drawer__subnav a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
}
.ht-mob-drawer__subnav a:hover,
.ht-mob-drawer__subnav a:focus-visible { color: var(--blue-600); }
.ht-mob-drawer__subnav a.is-active {
  color: var(--blue-600);
  font-weight: 800;
}

.ht-mob-drawer__imgbanner {
  margin: 14px 16px 10px;
  border-radius: 16px; overflow: hidden;
  position: relative;
  display: block;
  border: 1px solid rgba(229,231,235,.9);
  box-shadow: 0 8px 22px rgba(17,24,39,.08);
  background: #2113a8;
}
.ht-mob-drawer__imgbanner > img {
  width: 100%; height: auto;
  object-fit: contain; object-position: center center;
  display: block;
}
.ht-mob-drawer__cs {
  padding: 18px 16px 16px;
  border-top: 1px solid var(--gray-100);
}
.ht-mob-drawer__cs-label {
  font-size: 11px; font-weight: 700; color: var(--gray-400);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px;
}
.ht-mob-drawer__cs-tel {
  font-size: 28px; font-weight: 900; color: var(--gray-900);
  letter-spacing: -.03em; line-height: 1;
}
.ht-mob-drawer__cs-time { font-size: 12px; color: var(--gray-400); margin-top: 6px; line-height: 1.6; }
.ht-mob-drawer__footer {
  margin-top: auto;
  padding: 14px 16px 36px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.ht-mob-drawer__footer-links {
  display: flex; gap: 14px; margin-bottom: 10px; flex-wrap: wrap;
}
.ht-mob-drawer__footer-links a {
  font-size: 12px; font-weight: 600; color: var(--gray-500); text-decoration: none;
}
.ht-mob-drawer__footer-links a:hover { color: var(--gray-900); }
.ht-mob-drawer__footer-addr {
  font-size: 11px; color: var(--gray-400); line-height: 1.8; font-style: normal;
}

@media (max-width: 1024px) {
  .ht-header__inner { height: 72px; padding: 0 24px; }
  .ht-logo img { height: 44px; }
  .ht-gnb, .ht-header__right { display: none; }
  .ht-hamburger { display: flex; }
  .ht-header-spacer { height: 72px; }
}

@media (max-width: 480px) {
  .ht-header__inner { height: 64px; padding: 0 16px; }
  .ht-gnb, .ht-header__right { display: none; }
  .ht-hamburger { display: flex; }
  .ht-header-spacer { height: 64px; }
}
