/* ===================================================================
   Al Rawnaq Palace — design layer (from the Figma file "Al Rawnaq Palace
   Trading").  Loaded last from layout/theme.liquid so it wins over the older
   per-feature stylesheets.  Contains: design tokens, typography, shared
   buttons / pills / page-title band, header, footer, and page-level
   treatments for shop, product, cart, search, contact and wishlist.
   =================================================================== */

:root {
  /* palette: Port Gore / Ronchi / Waterloo / Regent Gray + tints */
  --navy: #212245;
  --yellow: #f5bc24;
  --waterloo: #84849d;
  --gray: #8c949c;
  --line: #e4e4ec;
  --offwhite: #f7f7fa;
  --navytint: #ececf4;
  --yellowtint: #fef3d1;
  --graytint: #eef0f2;
  --white: #ffffff;

  --rw-content-w: 80rem; /* same as the store theme: .container is 82rem wide with 1rem side padding */
  --rw-pad-x: max(1rem, calc((100vw - var(--rw-content-w)) / 2));
  --font-body: "Poppins", "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Poppins", "Cairo", "Segoe UI", Tahoma, sans-serif;
  color: var(--navy);
}

[dir="rtl"] {
  --font-body: "Cairo", "Poppins", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Cairo", "Poppins", "Segoe UI", Tahoma, sans-serif;
}

body { background: var(--white); color: var(--navy); }

h1, h2 { font-weight: 700; }
h3, h4 { font-weight: 600; }

/* ---- Shared type ------------------------------------------------------ */
.rw-eyebrow {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--waterloo);
}
[dir="rtl"] .rw-eyebrow { letter-spacing: 0; }

.rw-h2 {
  margin: 0;
  font-size: 36px;
  line-height: 44px;
  font-weight: 700;
  color: var(--navy);
}

/* ---- Buttons (Button/Primary, Button/Dark, Button/Outline) ----------- */
.rw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.rw-btn:hover { transform: translateY(-1px); }
.rw-btn img { width: 16px; height: 16px; display: block; }
.rw-btn--primary { background: var(--yellow); color: var(--navy); }
.rw-btn--dark { background: var(--navy); color: #fff; }
.rw-btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.rw-btn--outline-light { background: transparent; border-color: var(--waterloo); color: #fff; }
[dir="rtl"] .rw-btn img.rw-arrow, [dir="rtl"] .rw-link img.rw-arrow { transform: scaleX(-1); }

.rw-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.rw-link img { width: 16px; height: 16px; }
.rw-link:hover { text-decoration: underline; }

/* ---- Page-title band (Shop, Cart, Wishlist, Contact ...) -------------- */
.rw-page-band {
  background: var(--yellowtint);
  padding: 40px var(--rw-pad-x) 44px;
}
.rw-crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; line-height: 22px; color: var(--waterloo); margin-bottom: 14px; }
.rw-crumbs a { color: var(--waterloo); text-decoration: none; }
.rw-crumbs [aria-current] { color: var(--navy); }
.rw-page-band h1 { margin: 0; font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
.rw-page-band p { margin: 10px 0 0; font-size: 14px; line-height: 22px; color: var(--gray); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header { background: #fff; border-bottom: 0; }

/* Announcement bar */
.site-header .header-topbar { background: var(--navy); color: #fff; border: 0; }
.site-header .header-topbar__inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap;
  gap: 16px; padding-block: 10px; min-height: 0;
}
.header-topbar__welcome { margin: 0; font-size: 14px; line-height: 22px; font-weight: 400; color: #fff; }
.header-topbar__right { display: flex; align-items: center; }
.header-topbar__locale-group { display: flex; align-items: center; gap: 20px; }
.header-topbar__divider { width: 1px; height: 12px; background: #fff; display: inline-block; }
.hdr-lang { display: flex; align-items: center; gap: 8px; }
.hdr-lang__globe { display: block; }
.hdr-lang__form { margin: 0; }
.hdr-lang__btn {
  border: 0; background: transparent; color: #fff; cursor: pointer;
  font: 500 14px/22px var(--font-body); padding: 2px 10px; border-radius: 999px;
}
.hdr-lang__btn[lang="ar"] { font-family: "Cairo", var(--font-body); }
.hdr-lang__btn.is-active { background: var(--yellow); color: var(--navy); font-weight: 600; cursor: default; }
.hdr-cur { position: relative; }
.hdr-cur__btn {
  display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
  color: #fff; font: 600 14px/22px var(--font-body);
}
.hdr-cur__btn::-webkit-details-marker { display: none; }
.hdr-cur__menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 120;
  background: #fff; border-radius: 14px; padding: 6px; min-width: 96px;
  box-shadow: 0 12px 32px rgba(33, 34, 69, 0.18);
}
.hdr-cur__menu form { margin: 0; }
.hdr-cur__opt {
  display: block; width: 100%; text-align: start; border: 0; background: transparent; cursor: pointer;
  padding: 8px 12px; border-radius: 10px; color: var(--navy); font: 500 14px/22px var(--font-body);
}
.hdr-cur__opt:hover, .hdr-cur__opt.is-active { background: var(--offwhite); }

/* Main bar */
#header-main-bar { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .header-main { padding-block: 0; }
.header-main__right { gap: 8px; }

.header-icon-item, button.header-icon-item {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: background-color 0.15s ease;
}
.header-icon-item:hover, button.header-icon-item:hover { background: var(--offwhite); }
.header-icon-item__label { display: none !important; }
.header-icon-item__icon { position: static; margin: 0; display: inline-flex; }
.header-icon-item img { display: block; width: 22px; height: 22px; }
.wishlist-badge, .cart-badge {
  position: absolute; top: 2px; inset-inline-start: 24px; inset-inline-end: auto; right: auto; left: auto;
  inset-inline-start: 24px;
  width: 18px; height: 18px; min-width: 18px; padding: 0;
  border-radius: 999px; background: var(--yellow); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font: 700 13px/21px var(--font-body); border: 0; box-shadow: none;
}
body[data-template="cart"] #cart-drawer-toggle,
body[data-template="wishlist"] #wishlist-drawer-toggle { background: var(--yellow); }

.site-header .site-logo-img { max-height: none; max-width: none; height: 49px; width: auto; object-fit: contain; }

.header-search-inline { border: 0; background: var(--offwhite); }
.header-search-inline > img { flex-shrink: 0; }
.header-search-inline__input { font-size: 14px; line-height: 22px; color: var(--navy); }
.header-search-inline__input::placeholder { color: var(--gray); }
.header-search-inline .header-search-inline__submit {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; font-size: 0;
}
.header-search-inline { position: relative; }

.site-nav__chev { display: inline-block; vertical-align: middle; margin-inline-start: 4px; width: 16px; height: 16px; }
.header-booking-hold--desktop {
  border: 1.5px solid var(--navy); border-radius: 999px; padding: 8px 16px; color: var(--navy);
  font-size: 14px; font-weight: 600; text-decoration: none; background: transparent; white-space: nowrap;
}
.header-booking-hold--desktop:hover { background: var(--navy); color: #fff; }

@media (min-width: 1000px) {
  .site-header .container { max-width: none; padding-inline: var(--rw-pad-x); }

  .site-header .header-main {
    display: flex; align-items: center; justify-content: flex-start; gap: 36px;
    height: 88px; min-height: 0;
  }
  .header-main__left { display: none !important; }
  .header-main__center {
    position: static; inset: auto; transform: none; order: 1; flex: 0 0 auto;
    pointer-events: auto; display: flex; width: auto;
  }
  .header-nav-row { order: 2; display: flex; margin-inline: auto; }
  .header-search-inline {
    order: 3; display: flex; align-items: center; gap: 10px;
    width: 260px; max-width: none; height: 44px; padding: 0 18px; flex: 0 0 auto;
  }
  .header-main__right { order: 4; flex: 0 0 auto; justify-content: flex-end; }
  .contact-phone, .contact-phone-icon { display: none !important; }

  .site-header .site-nav__list { gap: 36px; flex-wrap: nowrap; }
  .site-header .site-nav__item { font-size: 16px; font-weight: 500; line-height: 24px; color: var(--navy); }
  .site-header .site-nav__item > a,
  .site-header .site-nav__item--flat > summary,
  .site-header .site-nav__item--mega > summary {
    position: relative; display: inline-flex; align-items: center; padding-block: 8px;
    font-size: 16px; line-height: 24px; font-weight: 500; color: var(--navy);
  }
  .site-header .site-nav__item > a:hover { color: var(--navy); }
  .site-header .site-nav__item > a[aria-current="page"],
  .site-header .site-nav__item--flat > summary[aria-current="page"],
  .site-header .site-nav__item--mega > summary.is-active { color: var(--navy) !important; }
  .site-header .site-nav__item > a::after,
  .site-header .site-nav__item--flat > summary::before,
  .site-header .site-nav__item--mega > summary::before {
    content: ""; position: absolute; bottom: -2px; inset-inline-start: 50%;
    width: 24px; height: 3px; border-radius: 2px; background: var(--yellow);
    transform: translateX(-50%) scaleX(0); transition: transform 0.15s ease;
  }
  [dir="rtl"] .site-header .site-nav__item > a::after { transform: translateX(50%) scaleX(0); }
  .site-header .site-nav__item > a[aria-current="page"]::after,
  .site-header .site-nav__item > a:hover::after { transform: translateX(-50%) scaleX(1); }
  [dir="rtl"] .site-header .site-nav__item > a[aria-current="page"]::after,
  [dir="rtl"] .site-header .site-nav__item > a:hover::after { transform: translateX(50%) scaleX(1); }
}
@media (min-width: 1000px) and (max-width: 1239px) {
  .site-header .header-main { gap: 20px; }
  .site-header .site-nav__list { gap: 22px; }
  .header-search-inline { width: 200px; }
}

/* Mobile bar: same palette, keep the existing drawer layout */
@media (max-width: 999px) {
  .header-topbar__welcome { display: none; }
  .site-header .header-topbar__inner { justify-content: flex-end; }
  .site-header .site-logo-img { height: 40px; }
  .header-search-inline { display: none; }
  .nav-drawer__toggle, .header-search__toggle { color: var(--navy); }
}

/* Account / drawers / auth modal: pill buttons + palette */
.cart-drawer__checkout-btn, .wishlist-drawer__view-btn, .auth-modal__submit, .js-flash__ok {
  border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600;
}
.cart-drawer__view-btn { border-radius: 999px; }
.auth-modal, .cart-drawer-panel, .wishlist-drawer-panel { font-family: var(--font-body); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--navy); color: #fff; padding: 0; }
.site-footer .site-footer__content { padding: 0; background: transparent; }
.site-footer .container { max-width: none; padding-inline: var(--rw-pad-x); }
.ft2 { padding-block: 72px 32px; }
.ft2__cols { display: flex; gap: 64px; align-items: flex-start; }
.ft2__brand { flex: 0 0 340px; display: flex; flex-direction: column; gap: 18px; }
.ft2__logo img { display: block; width: 200px; height: auto; max-width: 100%; }
.ft2__tagline { margin: 0; font-size: 14px; line-height: 22px; color: #fff; }
.ft2__social { display: flex; gap: 10px; }
.ft2__social a {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--waterloo);
  display: flex; align-items: center; justify-content: center; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ft2__social a:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.ft2__social img { width: 18px; height: 18px; display: block; }
.ft2__col { flex: 0 0 180px; display: flex; flex-direction: column; gap: 12px; }
.ft2__col--wide { flex-basis: 260px; }
.ft2__title { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.14em; color: var(--yellow); text-transform: uppercase; }
[dir="rtl"] .ft2__title { letter-spacing: 0; }
.ft2__col a, .ft2__col span { font-size: 14px; line-height: 22px; font-weight: 400; color: #fff; text-decoration: none; }
.ft2__col a:hover { color: var(--yellow); }
.ft2__rule { height: 1px; background: var(--waterloo); margin: 48px 0 32px; border: 0; }
.ft2__bottom { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; line-height: 22px; color: #fff; }
.ft2__bottom p { margin: 0; }
.ft2__bottom a { color: inherit; text-decoration: none; }
.ft2__credit { margin: 14px 0 0; font-size: 13px; line-height: 20px; color: var(--waterloo); text-align: center; }
.ft2__credit a { color: var(--waterloo); text-decoration: none; }

@media (max-width: 999px) {
  .ft2__cols { flex-wrap: wrap; gap: 36px 32px; }
  .ft2__brand { flex-basis: 100%; }
  .ft2__col, .ft2__col--wide { flex: 1 1 160px; }
  .ft2 { padding-block: 48px 24px; }
}
@media (max-width: 560px) {
  .ft2__bottom { flex-direction: column; }
  .ft2__col, .ft2__col--wide { flex-basis: 100%; }
}

/* header.css pins #cart-drawer-toggle to width/height:auto + square corners (ID specificity), which broke the round button the cart badge is positioned against. */
#cart-drawer-toggle, #wishlist-drawer-toggle { width: 44px; height: 44px; justify-content: center; border-radius: 999px; padding: 0; }
#cart-drawer-toggle .cart-badge, #wishlist-drawer-toggle .wishlist-badge { top: 2px; inset-inline-start: 24px; inset-inline-end: auto; }
@media (min-width: 1000px) { .header-main__right .account-icon { display: inline-flex !important; } }

/* Account icon in the header (links to the account page, or opens the login modal when signed out) */
.header-main__right .account-icon svg { width: 22px; height: 22px; display: block; }
.header-main__right .account-icon { display: inline-flex; }
body[data-template^="customers"] .header-main__right .account-icon { background: var(--yellow); }
@media (max-width: 999px) { .header-main__right .account-icon { display: inline-flex !important; } }

/* Nav active state exactly as Figma: the yellow 24x3 bar is IN the item flow, 6px under the label (so the active label sits slightly higher), no hover bar. */
@media (min-width: 1000px) {
  .site-header .site-nav__item > a { display: block; padding: 0; text-align: center; line-height: 24px; }
  .site-header .site-nav__item > a::after { content: none; }
  .site-header .site-nav__item > a[aria-current="page"]::after { content: ""; display: block; position: static; width: 24px; height: 3px; margin: 6px auto 0; border-radius: 2px; background: var(--yellow); transform: none; }
  [dir="rtl"] .site-header .site-nav__item > a[aria-current="page"]::after { transform: none; }
  .site-header .site-nav__item > a:hover::after { content: none; }
  .site-header .site-nav__item > a[aria-current="page"]:hover::after { content: ""; transform: none; }
  .site-header .site-nav__item > a:hover { color: var(--navy); opacity: 0.75; }
  .site-nav__chev { vertical-align: -3px; margin-inline-start: 4px; }
}

/* Remove the old pill look (grey background / padding) from nav items; keep only the Figma yellow bar. */
@media (min-width: 1000px) {
  .site-header .header-nav-row .site-nav__item > a,
  .site-header .header-nav-row .site-nav__item > a:hover,
  .site-header .header-nav-row .site-nav__item > a[aria-current="page"],
  .site-header:not(.site-header--overlay) .header-nav-row .site-nav__item > a,
  .site-header:not(.site-header--overlay) .header-nav-row .site-nav__item > a:hover,
  .site-header:not(.site-header--overlay) .header-nav-row .site-nav__item > a[aria-current="page"] {
    display: block !important; background: transparent !important; padding: 0 !important; border-radius: 0 !important; gap: 0;
    color: var(--navy) !important; font-weight: 500;
  }
  .site-header:not(.site-header--overlay) .header-nav-row .site-nav__list { gap: 36px; }
}

/* ===================== MOBILE / TABLET HEADER (< 1000px) ===================== */
@media (max-width: 999px) {
  /* top bar: only the language + currency switchers, aligned to the end */
  .site-header .header-topbar__inner { padding: 8px 16px; justify-content: flex-end; }
  .header-topbar__right { width: auto; margin: 0; justify-content: flex-end; }
  .header-topbar__locale-group { gap: 14px; flex-wrap: nowrap; }
  .header-topbar__divider { display: inline-block !important; }

  /* main bar: hamburger + search (start) · logo (center) · wishlist + cart (end) */
  .site-header .header-main { height: 64px; min-height: 0; padding-block: 0; }
  .header-main__left { gap: 2px; flex: 1 1 0; }
  .header-main__right { gap: 2px; flex: 1 1 0; justify-content: flex-end; }
  .header-main__center { pointer-events: none; }
  .site-header .site-logo-img { height: 38px; max-height: 38px; max-width: 140px; width: auto; }

  .nav-drawer__toggle, .header-search__toggle { width: 40px; height: 40px; color: var(--navy); }
  .header-icon-item, button.header-icon-item, #cart-drawer-toggle, #wishlist-drawer-toggle { width: 40px; height: 40px; }
  .header-icon-item img { width: 20px; height: 20px; }
  .wishlist-badge, .cart-badge,
  #cart-drawer-toggle .cart-badge, #wishlist-drawer-toggle .wishlist-badge { inset-inline-start: 21px; top: 1px; }

  /* account lives in the side drawer on mobile (its footer bar has the login/account button) */
  .header-main__right .account-icon { display: none !important; }
  .header-booking-hold--desktop { display: none !important; }

  /* search drop-down row */
  .header-search__panel { background: #fff; border-bottom: 1px solid var(--line); }
  .header-search__form { background: var(--offwhite); border-radius: 999px; }
  .header-search__input { font-size: 14px; color: var(--navy); }
}

@media (max-width: 999px) { .site-header .header-nav-row { display: none !important; } }

/* Account now lives in the top bar (like the store theme), not in the icon cluster. */
.header-main__right .account-icon { display: none !important; }
.header-topbar__right { display: flex; align-items: center; gap: 20px; }
.header-topbar__login, .header-topbar__logout { display: inline-flex; align-items: center; gap: 6px; color: #fff; font: 500 14px/22px var(--font-body); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.header-topbar__login:hover, .header-topbar__logout:hover { color: var(--yellow); }
.header-topbar__logout-form { margin: 0; }
.header-topbar__login svg { flex-shrink: 0; }
@media (max-width: 999px) { .header-topbar__right { gap: 14px; } .header-topbar__logout-form { display: none !important; } }

/* ===================== Categories mega menu (Figma look) ===================== */
@media (min-width: 1000px) {
  .site-header .site-nav__item--mega > summary { display: inline-flex; align-items: center; gap: 4px; padding: 0; cursor: pointer; list-style: none; background: transparent !important; border-radius: 0; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--navy) !important; }
  .site-header .site-nav__item--mega > summary::-webkit-details-marker { display: none; }
  .site-header .site-nav__item--mega > summary::after { content: ""; width: 16px; height: 16px; font-size: 0; background: url("/assets/images/figma/icon-chevron-down.svg") center / contain no-repeat; transition: transform 0.2s ease; }
  .site-header .site-nav__item--mega[open] > summary::after { transform: rotate(180deg); }
  .site-header .site-nav__item--mega > summary.is-active::before { content: ""; position: absolute; inset-inline: 0; bottom: -9px; margin: auto; width: 24px; height: 3px; border-radius: 2px; background: var(--yellow); transform: none; }
}
.header-nav-row .site-nav__mega {
  background: #fff; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 28px 28px;
  box-shadow: 0 24px 48px rgba(33, 34, 69, 0.14);
}
.header-nav-row .site-nav__mega-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 40px; padding: 32px var(--rw-pad-x) 24px; max-width: none; }
.header-nav-row .site-nav__mega-head { display: block; margin: 0 0 14px; padding: 0; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); background: none; }
.header-nav-row .site-nav__mega-head .site-nav__mega-ico { display: none; }
.header-nav-row .site-nav__mega-col a { padding: 6px 0; font-size: 14px; line-height: 22px; font-weight: 400; color: var(--navy); background: none !important; }
.header-nav-row .site-nav__mega-col a:hover { color: var(--navy); opacity: 1; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.header-nav-row .site-nav__mega-footer { background: var(--offwhite); border: 0; border-radius: 0 0 28px 28px; padding: 16px var(--rw-pad-x); max-width: none; }
.header-nav-row .site-nav__mega-viewall { font-size: 14px; font-weight: 600; color: var(--navy); }

@media (min-width: 1000px) { .site-header .site-nav__list { align-items: center; } .site-header .site-nav__item { display: flex; align-items: center; } }

@media (min-width: 1000px) {
  .site-header .header-nav-row .site-nav__item--mega-wrap { position: static; }
  .header-nav-row .site-nav__mega { width: min(72rem, calc(100% - 2rem)); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; top: calc(100% + 8px); }
  .header-nav-row .site-nav__mega-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 32px 36px 24px; }
  .header-nav-row .site-nav__mega-footer { padding: 16px 36px; border-radius: 0; }
}

.header-nav-row .site-nav__mega-col li > a::after, .header-nav-row .site-nav__mega-col a::after { content: none !important; }
.header-nav-row .site-nav__mega-col li > a { padding: 6px 0 !important; }

/* Mobile: hide the footer columns block (logo, text, socials, link columns) */
@media (max-width: 767px) { .ft2__cols, .ft2__rule { display: none; } .ft2 { padding-block: 20px; } }

/* Reservations, appointments and the menu are disabled (404): hide every link to them */
.acct-sidebar__link[href*="reservations"], .acct-sidebar__link[href*="appointments"], .cx-acct-link[href*="reservations"], .cx-acct-link[href*="appointments"], a[href="/menu"], a[href^="/reserve"], a[href^="/appointments"], .nav-drawer__utility-link[href*="appointments"] { display: none !important; }

/* Sticky footer: on short pages the footer sits at the bottom of the screen instead of floating mid-page */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
body > .site-footer, body > #shopify-section-footer, body > [id^="shopify-section-footer"] { margin-top: auto; flex-shrink: 0; }

/* Header counters keep a compact size inside their circle even with the larger type scale */
.wishlist-badge, .cart-badge, #cart-drawer-toggle .cart-badge, #wishlist-drawer-toggle .wishlist-badge { width: 20px; height: 20px; min-width: 20px; font-size: 12px !important; line-height: 1 !important; }
@media (max-width: 999px) { .wishlist-badge, .cart-badge, #cart-drawer-toggle .cart-badge, #wishlist-drawer-toggle .wishlist-badge { inset-inline-start: 20px; } }

/* ===== Login / register pop-up and pages: pill buttons, rounded fields ===== */
.social-login__button, .auth-modal .social-login__button, .social-login__button--google, .social-login__button--apple {
  border-radius: 999px !important; border: 1.5px solid var(--navy) !important; background: #fff !important; color: var(--navy) !important;
  padding: 14px 24px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0.02em; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: background-color 0.15s ease;
}
.social-login__button:hover { background: var(--offwhite) !important; }
.auth-modal__submit, .auth-modal .auth-modal__submit { border-radius: 999px !important; text-transform: none !important; letter-spacing: 0.02em; padding: 16px 24px; font-weight: 600; }
.auth-modal__field input, .auth-modal__field select, .auth-modal__phone select { border-radius: 14px !important; border: 1px solid var(--line) !important; background: var(--offwhite); padding: 13px 16px; }
.auth-modal__field input:focus { border-color: var(--navy) !important; background: #fff; outline: 0; }
.auth-modal { border-radius: 28px; }
.auth-modal__head-label { text-transform: none !important; letter-spacing: 0; font-size: 18px; font-weight: 700; color: var(--navy); }
.auth-modal__switch button, .auth-modal__forgot { text-transform: none !important; color: var(--navy); }
.auth-modal__field > span { font-weight: 500; color: var(--navy); }
.social-login__divider span { color: var(--waterloo); }

/* ===== Header stability (no jump when a drawer opens or when moving between pages) ===== */
/* 1) keep the scrollbar space reserved so locking the page scroll (drawers, modals) does not shift the header sideways */
html { scrollbar-gutter: stable; }
/* 2) the sticky offset used the measured top-bar height only after JS ran; start with the real value so the header does not jump on load */
:root { --header-topbar-h: 38px; }
@media (max-width: 999px) { :root { --header-topbar-h: 36px; } }
/* 3) every nav item keeps room for the active bar, so labels never move up/down between pages */
@media (min-width: 1000px) {
  .site-header .header-nav-row .site-nav__item > a::after { content: "" !important; display: block; position: static; width: 24px; height: 3px; margin: 6px auto 0; border-radius: 2px; background: transparent; transform: none; visibility: hidden; }
  .site-header .header-nav-row .site-nav__item > a[aria-current="page"]::after, .site-header .header-nav-row .site-nav__item > a[aria-current="page"]:hover::after { background: var(--yellow); visibility: visible; }
  .site-header .header-nav-row .site-nav__item--mega > summary { padding-bottom: 9px !important; }
}

@media (min-width: 1000px) { .site-header .header-nav-row .site-nav__item--mega > summary { padding: 0 0 9px !important; line-height: 24px; } }
