/**
 * Luxury slide navigation — mega panel (desktop) + full-screen drawer (tablet/mobile).
 * Header shell breakpoint lives in main.css (≤1199px).
 */

/* ------------------------------------------------------------------------- */
/* Desktop luxury nav                                                        */
/* ------------------------------------------------------------------------- */

.al-nav--luxury {
  position: relative;
  z-index: 25;
  border-top: 1px solid var(--al-line, rgba(255, 255, 255, 0.08));
  background: rgba(8, 8, 10, 0.35);
}

body.al-ui-ivory .al-nav--luxury {
  background: rgba(255, 255, 255, 0.72);
  border-top-color: rgba(18, 16, 14, 0.08);
}

.al-nav__lux {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 14px;
  position: relative;
}

.al-nav__lux-main {
  flex: 1;
  min-width: 0;
}

.al-nav__lux-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.al-nav__lux-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.al-nav__lux-row--primary {
  row-gap: 10px;
}

.al-nav__lux-link {
  font-family: var(--al-font-body, "DM Sans", system-ui, sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--al-muted, #a39e96);
  white-space: nowrap;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

body.al-ui-ivory .al-nav__lux-link {
  color: #4a453c;
}

.al-nav__lux-link:hover,
.al-nav__lux-link:focus-visible {
  color: var(--al-text, #f4efe6);
}

body.al-ui-ivory .al-nav__lux-link:hover,
body.al-ui-ivory .al-nav__lux-link:focus-visible {
  color: #12100e;
}

.al-nav__lux-link.is-active {
  color: var(--al-gold-soft, #d4b85c);
  border-bottom-color: rgba(201, 162, 39, 0.55);
}

body.al-ui-ivory .al-nav__lux-link.is-active {
  color: #6b5420;
  border-bottom-color: rgba(168, 134, 50, 0.55);
}

.al-nav__lux-pill {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 252, 245, 0.14);
  color: rgba(255, 252, 245, 0.88);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

body.al-ui-ivory .al-nav__lux-pill {
  color: #2a261f;
  border-color: rgba(18, 16, 14, 0.12);
  background: rgba(255, 255, 255, 0.85);
}

.al-nav__lux-pill:hover,
.al-nav__lux-pill:focus-visible {
  border-color: rgba(201, 162, 39, 0.45);
  color: var(--al-gold-soft, #e8d9a8);
}

body.al-ui-ivory .al-nav__lux-pill:hover,
body.al-ui-ivory .al-nav__lux-pill:focus-visible {
  border-color: rgba(168, 134, 50, 0.45);
  color: #12100e;
}

.al-nav__lux-pill.is-active {
  border-color: rgba(201, 162, 39, 0.65);
  background: rgba(201, 162, 39, 0.12);
}

body.al-ui-ivory .al-nav__lux-pill.is-active {
  border-color: rgba(168, 134, 50, 0.5);
  background: rgba(168, 134, 50, 0.12);
}

.al-nav__lux-hot {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1406;
  background: linear-gradient(120deg, #e8cf7a, #c9a227);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.25);
}

.al-nav__lux-hot:hover {
  filter: brightness(1.05);
}

/* Shop mega */
.al-mega {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.al-mega__chev {
  border: 0;
  background: transparent;
  color: var(--al-muted, #a39e96);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.al-mega__chev:hover,
.al-mega__chev:focus-visible {
  color: var(--al-gold-soft, #d4b85c);
  background: rgba(255, 255, 255, 0.06);
}

body.al-ui-ivory .al-mega__chev:hover,
body.al-ui-ivory .al-mega__chev:focus-visible {
  color: #12100e;
  background: rgba(0, 0, 0, 0.05);
}

.al-mega__panel {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  top: 100%;
  margin-top: 8px;
  min-width: min(920px, 92vw);
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(18, 16, 14, 0.1);
  background: linear-gradient(165deg, rgba(255, 253, 250, 0.98), rgba(247, 242, 234, 0.98));
  color: #12100e;
  box-shadow: 0 40px 100px rgba(10, 8, 6, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.35s,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 50;
}

.al-mega.is-open .al-mega__panel,
.al-mega:hover .al-mega__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1199px) {
  .al-mega:hover .al-mega__panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.al-mega__inner {
  padding: 22px 20px 26px;
}

.al-mega__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 28px;
}

@media (max-width: 1400px) {
  .al-mega__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.al-mega__title {
  margin: 0 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5c574e;
}

.al-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.al-mega__list a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #12100e;
  line-height: 1.35;
}

.al-mega__list a:hover {
  color: #6b5420;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------------- */
/* Full-screen luxury drawer                                                 */
/* ------------------------------------------------------------------------- */

@media (max-width: 1199px) {
  .al-drawer--luxury .al-drawer__panel {
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-left: 0;
    border-radius: 0;
  }

  .al-drawer--luxury:not([hidden]) .al-drawer__panel {
    animation: al-drawer-slide-in 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  @keyframes al-drawer-slide-in {
    from {
      transform: translateX(105%);
    }

    to {
      transform: translateX(0);
    }
  }
}

.al-drawer__body--luxury {
  padding: 12px 20px max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.al-drawer__search {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(18, 16, 14, 0.1);
  background: rgba(255, 255, 255, 0.92);
}

body.al-ui-noir .al-drawer__search {
  background: rgba(255, 252, 245, 0.08);
  border-color: rgba(255, 252, 245, 0.12);
}

.al-drawer__search .al-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 1rem;
  min-height: 44px;
}

.al-drawer__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.al-drawer__quick-link {
  flex: 1 1 calc(50% - 10px);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border: 1px solid rgba(18, 16, 14, 0.1);
  background: rgba(255, 255, 255, 0.55);
  color: #12100e;
}

body.al-ui-noir .al-drawer__quick-link {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 252, 245, 0.12);
  color: rgba(255, 252, 245, 0.92);
}

.al-drawer__quick-link--accent {
  background: linear-gradient(120deg, #e8cf7a, #c9a227);
  color: #1a1406;
  border-color: transparent;
}

.al-drawer__section {
  padding: 12px 0 8px;
  border-top: 1px solid rgba(18, 16, 14, 0.08);
}

body.al-ui-noir .al-drawer__section {
  border-top-color: rgba(255, 252, 245, 0.1);
}

.al-drawer__section-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5c574e;
}

body.al-ui-noir .al-drawer__section-title {
  color: rgba(255, 252, 245, 0.55);
}

.al-drawer__section-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.al-drawer__section-link {
  display: block;
  padding: 14px 12px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #12100e;
  transition: background 0.2s ease;
}

body.al-ui-noir .al-drawer__section-link {
  color: rgba(255, 252, 245, 0.92);
}

.al-drawer__section-link:hover,
.al-drawer__section-link:focus-visible {
  background: rgba(168, 134, 50, 0.12);
}

.al-drawer__section-link.is-active {
  background: rgba(168, 134, 50, 0.18);
}

.al-drawer__close {
  min-width: 48px;
  min-height: 48px;
  font-size: 2rem;
  line-height: 1;
}

/* Sticky head: allow mega to escape */
.al-sticky-head {
  overflow: visible;
}

.al-header {
  overflow: visible;
}

/* Page template luxury */
.al-page--luxury {
  padding: clamp(24px, 4vw, 56px) 0 clamp(48px, 8vw, 96px);
}

.al-page__title {
  margin-bottom: clamp(16px, 3vw, 28px);
}

.al-page-lede {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--al-muted, #5c574e);
  max-width: 52rem;
}

.al-page-hero {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.al-page__content .woocommerce {
  margin-top: 8px;
}
