/* Flowersstore header */

/* ── Page stripe (above nav, scrolls away) ── */
.flr-page-stripe {
  height: var(--theme-stripe-height, 50px);
  background: linear-gradient(90deg, var(--theme-mocha-deep), var(--theme-coffee));
  color: var(--theme-surface, #fff9f2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.flr-page-stripe-text {
  font-family: var(--theme-font-family);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-align: center;
  padding-inline: 1rem;
}

.flr-page-stripe-text a,
.flr-page-stripe-text .flr-stripe-link {
  color: inherit;
  /* text-decoration: underline;
  text-underline-offset: 2px; */
  opacity: 0.85;
  transition: opacity 0.15s;
  letter-spacing: 0.08em !important;
  font-weight: 500 !important;
}

.flr-page-stripe-text a:hover,
.flr-page-stripe-text .flr-stripe-link:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Announcement bar ── */
.flr-announcement {
  background: var(--theme-primary-hover);
  color: var(--theme-announcement-text);
  font-family: var(--theme-font-family);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
  max-height: 80px;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

#navbar.store-header--scrolled .flr-announcement,
#navbar.scrolled .flr-announcement {
  max-height: 0;
  padding: 0;
}

.flr-announcement-inner {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation-name: flr-marquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.flr-announcement-inner > div {
  display: inline;
  padding: 0 2.5em;
}

.flr-announcement-inner > div:not(:last-child)::after {
  content: '\00a0·\00a0';
}

@keyframes flr-marquee {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ── Shell ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  font-family: var(--theme-font-family);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0) 100%);
  box-shadow: none;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.header--sticky { position: fixed; }

#navbar.store-header--scrolled,
#navbar.scrolled {
  background: color-mix(in srgb, var(--theme-bg) 95%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 var(--theme-border);
}

/* ── 3-column nav container ── */
.flr-nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  min-height: var(--theme-header-height, 76px);
  gap: 1.25rem;
  transition: min-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Explicit column placement so logo stays centered even when left col is hidden */
.flr-nav-left  { grid-column: 1; }
.flr-nav-logo  { grid-column: 2; }
.flr-nav-right { grid-column: 3; }

#navbar.store-header--scrolled .flr-nav-container,
#navbar.scrolled .flr-nav-container {
  min-height: 72px;
}

/* ── Left nav (primary menu slot) ── */
.flr-nav-left {
  display: none;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

@media (min-width: 993px) {
  .flr-nav-left { display: flex; }
}

/* ── Logo (center col) ── */
.flr-nav-logo {
  display: block;
  text-align: center;
  justify-self: center;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.flr-nav-logo:hover { opacity: 0.8; }

.flr-nav-logo .logo-icon {
  width: auto;
  max-height: 48px;
  display: block;
  margin: 0 auto;
}

[data-logo-mode="text"]  .logo-icon { display: none; }
[data-logo-mode="image"] .flr-nav-store-name { display: none; }

.flr-nav-store-name {
  font-family: var(--theme-font-display);
  font-size: 1.65rem;
  font-weight: 400;
  text-transform: uppercase;
  /* letter-spacing: 0.18em; */
  color: var(--theme-header-nav-text);
  line-height: 1;
  white-space: nowrap;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.store-header--scrolled .flr-nav-store-name,
#navbar.scrolled .flr-nav-store-name {
  color: var(--theme-header-scrolled-text);
}

/* ── Right col (secondary nav + icons + hamburger) ── */
.flr-nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.1rem;
  min-width: 0;
}

/* ── Secondary nav links (About, Contact) ── */
.flr-nav-secondary {
  display: none;
  align-items: center;
  gap: 0;
  margin-right: 0.5rem;
}

@media (min-width: 993px) {
  .flr-nav-secondary { display: flex; }
}

.flr-nav-secondary-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-family: var(--theme-font-family);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--theme-header-nav-text);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.flr-nav-secondary-link::after {
  content: '';
  position: absolute;
  left: 14px;
  bottom: 7px;
  right: 14px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.flr-nav-secondary-link:hover::after { transform: scaleX(1); }

#navbar.store-header--scrolled .flr-nav-secondary-link,
#navbar.scrolled .flr-nav-secondary-link {
  color: var(--theme-header-scrolled-text);
}

/* ── Account text link ── */
.flr-nav-account {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-family: var(--theme-font-family);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--theme-header-nav-text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.flr-nav-account::after {
  content: '';
  position: absolute;
  left: 14px;
  bottom: 7px;
  right: 14px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.flr-nav-account:hover::after { transform: scaleX(1); }

#navbar.store-header--scrolled .flr-nav-account,
#navbar.scrolled .flr-nav-account {
  color: var(--theme-header-scrolled-text);
}

/* ── Cart pill button ── */
.flr-nav-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 22px;
  height: 42px;
  border: 1.5px solid var(--theme-header-nav-text);
  border-radius: 999px;
  font-family: var(--theme-font-family);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--theme-header-nav-text);
  background: transparent;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.flr-nav-cart:hover {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #fff;
}

.flr-nav-cart-badge {
  font-family: var(--theme-font-family);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: currentColor;
}

/* Scrolled: switch to coffee tone */
#navbar.store-header--scrolled .flr-nav-cart,
#navbar.scrolled .flr-nav-cart {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

#navbar.store-header--scrolled .flr-nav-cart:hover,
#navbar.scrolled .flr-nav-cart:hover {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #fff;
}

/* ── Hamburger (inside right col, mobile only) ── */
.flr-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--theme-header-nav-text);
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  margin-left: 4px;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.flr-hamburger:hover { color: var(--theme-primary); }

@media (max-width: 992px) {
  .flr-hamburger { display: flex; }
}

.flr-hamburger svg { width: 1.5rem; height: 1.5rem; }
.flr-hamburger #iconClose { display: none; }
.flr-hamburger.is-open #iconMenu  { display: none; }
.flr-hamburger.is-open #iconClose { display: inline !important; }

#navbar.store-header--scrolled .flr-hamburger,
#navbar.scrolled .flr-hamburger {
  color: var(--theme-header-scrolled-text);
}

#navbar.store-header--scrolled .flr-hamburger:hover,
#navbar.scrolled .flr-hamburger:hover {
  color: var(--theme-primary);
}

/* ── Mobile menu drawer slot ── */
.t1-mobile-menu {
  /* populated by header-menu renderer */
}

/* ── Responsive heights + mobile layout ── */
@media (max-width: 992px) {
  .flr-nav-container {
    min-height: 76px;
    /* Logo left on mobile: collapse left col, logo takes first slot */
    grid-template-columns: auto 1fr;
  }

  .flr-nav-logo {
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }

  .flr-nav-right {
    grid-column: 2;
  }

  /* Hide desktop account + cart on mobile — both live in the mobile menu */
  .flr-nav-account { display: none !important; }
  .flr-nav-cart { display: none !important; }
}

@media (max-width: 576px) {
  .flr-nav-container { min-height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .flr-announcement-inner { animation: none; }
  #navbar,
  .flr-nav-container,
  .flr-nav-secondary-link,
  .flr-nav-icon-btn,
  .flr-nav-cart,
  .flr-nav-store-name,
  .flr-hamburger { transition: none; }
}
