/* Design tokens (Blumen homepage design)
--------------------------------------------- */
:root {
  --bl-navy: #16283F;
  --bl-navy-deep: #0F1D2E;
  --bl-navy-ink: #0B1420;
  --bl-cream: #FBF9F6;
  --bl-line: #EDE6DE;
  --bl-panel: #F4EFE9;
  --bl-panel-hover: #EDE5DC;
  --bl-pill: #F1EDE7;
  --bl-pill-hover: #E9E3DA;
  --bl-sand: #E7DED4;
  --bl-sand-light: #EFE7DD;
  --bl-accent: #A9857C;
  --bl-rose: #E4CFC9;
  --bl-brown: #75544A;
  --bl-text-soft: rgba(22, 40, 63, 0.72);
  --bl-text-muted: rgba(22, 40, 63, 0.6);
  --bl-text-faint: rgba(22, 40, 63, 0.5);
  --bl-serif: 'Source Serif 4', 'Minion Pro', Minion, Georgia, 'Times New Roman', serif;
  /* New design: Jost for text and buttons, Cormorant Garamond for the wordmark. */
  --bl-sans: 'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --bl-display: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  /* Header wordmark: Lucida Bright is a system face (Windows/Office, macOS); the
     stack falls back to similar serifs where it is missing. */
  --bl-wordmark: 'Lucida Bright', 'Lucida Fax', 'Lucida Serif', 'Cormorant Garamond', Georgia, serif;
  /* Site-wide text font: Jost. Every stylesheet reads --bl-font. */
  --bl-font: var(--bl-sans);
  --bl-radius-sm: 18px;
  --bl-radius-lg: 26px;
  --bl-shadow-panel: 0 18px 40px rgba(22, 40, 63, 0.16);
  --bl-wrap: 1360px;
  --bl-gutter: 28px;
}

/* Arabic pages: the same face blumenflowars.com shows for Arabic, which is
   each device's own system font (Segoe UI on Windows, SF on Apple devices,
   Roboto/Noto on Android). It is used for everything on Arabic pages, header
   and footer included; only the BLUMEN wordmark keeps its own face. The
   language pill uses the same stack on every page (--bl-arabic). */
:root {
  --bl-arabic: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Arabic', sans-serif;
}
html[dir="rtl"] {
  --bl-font: var(--bl-arabic);
  --bl-sans: var(--bl-arabic);
}

/* Never allow the page itself to scroll sideways (off-canvas panels, RTL overflow).
   `clip` does not turn body into a scroll container, so sticky headers and
   window scroll events keep working; `hidden` is the fallback on old browsers. */
html {
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  overflow-x: clip;
}

.bluthe_wrap {
  width: 100%;
  max-width: calc(var(--bl-wrap) + var(--bl-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--bl-gutter);
  box-sizing: border-box;
}

@media (max-width: 767px) {
  :root {
    --bl-gutter: 18px;
  }
}

.bluthe_site-header,
.bluthe_site-header button,
.bluthe_site-header input,
.bluthe_announcement,
.mobile-nav {
  font-family: var(--bl-font);
}

/* Announcement bar
--------------------------------------------- */
.bluthe_announcement {
  background: var(--bl-navy);
  color: var(--bl-cream);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 300;
  text-align: center;
}
.bluthe_announcement .bluthe_wrap {
  padding-block: 11px;
}
.bluthe_announcement a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Header base
--------------------------------------------- */
.bluthe_site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(251, 249, 246, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bl-line);
  color: var(--bl-navy);
}
.bluthe_site-header a {
  color: var(--bl-navy);
  text-decoration: none;
}
.bluthe_site-header a:hover {
  color: var(--bl-accent);
}

header .bluthe_header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  transition: padding 0.2s ease;
}
body.is-scrolled header .bluthe_header-inner {
  padding: 12px 0;
}

/* Left: pills */
header .blthe_left_container {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.bluthe_header_pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
/* Glass pills: "DELIVER TO Jeddah" and the language switch (new design). */
.bluthe_pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.34) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 18px rgba(22, 40, 63, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--bl-display);
  font-size: 17px;
  letter-spacing: 0.05em;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--bl-navy);
  transition: background 0.18s ease;
}
a.bluthe_pill:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 100%);
  color: var(--bl-navy);
}
.bluthe_pill__muted {
  font-family: var(--bl-font);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(22, 40, 63, 0.58);
}
.bluthe_pill__chevron {
  flex: 0 0 auto;
  color: rgba(22, 40, 63, 0.45);
}
/* The language pill takes the face of the language it names: the Arabic face
   for "العربية" on English pages, Jost for "English" on Arabic pages. */
.bluthe_lang_pill[lang="ar"] {
  font-family: var(--bl-arabic);
  font-size: 15px;
  letter-spacing: 0;
}
.bluthe_lang_pill[lang="en"] {
  font-family: 'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* Center: brand */
.bluthe_site-branding {
  display: flex;
  justify-content: center;
}
/* Wordmark and emblem share one cell and cross-fade (body.is-scrolled, header.js). */
.bluthe_brand_link {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 42px;
}
.bluthe_brand_link > * {
  grid-area: 1 / 1;
  transition: opacity 0.32s ease, transform 0.32s ease, visibility 0s linear 0.32s;
}
.bluthe_wordmark {
  font-family: var(--bl-wordmark);
  font-weight: 400;
  font-size: 30px;
  text-indent: 0.34em;
  white-space: nowrap;
  line-height: 1;
  color: var(--bl-navy);
}
.bluthe_wordmark--logo {
  letter-spacing: 0;
  text-indent: 0;
}
.bluthe_wordmark--logo .custom-logo-link {
  display: block;
  line-height: 0;
}
.bluthe_site-branding img.custom-logo {
  max-height: 60px;
  width: auto;
  height: auto;
}
.bluthe_emblem {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.9);
  visibility: hidden;
}
body.is-scrolled .bluthe_wordmark {
  opacity: 0;
  transform: scale(0.94);
  visibility: hidden;
  pointer-events: none;
}
body.is-scrolled .bluthe_emblem {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}

/* Right: actions */
header .blthe_right_container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bl-navy);
}
.bluthe_header_action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--bl-navy);
  white-space: nowrap;
}
.bluthe_header_action:hover,
.bluthe_header_action:focus-visible {
  color: var(--bl-accent);
}
.bluthe_header_action__icon {
  display: none;
  flex: 0 0 auto;
}
.bluthe_bag_count {
  letter-spacing: 0.04em;
}
.open-mini-cart {
  position: relative;
}
.badge {
  font: inherit;
}

/* Account dropdown */
.bluethe_submenu_div {
  position: relative;
  cursor: pointer;
}
.bluethe_submenu_div ul {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-end: 0;
  z-index: 1000;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: var(--bl-cream);
  border: 1px solid var(--bl-line);
  box-shadow: 0 24px 48px -28px rgba(22, 40, 63, 0.35);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
}
.bluethe_submenu_div ul li {
  margin: 0;
  padding: 0;
}
.bluethe_submenu_div ul li a {
  display: block;
  padding: 10px 18px;
  font-weight: 300;
}
.bluethe_submenu_div ul li a:hover {
  background: var(--bl-panel);
  color: var(--bl-navy);
}

/* Primary navigation
--------------------------------------------- */
.main-navigation {
  display: block;
  width: 100%;
  position: static;
  border-top: 1px solid var(--bl-line);
}
.main-navigation > ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(16px, 2.6vw, 42px);
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 400;
}
.main-navigation > ul > li {
  position: static;
  margin: 0;
  padding: 0;
}
header .main-navigation > ul > li > a {
  display: block;
  padding: 14px 0;
  color: var(--bl-navy);
  border-bottom: 1px solid transparent;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
header .main-navigation > ul > li:hover > a,
header .main-navigation > ul > li:focus-within > a {
  border-bottom-color: var(--bl-navy);
}
header .main-navigation > ul > li > a:hover {
  color: var(--bl-accent);
}
header .main-navigation > ul > li.current-menu-item > a,
header .main-navigation > ul > li.current-menu-ancestor > a {
  border-bottom-color: var(--bl-navy);
}

/* Mega panel */
.bluthe_mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--bl-cream);
  border-top: 1px solid var(--bl-line);
  box-shadow: 0 24px 48px -28px rgba(22, 40, 63, 0.35);
}
.main-navigation > ul > li:hover > .bluthe_mega,
.main-navigation > ul > li:focus-within > .bluthe_mega,
.main-navigation > ul > li.is-open > .bluthe_mega {
  display: block;
}
/* Neutralise the base-theme dropdown rules inside the panel. */
.main-navigation .bluthe_mega ul,
.main-navigation .bluthe_mega ul ul,
.main-navigation .bluthe_mega li:hover > ul,
.main-navigation .bluthe_mega li.focus > ul {
  position: static;
  left: auto;
  top: auto;
  float: none;
  box-shadow: none;
  display: flex;
  margin: 0;
}
.main-navigation .bluthe_mega ul a {
  width: auto;
}
.main-navigation .bluthe_mega li {
  position: static;
}
.bluthe_mega__inner {
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  align-items: flex-start;
  padding-block: clamp(26px, 3.5vw, 44px) clamp(28px, 3.5vw, 48px);
}
.bluthe_mega__label {
  flex: 0 0 clamp(140px, 18%, 210px);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bl-navy);
}
.bluthe_mega__groups {
  flex: 1 1 auto;
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.bluthe_mega__groups > li {
  flex: 1 1 0;
  min-width: 130px;
  margin: 0;
  padding: 0;
}
.bluthe_mega__groups > li > a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--bl-navy);
  margin-bottom: 16px;
  pointer-events: none;
}
.bluthe_mega__groups > li.menu-item-has-children > a {
  pointer-events: none;
}
.bluthe_mega__groups > li:not(.menu-item-has-children) > a {
  pointer-events: auto;
  font-weight: 300;
  font-size: 14.5px;
  margin-bottom: 0;
}
.bluthe_mega__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bluthe_mega__links li {
  margin: 0;
  padding: 0;
}
.bluthe_mega__links a {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--bl-navy);
}
.bluthe_mega__links a:hover {
  color: var(--bl-accent);
}

/* Mobile toggle (hidden on desktop) */
.bluthe_mobile_menu_toggle {
  display: none;
  background: none;
  border: 0;
  padding: 6px;
  margin: 0;
  color: var(--bl-navy);
  cursor: pointer;
  line-height: 0;
}
.menu-toggle,
.bluthe_mobile-burger,
.bluthe_menu-toggle,
.bluthe_search-icon-mobile {
  display: none;
}

/* Mobile navigation drawer
--------------------------------------------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 40, 63, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  z-index: 1000;
}
.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
/* Drawer slides in from the same side as the hamburger: left in LTR, right in RTL.
   It moves with a transform (composited on the GPU) rather than by animating
   its position, which phones render as a stutter. */
.mobile-nav {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 86%;
  max-width: 400px;
  height: 100%;
  background: var(--bl-cream);
  color: var(--bl-navy);
  box-shadow: 0 0 30px rgba(22, 40, 63, 0.25);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 0.34s;
  will-change: transform;
  z-index: 1001;
  padding: 22px 24px 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
html[dir="rtl"] .mobile-nav:not(.active) {
  transform: translateX(100%);
}
.mobile-nav.active {
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}
.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.mobile-nav__brand {
  font-family: var(--bl-wordmark);
  font-weight: 400;
  font-size: 20px;
  text-indent: 0.34em;
}
.mobile-nav .bluthe_close_button {
  background: var(--bl-pill);
  color: var(--bl-navy);
}
.mobile-nav__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bl-line);
  margin-bottom: 6px;
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav > ul > li {
  border-bottom: 1px solid var(--bl-line);
}
.mobile-nav ul li a {
  display: block;
  padding: 14px 0;
  color: var(--bl-navy);
  font-size: 17px;
}
.mobile-nav ul li.menu-item-has-children > a {
  text-decoration: none;
}
/* Top-level items with a sub-menu: the whole row is a toggle (header.js
   adds the chevron and drops the list down); the link does not navigate. */
.mobile-nav > ul > li.menu-item-has-children {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.mobile-nav > ul > li.menu-item-has-children > a {
  flex: 1 1 auto;
}
.mobile-nav > ul > li.mobile-nav__parent > a {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav > ul > li.mobile-nav__parent.is-open > a {
  font-weight: 500;
}
.mobile-nav__toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  color: var(--bl-navy);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav__toggle svg {
  transition: transform 0.22s ease;
}
.mobile-nav > ul > li.is-open > .mobile-nav__toggle svg {
  transform: rotate(180deg);
}
/* Dropdown panel (header.js wraps the sub-menu and animates it with
   clip-path/transform only, never height). */
.mobile-nav__panel {
  flex-basis: 100%;
  height: 0;
  overflow: hidden;
  will-change: clip-path, opacity;
}
.mobile-nav > ul > li,
.mobile-nav__account {
  will-change: transform;
}
.mobile-nav ul ul {
  padding-inline-start: 16px;
  padding-bottom: 10px;
}
.mobile-nav ul ul li a {
  padding: 8px 0;
  font-size: 15px;
  font-weight: 300;
}
.mobile-nav ul ul ul li a {
  font-size: 14px;
  color: var(--bl-text-soft);
}
.mobile-nav ul ul > li.menu-item-has-children > a {
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: var(--bl-text-muted);
}
.mobile-nav__account {
  margin-top: 22px;
}
.mobile-nav__account a {
  display: inline-block;
  background: var(--bl-navy);
  color: var(--bl-cream);
  padding: 13px 26px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Misc leftovers used elsewhere */
.remove_from_cart_button {
  height: 20px;
  width: 20px;
  font-size: 12px;
}

/* Tablet
--------------------------------------------- */
@media (max-width: 1100px) {
  .bluthe_pill {
    font-size: 15px;
    padding: 8px 14px;
  }
  .bluthe_wordmark {
    font-size: 26px;
    font-weight: 400;
  }
  header .blthe_right_container {
    gap: 16px;
    font-size: 11.5px;
  }
  .main-navigation > ul {
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .bluthe_delivery_pill .bluthe_pill__muted {
    display: none;
  }
}

/* Mobile
--------------------------------------------- */
@media (max-width: 767px) {
  header .bluthe_header-inner {
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    padding: 12px 0;
  }
  body.is-scrolled header .bluthe_header-inner {
    padding: 10px 0;
  }
  .bluthe_mobile_menu_toggle {
    display: inline-flex;
  }
  .bluthe_header_pills {
    display: none;
  }
  .bluthe_wordmark {
    font-size: 20px;
    text-indent: 0.3em;
    font-weight: 400;
  }
  .bluthe_site-branding img.custom-logo {
    max-height: 40px;
    max-width: 130px;
  }
  .bluthe_emblem {
    width: 34px;
    height: 34px;
  }
  header .blthe_right_container {
    gap: 14px;
  }
  .bluthe_header_action__icon {
    display: block;
  }
  .bluthe_header_action__label {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    overflow: hidden;
  }
  .bluthe_bag_count {
    font-size: 12px;
  }
  #site-navigation {
    display: none;
  }
  .bluethe_submenu_div ul {
    inset-inline-end: 0;
    min-width: 200px;
  }
}

/* Page load in progress (header.js): a progress cursor and a thin bar at the
   top of the viewport, from the first click until the next page takes over. */
body.is-navigating,
body.is-navigating a {
  cursor: progress;
}
body.is-navigating::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  height: 2px;
  width: 100%;
  background: var(--bl-navy);
  transform-origin: 0 50%;
  animation: bl-navigating 6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  pointer-events: none;
}
@keyframes bl-navigating {
  from { transform: scaleX(0); }
  to { transform: scaleX(0.92); }
}
@media (prefers-reduced-motion: reduce) {
  body.is-navigating::after {
    animation: none;
    transform: scaleX(0.5);
  }
}
