/* Site refresh: notice bar, "new version" popup and static-page fixes */
:root {
  --lux-ink: #161414;
  --lux-accent: #fc7933;
  --lux-paper: #ffffff;
  --lux-muted: #9ea0a2;
}

/* Widgets that relied on the old store/account backend */
[data-widget-type="loginBar"],
[data-widget-type="ssrcart"],
[data-widget-type="ssrcollectionsearch"],
[data-grab^="collection-search-widget"],
.caption-button.displayNone { display: none !important; }

/* Elements the old runtime used to fade in */
[data-anim-desktop], [data-anim-extended], .dmNewParagraph[data-anim-desktop] { visibility: visible !important; }

/* ---------- Notice bar ---------- */
.lux-notice {
  background: var(--lux-ink);
  color: #e9e7e6;
  font-family: "Inter Tight", "Inter Tight Fallback", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  border-bottom: 1px solid rgba(252, 121, 51, .35);
  position: relative;
  z-index: 1;
}
.lux-notice__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.lux-notice__text { margin: 0; text-align: center; }
.lux-notice__text strong { color: #fff; font-weight: 600; margin-right: 4px; }
.lux-notice__text a { color: var(--lux-accent); text-decoration: none; white-space: nowrap; font-weight: 600; }
.lux-notice__text a:hover { text-decoration: underline; }
.lux-notice__pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lux-accent);
  box-shadow: 0 0 0 0 rgba(252, 121, 51, .6);
  animation: lux-pulse 2s infinite;
  flex: none;
}
.lux-notice__btn {
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--lux-ink); background: var(--lux-accent);
  border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer;
  white-space: nowrap;
}
.lux-notice__btn:hover { background: #ff8f52; }
@keyframes lux-pulse {
  70% { box-shadow: 0 0 0 8px rgba(252, 121, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(252, 121, 51, 0); }
}
@media (max-width: 1024px) { .lux-notice__pulse { display: none; } }
@media (max-width: 767px) {
  .lux-notice__more { display: none; }
  .lux-notice__inner { gap: 8px 12px; padding: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) { .lux-notice__pulse { animation: none; } }

/* ---------- Popup ---------- */
.lux-modal[hidden] { display: none; }
.lux-modal {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  font-family: "Inter Tight", "Inter Tight Fallback", Arial, sans-serif;
}
.lux-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 9, 9, .8);
  animation: lux-fade .25s ease-out;
}
.lux-modal__panel {
  position: relative;
  width: 100%; max-width: 480px;
  max-height: calc(100vh - 32px); overflow: auto;
  background: var(--lux-ink); color: #d9d6d4;
  border-top: 3px solid var(--lux-accent);
  border-radius: 6px;
  padding: 36px 32px 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  animation: lux-rise .3s ease-out;
  outline: none;
}
.lux-modal__close {
  position: absolute; top: 8px; right: 10px;
  width: 36px; height: 36px;
  background: none; border: 0; color: var(--lux-muted);
  font-size: 28px; line-height: 1; cursor: pointer;
}
.lux-modal__close:hover { color: #fff; }
.lux-modal__logo { display: block; margin: 0 auto 22px; height: auto; max-width: 150px; }
.lux-modal__eyebrow {
  margin: 0 0 8px; color: var(--lux-accent);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.lux-modal__title { margin: 0 0 14px; color: #fff; font-size: 26px; font-weight: 500; line-height: 1.2; }
.lux-modal__body { margin: 0 0 12px; font-size: 15px; line-height: 1.6; }
.lux-modal__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px 0 16px; }
.lux-modal__cta {
  display: inline-block; padding: 11px 20px; border-radius: 999px;
  background: var(--lux-accent); color: var(--lux-ink) !important;
  font-weight: 600; font-size: 14px; text-decoration: none;
  border: 1px solid var(--lux-accent);
}
.lux-modal__cta:hover { background: #ff8f52; }
.lux-modal__cta--ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .35); }
.lux-modal__cta--ghost:hover { background: rgba(255, 255, 255, .08); }
.lux-modal__address { margin: 0; font-size: 12px; color: var(--lux-muted); }
body.lux-modal-open { overflow: hidden; }
@keyframes lux-fade { from { opacity: 0; } }
@keyframes lux-rise { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  .lux-modal__backdrop, .lux-modal__panel { animation: none; }
}
@media (max-width: 480px) {
  .lux-modal__panel { padding: 32px 20px 24px; }
  .lux-modal__title { font-size: 22px; }
}

/* Wide decorative images were clipped by the old runtime */
#dm.dmwr { overflow-x: clip; }

/* ---------- Photo galleries (previously laid out by the old runtime) ---------- */
#dmRoot #dm .dmPhotoGallery { height: auto !important; }
#dmRoot #dm .dmPhotoGallery .dmPhotoGalleryHolder {
  display: grid !important;
  grid-template-columns: repeat(var(--lux-cols, 3), minmax(0, 1fr));
  gap: 16px;
  margin: 0; padding: 0; list-style: none;
  height: auto !important; width: 100% !important;
}
#dmRoot #dm .dmPhotoGallery[data-desktop-columns="2"] { --lux-cols: 2; }
#dmRoot #dm .dmPhotoGallery .photoGalleryThumbs {
  visibility: visible !important; display: block !important;
  position: relative !important; top: auto !important; left: auto !important;
  width: auto !important; height: auto !important; margin: 0 !important;
  overflow: hidden;
}
#dmRoot #dm .dmPhotoGallery .image-container { position: relative; width: 100% !important; height: auto !important; visibility: visible !important; overflow: hidden; }
#dmRoot #dm .dmPhotoGallery .image-container a { display: block; visibility: visible !important; padding: 0 !important; }
#dmRoot #dm .dmPhotoGallery .image-container img {
  display: block !important; visibility: visible !important;
  position: static !important; width: 100% !important; height: 100% !important;
  object-fit: cover; transition: transform .6s ease, opacity .4s ease;
}
/* square product-category tiles: main image, second image revealed on hover */
#dmRoot #dm .dmPhotoGallery[data-desktop-layout="square"] .image-container { aspect-ratio: 1 / 1; }
#dmRoot #dm .dmPhotoGallery[data-desktop-layout="square"] .image-container a { position: absolute; inset: 0; }
#dmRoot #dm .dmPhotoGallery[data-desktop-layout="square"] .image-container a + a { opacity: 0; transition: opacity .4s ease; }
#dmRoot #dm .dmPhotoGallery[data-desktop-layout="square"] .photoGalleryThumbs:hover .image-container a + a { opacity: 1; }
#dmRoot #dm .dmPhotoGallery .photoGalleryThumbs:hover img { transform: scale(1.03); }
#dmRoot #dm .dmPhotoGallery[data-desktop-layout="square"] .caption-container { display: block !important; visibility: visible !important; position: static !important; padding: 12px 0 4px; }
#dmRoot #dm .dmPhotoGallery .caption-title { margin: 0; font-size: 18px; font-weight: 500; color: var(--color_1, #161414) !important; }
#dmRoot #dm .dmPhotoGallery .caption-link { text-decoration: none; color: inherit; }
/* pinterest showcase: masonry columns */
#dmRoot #dm .dmPhotoGallery[data-desktop-layout="pinterest"] .dmPhotoGalleryHolder { display: block !important; columns: 3; column-gap: 16px; }
#dmRoot #dm .dmPhotoGallery[data-desktop-layout="pinterest"] .photoGalleryThumbs { break-inside: avoid; margin: 0 0 16px !important; }
#dmRoot #dm .dmPhotoGallery[data-desktop-layout="pinterest"] .image-container img { height: auto !important; }
@media (max-width: 767px) {
  #dmRoot #dm .dmPhotoGallery .dmPhotoGalleryHolder { --lux-cols: 2; gap: 10px; }
  #dmRoot #dm .dmPhotoGallery[data-desktop-layout="pinterest"] .dmPhotoGalleryHolder { columns: 2; column-gap: 10px; }
  #dmRoot #dm .dmPhotoGallery .caption-title { font-size: 15px; }
}

/* LUX logo in the mobile menu header (replaces the template placeholder) */
#dmRoot #hamburger-drawer img[alt="LUX Integrate"] { width: 56px !important; max-width: 56px; height: auto !important; }
