/*
 * ============================================================
 * MOC BY DYLAN — Header v3 — Craftsmanship in Wood
 * Design source: design-reference/moc-header-mockup-v3.html
 * Palette: Walnut #2f2318 · Bone #f4efe4 · Clay #c1683c · Moss #6e7351
 * Fonts: Fraunces (display/nav) · Manrope (body/utility)
 * ============================================================
 */

/* ── Google Fonts ─────────────────────────────────────────── */
/* Fraunces + Manrope now load with the async Google Fonts link in layout/theme.liquid (an @import here blocked rendering). */

/* ── 1. Design Tokens ─────────────────────────────────────── */
:root {
  --moc-h-walnut:       #2f2318;
  --moc-h-walnut-soft:  #5a4735;
  --moc-h-bone:         #f4efe4;
  --moc-h-paper:        #faf7f0;
  --moc-h-moss:         #6e7351;
  --moc-h-clay:         #c1683c;
  --moc-h-clay-soft:    #d98a5f;
  --moc-h-line:         #e3dbc8;

  /* Backward-compat aliases used elsewhere in the theme */
  --moc-font-nav:          'Manrope', system-ui, sans-serif;
  --moc-color-bg:          #f4efe4;
  --moc-color-bg-solid:    #f4efe4;
  --moc-color-text:        #2f2318;
  --moc-color-text-muted:  #5a4735;
  --moc-color-accent:      #c1683c;
  --moc-color-border:      #e3dbc8;
  --moc-transition:        all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --moc-transition-fast:   all 0.16s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --moc-shadow-header:     0 18px 30px -26px rgba(47, 35, 24, 0.35);
}

/* ── 2. Hide announcement bar (replaced by hardcoded strip) ── */
[id*="header_announcements"] {
  display: none !important;
}

/* ── 3. Header Background — bone + radial gradient ────────── */
#header-component {
  background:
    radial-gradient(ellipse at 20% -20%, rgba(193, 104, 60, 0.05), transparent 55%),
    var(--moc-h-bone) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
  box-shadow: var(--moc-shadow-header) !important;
  transition: box-shadow 0.35s ease, background 0.35s ease !important;
}

/* Override underlay backgrounds */
#header-component .header__underlay-closed {
  background: var(--moc-h-bone) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Color scheme vars (background system) */
#header-component {
  --color-scheme-top-row:    var(--moc-h-bone) !important;
  --color-scheme-bottom-row: var(--moc-h-bone) !important;
}

/* Remove row borders — grain rule provides the bottom edge */
#header-component .header__row {
  --border-bottom-width: 0px !important;
}
.header__row--top:not(.divider--page-width),
.header__row--top.divider--page-width .header__columns,
.header__row--bottom {
  border-bottom: none !important;
}

/* ── 4. Sticky State — semi-opaque bone, no blur ──────────── */
#header-component[data-sticky-state='active'],
.header-section:has(> #header-component[sticky='always']) #header-component {
  --color-scheme-top-row:    rgba(244, 239, 228, 0.97) !important;
  --color-scheme-bottom-row: rgba(244, 239, 228, 0.97) !important;
  background: rgba(244, 239, 228, 0.97) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 1px 0 var(--moc-h-line), 0 4px 20px rgba(47, 35, 24, 0.10) !important;
}

#header-component[data-sticky-state='active'] .header__underlay-closed {
  background: rgba(244, 239, 228, 0.97) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Smooth sticky transitions */
.header[data-sticky-state] {
  transition: opacity 0.3s ease, box-shadow 0.4s ease;
}

/* CLS guard — immediate bone bg before JS upgrades */
.header-section #header-component:not(:defined) .header__row {
  background-color: var(--moc-h-bone);
}

/* ── 5. Static Strip ──────────────────────────────────────── */
.moc-v3-strip {
  background: var(--moc-h-walnut);
  color: var(--moc-h-bone);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 0;
  font-family: 'Manrope', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}
.moc-v3-strip__key {
  color: var(--moc-h-clay-soft);
  font-weight: 600;
}
.moc-v3-strip__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--moc-h-clay);
  opacity: 0.8;
  flex-shrink: 0;
}
.moc-v3-strip__msg {
  opacity: 0.92;
}

@media (prefers-reduced-motion: no-preference) {
  .moc-v3-strip {
    animation: fadeInUp var(--animation-speed-slow, 0.2s) var(--animation-easing) both;
  }
}

/* Mobile strip — show only the shipping message, single line */
@media screen and (max-width: 749px) {
  .moc-v3-strip {
    font-size: 9px;
    letter-spacing: 0.10em;
    padding: 6px 12px;
    gap: 0;
  }
  /* Hide "Free Shipping" message + dot on mobile */
  .moc-v3-strip__msg:last-child,
  .moc-v3-strip__dot {
    display: none;
  }
}

/* ── 6. Header Spacing ────────────────────────────────────── */
body {
  --header-height: 74px !important;
}

.header__columns {
  padding-inline: clamp(28px, 4vw, 60px) !important;
}

/* ── 8. Fade-in on Page Load ──────────────────────────────── */
@keyframes moc-header-fadein {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.header-section {
  animation: moc-header-fadein 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* ── 9. Logo ──────────────────────────────────────────────── */
.header-logo {
  gap: 15px;
  flex-direction: row;
  align-items: center;
  transition: opacity 0.22s ease;
}
.header-logo:hover {
  opacity: 0.88;
}

/* Text stack: "Mộc" + byline stacked vertically, to the right of the image */
.moc-logo__text-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1;
}

/* "Mộc" label in the image-logo path */
.moc-logo__primary--image {
  font-family: 'Fraunces', serif !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  font-style: normal !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  color: var(--moc-h-walnut) !important;
  line-height: 1 !important;
  gap: 0 !important;
}

/* Ring-mark SVG hover rotation */
.moc-logo-ring-svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}
.header-logo:hover .moc-logo-ring-svg {
  transform: rotate(8deg);
}

/* Logo primary name — Fraunces 600 upright */
.moc-logo__primary {
  font-family: 'Fraunces', serif !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  font-style: normal !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  color: var(--moc-h-walnut) !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Logo leaf icon (legacy — kept for graceful fallback) */
.moc-logo__leaf {
  display: inline-flex;
  align-items: center;
  opacity: 0.88;
  transition: var(--moc-transition);
}
.header-logo:hover .moc-logo__leaf {
  transform: translateY(-2px) rotate(-8deg);
  opacity: 0.9;
}

/* Byline — Manrope uppercase moss */
.moc-logo__byline {
  font-family: 'Manrope', sans-serif !important;
  font-size: 9.5px !important;
  letter-spacing: 0.26em !important;
  text-transform: uppercase !important;
  color: var(--moc-h-moss) !important;
  font-weight: 400 !important;
  margin-top: 2px !important;
  padding-left: 0 !important;
  line-height: 1 !important;
}

/* Text-only fallback: column layout (ring SVG is inline with "Mộc") */
.header-logo:not(:has(.header-logo__image-container)) {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* Mobile logo — hide text stack, show image only */
@media screen and (max-width: 749px) {
  .moc-logo__text-stack,
  .moc-logo__byline {
    display: none !important;
  }
  .header-logo {
    gap: 0;
    flex-direction: row;
    align-items: center;
  }
  .header-logo__image {
    width: auto !important;
    max-width: clamp(80px, 22vw, 120px) !important;
    height: auto !important;
    max-height: var(--header-logo-image-height-mobile, 36px) !important;
    object-fit: contain;
  }
}

/* ── 10. Navigation ───────────────────────────────────────── */
.header-menu .menu-list__link,
header-menu .menu-list__link {
  font-family: 'Fraunces', serif !important;
  font-style: italic !important;
  font-size: 15.5px !important;
  font-weight: 400 !important;
  color: var(--moc-h-walnut-soft) !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  position: relative;
  padding-bottom: 0 !important; /* v5.28: cùng hàng với mục không có menu con */
  transition: color 0.2s ease !important;
}

/* Underline: expands symmetrically from center */
.header-menu .menu-list__link::after,
header-menu .menu-list__link::after {
  content: '' !important;
  position: absolute !important;
  left: 50% !important;
  bottom: 0 !important;
  width: 0 !important;
  height: 1px !important;
  background: var(--moc-h-clay) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transform: translateX(-50%) !important;
}

.header-menu .menu-list__link:hover,
header-menu .menu-list__link:hover {
  color: var(--moc-h-walnut) !important;
}
.header-menu .menu-list__link:hover::after,
header-menu .menu-list__link:hover::after {
  width: 100% !important;
}

/* Active/current page */
.header-menu .menu-list__link[aria-current='page'],
header-menu .menu-list__link[aria-current='page'] {
  color: var(--moc-h-walnut) !important;
}
.header-menu .menu-list__link[aria-current='page']::after,
header-menu .menu-list__link[aria-current='page']::after {
  width: 100% !important;
  background: var(--moc-h-clay) !important;
}

/* Nav item horizontal spacing — tight enough for long Vietnamese items */
header-menu .menu-list__list-item,
.header-menu .menu-list__list-item {
  padding-inline: 3px;
}

/* ─ Nav alignment guards (prevent "Liên hệ" overflow bug) ─ */
header-menu .menu-list__list-item:not([slot='overflow']),
.header-menu .menu-list__list-item:not([slot='overflow']) {
  align-items: center !important;
  justify-content: center !important;
}
header-menu .menu-list__list-item:not([slot='overflow']):not([slot='more']):not(:has([aria-haspopup]))::after,
.header-menu .menu-list__list-item:not([slot='overflow']):not([slot='more']):not(:has([aria-haspopup]))::after {
  display: none !important;
  content: none !important;
}
header-menu .menu-list__list-item:not([slot='overflow']):not(:has([aria-haspopup])) > .menu-list__link,
.header-menu .menu-list__list-item:not([slot='overflow']):not(:has([aria-haspopup])) > .menu-list__link {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-block: 0 !important;
  padding-block: 0 !important;
}

/* ── 11. Action Icons (search, account) ───────────────────── */
.header-actions__action,
.search-action {
  color: var(--moc-h-walnut) !important;
  transition: color 0.2s ease, opacity 0.2s ease !important;
}
.header-actions__action:hover,
.search-action:hover {
  color: var(--moc-h-clay) !important;
  opacity: 1 !important;
}

/* Unified icon sizing */
#header-component .header-actions__action .svg-wrapper svg,
#header-component .search-action svg {
  width: 17px !important;
  height: 17px !important;
}

/* Slightly bolder stroke for warmth */
#header-component .header-actions__action:not(.account-button) svg,
#header-component .header__icon--menu svg {
  stroke-width: 1.3;
}

/* Right-cluster spacing */
header-actions {
  gap: clamp(16px, 1.5vw, 20px) !important;
}

/* Column gaps and alignment */
#header-component[data-menu-style='menu'] .header__columns {
  column-gap: clamp(20px, 2.5vw, 38px) !important;
}
.header__column--left {
  min-width: max-content;
}
.header__column--center {
  gap: 0 !important;
}

/* ── 12. Cart Badge ───────────────────────────────────────── */
.cart-count-bubble {
  background-color: var(--moc-h-clay) !important;
}
.cart-bubble__background {
  background-color: var(--moc-h-clay) !important;
}

/* ── 13. CTA Button "Explore Mộc" ────────────────────────── */
.moc-header-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.17em !important;
  text-transform: uppercase !important;
  color: var(--moc-h-walnut) !important;
  background: transparent !important;
  border: 1px solid var(--moc-h-walnut) !important;
  padding: 11px 22px !important;
  border-radius: 1px !important;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s ease !important;
  position: relative;
  overflow: hidden;
}
.moc-header-cta:hover {
  background: var(--moc-h-walnut) !important;
  color: var(--moc-h-bone) !important;
  letter-spacing: 0.20em !important;
  border-color: var(--moc-h-walnut) !important;
  text-decoration: none !important;
}

/* Hide CTA on mobile */
@media screen and (max-width: 749px) {
  .moc-header-cta {
    display: none !important;
  }
}

/* ── 14. Localization — Desktop ───────────────────────────── */
#header-component .dropdown-localization .language-selector,
#header-component .dropdown-localization .language-selector--collapse-space {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  width: auto !important;
  gap: 2px !important;
}

#header-component .dropdown-localization .localization-form__select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 18px 0 0 !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 400 !important;
  letter-spacing: 0.10em !important;
  color: var(--moc-h-walnut-soft) !important;
  cursor: pointer;
  max-width: 110px !important;
  transition: color 0.22s ease !important;
}
#header-component .dropdown-localization .localization-form__select:hover {
  color: var(--moc-h-walnut) !important;
  background: transparent !important;
}
#header-component .dropdown-localization .localization-form__select option {
  background-color: var(--moc-h-bone);
  color: var(--moc-h-walnut);
}
#header-component .dropdown-localization .language-selector .svg-wrapper.icon-caret {
  width: 9px !important;
  height: 9px !important;
  right: 0 !important;
  opacity: 0.4 !important;
}

/* Button-style localization (country + language) */
.dropdown-localization__button.dropdown-localization__button {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 2px 0 !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 400 !important;
  letter-spacing: 0.10em !important;
  color: var(--moc-h-walnut-soft) !important;
  transition: color 0.22s ease !important;
}
.dropdown-localization__button.dropdown-localization__button:hover {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: var(--moc-h-walnut) !important;
}
.dropdown-localization__button .currency-code {
  display: none !important;
}
.dropdown-localization__button .svg-wrapper.icon-caret {
  width: 9px !important;
  height: 9px !important;
  opacity: 0.4 !important;
}

/* ── 15. Mobile Layout ────────────────────────────────────── */
@media screen and (max-width: 749px) {
  body {
    --header-height: 62px !important;
  }

  #header-component .header__columns {
    padding-inline: 6px calc(var(--padding-3xs) + 4px);
  }

  /* Touch targets — WCAG 2.5.5 */
  #header-component .header-actions__action,
  #header-component .search-action button {
    min-height: 44px;
    min-width: 44px;
  }

  /* Drawer icons */
  .header__icon--menu svg,
  .header__icon--close svg {
    color: var(--moc-h-walnut);
  }
}

/* Logo centered in mobile drawer mode */
@media screen and (max-width: 749px) {
  #header-component[data-menu-style='drawer'] .header__columns {
    position: relative;
  }
  #header-component[data-menu-style='drawer'] .header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-inline: 0 !important;
    height: auto !important;
    align-items: center !important;
  }
}

/* ── 16. Mobile Language Selector ────────────────────────── */
.moc-mobile-lang {
  display: none;
}

@media screen and (max-width: 749px) {
  #header-component .header__columns:has(.moc-mobile-lang) {
    grid-template-columns: 44px 44px 1fr auto 44px 44px;
    grid-template-areas: 'leftA leftB center lang rightA rightB';
  }
  .moc-mobile-lang {
    grid-area: lang;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: var(--layer-raised, 300);
    padding-inline: 2px;
  }
}

#header-component[data-menu-style='drawer'] .header__columns:has(.moc-mobile-lang) {
  grid-template-columns: 44px 44px 1fr auto 44px 44px;
  grid-template-areas: 'leftA leftB center lang rightA rightB';
}
#header-component[data-menu-style='drawer'] .moc-mobile-lang {
  grid-area: lang;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: var(--layer-raised, 300);
  padding-inline: 2px;
}

.moc-mobile-lang__btn {
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 2px !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.09em !important;
  color: var(--moc-h-walnut-soft) !important;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.22s ease !important;
  line-height: 1;
}
.moc-mobile-lang__btn:hover,
.moc-mobile-lang__btn:focus-visible {
  color: var(--moc-h-walnut) !important;
  background: transparent !important;
  outline: none;
}
.moc-mobile-lang__btn:focus-visible {
  outline: 2px solid var(--moc-h-clay) !important;
  outline-offset: 2px;
}
.moc-mobile-lang__btn .svg-wrapper.icon-caret {
  width: 8px !important;
  height: 8px !important;
  flex-shrink: 0;
  opacity: 0.45 !important;
  transition: transform 0.2s ease;
}
.moc-mobile-lang__btn[aria-expanded='true'] .svg-wrapper.icon-caret {
  transform: rotate(180deg);
}
.moc-mobile-lang .icon-flag {
  width: 15px;
  height: 15px;
  clip-path: circle(50%); /* stylelint-disable-line */
  background-position: center;
  background-size: cover;
  flex-shrink: 0;
}

@media screen and (max-width: 749px) {
  dropdown-localization-component.moc-mobile-lang {
    position: static;
  }
  .moc-mobile-lang .localization-wrapper {
    position: fixed !important;
    top: var(--header-height, 70px) !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    min-width: 160px !important;
    max-width: 220px !important;
    width: auto !important;
    background-color: var(--moc-h-bone) !important;
    border: 1px solid rgba(47, 35, 24, 0.13) !important;
    border-radius: 14px !important;
    box-shadow:
      0 8px 28px rgba(47, 35, 24, 0.13),
      0 2px 8px rgba(47, 35, 24, 0.06) !important;
    padding: 5px !important;
    overflow: hidden !important;
    z-index: 9999 !important;
  }
  .moc-mobile-lang .localization-form__list-item {
    margin-block-end: 0 !important;
    margin-inline: 0 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
    color: var(--moc-h-walnut) !important;
    transition: background-color 160ms ease !important;
  }
  .moc-mobile-lang .localization-form__list-item .country {
    color: var(--moc-h-walnut) !important;
    flex: 1;
  }
  .moc-mobile-lang .localization-form__list-item:hover {
    background-color: rgba(47, 35, 24, 0.07) !important;
  }
  .moc-mobile-lang .localization-form__list-item[aria-current='true'] {
    background-color: rgba(47, 35, 24, 0.06) !important;
  }
  .moc-mobile-lang .localization-form__list-item[aria-current='true'] .country {
    font-weight: 500 !important;
  }
  .moc-mobile-lang .svg-wrapper.icon-checkmark {
    width: 12px !important;
    height: 12px !important;
    color: var(--moc-h-clay) !important;
    opacity: 0.85;
  }
}

/* Language-only <select> path on mobile */
.moc-mobile-lang .language-selector,
.moc-mobile-lang .language-selector--collapse-space {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  width: auto !important;
  gap: 2px !important;
  justify-content: flex-start !important;
  min-height: unset !important;
}
.moc-mobile-lang .localization-form__select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 16px 0 0 !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.09em !important;
  color: var(--moc-h-walnut-soft) !important;
  cursor: pointer;
  max-width: 80px !important;
  transition: color 0.22s ease !important;
  line-height: 1;
}
.moc-mobile-lang .localization-form__select:hover {
  color: var(--moc-h-walnut) !important;
  background: transparent !important;
}
.moc-mobile-lang .localization-form__select option {
  background-color: var(--moc-h-bone);
  color: var(--moc-h-walnut);
}
.moc-mobile-lang .language-selector .svg-wrapper.icon-caret {
  width: 8px !important;
  height: 8px !important;
  right: 0 !important;
  opacity: 0.45 !important;
}
.moc-mobile-lang localization-form-component {
  display: flex;
  align-items: center;
}

/* Hide drawer footer lang on mobile (now shown in header bar) */
@media screen and (max-width: 749px) {
  .moc-drawer-footer .menu-drawer__localization {
    display: none;
  }
}

/* ── 17. Breadcrumb Strip ─────────────────────────────────── */
.moc-breadcrumb {
  background-color: var(--moc-h-bone);
  border-bottom: 1px solid rgba(47, 35, 24, 0.06);
  width: 100%;
  position: relative;
  z-index: 1;
  animation: moc-bc-fadein 0.3s ease both;
}
@keyframes moc-bc-fadein {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.moc-breadcrumb__inner {
  max-width: var(--page-width, 1440px);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
  padding-block: 9px 8px;
}
.moc-breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1;
}
.moc-breadcrumb__item {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 0;
}
.moc-breadcrumb__item:last-child {
  flex-shrink: 1;
  overflow: hidden;
}
.moc-breadcrumb__sep {
  font-family: 'Manrope', sans-serif;
  font-size: 9px;
  color: rgba(47, 35, 24, 0.28);
  margin-inline: 8px;
  user-select: none;
  flex-shrink: 0;
}
.moc-breadcrumb__link {
  font-family: 'Manrope', sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--moc-h-walnut-soft);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
  position: relative;
  padding-bottom: 1px;
}
.moc-breadcrumb__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--moc-h-clay);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.moc-breadcrumb__link:hover { color: var(--moc-h-clay); }
.moc-breadcrumb__link:hover::after { width: 100%; }
.moc-breadcrumb__current {
  font-family: 'Manrope', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--moc-h-walnut);
  opacity: 0.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
@media screen and (max-width: 749px) {
  .moc-breadcrumb__inner { padding-inline: 16px; padding-block: 7px 6px; }
  .moc-breadcrumb__link,
  .moc-breadcrumb__current { font-size: 9.5px; }
  .moc-breadcrumb__current { max-width: 140px; }
  .moc-breadcrumb__sep { margin-inline: 5px; }
}

/* ── 18. Scroll-padding guard for sticky header ───────────── */
html {
  scroll-padding-top: calc(var(--header-group-height, 70px) + 36px);
}
.product-form,
.product__media-wrapper,
[id^="ProductInfo-"],
[id^="ProductSubmitButton-"],
[id^="MainContent"] {
  scroll-margin-top: calc(var(--header-group-height, 70px) + 36px);
}

/* ── 19. Subtle grain texture overlay (tactile depth) ────── */
#header-component::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  background-repeat: repeat;
}

/* v5.37: cầu hover cho nút "Thêm" (overflow). Rule ẩn ::after ở trên từng
   xoá luôn cầu của nút "Thêm" → khe ~10px giữa nút và bảng dropdown, rê chuột
   xuống là menu đóng. Cầu trong suốt này phủ khe đó. */
header-menu .menu-list__list-item[slot='more'],
.header-menu .menu-list__list-item[slot='more'] {
  position: relative;
}
header-menu .menu-list__list-item[slot='more']::after,
.header-menu .menu-list__list-item[slot='more']::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  left: -12px !important;
  right: -12px !important;
  top: 100% !important;
  height: 26px !important;
  margin: 0 !important;
  background: transparent;
}
