/* Flowersstore — desktop nav + mobile drawer */

/* ── Desktop menu list ── */
.flr-menu-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.flr-menu-item {
  position: relative;
}

.flr-menu-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;
  cursor: pointer;
  position: relative;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.flr-menu-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-menu-link:hover::after { transform: scaleX(1); }

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

/* ── Dropdown submenu ── */
.flr-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  background: var(--theme-dropdown-bg);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-lg);
  padding: 0.375rem;
  list-style: none;
  margin: 0;
  z-index: 100;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
}

.flr-menu-item:hover > .flr-submenu,
.flr-menu-item:focus-within > .flr-submenu {
  display: block;
}

.flr-submenu-item { list-style: none; }

.flr-submenu-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--theme-radius);
  font-family: var(--theme-font-family);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--theme-dropdown-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.flr-submenu-link:hover {
  color: var(--theme-dropdown-hover);
  background: color-mix(in srgb, var(--theme-primary) 8%, transparent);
}

/* ── Mobile full-screen overlay ── */
.flr-menu-mobile {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex !important; /* override [hidden] so CSS transition works */
  flex-direction: column;
  justify-content: center;
  background: var(--theme-bg, #fbf6ee);
  padding: clamp(20px, 5vw, 64px);
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.5s var(--ease, cubic-bezier(0.22, 0.61, 0.36, 1)),
              visibility 0.5s;
}

.flr-menu-mobile:not([hidden]) {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.flr-menu-mobile-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: var(--theme-container, 1240px);
  margin-inline: auto;
  padding-top: 3rem;
}

.flr-menu-mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  color: var(--theme-text-muted, #726a62);
  cursor: pointer;
  transition: color 0.15s;
}

.flr-menu-mobile-close svg { width: 24px; height: 24px; }
.flr-menu-mobile-close:hover { color: var(--theme-text, #2a2320); }

.flr-menu-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.flr-menu-mobile-list .t1-menu-mobile-item { list-style: none; width: 100%; }

.flr-menu-mobile-list .t1-menu-link {
  display: block;
  font-family: var(--theme-font-display);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--theme-text, #2a2320);
  text-decoration: none;
  letter-spacing: -0.01em;
  padding: 9px 0;
  transition: color 0.2s;
  line-height: 1.1;
}

.flr-menu-mobile-list .t1-menu-link:hover {
  color: var(--theme-primary);
}

/* ── Static secondary links (About / Contact) — identical to dynamic items ── */
.flr-menu-mobile-static {
  margin-top: 0;
}

/* ── Mobile footer (basket pill + account link) ── */
.flr-menu-mobile-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--theme-border, rgba(74, 58, 48, 0.14));
  width: 100%;
}

/* Basket pill — full width, primary filled */
.flr-menu-mobile-basket {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0 20px;
  height: 46px;
  background: var(--theme-primary);
  border: none;
  border-radius: 999px;
  font-family: var(--theme-font-family);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.flr-menu-mobile-basket:hover {
  background: var(--theme-espresso, #4a3a30);
}

.flr-menu-mobile-account-link {
  font-family: var(--theme-font-family);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--theme-text-muted, #726a62);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.flr-menu-mobile-account-link:hover { color: var(--theme-text, #2a2320); }

/* ── Overlay (behind dropdown submenus) ── */
.flr-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--theme-overlay);
}

.flr-menu-overlay[hidden] { display: none; }
