/*
 * Nelliz storefront repair layer.
 * Scoped visual and accessibility fixes for the unpublished audit-repair theme.
 */

:root,
body,
.f-color-default,
.f-color-dark,
.f-color-footer,
.f-color-badge-hot,
.f-color-badge-new,
.f-color-badge-sale,
f-product-reviews-default,
.jdgm-widget,
.jdgm-rev-widg,
.jdgm-revs-tab,
.jdgm-all-reviews,
.jdgm-gallery-popup {
  --common-star-color: #f5b301 !important;
  --fec-star-color: #f5b301 !important;
  --fec-star-empty-color: #b8b1a8 !important;
}

.f-product-card__reviews,
.f-product-reviews-box,
.star-rating,
.star-filled,
.star-half,
.jdgm-star:not(.jdgm-star-empty),
.jdgm-rev-widg .jdgm-star,
.jdgm-revs-tab .jdgm-star,
.jdgm-all-reviews .jdgm-star,
.jdgm-gallery-popup .jdgm-star {
  color: #f5b301 !important;
}

.star-filled,
.star-half,
.jdgm-rev-widg .jdgm-star,
.jdgm-revs-tab .jdgm-star,
.jdgm-all-reviews .jdgm-star,
.jdgm-gallery-popup .jdgm-star {
  fill: #f5b301 !important;
}

.star-empty,
.jdgm-star.jdgm-star-empty {
  color: #b8b1a8 !important;
  fill: #b8b1a8 !important;
}

/* Homepage hero copy after removing inline style blocks from editable content. */
.nzv3-slide-copy {
  width: min(520px, 94vw);
  margin: 0;
  color: #302117;
  text-align: left;
  text-shadow:
    0 1px 0 rgba(255, 250, 242, 0.96),
    0 2px 14px rgba(255, 248, 238, 0.72);
}

.nzv3-slide-copy p {
  margin: 0;
  color: inherit;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(17px, 1.3vw, 21px);
  font-weight: 650;
  line-height: 1.46;
  letter-spacing: 0.005em;
}

.nzv3-slide-copy .nzv3-slide-offer {
  margin-top: 10px;
  color: #7d1820;
  font-weight: 750;
}

.nl-mat__eyebrow {
  color: #6f675f !important;
}

.f-slide__title .nz-hero-title {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 16px 0;
  color: #302117;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 4vw, 62px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-align: left;
  white-space: normal;
  text-shadow:
    0 1px 0 rgba(255, 250, 242, 0.96),
    0 3px 16px rgba(255, 248, 238, 0.7);
}

.f-slide:has([data-nz-title]) .f-slide__button-first {
  min-height: 46px;
  color: #fff8ec !important;
  background: #302117 !important;
  border-color: #b68f55 !important;
}

@media (max-width: 767px) {
  .nzv3-slide-copy {
    width: 100%;
  }

  .nzv3-slide-copy p {
    font-size: 15.5px;
    line-height: 1.45;
  }

  .f-slide__title .nz-hero-title {
    width: 100%;
    margin-bottom: 10px;
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.04;
  }
}

/* Product names need enough lines to remain distinguishable. */
.f-product-card__name {
  -webkit-line-clamp: var(--product-title-line-clamp, 3) !important;
  overflow-wrap: break-word;
}

.f-product-details-tabs .f-product-tab-header {
  color: #5f574f !important;
  opacity: 1 !important;
}

.f-product-details-tabs .f-product-tab-header.active,
.f-product-details-tabs .f-product-tab-header[aria-selected="true"] {
  color: #241d18 !important;
}

.f-product-details-tabs .f-product-tab-header:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Cart options wrap at word boundaries instead of breaking "plug" into "plu / g". */
.f-cart-item__info {
  min-width: 0;
}

.f-cart-item__option,
.f-cart-item__property {
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

/* Product tabs remain usable and reachable on narrow screens. */
@media screen and (max-width: 767px) {
  .f-product-details-tabs,
  .f-product-details-tabs .f-tabs,
  .f-product-details-tabs .f-tabs__header {
    min-width: 0;
    max-width: 100%;
  }

  .f-product-details-tabs .f-tabs__header {
    overflow: visible;
  }

  .f-product-details-tabs .f-tabs__header-inner {
    width: 100%;
    max-width: 100%;
    gap: 0 25px !important;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .f-product-details-tabs .f-tab-header {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
  }
}

/*
 * Shop by room is intentionally rendered as a deterministic grid.
 * This replaces the previous scroll-driven timeline that could inflate the
 * homepage to many screen heights and render unconstrained SVG arrows.
 */
.nl-rooms {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.nl-rooms .nl-sticky {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: clamp(24px, 4vw, 52px) clamp(14px, 4vw, 56px) !important;
}

.nl-rooms .nl-head {
  margin-bottom: 18px !important;
}

.nl-rooms .nl-sub,
.nl-rooms .nl-ticks {
  display: none !important;
}

.nl-rooms .nl-stage,
.nl-rooms .nl-clip,
.nl-rooms .nl-row {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  transform: none !important;
  animation: none !important;
  view-timeline-name: none !important;
}

.nl-rooms .nl-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(10px, 1.4vw, 20px) !important;
  align-items: stretch !important;
}

.nl-rooms .nl-slot {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  transform: none !important;
  translate: none !important;
  animation: none !important;
  pointer-events: auto !important;
}

.nl-rooms .nl-card {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  flex-direction: column !important;
  transform: none !important;
  animation: none !important;
  pointer-events: auto !important;
}

.nl-rooms .nl-media {
  position: relative !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
}

.nl-rooms .nl-media img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
}

.nl-rooms .nl-copy {
  flex: 1 1 auto !important;
}

.nl-rooms .nl-go {
  flex-wrap: wrap;
}

.nl-rooms .nl-go svg {
  display: block !important;
  flex: 0 0 15px !important;
  width: 15px !important;
  min-width: 15px !important;
  max-width: 15px !important;
  height: 15px !important;
  min-height: 15px !important;
  max-height: 15px !important;
}

@media (max-width: 1023px) {
  .nl-rooms .nl-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .nl-rooms .nl-title {
    font-size: clamp(27px, 7vw, 34px) !important;
  }
}

@media (max-width: 599px) {
  .nl-rooms .nl-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .nl-rooms .nl-copy {
    padding: 14px 16px 16px !important;
  }
}

/* About light banner: one bounded banner, two overlapping images, real switch. */
.nl-light-banner {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(380px, 53vw, 720px);
  min-height: 380px;
  overflow: hidden;
  background: #151414;
}

.nl-light-banner::before,
.nl-light-banner::after {
  position: absolute;
  inset: -24px;
  z-index: 0;
  content: "";
  background-position: center;
  background-size: cover;
  filter: blur(24px) saturate(0.7) brightness(0.55);
  transform: scale(1.04);
  pointer-events: none;
}

.nl-light-banner::before {
  background-image: url("https://www.nelliz.com/media/diy/450/image/2026/10/12/600c3528c584d5f1610490a5ffd27993.jpg");
}

.nl-light-banner::after {
  background-image: url("https://www.nelliz.com/media/diy/450/image/2026/10/12/ad26f78d30a82cc378c58e543d6ba5c9.jpg");
  opacity: 0;
  filter: blur(24px) saturate(0.82) brightness(0.78);
  transition: opacity 650ms ease;
}

.nl-light-banner.is-on::after {
  opacity: 1;
}

.nl-light-banner__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
}

.nl-light-banner__photo--off {
  z-index: 1;
}

.nl-light-banner__photo--on {
  z-index: 2;
  opacity: 0;
  transition: opacity 650ms ease;
}

.nl-light-banner.is-on .nl-light-banner__photo--on {
  opacity: 1;
}

.nl-light-banner__copy {
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  bottom: clamp(24px, 6vw, 70px);
  z-index: 3;
  width: min(470px, calc(100% - 36px));
  padding: clamp(18px, 2.8vw, 30px);
  color: #201b17;
  background: rgba(250, 247, 241, 0.9);
  border: 1px solid rgba(73, 58, 44, 0.2);
  box-shadow: 0 18px 50px rgba(20, 15, 11, 0.18);
  text-align: left;
  backdrop-filter: blur(5px);
}

.nl-light-banner__copy h1,
.nl-light-banner__copy p {
  margin: 0;
  color: inherit;
}

.nl-light-banner__copy h1 {
  font-family: "Bookman Old Style", Georgia, serif;
  font-size: clamp(31px, 4.2vw, 58px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.nl-light-banner__copy p {
  margin-top: 12px;
  font-family: "Bookman Old Style", Georgia, serif;
  font-size: clamp(16px, 1.55vw, 21px);
  line-height: 1.55;
}

.nl-light-banner__switch {
  position: absolute;
  right: clamp(18px, 4vw, 52px);
  bottom: clamp(20px, 4vw, 48px);
  z-index: 5;
  width: clamp(42px, 4vw, 52px);
  height: clamp(68px, 6.5vw, 82px);
  border-radius: 18px;
}

.nl-light-banner__switch::before {
  position: absolute;
  z-index: -1;
  inset: -9px;
  content: "";
  border: 1px solid rgba(255, 224, 141, 0.9);
  border-radius: 22px;
  background: rgba(245, 179, 1, 0.09);
  box-shadow:
    0 0 0 2px rgba(245, 179, 1, 0.18),
    0 0 18px 7px rgba(245, 179, 1, 0.56),
    0 0 38px 14px rgba(245, 179, 1, 0.22),
    inset 0 0 15px rgba(255, 221, 124, 0.25);
  opacity: 0.82;
  pointer-events: none;
  animation: nl-light-switch-glow 2.15s ease-in-out infinite;
  transition: opacity 350ms ease;
}

.nl-light-banner__toggle {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.nl-light-banner__switch-icon {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: #ffe39a;
  filter:
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 5px rgba(245, 179, 1, 0.5));
  pointer-events: none;
  transition: color 300ms ease, transform 180ms ease;
}

.nl-light-banner__switch-icon rect,
.nl-light-banner__switch-icon circle,
.nl-light-banner__switch-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nl-light-banner__switch-mark {
  transition: transform 220ms ease;
}

.nl-light-banner.is-on .nl-light-banner__switch-icon {
  color: #f5b301;
}

.nl-light-banner.is-on .nl-light-banner__switch::before {
  opacity: 0;
  animation: none;
}

.nl-light-banner__switch:hover::before,
.nl-light-banner__switch:focus-within::before {
  opacity: 1;
}

.nl-light-banner.is-on .nl-light-banner__switch-mark {
  transform: translateY(-17px);
}

.nl-light-banner__toggle:focus-visible ~ .nl-light-banner__switch-icon {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.nl-light-banner__status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .nl-light-banner {
    height: min(620px, 82svh);
    min-height: 430px;
  }

  .nl-light-banner__photo {
    object-fit: cover;
    object-position: center center;
  }

  .nl-light-banner__copy {
    left: 16px;
    right: 16px;
    bottom: 22px;
    width: auto;
  }
}

@media (min-width: 768px) {
  .nl-light-banner__photo {
    object-position: center center;
  }
}

@keyframes nl-light-switch-glow {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.96);
    filter: brightness(0.95);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
    filter: brightness(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nl-light-banner__photo--on,
  .nl-light-banner::after,
  .nl-light-banner__switch-icon,
  .nl-light-banner__switch-mark {
    transition: none !important;
  }

  .nl-light-banner__switch::before {
    opacity: 0.86;
    transform: none;
    animation: none;
  }
}
