/* ── Header stacking: keep dropdowns above all page content ───────────────
   The Elementor header sits at z-index:2, so page sections (relative/animated)
   painted over the open dropdown panels — they were visible but not clickable.
   Lift the header context high and the panels higher still. */
header.elementor,
.elementor-location-header,
.elementor-sticky--active {
  z-index: 9000 !important;
}

/* Hello Elementor sets `.content-area { z-index: 2 }`, which establishes a
   stacking context that traps the header dropdown panels beneath page content
   (they were visible but not clickable). Drop that context so the z-9000 header
   and its panels always paint — and stay clickable — above the content. */
.content-area,
.site-content,
main.site-main {
  z-index: auto !important;
}

/* ════════════════════════════════════════════════════════════════════════
   Allura · Account Menu (header)
   Palette is hardcoded — this loads site-wide, outside the WC token layer.
   navy #0F2145 · gold #B89A5E · gold-deep #9a8048 · ink #262626
   line #E7E1D6 · cream-warm #F8F2E2 · white #fff
   ════════════════════════════════════════════════════════════════════════ */

/* ── Master icon colour lock ──────────────────────────────────────────────
   Navy #0f2145 in EVERY state. High specificity + !important so Elementor's
   global `a { color: gold }` / SVG kit rules can never tint the glyphs. */
html body [data-allura-acct] .allura-acct__icon,
html body [data-allura-acct] .allura-acct__icon path,
html body [data-allura-cart] .allura-minicart__icon,
html body [data-allura-cart] .allura-minicart__icon path,
html body [data-allura-acct]:hover .allura-acct__icon,
html body [data-allura-acct]:hover .allura-acct__icon path,
html body [data-allura-cart]:hover .allura-minicart__icon,
html body [data-allura-cart]:hover .allura-minicart__icon path,
html body [data-allura-acct].is-open .allura-acct__icon,
html body [data-allura-acct].is-open .allura-acct__icon path,
html body [data-allura-cart].is-open .allura-minicart__icon,
html body [data-allura-cart].is-open .allura-minicart__icon path {
  fill: #0f2145 !important;
}
html body [data-allura-acct] .allura-acct__chev,
html body [data-allura-acct] .allura-acct__chev path {
  stroke: #0f2145 !important;
  fill: none !important;
}

.allura-acct {
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

/* ── Trigger / guest link ─────────────────────────────────────────────── */
.allura-acct--guest,
.allura-acct__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  margin: 0;
  background: transparent !important;
  border: 0;
  box-shadow: none !important;
  color: #0F2145;
  cursor: pointer;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  transition: color .25s cubic-bezier(.25,.46,.45,.94);
}
.allura-acct__trigger:focus-visible,
.allura-acct--guest:focus-visible {
  outline: 1px solid #d4bc8a;
  outline-offset: 4px;
}

/* Explicit navy fill — do NOT inherit currentColor, which Elementor's global
   `a { color: gold }` would otherwise turn the glyph gold. */
.allura-acct__icon,
.allura-acct__icon path {
  width: 26px;
  height: 26px;
  display: block;
  fill: #0F2145 !important;
  transition: fill .25s cubic-bezier(.25,.46,.45,.94),
              transform .35s cubic-bezier(.16,1,.3,1);
}
.allura-acct__icon path { width: auto; height: auto; }

/* Hover / open: filled glyph slides navy → gold with a gentle lift. */
.allura-acct--guest:hover .allura-acct__icon,
.allura-acct--guest:hover .allura-acct__icon path,
.allura-acct__trigger:hover .allura-acct__icon,
.allura-acct__trigger:hover .allura-acct__icon path,
.allura-acct--member.is-open .allura-acct__icon,
.allura-acct--member.is-open .allura-acct__icon path {
  fill: #B89A5E !important;
}
.allura-acct--guest:hover .allura-acct__icon,
.allura-acct__trigger:hover .allura-acct__icon,
.allura-acct--member.is-open .allura-acct__icon {
  transform: translateY(-1px) scale(1.06);
}
.allura-acct--guest:hover,
.allura-acct__trigger:hover,
.allura-acct--member.is-open .allura-acct__trigger {
  color: #B89A5E;
}

.allura-acct__chev {
  width: 12px;
  height: 12px;
  display: block;
  stroke: currentColor;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.allura-acct--member.is-open .allura-acct__chev {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .allura-acct__icon { transition: fill .25s ease; }
  .allura-acct--guest:hover .allura-acct__icon,
  .allura-acct__trigger:hover .allura-acct__icon,
  .allura-acct--member.is-open .allura-acct__icon { transform: none; }
}

/* ── Dropdown panel ───────────────────────────────────────────────────── */
.allura-acct__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 100000;
  min-width: 214px;
  background: #fff;
  border: 1px solid #E7E1D6;
  border-top: 2px solid #B89A5E;
  box-shadow: 0 24px 50px -30px rgba(38, 38, 38, .30);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s cubic-bezier(.16,1,.3,1), visibility .22s;
  text-align: left;
}
.allura-acct--member.is-open .allura-acct__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Optional notch pointing at the trigger */
.allura-acct__menu::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #B89A5E;
  border-top: 1px solid #B89A5E;
  transform: rotate(45deg);
}

.allura-acct__greet {
  margin: 2px 0 8px;
  padding: 4px 20px 12px;
  border-bottom: 1px solid #EFE9DC;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  font-size: 13px;
  color: #8b8a85;
  line-height: 1.3;
}

.allura-acct__item {
  display: block;
  padding: 11px 20px;
  font-family: 'ARIAL R', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #0F2145;
  text-decoration: none;
  line-height: 1.2;
  transition: background .18s ease, color .18s ease, padding-left .2s cubic-bezier(.16,1,.3,1);
}
.allura-acct__item:hover,
.allura-acct__item:focus-visible {
  background: #F8F2E2;
  color: #9a8048;
  padding-left: 24px;
  outline: none;
}

.allura-acct__item--out {
  margin-top: 6px;
  border-top: 1px solid #EFE9DC;
  color: #8b8a85;
}
.allura-acct__item--out:hover,
.allura-acct__item--out:focus-visible {
  color: #b32d2e;
  background: rgba(179, 45, 46, .06);
}

@media (max-width: 480px) {
  .allura-acct__menu { right: -8px; }
}

/* ════════════════════════════════════════════════════════════════════════
   Mini-cart (distinct prefix — .allura-cart is the cart PAGE in the WC layer)
   ════════════════════════════════════════════════════════════════════════ */

.allura-minicart {
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.allura-minicart__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  margin: 0;
  background: transparent !important;
  border: 0;
  box-shadow: none !important;
  color: #0F2145;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.allura-minicart__trigger:focus-visible {
  outline: 1px solid #d4bc8a;
  outline-offset: 4px;
}

.allura-minicart__icon,
.allura-minicart__icon path {
  width: 26px;
  height: 26px;
  display: block;
  fill: #0F2145 !important;
  transition: fill .25s cubic-bezier(.25,.46,.45,.94),
              transform .35s cubic-bezier(.16,1,.3,1);
}
.allura-minicart__icon path { width: auto; height: auto; }

.allura-minicart__trigger:hover .allura-minicart__icon,
.allura-minicart__trigger:hover .allura-minicart__icon path,
.allura-minicart.is-open .allura-minicart__icon,
.allura-minicart.is-open .allura-minicart__icon path {
  fill: #B89A5E !important;
}
.allura-minicart__trigger:hover .allura-minicart__icon,
.allura-minicart.is-open .allura-minicart__icon {
  transform: translateY(-1px) scale(1.06);
}

/* Quantity badge */
.allura-minicart__count {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #B89A5E;
  color: #fff;
  font-family: 'ARIAL R', Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
  letter-spacing: 0;
}
.allura-minicart__count.is-empty { display: none; }

/* Panel */
.allura-minicart__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 100000;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid #E7E1D6;
  border-top: 2px solid #B89A5E;
  box-shadow: 0 24px 50px -30px rgba(38, 38, 38, .30);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s cubic-bezier(.16,1,.3,1), visibility .22s;
  text-align: left;
}
.allura-minicart.is-open .allura-minicart__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* The dropdown is redundant on the cart and checkout pages — disable it there.
   The icon stays as a quiet link to the cart. */
body.woocommerce-cart .allura-minicart__panel,
body.woocommerce-checkout .allura-minicart__panel {
  display: none !important;
}
body.woocommerce-cart .allura-minicart__trigger,
body.woocommerce-checkout .allura-minicart__trigger {
  cursor: default;
}
.allura-minicart__panel::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #B89A5E;
  border-top: 1px solid #B89A5E;
  transform: rotate(45deg);
}

/* ── Mini-cart internals — text-only, ink + gold (no navy, no thumbnails) ──
   Targets our cart/mini-cart.php markup (.allura-mini-cart__*). */
.allura-minicart__panel .allura-mini-cart__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #E7E1D6 transparent;
}
.allura-minicart__panel .allura-mini-cart__list::-webkit-scrollbar { width: 4px; }
.allura-minicart__panel .allura-mini-cart__list::-webkit-scrollbar-thumb { background: #E7E1D6; }

/* Belt-and-braces: never show a thumbnail box in the header cart. */
.allura-minicart__panel img { display: none !important; }

.allura-minicart__panel .allura-mini-cart__item {
  position: relative;
  display: block;
  list-style: none !important;
  padding: 15px 26px 15px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid #EFE9DC !important;
}
.allura-minicart__panel .allura-mini-cart__item:last-child { border-bottom: 0 !important; }

.allura-minicart__panel .allura-mini-cart__city {
  display: block;
  font-family: 'ARIAL R', Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #9a8048;
  margin: 0 0 4px;
}

.allura-minicart__panel .allura-mini-cart__name {
  display: block;
  float: none !important;
  font-family: 'Gourmand', 'Cardo', 'EB Garamond', Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
  color: #262626 !important;
  text-decoration: none !important;
  transition: color .2s ease;
}
.allura-minicart__panel a.allura-mini-cart__name:hover { color: #9a8048 !important; }

.allura-minicart__panel .allura-mini-cart__meta {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 6px;
  font-family: 'ARIAL R', Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #8b8a85;
  font-variant-numeric: tabular-nums;
}
.allura-minicart__panel .allura-mini-cart__dot { color: #b8b6ae; }
.allura-minicart__panel .allura-mini-cart__price { color: #262626; }
.allura-minicart__panel .allura-mini-cart__meta .woocommerce-Price-amount { color: #262626; }

/* Remove × — top-right, no box.
   Three-class specificity (0,3,0) to beat WC core `.woocommerce a.remove` (0,2,1). */
.allura-minicart__panel .allura-mini-cart__item .allura-mini-cart__remove {
  position: absolute !important;
  top: 14px;
  right: 0;
  left: auto;
  width: 22px;
  height: 22px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  color: #b8b6ae !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: color .18s ease;
}
.allura-minicart__panel .allura-mini-cart__item .allura-mini-cart__remove:hover { color: #b32d2e !important; background: none !important; }

/* Subtotal */
.allura-minicart__panel .allura-mini-cart__total {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 !important;
  padding: 16px 0 18px !important;
  border-top: 1px solid #262626 !important;
  border-bottom: 0 !important;
}
.allura-minicart__panel .allura-mini-cart__total-label {
  font-family: 'ARIAL R', Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8b8a85;
}
.allura-minicart__panel .allura-mini-cart__total-amount .woocommerce-Price-amount,
.allura-minicart__panel .allura-mini-cart__total-amount {
  font-family: 'Gourmand', 'Cardo', 'EB Garamond', Georgia, serif;
  font-size: 21px;
  letter-spacing: 0;
  text-transform: none;
  color: #262626;
  font-variant-numeric: tabular-nums;
}

/* Buttons — ghost "View cart" + gold "Checkout" (gold → ink) */
.allura-minicart__panel .allura-mini-cart__buttons {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
}
.allura-minicart__panel .allura-mini-cart__buttons .button {
  display: block !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 13px 18px;
  font-family: 'ARIAL R', Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border-radius: 0 !important;
  border: 1px solid #262626 !important;
  background: transparent !important;
  color: #262626 !important;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.allura-minicart__panel .allura-mini-cart__buttons .button:hover {
  background: #262626 !important;
  color: #fff !important;
}
.allura-minicart__panel .allura-mini-cart__buttons .button.checkout {
  background: #B89A5E !important;
  color: #fff !important;
  border-color: #B89A5E !important;
}
.allura-minicart__panel .allura-mini-cart__buttons .button.checkout:hover {
  background: #262626 !important;
  border-color: #262626 !important;
  color: #fff !important;
}
.allura-minicart__panel .allura-mini-cart__buttons .button:focus-visible {
  outline: 2px solid #B89A5E !important;
  outline-offset: 2px;
}

/* Empty state */
.allura-minicart__panel .allura-mini-cart__empty {
  margin: 0;
  padding: 12px 0;
  text-align: center;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  font-size: 14px;
  color: #8b8a85;
}

@media (max-width: 480px) {
  .allura-minicart__panel { right: -8px; }
}
