/* Legacy PDP header module extracted for Preview/Homepage parity */
[data-pdp-legacy-header] .w-full { width: 100%; }
[data-pdp-legacy-header] .bg-white { background: #ececec; }
[data-pdp-legacy-header] .border-b { border-bottom-width: 0; border-bottom-style: solid; }
[data-pdp-legacy-header] .border-black\/5 {
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}
[data-pdp-legacy-header] .max-w-7xl { max-width: 1280px; }
[data-pdp-legacy-header] .mx-auto { margin-left: auto; margin-right: auto; }
[data-pdp-legacy-header] .px-6 { padding-left: 24px; padding-right: 24px; }
[data-pdp-legacy-header] .py-6 { padding-top: 10px; padding-bottom: 10px; }
[data-pdp-legacy-header] .grid { display: grid; }
[data-pdp-legacy-header] .grid-cols-3 { grid-template-columns: 1fr auto 1fr; }
[data-pdp-legacy-header] .items-center { align-items: center; }
[data-pdp-legacy-header] .justify-center { justify-content: center; }
[data-pdp-legacy-header] .justify-end { justify-content: flex-end; }
[data-pdp-legacy-header] .flex { display: flex; }
[data-pdp-legacy-header] .gap-2 { gap: 8px; }
[data-pdp-legacy-header] .gap-6 { gap: 24px; }
[data-pdp-legacy-header] .gap-8 { gap: 32px; }
[data-pdp-legacy-header] .gap-12 { gap: 48px; }
[data-pdp-legacy-header] .text-\[11px\] {
  font-family: "Noto Sans TC", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  line-height: 16.5px;
  letter-spacing: 1.6px;
}
[data-pdp-legacy-header] .text-\[16px\] {
  font-family: "Noto Sans TC", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 1.6px;
}
[data-pdp-legacy-header] .uppercase { text-transform: uppercase; }
[data-pdp-legacy-header] .text-gray-500 { color: #6b7280; }
[data-pdp-legacy-header] .font-light { font-weight: 300; }
[data-pdp-legacy-header] .hover\:text-black { color: #6b7280; transition: color 0.2s; text-decoration: none; font-weight: 400; }
[data-pdp-legacy-header] .hover\:text-black:hover { color: #000000; }
[data-pdp-legacy-header] .h-10 { height: 40px; }
[data-pdp-legacy-header] .object-contain { object-fit: contain; }
[data-pdp-legacy-header] .cursor-pointer { cursor: pointer; }
[data-pdp-legacy-header] .relative { position: relative; }
[data-pdp-legacy-header] .absolute { position: absolute; }
[data-pdp-legacy-header] a { text-decoration: none; }
[data-pdp-legacy-header] img { display: block; }
@media (max-width: 767px) {
  [data-pdp-legacy-header] .grid-cols-3 { grid-template-columns: 1fr auto 1fr; }
}

/* ─── Shared legacy nav — lives as a DOM sibling of [data-pdp-legacy-header] ── */
/* Kept separate so position:sticky has the full page as containing block.        */
[data-pdp-legacy-nav] {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(236, 236, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}
[data-pdp-legacy-nav] .pdp-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 57px;
}
[data-pdp-legacy-nav] .pdp-nav-items {
  display: flex;
  gap: 48px;
}
/* position:relative removed — dropdown positions relative to [data-pdp-legacy-nav] (sticky) */
[data-pdp-legacy-nav] .pdp-nav-item {
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 57px;
}
[data-pdp-legacy-nav] .pdp-nav-item > span {
  font-family: "Noto Sans TC", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 1.6px;
  line-height: 24px;
  color: #374151;
  user-select: none;
  position: relative;
  display: inline-block;
}
/* Gold underline via pseudo-element (replaces the removed .pdp-nav-underline div) */
[data-pdp-legacy-nav] .pdp-nav-item > span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: rgb(232, 198, 125);
  width: 0;
  transition: width 0.3s;
}
[data-pdp-legacy-nav] .pdp-nav-item:hover > span {
  color: #1a1a1a;
  font-weight: 700;
}
[data-pdp-legacy-nav] .pdp-nav-item:hover > span::after {
  width: 100%;
}

/* ─── Dropdown (珠寶 mega-menu) ──────────────────────────────────────── */
/* Positioned relative to [data-pdp-legacy-nav] (sticky) — full viewport width */
[data-pdp-legacy-nav] .pdp-nav-dropdown {
  position: absolute;
  top: 37px;
  left: 0;
  width: 100%;
  background: #ececec;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 200;
}
[data-pdp-legacy-nav] .pdp-nav-has-dropdown:hover .pdp-nav-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
[data-pdp-legacy-nav] .pdp-nav-dd-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 250px;
  min-height: 300px;
}

/* ─── 類別 catgroup: parent list + right-side child sub-panel ─── */
[data-pdp-legacy-nav] .pdp-dd-catgroup {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  position: relative;
}
[data-pdp-legacy-nav] .pdp-col-category {
  min-width: 110px;
  flex-shrink: 0;
}
[data-pdp-legacy-nav] .pdp-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
[data-pdp-legacy-nav] .pdp-cat-item {
  cursor: pointer;
}
[data-pdp-legacy-nav] .pdp-cat-link {
  font-family: "Noto Sans TC", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #374151;
  text-decoration: none;
  display: inline-block;
  position: relative;
  line-height: 32px;
}
[data-pdp-legacy-nav] .pdp-cat-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: rgb(232, 198, 125);
  width: 0;
  transition: width 0.2s;
}
[data-pdp-legacy-nav] .pdp-cat-item--active .pdp-cat-link {
  font-weight: 700;
  color: #1a1a1a;
}
[data-pdp-legacy-nav] .pdp-cat-item--active .pdp-cat-link::after {
  width: 100%;
}

/* Child sub-panel — absolutely positioned so it doesn't contribute to catgroup width,
   keeping the 類別→系列 outer gap equal to the 系列→主題 gap. */
[data-pdp-legacy-nav] .pdp-cat-sub-panel {
  position: absolute;
  left: 100%;
  top: 50px;
  min-width: 130px;
  padding-left: 28px;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateX(-16px);
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-pdp-legacy-nav] .pdp-cat-sub-panel--visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
[data-pdp-legacy-nav] .pdp-sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
[data-pdp-legacy-nav] .pdp-sub-link {
  font-family: "Noto Sans TC", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #374151;
  text-decoration: none;
  display: inline-block;
  position: relative;
  line-height: 32px;
}
[data-pdp-legacy-nav] .pdp-sub-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: rgb(232, 198, 125);
  width: 0;
  transition: width 0.2s;
}
[data-pdp-legacy-nav] .pdp-sub-link:hover {
  font-weight: 700;
  color: #1a1a1a;
}
[data-pdp-legacy-nav] .pdp-sub-link:hover::after {
  width: 100%;
}

/* ─── 系列 and 主題 flat columns ─── */
[data-pdp-legacy-nav] .pdp-nav-col {
  min-width: 110px;
}
[data-pdp-legacy-nav] .pdp-nav-col-head {
  font-family: "Noto Sans TC", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 32px;
}
[data-pdp-legacy-nav] .pdp-nav-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
[data-pdp-legacy-nav] .pdp-nav-col > ul > li {
  margin-bottom: 0;
}
[data-pdp-legacy-nav] .pdp-nav-col > ul > li > a {
  font-family: "Noto Sans TC", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #374151;
  text-decoration: none;
  display: inline-block;
  position: relative;
  line-height: 32px;
}
[data-pdp-legacy-nav] .pdp-nav-col > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: rgb(232, 198, 125);
  width: 0;
  transition: width 0.2s;
}
[data-pdp-legacy-nav] .pdp-nav-col > ul > li > a:hover {
  font-weight: 700;
  color: #1a1a1a;
}
[data-pdp-legacy-nav] .pdp-nav-col > ul > li > a:hover::after {
  width: 100%;
}

/* ─── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  [data-pdp-legacy-nav] .pdp-nav-items { gap: 20px; }
  [data-pdp-legacy-nav] .pdp-nav-item > span { font-size: 14px; letter-spacing: 0.8px; }
  [data-pdp-legacy-nav] .pdp-nav-inner { overflow-x: auto; justify-content: flex-start; }
  [data-pdp-legacy-nav] .pdp-nav-dropdown { display: none; }
}
