:root {
  --paper: #f3f2ec;
  --card: #fbfaf6;
  --sage: #9bb3a3;
  --sage-d: #5f7c6c;
  --ink: #2f3d35;
  --line: #dcdcd2;
  --sale: #b5543a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

body {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--sage-d);
  outline-offset: 3px;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* announcement */
.ann {
  background: var(--ink);
  color: #f3f2ec;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 9px 12px;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.ann button {
  background: none;
  border: 0;
  color: #f3f2ec;
  font-size: 1.3rem;
  line-height: 1;
}

#annTxt {
  min-width: 260px;
  transition: opacity 0.3s;
}

/* header */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 88px;
  gap: 16px;
}

.util {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 0.86rem;
}

.util i {
  width: 1px;
  height: 16px;
  background: var(--ink);
  opacity: 0.5;
}

.util a:hover {
  color: var(--sage-d);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sage-d);
}

.badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex: none;
}

.badge img {
  position: absolute;
  width: 165%;
  left: -32%;
  top: -30%;
  mix-blend-mode: multiply;
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand b {
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 0.28em;
}

.brand small {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--ink);
}

.icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.search {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  margin-right: 10px;
  width: 200px;
}

.search input {
  border: 0;
  background: none;
  font: inherit;
  padding: 8px 4px;
  width: 100%;
  color: var(--ink);
  outline: 0;
}

.search:focus-within {
  border-color: var(--sage-d);
}

.ib {
  position: relative;
  background: none;
  border: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.ib svg {
  width: 25px;
  height: 25px;
}

.ib.on svg {
  fill: var(--sage-d);
  stroke: var(--sage-d);
}

.ib:hover {
  color: var(--sage-d);
}

.bd {
  position: absolute;
  top: 2px;
  right: 0;
  background: var(--sage-d);
  color: #fff;
  font-size: 0.68rem;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.burger {
  display: none;
  background: none;
  border: 0;
  font-size: 1.7rem;
  justify-self: start;
}

.ms {
  display: none;
}

nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 6px 24px 12px;
  position: relative;
}

nav > a,
.ddb,
.nl {
  background: none;
  border: 0;
  padding: 6px 0;
  font-weight: 500;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

nav > a:hover,
.ddb:hover,
.nl:hover {
  color: var(--sage-d);
}

.sale {
  color: var(--sale) !important;
}

.dd {
  position: relative;
}

.sub {
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  min-width: 240px;
  box-shadow: 0 18px 36px -18px rgba(47, 61, 53, 0.4);
  z-index: 5;
}

.sub button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.92rem;
}

.sub button:hover {
  background: var(--paper);
  color: var(--sage-d);
}

/* hero */
.nclose {
  display: none;
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: 0;
  font-size: 1.9rem;
  line-height: 1;
}

.nscrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 43, 36, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 1;
}

.hero {
  position: relative;
  height: 650px;
  overflow: hidden;
  background: var(--ink);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}

.slide.on {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  z-index: 2;
}

.bg,
.bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide.on .bg svg {
  animation: kb 10s ease-out both;
}

@keyframes kb {
  from {
    transform: scale(1.18);
  }

  to {
    transform: scale(1);
  }
}

.ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(31, 43, 36, 0.3),
    rgba(31, 43, 36, 0.05)
  );
}

.cap {
  position: absolute;
  left: max(24px, calc((100% - 1192px) / 2));
  top: 50%;
  transform: translateY(-50%);
  max-width: 480px;
  color: #fff;
}

.cap small {
  display: block;
  letter-spacing: 0.35em;
  font-size: 0.82rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cap h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
}

.cap p {
  margin: 16px 0 28px;
  max-width: 400px;
}

.slide.on .cap > * {
  animation: up 0.9s both;
}

.slide.on .cap > *:nth-child(2) {
  animation-delay: 0.12s;
}

.slide.on .cap > *:nth-child(3) {
  animation-delay: 0.24s;
}

.slide.on .cap > *:nth-child(4) {
  animation-delay: 0.36s;
}

@keyframes up {
  from {
    opacity: 0;
    translate: 0 24px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

.fl {
  position: absolute;
  right: max(24px, calc((100% - 1192px) / 2));
  top: 50%;
  transform: translateY(-50%);
  width: 38%;
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: center;
}

.fl div {
  width: 44%;
  aspect-ratio: 4/5;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.6);
  border-radius: 3px;
  overflow: hidden;
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: -2px;
}

.fl div svg {
  width: 100%;
  height: 100%;
  display: block;
}

.fl .r1 {
  rotate: -6deg;
  display: none;
}

.fl .r2 {
  rotate: 5deg;
  margin-top: 70px;
  display: none;
}

.slide.on .fl div {
  animation:
    rise 1.1s 0.2s both,
    float 6s 1.3s ease-in-out infinite alternate;
}

.slide.on .fl .r2 {
  animation-delay: 0.45s, 1.5s;
}

@keyframes rise {
  from {
    translate: 0 120px;
    opacity: 0;
  }

  to {
    translate: 0 0;
    opacity: 1;
  }
}

@keyframes float {
  from {
    translate: 0 0;
  }

  to {
    translate: 0 -14px;
  }
}

.btn {
  display: inline-block;
  background: var(--sage-d);
  color: #fff;
  padding: 14px 34px;
  border-radius: 40px;
  border: 0;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: 0.25s;
}

.btn:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.cap .btn {
  background: #fbfaf6;
  color: var(--ink);
}

.cap .btn:hover {
  background: var(--sage);
  color: #1f2b24;
}

.hn,
.hp {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(31, 43, 36, 0.25);
  color: #fff;
  font-size: 1.5rem;
}

.hp {
  left: 14px;
}

.hn {
  right: 14px;
}

.hn:hover,
.hp:hover {
  background: rgba(255, 255, 255, 0.25);
}

.dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}

.dots button {
  width: 34px;
  height: 4px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 2px;
  padding: 0;
}

.dots button.on {
  background: #fff;
}

.perks {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.perks .wrap {
  display: flex;
  justify-content: space-between;
  gap: 10px 24px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--sage-d);
}

/* sections */
.sec {
  padding: 64px 0 20px;
}

.ct {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 34px;
}

.railwrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  flex: 1;
  padding: 4px 0;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rarr {
  background: none;
  border: 0;
  font-size: 2rem;
  width: 36px;
  flex: none;
}

.rarr:hover {
  color: var(--sage-d);
}

.chip {
  background: none;
  border: 1px solid var(--line);
  padding: 5px 13px;
  border-radius: 30px;
  font-size: 0.9rem;
  transition: 0.2s;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--sage-d);
}

.chip.on {
  background: var(--sage);
  border-color: var(--sage);
  color: #1f2b24;
}

.chip.sz {
  background: #e9e8e1;
  border: 0;
  border-radius: 2px;
  padding: 26px 30px;
  flex: none;
  font-size: 1rem;
}

.chip.sz:hover {
  background: #dcdcd2;
}

.chip.sz.on {
  background: var(--sage);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 22px;
}

.tile {
  background: none;
  border: 0;
  text-align: center;
}

.tile div {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
  background: #ece9df;
}

.tile svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.6s;
}

.tile .category-photo {
  position: relative;
  width: 100%;
  height: 100%;
}

.tile .category-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.tile .category-fallback,
.tile .category-fallback svg {
  width: 100%;
  height: 100%;
}

.tile:hover .category-photo img {
  transform: scale(1.08);
}

.tile:hover svg {
  transform: scale(1.08);
}

.tile span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  margin-top: 10px;
}

.shop {
  padding: 64px 0 80px;
}

.shop-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.shop-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

select {
  font: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: 30px;
  color: var(--ink);
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.count {
  margin: 18px 0 20px;
  font-size: 0.9rem;
  color: #76847b;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.lnk {
  background: none;
  border: 0;
  text-decoration: underline;
  color: var(--sage-d);
  font-size: 0.9rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px;
}

.card {
  background: var(--card);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px -18px rgba(47, 61, 53, 0.35);
}

.thumb {
  aspect-ratio: 4/5;
  background: #ece9df;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.thumb svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.5s;
}

.card:hover .thumb svg {
  transform: scale(1.06);
}

.quick-view {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  transform: translate(-50%, 10px);
  opacity: 0;
  background: rgba(251, 250, 246, 0.94);
  color: var(--ink);
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, 0.5);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
}

.card:hover .quick-view {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--card);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--sage-d);
}

.heart {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(251, 250, 246, 0.92);
  font-size: 1.25rem;
  color: var(--sage-d);
  z-index: 2;
}

.heart:hover {
  transform: scale(1.1);
}

.info {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.info h3 {
  font-size: 1.4rem;
}

.meta {
  font-size: 0.85rem;
  color: #76847b;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  gap: 8px;
}

.price {
  font-size: 1.05rem;
  font-weight: 400;
}

.add {
  background: none;
  border: 1px solid var(--sage-d);
  color: var(--sage-d);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.86rem;
  transition: 0.2s;
  white-space: nowrap;
}

.add:hover {
  background: var(--sage-d);
  color: #fff;
}

.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 50px 0;
  color: #76847b;
}

.story {
  background: var(--sage);
  padding: 80px 0;
  color: #1f2b24;
}

.story .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.story h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.story p {
  margin-top: 18px;
  max-width: 460px;
}

.rooms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rooms div {
  background: rgba(251, 250, 246, 0.55);
  padding: 22px;
  border-radius: 6px;
}

.rooms h3 {
  font-size: 1.4rem;
}

.rooms span {
  font-size: 0.88rem;
}

.news {
  padding: 80px 0;
  text-align: center;
}

.news h2 {
  font-size: 2.4rem;
}

.news form {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.news input {
  font: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 30px;
  min-width: 260px;
  color: var(--ink);
}

.msg {
  margin-top: 14px;
  color: var(--sage-d);
  min-height: 1.6em;
}

footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  font-size: 0.88rem;
  color: #76847b;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Ultra-smooth premium interactions ===== */
@media (min-width: 961px) {
  .dd .sub {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 10px, 0) scale(0.985);
    transform-origin: top center;
    transition:
      opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.38s;
    will-change: opacity, transform;
  }

  .dd:hover .sub,
  .dd.open .sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    transition:
      opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0s;
  }

  /* A chosen filter closes the menu even while the pointer is still over it. */
  .dd.dismissed:hover .sub {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 10px, 0) scale(0.985);
  }
}

/* Seamless banner transition */
.hero {
  isolation: isolate;
}

.slide {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(22px, 0, 0) scale(1.008);
  filter: blur(1.5px);
  transition:
    opacity 1.15s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 1.05s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s linear 1.45s;
  will-change: opacity, transform, filter;
}

.slide.on {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  transition:
    opacity 1.15s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 1.05s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s linear 0s;
}

/* Very slow Ken Burns inside the already-smooth slide */
.slide .bg {
  transform: scale(1.025);
  transition: transform 7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.slide.on .bg {
  transform: scale(1);
}

.slide.on .bg svg {
  animation: kb 12s cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.hero:hover .slide.on .bg svg {
  animation-play-state: paused;
}

/* Captions enter gently instead of popping */
.slide .cap > * {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}

.slide.on .cap > * {
  animation: softCaption 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.slide.on .cap > *:nth-child(2) {
  animation-delay: 0.1s;
}

.slide.on .cap > *:nth-child(3) {
  animation-delay: 0.18s;
}

.slide.on .cap > *:nth-child(4) {
  animation-delay: 0.26s;
}

@keyframes softCaption {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Product images: restrained luxury hover */
.thumb svg,
.tile svg,
.rtile svg,
.nart svg,
.dart svg {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.card:hover .thumb svg {
  transform: scale(1.055);
}

.tile:hover svg,
.rtile:hover svg,
.nart div:hover svg,
.dart div:hover svg {
  transform: scale(1.018);
}

.thumb,
.tile div,
.rtile div,
.nart div,
.dart div {
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover .thumb {
  box-shadow: 0 14px 30px -22px rgba(47, 61, 53, 0.32);
}

.tile:hover div,
.rtile:hover div,
.nart div:hover,
.dart div:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 12px 26px -20px rgba(47, 61, 53, 0.25);
}

/* Almost invisible image sheen */
.thumb:after,
.tile div:after,
.rtile div:after,
.nart div:after,
.dart div:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 47%,
    rgba(255, 255, 255, 0.065) 50%,
    transparent 53%
  );
  transform: translate3d(-115%, 0, 0);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.card:hover .thumb:after,
.tile:hover div:after,
.rtile:hover div:after,
.nart div:hover:after,
.dart div:hover:after {
  transform: translate3d(115%, 0, 0);
}

.quick-view {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  transform: translate3d(-50%, 8px, 0);
  opacity: 0;
  background: rgba(251, 250, 246, 0.94);
  color: var(--ink);
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  box-shadow: 0 7px 18px -12px rgba(0, 0, 0, 0.4);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.card:hover .quick-view {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

.heart,
.add,
.btn {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.35s ease;
}

.heart:hover {
  transform: scale(1.035);
}

.add:hover,
.btn:hover {
  transform: translate3d(0, -1px, 0);
}

.modal {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.42s linear;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal .box {
  transform: translate3d(0, 18px, 0) scale(0.985);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.open .box {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.box .pic {
  overflow: hidden;
  cursor: zoom-in;
}

.box .pic svg {
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.box .pic:hover svg {
  transform: scale(1.035);
}

.sub button {
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sub button:hover {
  transform: translate3d(3px, 0, 0);
}

@media (max-width: 960px) {
  nav.open {
    animation: mobileMenu 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes mobileMenu {
  from {
    transform: translate3d(-102%, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide,
  .slide .bg,
  .slide .cap > *,
  .modal,
  .modal .box,
  .thumb svg,
  .tile svg,
  .rtile svg,
  .nart svg,
  .dart svg,
  .thumb:after,
  .tile div:after,
  .rtile div:after,
  .nart div:after,
  .dart div:after {
    transition: none !important;
    animation: none !important;
    filter: none !important;
    transform: none !important;
  }
}

/* modal, drawer, toast */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(31, 43, 36, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 10px;
}

.modal.open {
  display: flex;
}

.box {
  background: var(--card);
  border-radius: 8px;
  max-width: 760px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}

.box .pic {
  background: #ece9df;
  min-height: 300px;
}

.box .pic svg {
  width: 100%;
  height: 100%;
  display: block;
}

.box .txt {
  padding: 34px 30px;
}

.box h3 {
  font-size: 2rem;
}

.box p {
  margin: 12px 0;
}

.sizes {
  display: flex;
  gap: 8px;
  margin: 14px 0 22px;
  flex-wrap: wrap;
}

.close {
  position: absolute;
  top: 8px;
  right: 14px;
  background: var(--card);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  border: 0;
  font-size: 1.6rem;
  z-index: 2;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(31, 43, 36, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 70;
}

.scrim.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--card);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.35s;
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: none;
}

.dh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.dh h3 {
  font-size: 1.8rem;
}

.dh button {
  background: none;
  border: 0;
  font-size: 1.8rem;
}

.db {
  flex: 1;
  overflow-y: auto;
  padding: 8px 22px;
}

.ci {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cth {
  width: 70px;
  height: 88px;
  border-radius: 3px;
  overflow: hidden;
}

.cth svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qty button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
}

.cr {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.rm {
  background: none;
  border: 0;
  font-size: 0.82rem;
  text-decoration: underline;
  color: #76847b;
}

.df {
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ship {
  font-size: 0.88rem;
  color: var(--sage-d);
}

.ship i {
  display: block;
  height: 5px;
  background: var(--line);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}

.ship u {
  display: block;
  height: 100%;
  background: var(--sage-d);
  transition: width 0.4s;
}

.tot {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
}

.wa {
  text-align: center;
  background: #3f7a5a;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 90px);
  background: var(--ink);
  color: #fff;
  padding: 12px 26px;
  border-radius: 40px;
  transition: 0.35s;
  z-index: 90;
  text-align: center;
}

.toast.show {
  transform: translate(-50%, 0);
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.trust a {
  display: block;
  text-align: center;
  padding: 20px 12px;
  border-right: 1px solid var(--line);
  font-size: 0.88rem;
  color: #76847b;
  transition: 0.2s;
}

.trust a:last-child {
  border-right: 0;
}

.trust a:hover {
  background: var(--card);
  color: var(--sage-d);
}

.trust b {
  display: block;
  font:
    400 1.3rem "Cormorant Garamond",
    serif;
  color: var(--ink);
}

.rowhead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 30px;
}

.rowhead .ct {
  margin: 0;
}

.car {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 4px 2px 12px;
}

.car::-webkit-scrollbar {
  display: none;
}

.car > * {
  flex: 0 0 min(270px, 72%);
  scroll-snap-align: start;
}

.rtile {
  background: none;
  border: 0;
  text-align: center;
}

.rtile div {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
  background: #ece9df;
}

.rtile svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.6s;
}

.rtile:hover svg {
  transform: scale(1.08);
}

.rtile b {
  display: block;
  font:
    400 1.45rem "Cormorant Garamond",
    serif;
  margin-top: 10px;
}

.rtile span {
  font-size: 0.88rem;
  text-decoration: underline;
  color: var(--sage-d);
}

.newbn,
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  border-radius: 6px;
  overflow: hidden;
}

.newbn {
  background: var(--sage);
  color: #1f2b24;
}

.split {
  background: var(--card);
  border: 1px solid var(--line);
  grid-template-columns: 1.1fr 1fr;
}

.nbt,
.txt2 {
  padding: 56px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.nbt small,
.txt2 small,
.trade small {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.nbt h2,
.txt2 h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin: 8px 0 10px;
}

.nbt p,
.txt2 p {
  margin: 4px 0 24px;
  max-width: 380px;
}

.newbn .btn {
  background: var(--ink);
}

.nart {
  background: #e9e8e1;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  padding: 40px 30px;
}

.nart div {
  width: 30%;
  aspect-ratio: 4/5;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 20px 36px -16px rgba(0, 0, 0, 0.4);
}

.nart div:nth-child(1) {
  margin-top: -30px;
}

.nart div:nth-child(2) {
  margin-top: 40px;
}

.split .nart div {
  width: 38%;
}

.split .nart img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.rev {
  padding: 70px 0;
  text-align: center;
  background: var(--card);
  border-block: 1px solid var(--line);
  margin-top: 64px;
}

.rv {
  position: relative;
  min-height: 200px;
  max-width: 760px;
  margin: 0 auto;
}

.rv blockquote {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  padding: 0 10px;
  pointer-events: none;
}

.rv blockquote.on {
  opacity: 1;
}

.rv cite {
  display: block;
  font:
    300 0.95rem "Jost",
    sans-serif;
  margin-top: 14px;
  color: var(--sage-d);
  font-style: normal;
}

.stars {
  color: var(--sage-d);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  font-size: 1rem;
  font-family: "Jost", sans-serif;
}

.rdots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.rdots button {
  width: 30px;
  height: 4px;
  border: 0;
  background: var(--line);
  border-radius: 2px;
  padding: 0;
}

.rdots .on {
  background: var(--sage-d);
}

.trade {
  background: var(--ink);
  color: #f3f2ec;
  padding: 70px 0;
  text-align: center;
}

.trade small {
  color: var(--sage);
}

.trade h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 8px 0 12px;
}

.trade p {
  max-width: 520px;
  margin: 0 auto 26px;
}

.trade .btn {
  background: var(--sage);
  color: #1f2b24;
}

.logobox {
  background: var(--paper);
  border-radius: 6px;
  padding: 20px;
}

.logobox img {
  width: 100%;
  display: block;
  margin: auto;
  mix-blend-mode: multiply;
}

footer {
  padding: 56px 0 28px;
}

footer .wrap {
  display: block;
}

.fcols {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.4fr;
  gap: 28px;
  margin-bottom: 34px;
}

.fcols h4 {
  font:
    500 0.8rem "Jost",
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}

.fcols a {
  display: block;
  padding: 3px 0;
}

.fcols a:hover {
  color: var(--sage-d);
}

.fcols form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.fcols input {
  font: inherit;
  min-width: 0;
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--card);
}

.fcols .btn {
  padding: 9px 18px;
}

.fbot {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.pbox {
  background: var(--card);
  border-radius: 8px;
  max-width: 420px;
  width: 100%;
  padding: 40px 34px;
  text-align: center;
  position: relative;
}

.pbox h3 {
  font-size: 2rem;
}

.pbox .big {
  font:
    400 4.2rem "Cormorant Garamond",
    serif;
  color: var(--sage-d);
  line-height: 1.1;
}

.pbox form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 10px;
}

.pbox input {
  font: inherit;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  color: var(--ink);
}

.pbox small {
  color: #76847b;
}

@media (max-width: 960px) {
  .top {
    grid-template-columns: auto 1fr auto;
    height: 72px;
  }

  .util,
  .icons .search {
    display: none;
  }

  .burger {
    display: block;
  }

  .brand {
    justify-self: center;
  }

  .brand b {
    font-size: 1.05rem;
    letter-spacing: 0.2em;
  }

  .brand small {
    font-size: 0.8rem;
  }

  .badge {
    width: 44px;
    height: 44px;
  }

  nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 86%);
    z-index: 2;
    transform: translateX(-102%);
    visibility: hidden;
    transition:
      transform 0.35s,
      visibility 0.35s;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 56px 24px 24px;
    overflow-y: auto;
    box-shadow: 10px 0 30px -10px rgba(0, 0, 0, 0.3);
  }

  nav.open {
    transform: none;
    visibility: visible;
  }

  .nclose {
    display: block;
  }

  .nscrim {
    display: block;
  }

  nav.open + .nscrim {
    opacity: 1;
    pointer-events: auto;
  }

  .ms {
    display: flex;
    width: 100%;
    margin: 6px 0 10px;
  }

  nav > a,
  .ddb,
  .nl {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
    text-align: left;
    display: block;
  }

  .sub {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 4px 0 8px 10px;
    min-width: 0;
    background: none;
  }

  .hero {
    height: 400px;
  }

  .fl {
    display: none;
  }

  .cap {
    left: 24px;
    right: 24px;
    max-width: none;
  }

  .ov {
    background: rgba(31, 43, 36, 0.15);
  }

  .hn,
  .hp {
    display: none;
  }

  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .story .wrap,
  .box {
    grid-template-columns: 1fr;
  }

  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .chip.sz {
    padding: 20px 22px;
  }
}

@media (max-width: 480px) {
  .grid {
    gap: 14px;
    grid-template-columns: repeat(2, 1fr);
  }

  .info {
    padding: 12px;
  }

  .info h3 {
    font-size: 1.15rem;
  }

  .row {
    flex-direction: column;
    align-items: flex-start;
  }

  .ann {
    font-size: 0.78rem;
  }

  #annTxt {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

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

  .trust a:nth-child(2) {
    border-right: 0;
  }

  .trust a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .newbn,
  .split {
    grid-template-columns: 1fr;
  }

  .nbt,
  .txt2 {
    padding: 36px 26px;
  }

  .fcols {
    grid-template-columns: 1fr 1fr;
  }

  .fcols > div:last-child {
    grid-column: 1/-1;
  }

  .rv {
    min-height: 270px;
  }

  .rowhead {
    gap: 10px;
  }

  .rowhead .ct {
    font-size: 1.7rem;
  }
}

/* ===== Extracted style block %d ===== */

/* FINAL SMOOTH INTERACTIONS */
@media (max-width: 900px) {
  /* Mobile left menu / drawer */
  .mobile-menu,
  .nav-mobile,
  .mobile-nav,
  .menu-drawer,
  .drawer-menu {
    transform: translate3d(-100%, 0, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.38s ease,
      visibility 0.52s;
    will-change: transform, opacity;
  }

  .mobile-menu.open,
  .nav-mobile.open,
  .mobile-nav.open,
  .menu-drawer.open,
  .drawer-menu.open,
  body.menu-open .mobile-menu,
  body.menu-open .nav-mobile,
  body.menu-open .mobile-nav,
  body.menu-open .menu-drawer,
  body.menu-open .drawer-menu {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Product image: smooth zoom in and equally smooth zoom out */
  .card .thumb,
  .card .thumb img,
  .product-card .thumb,
  .product-card .thumb img {
    transition:
      transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.72s ease;
    will-change: transform;
    transform-origin: center center;
  }

  .card:hover .thumb,
  .product-card:hover .thumb {
    transform: scale(1.018);
  }

  .card:hover .thumb img,
  .product-card:hover .thumb img {
    transform: scale(1.045);
  }

  .card:not(:hover) .thumb,
  .product-card:not(:hover) .thumb,
  .card:not(:hover) .thumb img,
  .product-card:not(:hover) .thumb img {
    transform: scale(1);
  }
}

/* Desktop/tablet product zoom */
@media (min-width: 901px) {
  .card .thumb,
  .card .thumb img,
  .product-card .thumb,
  .product-card .thumb img {
    transition:
      transform 0.78s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.78s ease;
    will-change: transform;
    transform-origin: center center;
  }

  .card:hover .thumb,
  .product-card:hover .thumb {
    transform: scale(1.022);
  }

  .card:hover .thumb img,
  .product-card:hover .thumb img {
    transform: scale(1.055);
  }
}

/* Keep hover from becoming flashy */
.card:hover,
.product-card:hover {
  transition:
    box-shadow 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .slide,
  .slide .bg,
  .mobile-menu,
  .nav-mobile,
  .mobile-nav,
  .menu-drawer,
  .drawer-menu,
  .card .thumb,
  .card .thumb img,
  .product-card .thumb,
  .product-card .thumb img {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== Extracted style block %d ===== */

/* --- Editorial scroll reveal: soft, not flashy --- */
.reveal-motion {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  filter: blur(3px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s ease;
  will-change: opacity, transform, filter;
}

.reveal-motion.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

/* Category cards enter one after another */
#collections .tile.reveal-motion:nth-child(1) {
  transition-delay: 0.02s;
}

#collections .tile.reveal-motion:nth-child(2) {
  transition-delay: 0.09s;
}

#collections .tile.reveal-motion:nth-child(3) {
  transition-delay: 0.16s;
}

#collections .tile.reveal-motion:nth-child(4) {
  transition-delay: 0.23s;
}

/* Product grid enters as a calm stagger */
#grid .card.reveal-motion:nth-child(2n) {
  transition-delay: 0.07s;
}

#grid .card.reveal-motion:nth-child(3n) {
  transition-delay: 0.13s;
}

/* --- Premium image hover: zoom + tiny lateral shift --- */
.tile div,
.card .thumb,
.rtile div,
.nart div,
.dart div {
  overflow: hidden;
}

.tile svg,
.card .thumb svg,
.rtile svg,
.nart div svg,
.dart div svg {
  transform-origin: center center;
  transition:
    transform 1.05s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.05s ease;
  will-change: transform;
}

/* The image moves inside its frame, rather than the whole card jumping */
.tile:hover svg {
  transform: translate3d(1.2%, 0, 0) scale(1.075);
}

.card:hover .thumb svg {
  transform: translate3d(1.3%, -0.25%, 0) scale(1.075);
}

.rtile:hover svg,
.nart div:hover svg,
.dart div:hover svg {
  transform: translate3d(1%, 0, 0) scale(1.055);
}

/* On hover the image gets a very subtle depth shift */
.card:hover .thumb svg,
.tile:hover svg,
.rtile:hover svg {
  filter: saturate(1.025) contrast(1.01);
}

/* Keep the frame itself stable — no "jumpy" product card */
.card,
.tile,
.rtile {
  transform: none;
}

.card:hover {
  transform: translate3d(0, -3px, 0);
}

/* Refined image-edge sweep */
.tile div:after,
.card .thumb:after,
.rtile div:after {
  opacity: 0;
  transform: translate3d(-120%, 0, 0);
  transition:
    transform 1.15s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease;
}

.tile:hover div:after,
.card:hover .thumb:after,
.rtile:hover div:after {
  opacity: 1;
  transform: translate3d(120%, 0, 0);
}

/* Hero / sections feel like they settle into the page */
#collections,
#best,
#sizes,
#rooms,
#shop,
#design,
#reviews,
#trade,
#story,
#contact {
  scroll-margin-top: 120px;
}

/* Mobile: same effect, but slightly restrained */
@media (max-width: 900px) {
  .reveal-motion {
    transform: translate3d(0, 24px, 0);
    filter: blur(2px);
    transition-duration: 0.75s, 0.85s, 0.75s;
  }

  .card:hover .thumb svg {
    transform: translate3d(0.8%, 0, 0) scale(1.045);
  }

  .tile:hover svg {
    transform: translate3d(0.7%, 0, 0) scale(1.045);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-motion {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .tile svg,
  .card .thumb svg,
  .rtile svg,
  .nart div svg,
  .dart div svg {
    transition: none !important;
  }
}

/* ===== Extracted style block %d ===== */

/* ===== Safavieh-inspired editorial motion ===== */

/* Category/product image frame */
.tile,
.card .thumb,
.rtile {
  overflow: hidden;
}

/* Image starts slightly enlarged and settles naturally */
.tile svg,
.card .thumb svg,
.rtile svg {
  transform: scale(1.035);
  transform-origin: 50% 50%;
  transition:
    transform 1.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.9s ease,
    filter 1s ease;
  will-change: transform;
}

/* Hover = image moves inside a fixed frame */
.tile:hover svg {
  transform: scale(1.085) translate3d(0.6%, 0, 0);
}

.card:hover .thumb svg {
  transform: scale(1.075) translate3d(0.8%, -0.3%, 0);
}

.rtile:hover svg {
  transform: scale(1.065) translate3d(0.6%, 0, 0);
}

/* Return is intentionally just as smooth */
.tile:not(:hover) svg,
.card:not(:hover) .thumb svg,
.rtile:not(:hover) svg {
  transition:
    transform 1.15s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.8s ease,
    filter 0.9s ease;
}

/* Very subtle image brightness shift */
.tile:hover svg,
.card:hover .thumb svg,
.rtile:hover svg {
  filter: saturate(1.02) contrast(1.015);
}

/* Clean editorial reveal: image + text arrive together */
.motion-reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-reveal.motion-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Image cards get a slower image settle after the section appears */
.motion-reveal .tile svg,
.motion-reveal .thumb svg,
.motion-reveal .rtile svg {
  transform: scale(1.06);
}

.motion-reveal.motion-visible .tile svg,
.motion-reveal.motion-visible .thumb svg,
.motion-reveal.motion-visible .rtile svg {
  transform: scale(1.035);
}

/* Stagger exactly like an editorial collection grid */
#collections .tile:nth-child(1) {
  transition-delay: 0s;
}

#collections .tile:nth-child(2) {
  transition-delay: 0.07s;
}

#collections .tile:nth-child(3) {
  transition-delay: 0.14s;
}

#collections .tile:nth-child(4) {
  transition-delay: 0.21s;
}

#collections .tile:nth-child(5) {
  transition-delay: 0.28s;
}

#collections .tile:nth-child(6) {
  transition-delay: 0.35s;
}

#grid .card:nth-child(1) {
  transition-delay: 0s;
}

#grid .card:nth-child(2) {
  transition-delay: 0.06s;
}

#grid .card:nth-child(3) {
  transition-delay: 0.12s;
}

#grid .card:nth-child(4) {
  transition-delay: 0.18s;
}

/* Keep hover restrained — no card jumping */
.tile:hover,
.card:hover,
.rtile:hover {
  transform: none;
}

/* Mobile: smaller movement, same premium feel */
@media (max-width: 900px) {
  .motion-reveal {
    transform: translate3d(0, 18px, 0);
  }

  .tile svg {
    transform: scale(1.02);
  }

  .tile:hover svg {
    transform: scale(1.055);
  }

  .card:hover .thumb svg {
    transform: scale(1.045);
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .tile svg,
  .card .thumb svg,
  .rtile svg {
    transition: none !important;
    transform: none !important;
  }
}

/* ===== Extracted style block %d ===== */

/* ===== Rug quality inspection viewer ===== */
.box .pic {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  touch-action: none;
  background: #f5f2eb;
  min-height: 420px;
}

.box .pic.zoomed {
  cursor: grab;
}

.box .pic.dragging {
  cursor: grabbing;
}

.box .pic svg {
  transform-origin: 50% 50%;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.box .pic.zoomed svg {
  transition: none;
}

.rug-zoom-ui {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(32, 43, 35, 0.12);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px rgba(25, 35, 28, 0.12);
}

.rug-zoom-ui button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #243329;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.rug-zoom-ui button:hover {
  background: #ece9df;
  transform: scale(1.04);
}

.rug-zoom-level {
  min-width: 46px;
  text-align: center;
  font:
    500 11px/1 Jost,
    Arial,
    sans-serif;
  letter-spacing: 0.08em;
}

.rug-zoom-hint {
  position: absolute;
  left: 14px;
  bottom: 15px;
  z-index: 4;
  padding: 7px 10px;
  font:
    500 10px/1.2 Jost,
    Arial,
    sans-serif;
  letter-spacing: 0.05em;
  color: #314137;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(7px);
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.box .pic.zoomed .rug-zoom-hint {
  opacity: 0;
}

@media (max-width: 700px) {
  .box .pic {
    min-height: 330px;
  }

  .rug-zoom-ui {
    right: 9px;
    bottom: 9px;
  }

  .rug-zoom-ui button {
    width: 31px;
    height: 31px;
  }

  .rug-zoom-hint {
    left: 9px;
    bottom: 10px;
  }
}

/* ===== Extracted style block %d ===== */

@media (max-width: 960px) {
  /* Main mobile menu: fully closed off-screen */
  nav {
    transform: translate3d(-105%, 0, 0) !important;
    visibility: hidden;
    opacity: 0;
    transition:
      transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.34s ease,
      visibility 0s linear 0.58s !important;
    will-change: transform, opacity;
    animation: none !important;
  }

  /* Open: smooth LEFT -> RIGHT */
  nav.open {
    transform: translate3d(0, 0, 0) !important;
    visibility: visible;
    opacity: 1;
    transition:
      transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.34s ease,
      visibility 0s linear 0s !important;
  }

  /* Mobile submenu CLOSED by default */
  nav .dd .sub {
    display: block !important;
    position: static;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    transform: translate3d(0, -5px, 0);
    transition:
      max-height 0.48s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.28s ease,
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      padding 0.42s ease,
      visibility 0s linear 0.48s;
  }

  /* Open submenu smoothly downward */
  nav .dd.open .sub {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding-top: 4px;
    padding-bottom: 8px;
    transform: translate3d(0, 0, 0);
    transition:
      max-height 0.48s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.28s ease 0.04s,
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      padding 0.42s ease,
      visibility 0s linear 0s;
  }

  /* Dropdown arrow rotates with submenu */
  nav .dd .ddb {
    position: relative;
    padding-right: 35px;
  }

  nav .dd .ddb::after {
    content: "⌄";
    position: absolute;
    right: 4px;
    top: 50%;
    font-size: 16px;
    transform: translateY(-55%) rotate(0deg);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  nav .dd.open .ddb::after {
    transform: translateY(-45%) rotate(180deg);
  }

  nav .sub button {
    opacity: 0;
    transform: translate3d(-8px, 0, 0);
    transition:
      opacity 0.24s ease,
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  }

  nav .dd.open .sub button {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  nav .dd.open .sub button:nth-child(1) {
    transition-delay: 0.03s;
  }

  nav .dd.open .sub button:nth-child(2) {
    transition-delay: 0.06s;
  }

  nav .dd.open .sub button:nth-child(3) {
    transition-delay: 0.09s;
  }

  nav .dd.open .sub button:nth-child(4) {
    transition-delay: 0.12s;
  }

  nav .dd.open .sub button:nth-child(5) {
    transition-delay: 0.15s;
  }

  nav .dd.open .sub button:nth-child(6) {
    transition-delay: 0.18s;
  }
}

@media (prefers-reduced-motion: reduce) {
  nav,
  nav.open,
  nav .dd .sub,
  nav .dd.open .sub,
  nav .dd .ddb::after,
  nav .sub button {
    transition: none !important;
  }
}

/* ===== Extracted style block %d ===== */

@media (max-width: 960px) {
  /* Mobile navigation animation */
  nav {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(88vw, 380px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 10050 !important;

    transform: translate3d(-105%, 0, 0) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
      transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.28s ease,
      visibility 0s linear 0.62s !important;

    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout paint;
  }

  /* Burger click = smooth LEFT -> RIGHT */
  nav.open {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transition:
      transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.28s ease,
      visibility 0s linear 0s !important;
  }

  /* Menu content settles a fraction after drawer starts */
  nav.open > * {
    animation: burgerContentIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.08s;
  }

  @keyframes burgerContentIn {
    from {
      opacity: 0.65;
      transform: translate3d(-10px, 0, 0);
    }

    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  /* Scrim also fades smoothly */
  #nscrim {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.42s ease,
      visibility 0s linear 0.42s !important;
  }

  body:has(nav.open) #nscrim {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      opacity 0.42s ease,
      visibility 0s linear 0s !important;
  }

  /* Prevent page movement while menu is open */
  body:has(nav.open) {
    overflow: hidden;
    overscroll-behavior: none;
  }

  /* Hamburger icon itself rotates smoothly */
  #burger {
    transition:
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.25s ease !important;
  }

  #burger[aria-expanded="true"] {
    transform: rotate(90deg);
  }
}

/* If :has isn't available, JS adds this class */
@media (max-width: 960px) {
  body.mobile-menu-active {
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.mobile-menu-active #nscrim {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  nav,
  nav.open,
  #nscrim,
  #burger,
  nav.open > * {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== Extracted style block %d ===== */

:root {
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  overflow-x: hidden;
}

#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 9999;
  background: linear-gradient(90deg, var(--sage-d), var(--sage), var(--sage-d));
  box-shadow: 0 0 12px rgba(95, 124, 108, 0.28);
  pointer-events: none;
}

header {
  transition:
    background 0.45s var(--motion-ease),
    box-shadow 0.45s var(--motion-ease),
    backdrop-filter 0.45s var(--motion-ease);
}

header.is-scrolled {
  background: rgba(243, 242, 236, 0.88);
  box-shadow: 0 12px 35px -28px rgba(47, 61, 53, 0.55);
  backdrop-filter: blur(14px);
}

.motion-reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity 0.8s var(--motion-ease),
    transform 0.9s var(--motion-ease);
  will-change: opacity, transform;
}

.motion-reveal.motion-visible {
  opacity: 1;
  transform: none;
}

.motion-reveal[data-motion="left"] {
  transform: translate3d(-38px, 0, 0);
}

.motion-reveal[data-motion="right"] {
  transform: translate3d(38px, 0, 0);
}

.motion-reveal[data-motion="scale"] {
  transform: translate3d(0, 18px, 0) scale(0.965);
}

.motion-stagger > * {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 0.7s var(--motion-ease),
    transform 0.8s var(--motion-ease);
}

.motion-stagger.motion-visible > * {
  opacity: 1;
  transform: none;
}

.motion-stagger.motion-visible > *:nth-child(1) {
  transition-delay: 0.03s;
}

.motion-stagger.motion-visible > *:nth-child(2) {
  transition-delay: 0.08s;
}

.motion-stagger.motion-visible > *:nth-child(3) {
  transition-delay: 0.13s;
}

.motion-stagger.motion-visible > *:nth-child(4) {
  transition-delay: 0.18s;
}

.motion-stagger.motion-visible > *:nth-child(5) {
  transition-delay: 0.23s;
}

.motion-stagger.motion-visible > *:nth-child(6) {
  transition-delay: 0.28s;
}

.motion-stagger.motion-visible > *:nth-child(7) {
  transition-delay: 0.33s;
}

.motion-stagger.motion-visible > *:nth-child(8) {
  transition-delay: 0.38s;
}

.card {
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

.card:hover {
  transform: translate3d(0, -8px, 0);
}

.btn,
.add,
.chip,
.ib,
.heart,
.rarr,
.hp,
.hn,
.close,
.qty button {
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

.btn:active,
.add:active,
.chip:active,
.ib:active,
.heart:active,
.rarr:active,
.hp:active,
.hn:active,
.close:active,
.qty button:active {
  transform: scale(0.96);
}

nav > a,
.util a,
.fcols a {
  position: relative;
}

nav > a::after,
.util a::after,
.fcols a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--sage-d);
  transition: right 0.4s var(--motion-ease);
}

nav > a:hover::after,
.util a:hover::after,
.fcols a:hover::after {
  right: 0;
}

.story,
.trade {
  position: relative;
  overflow: hidden;
}

.story::before,
.trade::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.13),
    transparent 68%
  );
  top: -180px;
  right: -100px;
  pointer-events: none;
  animation: ambientFloat 9s ease-in-out infinite alternate;
}

@keyframes ambientFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-35px, 35px, 0) scale(1.12);
  }
}

input,
select {
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s var(--motion-ease);
}

input:focus,
select:focus {
  border-color: var(--sage-d);
  box-shadow: 0 8px 24px -18px rgba(95, 124, 108, 0.6);
  transform: translateY(-1px);
  outline: none;
}

.drawer.open .ci {
  animation: drawerItemIn 0.55s var(--motion-ease) both;
}

.drawer.open .ci:nth-child(2) {
  animation-delay: 0.05s;
}

.drawer.open .ci:nth-child(3) {
  animation-delay: 0.1s;
}

.drawer.open .ci:nth-child(4) {
  animation-delay: 0.15s;
}

@keyframes drawerItemIn {
  from {
    opacity: 0;
    transform: translate3d(18px, 0, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.modal.open .box {
  box-shadow: 0 35px 80px -35px rgba(31, 43, 36, 0.55);
}

#backTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(95, 124, 108, 0.25);
  border-radius: 50%;
  background: rgba(251, 250, 246, 0.9);
  color: var(--sage-d);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 0.4s var(--motion-ease),
    transform 0.4s var(--motion-ease),
    visibility 0.4s;
  z-index: 45;
  box-shadow: 0 12px 30px -20px rgba(47, 61, 53, 0.5);
  backdrop-filter: blur(10px);
}

#backTop.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

#backTop:hover {
  transform: translate3d(0, -3px, 0);
  background: var(--sage-d);
  color: #fff;
}

#pointerGlow {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(155, 179, 163, 0.1),
    transparent 68%
  );
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

header,
main,
footer,
.story,
.trade,
.news,
.rev,
.perks,
.trust {
  position: relative;
  z-index: 1;
}

@media (max-width: 960px) {
  #pointerGlow {
    display: none;
  }

  #backTop {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .motion-reveal,
  .motion-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== Extracted style block %d ===== */

/* ===== Fixed premium header + stronger scroll motion ===== */
:root {
  --ann-h: 38px;
  --header-h: 150px;
  --scroll-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  padding-top: var(--ann-h);
}

.ann {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--ann-h);
  transition:
    transform 0.55s var(--scroll-ease),
    opacity 0.4s ease;
}

header {
  position: fixed !important;
  top: var(--ann-h);
  left: 0;
  right: 0;
  z-index: 99;
  transition:
    top 0.55s var(--scroll-ease),
    transform 0.55s var(--scroll-ease),
    background 0.4s ease,
    box-shadow 0.4s ease;
}

body.header-scrolled header {
  top: 0;
}

body.header-scrolled .ann {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Give the page the exact space occupied by the fixed header */
body::before {
  content: "";
  display: block;
  height: var(--header-h);
  pointer-events: none;
}

/* More cinematic section entrance */
.scroll-fade {
  opacity: 0;
  transform: translate3d(0, 55px, 0) scale(0.985);
  filter: blur(4px);
  transition:
    opacity 1s var(--scroll-ease),
    transform 1.05s var(--scroll-ease),
    filter 0.9s var(--scroll-ease);
}

.scroll-fade.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Headings slide in with a small mask-like effect */
.scroll-title {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.75s var(--scroll-ease),
    transform 0.8s var(--scroll-ease);
}

.scroll-title.in {
  opacity: 1;
  transform: none;
}

/* Product images reveal upward */
.scroll-image {
  opacity: 0;
  transform: translate3d(0, 45px, 0) scale(0.94);
  transition:
    opacity 0.8s var(--scroll-ease),
    transform 1s var(--scroll-ease);
}

.scroll-image.in {
  opacity: 1;
  transform: none;
}

/* Horizontal premium reveal for trust/features */
.scroll-side {
  opacity: 0;
  transform: translate3d(-30px, 0, 0);
  transition:
    opacity 0.7s var(--scroll-ease),
    transform 0.8s var(--scroll-ease);
}

.scroll-side.in {
  opacity: 1;
  transform: none;
}

/* Animated cards */
.scroll-card {
  opacity: 0;
  transform: translate3d(0, 32px, 0) scale(0.97);
  transition:
    opacity 0.7s var(--scroll-ease),
    transform 0.8s var(--scroll-ease);
}

.scroll-card.in {
  opacity: 1;
  transform: none;
}

.scroll-card:nth-child(2) {
  transition-delay: 0.06s;
}

.scroll-card:nth-child(3) {
  transition-delay: 0.12s;
}

.scroll-card:nth-child(4) {
  transition-delay: 0.18s;
}

.scroll-card:nth-child(5) {
  transition-delay: 0.24s;
}

.scroll-card:nth-child(6) {
  transition-delay: 0.3s;
}

.scroll-card:nth-child(7) {
  transition-delay: 0.36s;
}

.scroll-card:nth-child(8) {
  transition-delay: 0.42s;
}

/* Header contents animate compactly when scrolling */
body.header-scrolled .top {
  height: 68px;
  transition: height 0.45s var(--scroll-ease);
}

body.header-scrolled .brand .badge {
  width: 44px;
  height: 44px;
  transition: all 0.45s var(--scroll-ease);
}

body.header-scrolled .brand b {
  font-size: 1.12rem;
}

body.header-scrolled .brand small {
  font-size: 0.78rem;
}

body.header-scrolled nav {
  padding-top: 3px;
  padding-bottom: 7px;
}

/* Floating active nav indicator */
nav > a.active-link,
nav .nl.active-link {
  color: var(--sage-d);
}

nav > a.active-link::after,
nav .nl.active-link::after {
  right: 0;
}

/* Hero gets a subtle parallax feel */
.hero .cap {
  transition:
    transform 0.15s linear,
    opacity 0.15s linear;
  will-change: transform, opacity;
}

.hero .fl {
  transition: transform 0.15s linear;
  will-change: transform;
}

/* Mobile: fixed header remains fixed without covering content */
@media (max-width: 960px) {
  :root {
    --ann-h: 38px;
    --header-h: 72px;
  }

  body::before {
    height: var(--header-h);
  }

  header {
    top: var(--ann-h);
  }

  body.header-scrolled header {
    top: 0;
  }

  body.header-scrolled .top {
    height: 64px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .ann,
  header,
  .scroll-fade,
  .scroll-title,
  .scroll-image,
  .scroll-side,
  .scroll-card,
  .hero .cap,
  .hero .fl {
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ===== Extracted style block %d ===== */

/* FINAL PRODUCT IMAGE HOVER FIX */
@media (min-width: 901px) {
  .card .thumb {
    overflow: hidden !important;
  }

  .card .thumb > svg,
  .card .thumb > img {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: 50% 50% !important;
    transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: transform;
  }

  .card:hover .thumb > svg,
  .card:hover .thumb > img {
    transform: scale(1.2) !important;
  }

  .card:hover .thumb {
    transform: none !important;
  }
}

/* Mobile/tablet: smaller zoom */
@media (max-width: 900px) {
  .card .thumb > svg,
  .card .thumb > img {
    transform-origin: 50% 50% !important;
    transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .card:hover .thumb > svg,
  .card:hover .thumb > img {
    transform: scale(1.15) !important;
  }
}

/* Real product photography loaded from assets/products */
.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-photo-fallback {
  width: 100%;
  height: 100%;
}
.card:hover .thumb .product-photo {
  transform: scale(1.055);
}
.box .pic .product-photo {
  min-height: 300px;
}
.cth .product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Database-managed image assets */
.bg .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: kb 12s ease-out both;
}
.fl .product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tile .category-photo {
  position: relative;
}
.tile .category-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Database-driven Shop by room photos */
.rtile .room-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s;
}
.rtile .room-photo-fallback {
  width: 100%;
  height: 100%;
}
.rtile:hover .room-photo {
  transform: scale(1.06);
}

/* Quick-view zoom works with database product photos and generated SVG rugs */
#mpic {
  position: relative;
  overflow: hidden;
}
#mpic > img.product-photo,
#mpic > img,
#mpic > svg,
#mpic .product-photo-fallback {
  transform-origin: center center;
  will-change: transform;
}
#mpic.zoomed {
  cursor: grab;
  touch-action: none;
}
#mpic.zoomed.dragging {
  cursor: grabbing;
}
#mpic .product-photo {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

/* Quick View: Zoom controls visibility */
#mpic .rug-zoom-ui {
  display: flex !important;
  position: absolute !important;
  left: 65% !important;
  right: auto !important;
  bottom: 8px !important;
  top: auto !important;
  transform: translateX(-50%);
  z-index: 99999 !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;

  /* Transparent background */
  background: rgba(255, 255, 255, 0.45) !important;
  border: 1px solid rgba(221, 221, 221, 0.4);
  border-radius: 10px;
  backdrop-filter: blur(4px);

  white-space: nowrap;
  width: max-content;
  max-width: calc(100% - 20px);
  box-sizing: border-box;
}

#mpic .rug-zoom-ui button {
  flex: 0 0 36px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}

#mpic .rug-zoom-ui #rugZoomReset {
  font-size: 15px;
}

#mpic .rug-zoom-level {
  min-width: 42px;
  text-align: center;
}

#mpic .rug-zoom-level {
  display: inline-block !important;
  color: #263c32 !important;
  font-size: 13px;
  font-weight: bold;
}

#mpic .rug-zoom-hint {
  position: absolute !important;
  top: auto !important;
  bottom: 65px !important;
  left: 12px !important;
  right: auto !important;

  width: max-content !important;
  height: auto !important;
  max-width: calc(100% - 24px);
  box-sizing: border-box;

  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 5px;

  font-size: 10px;
  line-height: 1.4;
  color: #263c32;
  z-index: 9999;
  pointer-events: none;
}

/* Server-rendered product cards hidden by JS filters */
[data-product-card][hidden] {
  display: none !important;
}

/* Shop by room photos */
.rtile .room-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Quick-view zoom fix: consistent image frame and reachable controls */
#mpic {
  position: relative !important;
  overflow: hidden !important;
  min-width: 0;
  height: clamp(320px, 62vh, 620px) !important;
  min-height: 0 !important;
  touch-action: pan-y;
  isolation: isolate;
}
#mpic > img.product-photo,
#mpic > img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
  display: block !important;
  position: relative;
  z-index: 1;
  user-select: none;
  -webkit-user-drag: none;
}
#mpic > svg {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: block;
  position: relative;
  z-index: 1;
}
#mpic .rug-zoom-ui {
  left: 50% !important;
  right: auto !important;
  bottom: 12px !important;
  top: auto !important;
  transform: translateX(-50%) !important;
  z-index: 10 !important;
  gap: 6px !important;
  padding: 6px 8px !important;
  max-width: calc(100% - 16px) !important;
}
#mpic .rug-zoom-ui button {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  flex: 0 0 36px !important;
  line-height: 1 !important;
  cursor: pointer;
  position: relative;
  z-index: 11;
}
#mpic .rug-zoom-ui button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
#mpic.zoomed {
  cursor: grab;
}
#mpic.zoomed.dragging {
  cursor: grabbing;
}
@media (max-width: 640px) {
  #mpic {
    height: min(52vh, 440px) !important;
  }
  #mpic .rug-zoom-ui {
    gap: 4px !important;
    padding: 5px !important;
  }
  #mpic .rug-zoom-ui button {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    flex-basis: 32px !important;
  }
}

/* PREMIUM BANNER OVERLAY */

/* =====================================
   PREMIUM HERO BANNER
===================================== */

.hero {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  background: #eee9df;
}

#slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  isolation: isolate;
  transition: opacity 0.7s ease;
}

.hero .slide.on {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2 !important;
}

/* Banner Image */

.hero .bg {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0 !important;
}

.hero .bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Image Overlay */

.hero .ov {
  position: absolute !important;
  inset: 0;
  z-index: 1 !important;
  pointer-events: none;
}

/* =====================================
   DESKTOP CONTENT PANEL
===================================== */

.hero .cap {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;

  width: 30% !important;
  height: 100% !important;

  padding: 40px !important;
  box-sizing: border-box;

  display: flex !important;
  flex-direction: column;
  justify-content: center !important;
  align-items: flex-start;

  /* Transparent Background */
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  color: #222 !important;
  z-index: 20 !important;

  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  transform: none !important;
}

/* Small Heading */

.hero .cap small {
  display: block !important;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #222 !important;
  margin-bottom: 18px;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Main Heading */

.hero .cap h1 {
  display: block !important;
  font-size: clamp(30px, 3.5vw, 55px);
  line-height: 1.12;
  font-weight: 600;
  color: #171717 !important;
  margin: 0;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Description */

.hero .cap p {
  display: block !important;
  font-size: 16px;
  line-height: 1.7;
  color: #222 !important;
  margin: 10px 0 10px;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Button */

.hero .cap .banner-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  position: relative;
  z-index: 21;

  width: fit-content;
  padding: 15px 28px;

  background: #263c32 !important;
  color: #fff !important;

  text-decoration: none;
  letter-spacing: 2px;
  font-size: 13px;

  transition: background 0.3s ease;
}

.hero .cap .banner-btn:hover {
  background: #a17c50 !important;
}

/* =====================================
   MOBILE BANNER
===================================== */

@media (max-width: 768px) {
  .hero {
    height: 500px;
  }

  .hero .cap {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;
    height: 30% !important;

    padding: 12px 18px !important;

    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .hero .cap small {
    font-size: 9px;
    letter-spacing: 2px;
    margin-bottom: 5px;
  }

  .hero .cap h1 {
    font-size: clamp(21px, 6vw, 30px);
    line-height: 1.1;
  }

  .hero .cap p {
    font-size: 12px;
    line-height: 1.35;
    margin: 7px 0 10px;
  }

  .hero .cap .banner-btn {
    padding: 9px 18px;
    font-size: 11px;
  }
}

/* EXPLORE NOW BUTTON FIX */

.hero .cap a.banner-btn {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 999 !important;

  width: fit-content !important;
  height: auto !important;
  min-height: 30px;

  padding: 12px 25px !important;
  margin-top: 5px !important;

  background: #263c32 !important;
  color: #ffffff !important;

  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;

  border: none !important;
  border-radius: 2px;
}

.hero .cap a.banner-btn:hover {
  background: #a17c50 !important;
  color: #ffffff !important;
}

/* MOBILE SLIDER DOTS FIX */

@media (max-width: 768px) {
  .hero {
    position: relative !important;
    overflow: hidden;
  }

  .hero .dots {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 8px !important;

    width: 100% !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    z-index: 100 !important;
    margin: 0 !important;
  }

  .hero .cap {
    bottom: 0 !important;
    height: 30% !important;
    padding-bottom: 30px !important;
  }
}

/* ==========================================
   LECHICLIVING - PREMIUM FOOTER PAGES
========================================== */

.footer-pages {
  background: #f3f2ec;
  color: #2f3d35;
  font-family: "Jost", sans-serif;
}

.footer-page {
  position: relative;
  padding: 95px 24px;
  border-bottom: 1px solid #dedfd5;
  scroll-margin-top: 90px;
  overflow: hidden;
}

.footer-page-inner {
  width: 100%;
  max-width: 1160px;
  margin: auto;
}

.fp-tag {
  display: block;
  text-align: center;
  color: #718b7b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-page h2 {
  font-family: "Cormorant Garamond", serif;
  color: #263a30;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 500;
  text-align: center;
  margin: 0 0 18px;
}

.fp-desc {
  max-width: 650px;
  margin: 0 auto 50px;
  text-align: center;
  color: #777e74;
  font-size: 14px;
  line-height: 1.9;
}

/* CONTACT CARDS */

.fp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.fp-card {
  background: #faf9f5;
  border: 1px solid #e2e3d9;
  padding: 35px 22px;
  text-align: center;
  transition: all 0.35s ease;
}

.fp-card:hover {
  background: #e9eee8;
  border-color: #9bb3a3;
  transform: translateY(-5px);
}

.fp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  background: #e8eee8;
  color: #607e70;
  border-radius: 50%;
  font-size: 21px;
}

.fp-card h3,
.fp-content h3,
.fp-hours h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 23px;
  color: #344a3d;
  font-weight: 600;
  margin: 0 0 12px;
}

.fp-card p,
.fp-content p,
.fp-hours p {
  font-size: 13px;
  color: #777e74;
  line-height: 1.9;
  margin: 0;
}

/* BUSINESS HOURS */

.fp-hours {
  max-width: 650px;
  margin: 35px auto 0;
  padding: 30px;
  background: #e8eee8;
  border: 1px solid #dce5dc;
  text-align: center;
}

.fp-hours p + p {
  margin-top: 5px;
}

/* CONTENT / POLICY PAGES */

.fp-content {
  max-width: 900px;
  margin: auto;
  padding: 45px 50px;
  background: #faf9f5;
  border: 1px solid #e2e3d9;
}

.fp-content h3 {
  font-size: 25px;
  margin-bottom: 8px;
}

.fp-content p {
  font-size: 14px;
  margin-bottom: 25px;
}

.fp-content p:last-child {
  margin-bottom: 0;
}

/* PREMIUM BUTTON */

.fp-button {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 30px;
  background: #607e70;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: 0.3s ease;
}

.fp-button:hover {
  background: #344a3d;
  color: #fff;
}

/* ALTERNATE SECTION BACKGROUND */

.footer-page:nth-child(even) {
  background: #eeefe8;
}

.footer-page:nth-child(even) .fp-content,
.footer-page:nth-child(even) .fp-card {
  background: #f8f8f2;
}

/* MOBILE */

@media (max-width: 900px) {
  .fp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-page {
    padding: 70px 20px;
  }
}

@media (max-width: 550px) {
  .footer-page {
    padding: 55px 16px;
  }

  .footer-page h2 {
    font-size: 39px;
  }

  .fp-desc {
    margin-bottom: 32px;
    font-size: 13px;
  }

  .fp-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .fp-card {
    padding: 25px 12px;
  }

  .fp-card h3 {
    font-size: 20px;
  }

  .fp-card p {
    font-size: 12px;
  }

  .fp-content {
    padding: 25px 20px;
  }

  .fp-content h3 {
    font-size: 22px;
  }

  .fp-content p {
    font-size: 13px;
  }

  .fp-hours {
    padding: 24px 15px;
  }
}

@media (max-width: 360px) {
  .fp-grid {
    grid-template-columns: 1fr;
  }
}

/* =================================
   LECHICLIVING CONTACT SECTION
================================= */

.lc-contact {
  width: 100%;
  box-sizing: border-box;
  background: #f4f3ed;
  padding: 75px 20px;
  border-top: 1px solid #deddd4;
  scroll-margin-top: 100px;
}

.lc-contact .wrap {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.lc-contact-heading {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.lc-contact-heading > span {
  color: #607e70;
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: 600;
}

.lc-contact-heading h2 {
  color: #163444;
  font-size: 38px;
  font-weight: 400;
  margin: 12px 0;
}

.lc-contact-heading p {
  color: #74818a;
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

/* Two office columns */
.lc-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px;
  width: 100%;
}

/* Office card */
.lc-contact-office {
  min-width: 0;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid #deddd4;
  padding: 35px;
  box-sizing: border-box;
}

/* Office heading */
.lc-contact-office-heading {
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 1px solid #deddd4;
}

.lc-contact-office-heading > span {
  display: block;
  color: #607e70;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 9px;
}

.lc-contact-office-heading h3 {
  color: #163444;
  font-size: 25px;
  font-weight: 400;
  margin: 0;
}

/* Main office icon */
.lc-contact-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: #607e70;
  background: #e6e9e1;
  border-radius: 50%;
}

.lc-contact-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.6;
}

/* Content blocks */
.lc-contact-office-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  padding-top: 28px;
}

.lc-contact-info-block {
  min-width: 0;
}

.lc-contact-info-block h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #163444;
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 18px;
}

.lc-contact-info-block h4 svg {
  width: 17px;
  height: 17px;
  color: #607e70;
  stroke-width: 1.7;
  flex-shrink: 0;
}

.lc-contact-info-block p {
  color: #74818a;
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 15px;
  overflow-wrap: anywhere;
}

/* Contact persons */
.lc-contact-person {
  margin-bottom: 20px;
}

.lc-contact-person:last-child {
  margin-bottom: 0;
}

.lc-contact-person strong {
  display: block;
  color: #163444;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.lc-contact-person a,
.lc-contact-detail-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #607e70;
  font-size: 14px;
  text-decoration: none;
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.lc-contact-person a svg,
.lc-contact-detail-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke-width: 1.7;
}

/* Directions */
.lc-contact-direction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #607e70;
  font-size: 13px;
  text-decoration: none;
  margin-top: 5px;
}

.lc-contact-direction svg {
  width: 15px;
  height: 15px;
}

.lc-contact-office a:hover {
  color: #163444;
  text-decoration: underline;
}

/* Tablet */
@media (max-width: 1000px) {
  .lc-contact-grid {
    gap: 20px;
  }

  .lc-contact-office {
    padding: 25px;
  }

  .lc-contact-office-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* Mobile */
@media (max-width: 650px) {
  .lc-contact {
    padding: 50px 15px;
  }

  .lc-contact-heading {
    margin-bottom: 35px;
  }

  .lc-contact-heading h2 {
    font-size: 30px;
  }

  .lc-contact-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .lc-contact-office {
    padding: 25px 20px;
  }

  .lc-contact-office-heading h3 {
    font-size: 23px;
  }

  .lc-contact-office-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

.lc-trademark {
  padding: 22px 20px 28px;
  background: #f4f3ed;
  border-top: 1px solid #deddd4;
  text-align: center;
}

.lc-trademark-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.lc-trademark-text span {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: #607e70;
}

.lc-trademark-text h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: #163444;
}
