.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(103, 81, 58, 0.12);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 120px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pms-text);
  font-weight: 600;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--pms-primary);
}

.brand-logo {
  border-radius: 8px;
}

.brand-text {
  line-height: 1.25;
}

.tm {
  margin-left: 1px;
  font-size: 0.55em;
  font-weight: 600;
  line-height: 0;
  vertical-align: super;
  color: var(--pms-second);
}

.nav--desktop {
  display: none;
  justify-content: flex-start;
  gap: 6px 18px;
  flex-wrap: wrap;
  align-items: center;
}

@media (min-width: 1024px) {
  .nav--desktop {
    display: flex;
  }
}

.nav-link {
  padding: 8px 4px;
  color: var(--pms-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--pms-primary);
}

.product-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-h);
}

.product-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 4px;
  z-index: 120;
  width: min(720px, calc(100vw - 48px));
  padding: 22px 24px 20px;
  background: #fff;
  border: 1px solid rgba(103, 81, 58, 0.1);
  border-top: none;
  border-radius: 0;
  box-shadow:
    0 4px 8px rgba(0, 45, 35, 0.03),
    0 20px 56px rgba(0, 45, 35, 0.1);
}

.product-dropdown.is-open .product-panel {
  display: block;
}

.product-panel::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.product-panel-label {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(103, 81, 58, 0.7);
}

.product-panel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--pms-text);
  transition: background 0.18s ease;
}

.product-item:hover {
  background: rgba(0, 93, 70, 0.05);
  color: var(--pms-text);
}

.product-item--coming {
  cursor: default;
  opacity: 0.88;
}

.product-item--coming:hover {
  background: transparent;
}

.product-item-mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--pms-primary), var(--pms-second));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.product-item-mark--coming {
  background: linear-gradient(145deg, #8a7a68, #67513a);
}

.product-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-item-name {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--pms-primary);
  line-height: 1.3;
}

.product-item-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--pms-second);
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(168, 230, 207, 0.5);
}

.product-item-badge--coming {
  color: var(--pms-bg3);
  background: rgba(215, 194, 169, 0.55);
}

.product-item-tagline {
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--pms-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-item-arrow {
  flex-shrink: 0;
  color: var(--pms-second);
  font-size: 1.1rem;
  opacity: 0.55;
  transition:
    opacity 0.18s,
    transform 0.18s;
}

.product-item:hover .product-item-arrow {
  opacity: 1;
  color: var(--pms-primary);
  transform: translateX(3px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.login-dropdown {
  display: none;
  position: relative;
}

@media (min-width: 1024px) {
  .login-dropdown {
    display: block;
  }
}

.login-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(0, 93, 70, 0.22);
  border-radius: 10px;
  background: #fff;
  color: var(--pms-primary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s;
}

.login-trigger:hover,
.login-dropdown.is-open .login-trigger {
  background: rgba(0, 93, 70, 0.06);
  border-color: rgba(0, 93, 70, 0.35);
}

.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-top: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.login-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  min-width: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(0, 93, 70, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 45, 35, 0.12);
}

.login-dropdown.is-open .login-panel {
  display: block;
}

.login-panel::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.login-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--pms-text);
}

.login-item:hover {
  background: var(--pms-gray-50);
  color: var(--pms-text);
}

.login-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--pms-primary);
}

.login-item-desc {
  font-size: 0.8rem;
  color: var(--pms-text-secondary);
  line-height: 1.4;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-bar {
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--pms-bg3);
  border-radius: 1px;
}

.menu-bar::before,
.menu-bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--pms-bg3);
  border-radius: 1px;
  transition:
    transform 0.25s,
    top 0.25s;
}

.menu-bar::before {
  top: -7px;
}

.menu-bar::after {
  top: 7px;
}

.menu-bar.is-open {
  background: transparent;
}

.menu-bar.is-open::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-bar.is-open::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(51, 51, 51, 0.35);
  z-index: 99;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav {
  background: #fff;
  padding: 16px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-soft);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  color: var(--pms-text);
  font-weight: 500;
  border-radius: 10px;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background: var(--pms-gray-50);
  color: var(--pms-primary);
}

.mobile-product,
.mobile-login {
  border-radius: 10px;
}

.mobile-product {
  background: rgba(0, 93, 70, 0.03);
}

.mobile-product-summary,
.mobile-login-summary {
  list-style: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-weight: 600;
  color: var(--pms-primary);
  cursor: pointer;
}

.mobile-product-summary::-webkit-details-marker,
.mobile-login-summary::-webkit-details-marker {
  display: none;
}

.mobile-product-body,
.mobile-login-body {
  display: flex;
  flex-direction: column;
  padding: 0 8px 10px;
  gap: 2px;
}

.mobile-product-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--pms-text);
}

.mobile-product-link:hover {
  background: #fff;
  color: var(--pms-text);
}

.mobile-product-name {
  font-weight: 600;
  color: var(--pms-primary);
}

.mobile-product-desc {
  font-size: 0.82rem;
  color: var(--pms-text-secondary);
}

.mobile-login-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--pms-text);
  font-weight: 500;
}

.mobile-product-link--coming {
  opacity: 0.75;
  cursor: default;
}

.mobile-product-link--coming .mobile-product-name {
  color: var(--pms-bg3);
}

.mobile-login-link:hover {
  background: var(--pms-gray-50);
  color: var(--pms-primary);
}

.mobile-login {
  margin-top: 8px;
  border: 1px solid rgba(0, 93, 70, 0.12);
}

.footer {
  background: var(--pms-bg3);
  color: rgba(255, 255, 255, 0.88);
  padding: 40px 20px 28px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-main {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
  }
}

.footer-logo-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
}

.footer-logo-row img {
  border-radius: 8px;
}

.footer-logo-row .tm {
  color: var(--pms-mint);
}

.footer-tagline {
  margin: 10px 0 0;
  max-width: 360px;
  font-size: 0.875rem;
  opacity: 0.8;
  line-height: 1.55;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-nav {
    justify-content: flex-end;
    padding-top: 6px;
  }
}

.footer-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--pms-mint);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.meta-sep {
  opacity: 0.45;
}

.icp-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.icp-link:hover {
  color: var(--pms-mint);
}

@media (max-width: 767px) {
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .meta-sep {
    display: none;
  }
}
