.site-header { z-index: 60; top: 0; padding: 0; background: transparent; border: 0; backdrop-filter: none; }
.header-main.container { position: relative; display: flex; align-items: center; gap: clamp(12px, 1.4vw, 24px); width: 100%; min-height: 104px; padding: 0 clamp(20px, 2vw, 34px); background: #fff; border: 1px solid #f6e7e6; border-radius: 0; box-shadow: 0 18px 45px rgb(134 77 84 / 10%); }
.brand--header { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 12px; }
.brand-flower { width: 44px; height: 64px; color: #cc7b86; }
.brand-wordmark { display: flex; flex-direction: column; }
.brand--header .brand-name { color: #252b32; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.65rem, 2vw, 2.15rem); font-weight: 400; letter-spacing: -.045em; white-space: nowrap; }
.brand--header .brand-note { margin-top: .45rem; color: #646977; font-size: .53rem; font-weight: 700; letter-spacing: .39em; white-space: nowrap; }
.primary-nav { flex: 1 1 auto; min-width: 0; border: 0; }
.nav-list { justify-content: space-around; gap: clamp(1px, .3vw, 10px); min-height: 0; }
.nav-list > li { flex: 0 0 auto; }
.nav-list > li > a, .nav-list > li > details > summary { min-height: 48px; padding: 0 clamp(5px, .65vw, 13px); color: #222b36; font-size: clamp(.7rem, .83vw, .89rem); font-weight: 500; white-space: nowrap; }
.nav-list > li > a:hover, .nav-list > li > details > summary:hover, .nav-dropdown details[open] > summary { color: #a25869; }
.nav-dropdown--mega { position: relative; }
.nav-dropdown--mega summary { border-radius: 25px; }
.nav-dropdown--mega summary::after {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin: -3px 0 0 .65rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: '';
  opacity: .72;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 180ms ease, opacity 180ms ease;
}
.nav-dropdown--mega details[open] > summary::after { opacity: 1; transform: translateY(2px) rotate(225deg); }
.nav-dropdown--mega details[open] > summary { background: #fff0f1; }
.search-box { flex: 0 0 clamp(105px, 8vw, 145px); min-height: 50px; padding-inline: 15px; background: #fff5f5; border: 0; border-radius: 30px; }
.search-box input { min-height: 50px; font-size: .81rem; }
.search-results { left: auto; width: min(365px, calc(100vw - 30px)); }
.header-actions { flex: 0 0 auto; }
.header-actions .button { min-height: 52px; padding-inline: 18px; background: #c87580; border-radius: 30px; font-size: .78rem; }
.header-actions .button:hover { background: #ae6372; }
@media (min-width: 1321px) {
  .search-box { width: clamp(105px, 8vw, 145px); transition: width 240ms ease, box-shadow 180ms ease; }
  .header-main.is-search-open > .search-box { position: absolute; z-index: 5; left: var(--search-open-left); right: clamp(20px, 2vw, 34px); width: min(520px, calc(100% - var(--search-open-left) - clamp(20px, 2vw, 34px))); box-shadow: 0 0 0 3px #98566d; }
  .header-main.is-search-open > .primary-nav { margin-right: calc(clamp(105px, 8vw, 145px) + clamp(12px, 1.4vw, 24px)); }
  .header-main.is-search-open > .header-actions { opacity: 0; visibility: hidden; pointer-events: none; }
  .header-actions { transition: opacity 160ms ease, visibility 0s linear 160ms; }
  .header-main.is-search-open > .header-actions { transition: opacity 160ms ease; }
}
.mega-panel { position: absolute; top: calc(100% + 14px); left: var(--mega-offset-x, 0px); display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(290px, 1fr); gap: clamp(16px, 2vw, 32px); width: min(calc(100% - 190px), 1420px); min-height: 360px; padding: 24px; overflow: hidden; background: #fff; border: 1px solid #f5e7e5; border-radius: 26px; box-shadow: 0 24px 65px rgb(91 53 58 / 13%); transform: none; }
.nav-dropdown--mega details:not([open]) > .mega-panel { display: none; }
.mega-panel__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; }
.mega-column { min-width: 0; padding: 3px clamp(10px, 1.3vw, 22px); }
.mega-column + .mega-column { border-left: 1px solid #f3e4e3; }
.mega-column h2 { margin: 0 0 15px; color: #272d35; font-size: .9rem; font-weight: 700; letter-spacing: -.01em; }
.mega-column__items { display: grid; gap: 8px; }
.mega-item { display: grid; grid-template-columns: 62px minmax(0, 1fr) 13px; align-items: center; gap: 10px; min-height: 65px; padding: 0; border-radius: 12px; transition: background 180ms ease; }
.mega-item:hover, .mega-item:focus-visible { background: #fff5f5; }
.mega-item img { width: 62px; height: 62px; object-fit: cover; background: #f9e8e9; border-radius: 11px; }
.mega-item__copy { min-width: 0; }
.mega-item__copy strong, .mega-item__copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mega-item__copy strong { color: #282d34; font-size: .75rem; line-height: 1.4; }
.mega-item__copy small { margin-top: 3px; color: #7b7c84; font-size: .62rem; line-height: 1.3; }
.mega-item__arrow { color: #6d7280; font-size: 1.25rem; }
.mega-promo { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; min-height: 318px; padding: clamp(18px, 2vw, 30px); overflow: hidden; background: linear-gradient(90deg, rgb(255 247 247 / 96%), rgb(255 246 247 / 86%) 44%, rgb(255 242 243 / 4%) 100%), url('/assets/images/bloom-hero-bouquet.webp') 69% center / cover; border-radius: 20px; }
.mega-promo__eyebrow { margin-bottom: 18px; color: #a65f70; font-size: .57rem; font-weight: 700; letter-spacing: .23em; }
.mega-promo > strong { color: #313840; font-size: clamp(1.3rem, 1.65vw, 1.85rem); font-weight: 600; line-height: 1.17; }
.mega-promo__button { display: inline-flex; gap: 10px; align-items: center; min-height: 42px; margin-top: 19px; padding: 0 17px; color: #fff; background: #aa6472; border-radius: 25px; font-size: .65rem; font-weight: 600; }
.mega-promo:hover .mega-promo__button { background: #8f4d5c; }

@media (max-width: 1320px) {
  .site-header { padding-top: 0; }
  .header-main.container { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; width: 100%; min-height: 78px; padding: 12px 18px; border-radius: 0; }
  .brand--header .brand-name { font-size: 1.55rem; }
  .brand--header .brand-note { font-size: .47rem; }
  .brand-flower { width: 34px; height: 48px; }
  .header-actions { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .search-box { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .search-box input { font-size: .84rem; }
  .primary-nav { position: fixed; z-index: 70; inset: 0 0 0 auto; width: min(88vw, 410px); height: 100dvh; padding: 1rem 1.2rem 2rem; overflow-y: auto; background: #fffafa; box-shadow: -20px 0 50px rgb(0 0 0 / 15%); clip-path: inset(0 0 0 100%); opacity: 0; pointer-events: none; visibility: hidden; transition: clip-path 240ms ease, opacity 240ms ease, visibility 0s linear 240ms; }
  .primary-nav.is-open { clip-path: inset(0); opacity: 1; pointer-events: auto; visibility: visible; transition: clip-path 240ms ease, opacity 240ms ease, visibility 0s; }
  .nav-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
  .nav-close { width: 44px; height: 44px; background: #fff; border: 1px solid var(--color-line); border-radius: 14px; }
  .nav-list { display: grid; justify-content: stretch; gap: 0; }
  .nav-list > li > a, .nav-list > li > details > summary { width: 100%; min-height: 49px; padding: .6rem; border-bottom: 1px solid #f1e4e4; font-size: .86rem; }
  .nav-dropdown--mega details[open] > summary { border-radius: 12px; }
  .mega-panel { position: static; display: block; width: 100%; min-height: 0; padding: 12px 5px; border: 0; border-radius: 0; box-shadow: none; transform: none; }
  .mega-panel__links { display: block; }
  .mega-column { padding: 10px 0; }
  .mega-column + .mega-column { border: 0; border-top: 1px solid #f0e2e2; }
  .mega-column h2 { margin-bottom: 8px; font-size: .8rem; }
  .mega-column__items { gap: 3px; }
  .mega-item { grid-template-columns: 46px minmax(0, 1fr) 13px; min-height: 50px; }
  .mega-item img { width: 46px; height: 46px; }
  .mega-item__copy strong { font-size: .73rem; }
  .mega-item__copy small { font-size: .59rem; }
  .mega-promo { display: none; }
  .nav-cta { display: flex; margin-top: 1.2rem; }
  .menu-scrim { position: fixed; z-index: 55; inset: 0; background: rgb(27 22 22 / 48%); opacity: 0; visibility: hidden; transition: opacity 240ms ease, visibility 240ms ease; }
  .menu-scrim.is-visible { opacity: 1; visibility: visible; }
}

@media (prefers-reduced-motion: reduce) {
  .search-box, .header-actions, .header-actions .button, .nav-dropdown--mega summary::after { transition: none; }
}

@media (max-width: 420px) {
  .header-main.container { width: 100%; padding: 10px 12px; }
  .brand--header { gap: 5px; }
  .brand--header .brand-name { font-size: 1.32rem; }
  .brand--header .brand-note { font-size: .4rem; letter-spacing: .31em; }
  .brand-flower { width: 29px; }
}

@media (prefers-reduced-motion: reduce) { .mega-item, .primary-nav, .menu-scrim { transition: none; } }

/* Category menus show only catalog items assigned to the active category. */
.mega-panel--products { display: block; min-height: 0; padding: 24px; }
.mega-panel--count-1 { width: min(calc(100vw - 48px), 470px); }
.mega-panel--count-2 { width: min(calc(100vw - 48px), 700px); }
.mega-panel--count-3 { width: min(calc(100vw - 48px), 960px); }
.mega-panel--count-4 { width: min(calc(100vw - 48px), 1320px); }
.mega-panel__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 16px; }
.mega-panel__eyebrow { display: block; margin-bottom: 3px; color: #a65f70; font-size: .56rem; font-weight: 700; letter-spacing: .2em; }
.mega-panel__head h2 { margin: 0; color: #292f35; font-size: 1.15rem; font-weight: 650; letter-spacing: -.03em; }
.mega-panel__head > a { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; color: #9d5969; font-size: .66rem; font-weight: 650; }
.mega-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mega-panel--count-1 .mega-products { grid-template-columns: minmax(0, 1fr); }
.mega-panel--count-2 .mega-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-panel--count-3 .mega-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-product { display: grid; grid-template-columns: 76px minmax(0, 1fr) 16px; align-items: center; gap: 12px; min-width: 0; min-height: 92px; padding: 7px; color: #292f35; background: #fffafa; border: 1px solid #f2e8e6; border-radius: 14px; transition: background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.mega-product:hover, .mega-product:focus-visible { background: #fff3f3; border-color: #e9cfd1; transform: translateY(-1px); }
.mega-product img { width: 76px; height: 76px; object-fit: cover; background: #f7e8e8; border-radius: 10px; }
.mega-product__copy { display: grid; gap: 5px; min-width: 0; }
.mega-product__copy strong { overflow: hidden; color: #2c3138; font-size: .74rem; font-weight: 650; line-height: 1.35; text-overflow: ellipsis; }
.mega-product__copy small { color: #777780; font-size: .65rem; }
.mega-product__arrow { color: #a65f70; font-size: .9rem; }
.mega-products__empty { margin: 0; color: #747078; font-size: .8rem; }

@media (max-width: 1320px) {
  .mega-panel--products, .mega-panel--count-1, .mega-panel--count-2, .mega-panel--count-3, .mega-panel--count-4 { width: 100%; padding: 12px 5px; }
  .mega-panel__head { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 10px; }
  .mega-panel__head h2 { font-size: .95rem; }
  .mega-panel__head > a { font-size: .64rem; }
  .mega-products, .mega-panel--count-1 .mega-products, .mega-panel--count-2 .mega-products, .mega-panel--count-3 .mega-products { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .mega-product { grid-template-columns: 46px minmax(0, 1fr) 14px; min-height: 54px; padding: 4px; background: #fff; border-radius: 10px; }
  .mega-product img { width: 46px; height: 46px; border-radius: 8px; }
  .mega-product__copy { gap: 2px; }
  .mega-product__copy strong { font-size: .7rem; }
  .mega-product__copy small { font-size: .6rem; }
}
