/**
 * AmourLuxe luxury UI rebuild — overrides default WooCommerce chrome.
 * Modes: body.al-ui-noir (dark shell + readable cream commerce) | body.al-ui-ivory (Farfetch-style light).
 */

/* ------------------------------------------------------------------------- */
/* 1. Design tokens per mode                                                 */
/* ------------------------------------------------------------------------- */

body.al-ui-noir.al-body {
  --al-shell: #060607;
  --al-chrome-line: rgba(255, 252, 245, 0.12);
  --al-runway: #f4efe6;
  --al-runway-2: #ebe4d8;
  --al-ink-strong: #12100e;
  --al-ink-muted: #4a453c;
  --al-accent: #c9a227;
  --al-accent-ink: #1a1406;
  --al-glow-gold: rgba(201, 162, 39, 0.45);
}

body.al-ui-ivory.al-body {
  --al-shell: #faf8f4;
  --al-chrome-line: rgba(18, 16, 14, 0.08);
  --al-runway: #ffffff;
  --al-runway-2: #f3efe8;
  --al-ink-strong: #12100e;
  --al-ink-muted: #5c574e;
  --al-accent: #a88632;
  --al-accent-ink: #1a1406;
  --al-glow-gold: rgba(168, 134, 50, 0.35);
  background: linear-gradient(180deg, #fdfcfa 0%, #f5f0e8 100%) !important;
  color: var(--al-ink-strong) !important;
}

body.al-ui-ivory.al-body a:hover {
  color: var(--al-accent);
}

body.al-ui-ivory .al-header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom-color: var(--al-chrome-line) !important;
  color: var(--al-ink-strong);
}

body.al-ui-ivory .al-nav__menu a {
  color: var(--al-ink-muted) !important;
}

body.al-ui-ivory .al-nav__menu a:hover {
  color: var(--al-ink-strong) !important;
}

body.al-ui-ivory .al-topbar {
  background: #f0ebe3 !important;
  color: var(--al-ink-muted) !important;
  border-bottom-color: var(--al-chrome-line) !important;
}

body.al-ui-ivory .al-search {
  border-color: var(--al-chrome-line) !important;
  background: #fff !important;
}

body.al-ui-ivory .al-search__input {
  color: var(--al-ink-strong) !important;
}

/* ------------------------------------------------------------------------- */
/* 2. WooCommerce layout — fix single-column when no sidebar               */
/* ------------------------------------------------------------------------- */

.al-shop__layout {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(20px, 3vw, 40px) 0 clamp(48px, 6vw, 96px);
  grid-template-columns: 1fr;
  align-items: start;
}

.al-shop__layout--sidebar {
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
}

@media (max-width: 960px) {
  .al-shop__layout--sidebar {
    grid-template-columns: 1fr;
  }

  .al-shop__sidebar {
    position: static !important;
    order: 2;
  }

  .al-shop__content {
    order: 1;
  }
}

/* Noir: cream “runway” canvas inside Woo main */
body.al-ui-noir.al-woo-page .al-shop__content {
  background: linear-gradient(165deg, var(--al-runway) 0%, var(--al-runway-2) 100%);
  color: var(--al-ink-strong);
  border-radius: clamp(18px, 2.5vw, 28px);
  padding: clamp(18px, 2.5vw, 28px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(18, 16, 14, 0.06);
}

body.al-ui-ivory.al-woo-page .al-shop__content {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

/* ------------------------------------------------------------------------- */
/* 3. Shop archive — hero, toolbar, breadcrumbs                              */
/* ------------------------------------------------------------------------- */

.al-shop-archive__hero {
  padding: clamp(36px, 7vw, 88px) 0 clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--al-chrome-line);
  background: radial-gradient(900px 420px at 12% 0%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(700px 380px at 88% 20%, rgba(255, 255, 255, 0.06), transparent 50%),
    linear-gradient(145deg, #070708 0%, #101014 100%);
  color: rgba(255, 252, 245, 0.94);
}

body.al-ui-ivory .al-shop-archive__hero {
  background: linear-gradient(135deg, #1a1816 0%, #2a2418 55%, #1a1816 100%);
  color: rgba(255, 252, 245, 0.96);
}

.al-heading--archive-hero {
  font-weight: 300;
  letter-spacing: -0.02em;
}

.al-eyebrow--on-dark {
  color: rgba(255, 250, 240, 0.88) !important;
  letter-spacing: 0.32em;
}

.al-shop-archive__lede {
  max-width: 42rem;
  margin: 0 0 8px;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.65;
  color: rgba(255, 252, 245, 0.78);
}

.al-shop-archive__term-desc {
  margin-top: 16px;
  max-width: 48rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 252, 245, 0.72);
}

.al-trust-row--hero span {
  border: 1px solid rgba(255, 252, 245, 0.18);
  padding: 6px 12px;
  border-radius: 999px;
  color: rgba(255, 252, 245, 0.82);
}

.al-shop-breadcrumb {
  margin-bottom: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.al-shop-breadcrumb .woocommerce-breadcrumb {
  margin: 0 !important;
  color: rgba(255, 252, 245, 0.55) !important;
}

.al-shop-breadcrumb .woocommerce-breadcrumb a {
  color: rgba(255, 252, 245, 0.85) !important;
}

.al-shop-toolbar-wrap {
  margin-top: -12px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.al-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(18, 16, 14, 0.08);
  background: linear-gradient(180deg, #fffefb, #f3ece4);
  color: var(--al-ink-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

body.al-ui-ivory .al-shop-toolbar {
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.al-shop-toolbar .woocommerce-result-count {
  margin: 0 !important;
  font-size: 0.8125rem;
  color: var(--al-ink-muted);
}

.al-shop-toolbar .woocommerce-ordering {
  margin: 0 !important;
}

.al-shop-toolbar .woocommerce-ordering select {
  border-radius: 999px;
  border: 1px solid rgba(18, 16, 14, 0.12);
  padding: 10px 16px;
  font: inherit;
  background: #fff;
  color: var(--al-ink-strong);
  min-width: 200px;
}

/* Pagination */
body.al-woo-page .woocommerce-pagination ul {
  border: none !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 32px 0 8px !important;
}

body.al-woo-page .woocommerce-pagination ul li a,
body.al-woo-page .woocommerce-pagination ul li span {
  border-radius: 999px !important;
  border: 1px solid rgba(18, 16, 14, 0.1) !important;
  padding: 8px 14px !important;
  color: var(--al-ink-strong) !important;
  background: #fff !important;
}

body.al-woo-page .woocommerce-pagination ul li span.current {
  background: linear-gradient(135deg, #d6b56d, #a88632) !important;
  color: #111 !important;
  border-color: transparent !important;
}

/* ------------------------------------------------------------------------- */
/* 4. Product grid — premium cards + hover swap                              */
/* ------------------------------------------------------------------------- */

.al-readable-slab {
  padding-top: 8px;
}

.al-product-grid ul.products,
.al-shop-archive__grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(18px, 2.2vw, 26px) !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 1100px) {
  .al-product-grid ul.products,
  .al-shop-archive__grid ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .al-product-grid ul.products,
  .al-shop-archive__grid ul.products {
    grid-template-columns: 1fr !important;
  }
}

.al-product-card {
  border-radius: 20px !important;
  border: 1px solid rgba(18, 16, 14, 0.08) !important;
  background: linear-gradient(180deg, #fffefb 0%, #f6f1ea 100%) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
  color: var(--al-ink-strong) !important;
}

body.al-ui-noir .al-product-card {
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28) !important;
}

.al-product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 162, 39, 0.55) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(201, 162, 39, 0.25) !important;
}

.al-product-card__media {
  background: #0c0c0d !important;
}

.al-product-card__media::after {
  opacity: 0.35;
}

.al-product-card__imgstack {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0a0a0b;
}

.al-product-card__imgstack-primary {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  transition: opacity 0.45s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.al-product-card__imgstack-primary img,
.al-product-card__imgstack-hover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.al-product-card__imgstack-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.al-product-card:hover .al-product-card__imgstack-hover {
  opacity: 1;
}

.al-product-card:hover .al-product-card__imgstack-primary {
  transform: scale(1.05);
}

.al-product-card__body {
  background: transparent !important;
}

.al-product-card__brand {
  color: var(--al-ink-muted) !important;
  font-weight: 500;
}

.al-product-card__title {
  color: var(--al-ink-strong) !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em;
}

.al-product-card__meta {
  border-top-color: rgba(18, 16, 14, 0.08) !important;
  color: var(--al-ink-muted) !important;
}

.al-product-card .price {
  color: var(--al-ink-strong) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.al-product-card__cta {
  margin: 0 16px 16px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(18, 16, 14, 0.12) !important;
  background: #fff !important;
  color: var(--al-ink-strong) !important;
  text-align: center;
  justify-content: center;
}

.al-product-card__cta:hover {
  border-color: rgba(201, 162, 39, 0.65) !important;
  color: var(--al-accent) !important;
  box-shadow: 0 0 24px var(--al-glow-gold);
}

.al-product-card__fav {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ------------------------------------------------------------------------- */
/* 5. Shop sidebar widgets                                                   */
/* ------------------------------------------------------------------------- */

.al-shop__sidebar {
  border-radius: 18px !important;
  border: 1px solid rgba(18, 16, 14, 0.08) !important;
  background: linear-gradient(180deg, #fffefb, #efe8de) !important;
  color: var(--al-ink-strong) !important;
  padding: 20px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.al-widget__title {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--al-ink-muted);
}

.al-widget .price_slider_amount button,
.al-widget button[type="submit"] {
  border-radius: 999px;
  padding: 8px 16px;
  border: 0;
  background: linear-gradient(135deg, #d6b56d, #8a6d1f);
  color: #111;
  font-weight: 600;
  cursor: pointer;
}

/* ------------------------------------------------------------------------- */
/* 6. Single product — gallery + summary grid                              */
/* ------------------------------------------------------------------------- */

.al-inner-product .product.al-single-product-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

@media (max-width: 960px) {
  .al-inner-product .product.al-single-product-summary {
    grid-template-columns: 1fr;
  }
}

.al-single-product .woocommerce-product-gallery {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(18, 16, 14, 0.08);
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

.al-single-product .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0 !important;
  padding: 0 !important;
}

.al-single-product .flex-control-thumbs li {
  width: 72px !important;
  margin: 0 !important;
}

.al-single-product .summary {
  padding: clamp(8px, 2vw, 16px);
  border-radius: 20px;
  border: 1px solid rgba(18, 16, 14, 0.08);
  background: linear-gradient(180deg, #fffefb, #f4efe6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.al-single-product .summary .product_title {
  font-family: var(--al-font-display, "Cormorant Garamond", serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -0.02em;
  color: var(--al-ink-strong);
  margin-bottom: 12px;
}

.al-single-product .summary .price {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--al-ink-strong) !important;
}

.al-single-product .single_add_to_cart_button {
  border-radius: 999px !important;
  padding: 14px 28px !important;
  background: linear-gradient(135deg, #d6b56d, #8a6d1f) !important;
  color: #111 !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem !important;
  border: none !important;
  box-shadow: 0 14px 40px rgba(201, 162, 39, 0.35);
}

.al-atc-anchor {
  height: 0;
  overflow: hidden;
}

/* Luxury strip before tabs */
.al-product-luxury-strip {
  margin: clamp(24px, 4vw, 40px) 0;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 18px;
  border: 1px solid rgba(18, 16, 14, 0.08);
  background: linear-gradient(120deg, #fffefb, #ebe4d8);
  color: var(--al-ink-strong);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

@media (max-width: 720px) {
  .al-product-luxury-strip {
    grid-template-columns: 1fr;
  }
}

.al-product-luxury-strip__trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--al-ink-muted);
}

.al-product-luxury-strip__trust li {
  padding-left: 22px;
  position: relative;
}

.al-product-luxury-strip__trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--al-accent);
}

.al-product-luxury-strip__title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--al-ink-muted);
}

.al-product-luxury-strip__text {
  margin: 0;
  line-height: 1.65;
  color: var(--al-ink-strong);
}

/* Tabs */
.al-single-product .woocommerce-tabs {
  margin-top: clamp(28px, 4vw, 48px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(18, 16, 14, 0.08);
  background: #fffefb;
}

.al-single-product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(18, 16, 14, 0.08) !important;
  list-style: none !important;
}

.al-single-product .woocommerce-tabs ul.tabs li {
  border: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.al-single-product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 16px 22px !important;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--al-ink-muted) !important;
  border-bottom: 2px solid transparent !important;
}

.al-single-product .woocommerce-tabs ul.tabs li.active a,
.al-single-product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--al-ink-strong) !important;
  border-bottom-color: var(--al-accent) !important;
}

.al-single-product .woocommerce-Tabs-panel {
  padding: clamp(18px, 3vw, 28px) !important;
  color: var(--al-ink-strong);
  line-height: 1.65;
}

/* Upsells / related */
.al-single-product section.related.products > h2,
.al-single-product section.upsells.products > h2 {
  font-family: var(--al-font-display, "Cormorant Garamond", serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-bottom: 20px;
  color: var(--al-ink-strong);
}

/* Sticky ATC */
.al-sticky-atc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: rgba(8, 8, 10, 0.92);
  border-top: 1px solid rgba(255, 252, 245, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
}

.al-sticky-atc__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.al-sticky-atc__product {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.al-sticky-atc__name {
  font-size: 0.8125rem;
  color: rgba(255, 252, 245, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.al-sticky-atc__price {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.al-sticky-atc__btn {
  flex-shrink: 0;
}

/* ------------------------------------------------------------------------- */
/* 7. Homepage — premium banners + concierge                                 */
/* ------------------------------------------------------------------------- */

.al-section--compact {
  padding: clamp(28px, 5vw, 48px) 0 !important;
}

.al-home-banners__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}

@media (max-width: 900px) {
  .al-home-banners__grid {
    grid-template-columns: 1fr;
  }
}

.al-premium-banner {
  display: grid;
  grid-template-rows: minmax(220px, 1fr) auto;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(18, 16, 14, 0.08);
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

.al-premium-banner--compact {
  grid-template-rows: minmax(160px, 0.85fr) auto;
}

.al-premium-banner__media {
  min-height: 220px;
  background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45)), var(--al-banner-img, linear-gradient(135deg, #2a2418, #1a1816));
  background-size: cover;
  background-position: center;
}

.al-premium-banner__body {
  padding: clamp(18px, 3vw, 26px);
  color: var(--al-ink-strong);
}

body.al-ui-noir .al-home-banners .al-muted,
body.al-ui-noir .al-premium-banner__body .al-muted {
  color: var(--al-ink-muted) !important;
}

.al-concierge {
  position: relative;
  overflow: hidden;
}

.al-concierge__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

@media (max-width: 900px) {
  .al-concierge__grid {
    grid-template-columns: 1fr;
  }
}

body.al-ui-noir .al-concierge {
  background: radial-gradient(800px 400px at 80% 20%, rgba(201, 162, 39, 0.15), transparent 55%), #0a0a0c;
  color: rgba(255, 252, 245, 0.92);
}

body.al-ui-noir .al-concierge .al-heading,
body.al-ui-noir .al-concierge .al-muted {
  color: rgba(255, 252, 245, 0.88) !important;
}

body.al-ui-noir .al-concierge .al-section__kicker {
  color: rgba(255, 252, 245, 0.72) !important;
}

.al-concierge__panel {
  position: relative;
  border-radius: 20px;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid rgba(255, 252, 245, 0.14);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  min-height: 160px;
}

.al-concierge__glow {
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle at 30% 30%, rgba(201, 162, 39, 0.35), transparent 55%);
  pointer-events: none;
}

.al-concierge__prompt {
  position: relative;
  margin: 0;
  font-family: var(--al-font-body, system-ui);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 252, 245, 0.92);
}

body.al-ui-ivory .al-concierge {
  background: linear-gradient(135deg, #1a1816, #2c261c);
  color: rgba(255, 252, 245, 0.92);
}

body.al-ui-ivory .al-concierge .al-heading,
body.al-ui-ivory .al-concierge .al-muted,
body.al-ui-ivory .al-concierge .al-section__kicker {
  color: rgba(255, 252, 245, 0.9) !important;
}

body.al-ui-ivory .al-concierge__prompt {
  color: rgba(255, 252, 245, 0.95);
}

/* Noir homepage sections on cream (readability) */
body.al-ui-noir #primary .al-section:not(.al-lookbook):not(.al-concierge):not(.al-hero-slider) {
  background: var(--al-runway);
  color: var(--al-ink-strong);
  border-top: 1px solid rgba(18, 16, 14, 0.05);
  border-bottom: 1px solid rgba(18, 16, 14, 0.05);
}

body.al-ui-noir #primary .al-section .al-heading,
body.al-ui-noir #primary .al-section .al-product-card__title {
  color: var(--al-ink-strong) !important;
}

body.al-ui-noir #primary .al-section .al-muted,
body.al-ui-noir #primary .al-section .al-marquee {
  color: var(--al-ink-muted) !important;
}

body.al-ui-noir #primary .al-section .al-section__kicker {
  color: var(--al-ink-muted) !important;
  letter-spacing: 0.26em;
}

body.al-ui-noir #primary .al-lookbook {
  background: linear-gradient(120deg, rgba(26, 26, 26, 0.98), rgba(12, 12, 14, 0.98)) !important;
  color: rgba(255, 252, 245, 0.9);
  border: none !important;
}

body.al-ui-noir #primary .al-lookbook .al-heading,
body.al-ui-noir #primary .al-lookbook .al-muted,
body.al-ui-noir #primary .al-lookbook .al-section__kicker {
  color: rgba(255, 252, 245, 0.88) !important;
}

body.al-ui-ivory #primary .al-section:not(.al-hero-slider):not(.al-concierge) {
  background: transparent;
}

/* Category pills on light */
body.al-ui-noir .al-cat-pill {
  background: #fff !important;
  border-color: rgba(18, 16, 14, 0.08) !important;
  color: var(--al-ink-strong) !important;
}

body.al-ui-noir .al-cat-pill__meta {
  color: var(--al-ink-muted) !important;
}

/* ------------------------------------------------------------------------- */
/* 8. Demo notice — readable in both modes                                   */
/* ------------------------------------------------------------------------- */

.al-demo-notice {
  background: linear-gradient(90deg, rgba(214, 181, 109, 0.18), rgba(124, 185, 232, 0.12)) !important;
  color: var(--al-ink-strong, #12100e) !important;
  border-bottom: 1px solid rgba(18, 16, 14, 0.08) !important;
}

.al-demo-notice__text {
  color: var(--al-ink-strong, #12100e) !important;
}

/* ------------------------------------------------------------------------- */
/* 9. Cart / checkout surfaces                                               */
/* ------------------------------------------------------------------------- */

body.al-ui-noir.al-woo-cart-page .al-shop__content,
body.al-ui-noir.al-woo-checkout-page .al-shop__content,
body.al-ui-noir.al-woo-account-page .al-shop__content {
  background: linear-gradient(165deg, #f4efe6, #ebe4d8);
}

body.al-woo-checkout-page .woocommerce-checkout #payment,
body.al-woo-cart-page .cart-collaterals .cart_totals {
  border-radius: 16px !important;
  border: 1px solid rgba(18, 16, 14, 0.08) !important;
  background: #fffefb !important;
}

/* =========================================================================
   Reference archive (Archive.zip) — cinematic category + sidebar + tiles
   ========================================================================= */

.al-has-shop-sidebar .al-shop__layout--sidebar {
  align-items: start;
}

.al-shop__sidebar--lux {
  position: sticky;
  top: calc(80px + env(safe-area-inset-top, 0px));
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-bottom: 24px;
}

.al-shop-cat-nav {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(18, 16, 14, 0.08);
}

.al-shop-cat-nav__title {
  margin: 0 0 14px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--al-ink-muted, #5c574e);
  font-weight: 600;
}

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

.al-shop-cat-nav__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--al-ink-strong, #12100e);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.al-shop-cat-nav__link:hover {
  background: rgba(201, 162, 39, 0.08);
  border-color: rgba(201, 162, 39, 0.25);
}

.al-shop-cat-nav__link.is-current {
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.18), rgba(201, 162, 39, 0.05));
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.12);
}

.al-shop-cat-nav__name {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.al-shop-cat-nav__count {
  font-size: 0.72rem;
  color: var(--al-ink-muted, #5c574e);
}

.al-sidebar-hint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--al-ink-muted, #5c574e);
}

.al-nav__inner {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
}

.al-nav__mega {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(214, 181, 109, 0.55);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--al-gold-soft, #e8d4a8);
  white-space: nowrap;
  transition: box-shadow 0.25s ease, background 0.2s ease;
}

.al-nav__mega:hover {
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.08);
}

.al-nav__mega-bars {
  display: inline-block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.al-nav__menu {
  justify-content: center !important;
}

.al-nav__hot {
  margin-left: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.al-nav__hot-icon {
  flex-shrink: 0;
  color: #f5a524;
}

.al-icon-link--ai span,
.al-icon-link--wish span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .al-icon-link--ai span,
  .al-icon-link--wish span {
    display: none;
  }
}

.al-shop-archive__hero--cinematic {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(340px, 52vh, 560px);
  display: flex;
  align-items: flex-end;
  background-image: linear-gradient(105deg, rgba(4, 4, 6, 0.92) 0%, rgba(10, 10, 14, 0.72) 38%, rgba(8, 8, 12, 0.45) 100%),
    radial-gradient(900px 520px at 70% 20%, rgba(201, 162, 39, 0.18), transparent 55%),
    var(
      --al-archive-hero-img,
      url("https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=2400&q=82")
    );
  background-size: cover;
  background-position: center 22%;
  border-bottom: 1px solid rgba(255, 252, 245, 0.1);
}

.al-shop-archive__hero-inner {
  width: min(1320px, 100% - 40px);
  margin-inline: auto;
  padding-bottom: clamp(28px, 5vw, 48px);
}

.al-archive-hero-title {
  font-family: var(--al-font-display, "Cormorant Garamond", serif);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 252, 245, 0.98);
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4.2vw, 3.1rem);
}

.al-archive-hero-title__line {
  display: block;
}

.al-archive-hero-title__gold {
  color: #f0d78c;
  text-shadow: 0 0 40px rgba(201, 162, 39, 0.45);
}

.al-shop-archive__lede--accent {
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 252, 245, 0.88) !important;
}

.al-trust-row--icons {
  gap: 12px !important;
}

.al-trust-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 252, 245, 0.2);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 252, 245, 0.88);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.al-shop-dept-strip {
  padding: clamp(36px, 5vw, 56px) 0;
}

.al-shop-dept-strip__head {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.al-subcat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

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

@media (max-width: 520px) {
  .al-subcat-grid {
    grid-template-columns: 1fr;
  }
}

.al-subcat-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(18, 16, 14, 0.1);
  background: #0a0a0c;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.35s ease;
}

.al-subcat-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 162, 39, 0.25);
}

.al-subcat-card__link {
  display: block;
  color: inherit;
}

.al-subcat-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.75) 100%), var(--al-subcat-bg, linear-gradient(145deg, #1a1816, #2a2418));
  background-size: cover;
  background-position: center;
}

.al-subcat-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.al-subcat-card__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(18px, 3vw, 26px);
  text-align: center;
}

.al-subcat-card__title {
  margin: 0 0 6px;
  font-family: var(--al-font-display, "Cormorant Garamond", serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: rgba(255, 252, 245, 0.96);
}

.al-subcat-card__count {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 252, 245, 0.65);
}

.al-subcat-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid rgba(214, 181, 109, 0.65);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f0d78c;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.al-shop-toolbar--tiles .al-shop-toolbar__tiles-note {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--al-ink-muted, #5c574e);
}

.al-shop-archive__main {
  padding-top: clamp(12px, 2vw, 20px);
  padding-bottom: clamp(40px, 6vw, 80px);
}

@media (max-width: 960px) {
  .al-nav__inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .al-nav__menu {
    justify-content: flex-start !important;
  }

  .al-shop__sidebar--lux {
    position: static;
    max-height: none;
  }
}
