/* Compact, complete category directory in the desktop header. */
@media (min-width: 801px) {
  .marys-desktop-header-shell .marys-mega-tabs { row-gap: 0; }
  .marys-desktop-header-shell .marys-mega-tab,
  .marys-desktop-header-shell .marys-mega-tab:visited { color: #f2f1e9; }
  .marys-desktop-header-shell .marys-mega-tab:hover,
  .marys-desktop-header-shell .marys-mega-item[open] > .marys-mega-tab { color: #fff; }
  .marys-desktop-header-shell .marys-all-departments > .marys-mega-tab { font-weight: 700; }
  .marys-desktop-header-shell .marys-directory-panel { display: flex; flex-direction: column; box-sizing: border-box; height: min(620px, var(--marys-mega-available-height, calc(100vh - 150px))); max-height: var(--marys-mega-available-height, calc(100vh - 150px)); min-height: min(320px, var(--marys-mega-available-height, calc(100vh - 150px))); padding: 24px 28px 28px; overflow: hidden; color: var(--marys-brand-ink, #252622); }
  .marys-directory-heading { flex: none; }
  .marys-desktop-header-shell .marys-directory-layout { flex: 1 1 auto; min-height: 0; align-items: stretch; }
  .marys-desktop-header-shell .marys-directory-rail,
  .marys-desktop-header-shell .marys-directory-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
  .marys-desktop-header-shell .marys-directory-rail { padding-bottom: 14px; scrollbar-color: #b8b2a4 transparent; scrollbar-width: thin; }
  .marys-desktop-header-shell .marys-directory-content { padding: 2px 12px 18px 0; scrollbar-color: #b8b2a4 transparent; scrollbar-width: thin; }
  .marys-directory-rail::-webkit-scrollbar,
  .marys-directory-content::-webkit-scrollbar { width: 8px; }
  .marys-directory-rail::-webkit-scrollbar-thumb,
  .marys-directory-content::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 10px; background: #b8b2a4; background-clip: padding-box; }
  .marys-directory-view > h3 { position: sticky; top: -2px; z-index: 2; background: #f6f5f2; }
}
.marys-directory-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--marys-brand-line, #deddd6); }
.marys-directory-eyebrow { display: block; margin-bottom: 5px; color: #76651e; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.marys-directory-heading h2 { margin: 0; color: var(--marys-brand-ink, #252622); font-size: clamp(20px, 2vw, 26px); line-height: 1.2; letter-spacing: -.025em; }
.marys-directory-actions { display: flex; align-items: center; gap: 20px; }
.marys-directory-actions > a { display: inline-flex; align-items: center; gap: 7px; color: var(--marys-brand-ink, #252622); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.marys-directory-actions > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.marys-directory-actions .marys-icon { width: 15px; height: 15px; }
.marys-directory-layout { display: grid; grid-template-columns: minmax(190px, 240px) minmax(0, 1fr); gap: 28px; align-items: start; }
.marys-directory-rail { display: grid; grid-auto-rows: max-content; align-content: start; gap: 3px; padding-right: 18px; border-right: 1px solid var(--marys-brand-line, #deddd6); }
.marys-directory-tab { display: block; min-height: 44px; padding: 11px 13px; box-sizing: border-box; border-left: 3px solid transparent; border-radius: 0 7px 7px 0; background: transparent; color: var(--marys-brand-ink, #252622); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.4; text-align: left; text-decoration: none; cursor: pointer; }
.marys-directory-tab:hover { background: #f1eee4; }
.marys-directory-tab[aria-expanded="true"] { border-left-color: var(--marys-brand-accent, #e7bf24); background: #f2ecd2; font-weight: 750; }
.marys-desktop-header-shell .marys-mega-tab.marys-sale-category-link,
.marys-desktop-header-shell .marys-mega-tab.marys-sale-category-link:visited,
.marys-directory-panel .marys-sale-category-link,
.marys-directory-panel .marys-sale-category-link:visited { color: #b4232f; font-weight: 800; }
.marys-directory-tab.marys-sale-category-link { background: #fff0f1; }
.marys-directory-tab.marys-sale-category-link:hover,
.marys-directory-tab.marys-sale-category-link[aria-expanded="true"] { background: #fbe4e6; }
.marys-desktop-header-shell .marys-mega-tab.marys-sale-spotlight,
.marys-desktop-header-shell .marys-mega-tab.marys-sale-spotlight:visited { align-self: center; min-height: 34px; margin: 6px 2px; padding: 7px 14px; border: 1px solid #d7444f; border-radius: 999px; background: #b4232f; color: #fff; font-weight: 850; letter-spacing: .08em; box-shadow: 0 0 0 3px #b4232f24; }
.marys-desktop-header-shell .marys-mega-tab.marys-sale-spotlight:hover { border-color: #8f1721; background: #8f1721; color: #fff; box-shadow: 0 0 0 4px #d7444f30; }
.marys-sale-spotlight > span { color: #ffd65a; font-size: 10px; }
.marys-directory-content { min-width: 0; min-height: 320px; }
.marys-directory-view { min-width: 0; align-self: start; }
.marys-directory-promotion { min-width: 0; align-self: start; }
.marys-directory-promotion > a { display: block; overflow: hidden; border: 1px solid var(--marys-brand-line, #deddd6); border-radius: 12px; background: #f8f6ed; color: var(--marys-brand-ink, #252622); text-decoration: none; }
.marys-directory-promotion > a:hover { border-color: #bea12a; box-shadow: 0 8px 22px #25262212; }
.marys-directory-promotion-media { display: block; aspect-ratio: 2 / 1; overflow: hidden; background: #e9c52e; }
.marys-directory-promotion-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.marys-directory-promotion-copy { display: grid; gap: 6px; padding: 13px 14px 15px; }
.marys-directory-promotion-copy small { color: #806915; font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.marys-directory-promotion-copy strong { font-size: 17px; line-height: 1.25; letter-spacing: -.02em; }
.marys-directory-promotion-copy > span { color: #68665e; font-size: 11px; line-height: 1.45; }
.marys-directory-promotion-copy em { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 11px; font-style: normal; font-weight: 750; }
.marys-directory-promotion-copy .marys-icon { width: 14px; height: 14px; }
.marys-directory-promotion > a:focus-visible { outline: 2px solid #8c7013; outline-offset: 3px; }
.marys-directory-view[hidden] { display: none !important; }
.marys-directory-view h3 { margin: 2px 0 18px; padding-bottom: 13px; border-bottom: 1px solid var(--marys-brand-line, #deddd6); font-size: 19px; line-height: 1.3; }
.marys-directory-view h3 a { display: inline-block; padding: 4px 0; color: var(--marys-brand-ink, #252622); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.marys-directory-view h3 a:hover { color: #806915; text-decoration: underline; text-underline-offset: 3px; }
.marys-directory-groups { width: 100%; max-width: calc(var(--marys-directory-columns, 3) * 260px); columns: 190px var(--marys-directory-columns, 3); column-gap: 26px; }
/* Whole groups flow down each column; a long list cannot create gaps in its neighbours. */
.marys-directory-group { display: inline-block; box-sizing: border-box; width: 100%; min-width: 0; margin: 0 0 16px; break-inside: avoid; vertical-align: top; }
.marys-directory-group h4 { margin: 0 0 7px; font-size: 13px; line-height: 1.4; }
.marys-directory-group h4 a { display: block; padding: 5px 0; color: var(--marys-brand-ink, #252622); text-decoration: none; overflow-wrap: anywhere; }
.marys-directory-group h4:only-child { margin-bottom: 0; }
.marys-directory-group h4:only-child a { padding: 9px 0; font-weight: 600; }
.marys-directory-group h4 a:hover { color: #806915; text-decoration: underline; text-underline-offset: 3px; }
.marys-directory-children { list-style: none; margin: 7px 0 0; padding: 0; }
.marys-directory-children li { margin: 0; padding: 0; }
.marys-directory-children a { display: block; padding: 4px 0; color: #56564f; font-size: 13px; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; }
.marys-directory-children a:hover { color: var(--marys-brand-ink, #252622); text-decoration: underline; text-underline-offset: 3px; }
.marys-directory-children .marys-directory-children { margin: 2px 0 4px 8px; padding: 0 0 0 10px; border-top: 0; border-left: 1px solid var(--marys-brand-line, #deddd6); }
.marys-mega-group > .marys-directory-children { margin-top: 2px; }
.marys-mega-group > .marys-directory-children a { font-size: 12px; }
.marys-mega-group h3 img { width: 36px; height: 36px; flex: none; border-radius: 6px; object-fit: cover; }
.marys-directory-extra { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--marys-brand-line, #deddd6); }
.marys-directory-extra strong { color: #6c6a60; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.marys-directory-extra a { display: inline-flex; align-items: center; gap: 5px; color: var(--marys-brand-ink, #252622); font-size: 12px; text-decoration: none; }
.marys-directory-extra a:hover { text-decoration: underline; text-underline-offset: 3px; }
.marys-directory-extra .marys-icon { width: 13px; height: 13px; }
@media (min-width: 801px) and (max-width: 1180px) { .marys-directory-layout { grid-template-columns: minmax(175px, 210px) minmax(0, 1fr); gap: 20px; } }
@media (min-width: 1181px) { .marys-directory-content.has-promotion { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 24px; } }
@media (max-width: 1180px) { .marys-directory-promotion { display: none; } }
