.products-page {
  background: #ffffff;
}

.products-page .site-header {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  border-bottom-color: rgba(23, 52, 95, 0.1);
  backdrop-filter: blur(18px);
}

.products-page .desktop-nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.products-hero {
  min-height: 100svh;
  padding: 155px clamp(24px, 7vw, 112px) 80px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.products-hero-copy {
  position: relative;
  z-index: 3;
  max-width: 690px;
}

.products-hero h1 {
  margin: 12px 0 28px;
  font-family: var(--serif);
  font-size: clamp(60px, 7.4vw, 124px);
  line-height: 0.88;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.products-hero h1 em {
  display: block;
  color: var(--navy);
  font-weight: 400;
}

.products-hero-copy > p:not(.eyebrow) {
  max-width: 510px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  margin: 0 0 28px;
}

.editorial-frames {
  min-height: 650px;
  position: relative;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.frame-large {
  width: 70%;
  height: 74%;
  right: 4%;
  top: 9%;
  transform: rotate(2.5deg);
}

.frame-small {
  width: 37%;
  height: 42%;
  left: 0;
  bottom: 2%;
  transform: rotate(-5deg);
  border: 10px solid #fff;
}

.frame-large:hover img {
  transform: scale(1.025);
}

.frame-small:hover img {
  transform: scale(1.04);
}

.hero-line {
  position: absolute;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(23, 52, 95, 0.25), transparent);
  z-index: 2;
}

.line-one {
  height: 95%;
  left: 43%;
  top: 0;
  transform: rotate(28deg);
}

.line-two {
  height: 72%;
  right: 10%;
  bottom: -10%;
  transform: rotate(-41deg);
  opacity: 0.55;
}

.category-showcase {
  --stack-progress: 0;
  width: 100%;
  min-height: 178vh;
  padding: 0 clamp(24px, 6vw, 96px);
  background:
    radial-gradient(circle at 18% 22%, rgba(163, 201, 241, 0.34), transparent 30%),
    radial-gradient(circle at 82% 70%, rgba(204, 226, 249, 0.5), transparent 31%),
    linear-gradient(180deg, #f4f9ff 0%, #eaf4ff 56%, #ffffff 100%);
  position: relative;
}

.category-stage {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(560px, 1.25fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
}

.category-heading {
  position: relative;
  z-index: 5;
  max-width: 520px;
}

.category-heading h2 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(46px, 5.2vw, 78px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.category-heading > p:last-child {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.category-stack {
  position: relative;
  min-height: 610px;
  perspective: 1400px;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) hue-rotate(150deg) brightness(0.84);
  transition:
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.5s ease;
}

.category-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 47, 79, 0.03) 26%, rgba(21, 47, 79, 0.78) 100%);
}

.category-card-copy {
  position: absolute;
  inset: auto 28px 28px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 9px 16px;
}

.category-index {
  grid-column: 1 / -1;
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.72;
}

.category-card-copy strong {
  grid-column: 1 / 3;
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 39px);
  line-height: 1;
  font-weight: 500;
}

.category-card-copy small {
  grid-column: 1 / 3;
  max-width: 330px;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.category-arrow {
  grid-column: 3;
  grid-row: 2 / 4;
  align-self: center;
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  font-size: 16px;
}

.category-card:hover {
  box-shadow: 0 42px 110px rgba(48, 83, 121, 0.27);
}

.category-card:hover img {
  transform: scale(1.045);
  filter: saturate(0.82) hue-rotate(150deg) brightness(0.92);
}

.catalog {
  padding: 120px clamp(24px, 6vw, 96px) 132px;
  background:
    radial-gradient(circle at 90% 14%, rgba(180, 215, 248, 0.24), transparent 26%), #ffffff;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto 66px;
}

.catalog-toolbar h2 {
  max-width: 710px;
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(42px, 4.6vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.catalog-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-button {
  border: 1px solid rgba(23, 52, 95, 0.14);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  background: #dcecff;
  color: var(--navy-deep);
  border-color: #a9caeb;
}

.catalog-card {
  grid-column: span 1;
  min-width: 0;
}

.catalog-card.layout-featured {
  grid-column: span 2;
}

.catalog-card.layout-offset {
  grid-column: span 1;
  margin-top: 76px;
}

.catalog-card.layout-featured .catalog-image {
  aspect-ratio: 1;
}

.catalog-card:hover .catalog-image img {
  transform: scale(1.04);
}

.catalog-card:is(:hover, :focus-within) .quick-add,
.catalog-image .quick-add:focus-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.catalog-info strong {
  direction: ltr;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}

.product-price .currency {
  margin-right: 4px;
}

.navy-wash,
.blue-wash {
  background: #dceafa;
}

.silver-wash,
.pale-wash {
  background: #edf3f9;
}

.concept-visual {
  background: linear-gradient(145deg, #eaf4ff, #9fc4e8 58%, #f5faff);
}

.catalog-note {
  padding: 120px clamp(24px, 12vw, 160px);
  text-align: center;
  background: #fff;
}

.catalog-note h2 {
  max-width: 850px;
  margin: 10px auto 26px;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 50px);
  line-height: 1.04;
  font-weight: 500;
}

.catalog-grid {
  display: grid;

  gap: 50px 22px;
  max-width: 1180px;
  margin: 0 auto;

  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  align-items: stretch;
}
.catalog-card,
.catalog-card.layout-featured,
.catalog-card.layout-offset {
  grid-column: span 1;
  margin-top: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}
.catalog-card-wide {
  grid-column: span 2;
}

.catalog-card-wide .catalog-image::after {
  content: '';
  position: absolute;
  inset: 8%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 161, 84, 0.13), rgba(199, 161, 84, 0) 68%);
  filter: blur(18px);
  pointer-events: none;
}
.catalog-card-wide .catalog-image img,
.catalog-image .product-tag,
.catalog-image .quick-add {
  position: relative;
  z-index: 2;
}
.catalog-info {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 17px;

  min-height: 96px;
  align-items: flex-start;
}
.catalog-info > div {
  min-width: 0;
}
.catalog-info h3 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  min-height: 48px;
}
.catalog-info p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 24px;
}
.product-focus .catalog-image {
  box-shadow:
    0 0 0 1px rgba(199, 161, 84, 0.42),
    0 22px 60px rgba(23, 52, 95, 0.12);
}

.category-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(48vw, 520px);
  aspect-ratio: 0.92;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background: #dceafa;
  box-shadow: 0 34px 90px rgba(53, 91, 132, 0.19);
  color: #fff;

  transform-origin: 50% 88%;

  display: block;
  text-align: inherit;
  cursor: pointer;
  transition:
    transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.45s ease,
    filter 0.45s ease;
}
.category-card-1 {
  transform: translate(-50%, -50%) translateX(calc(-260px * var(--stack-progress)))
    translateY(calc(26px * var(--stack-progress))) rotate(calc(-8deg * var(--stack-progress)));
  z-index: 4;
}
.category-card-2 {
  transform: translate(-50%, -50%) translateY(calc(-88px * var(--stack-progress)))
    rotate(calc(-1.5deg * var(--stack-progress)))
    scale(calc(0.965 + 0.055 * var(--stack-progress)));
  z-index: 3;
}
.category-card-3 {
  transform: translate(-50%, -50%) translateX(calc(260px * var(--stack-progress)))
    translateY(calc(30px * var(--stack-progress))) rotate(calc(8deg * var(--stack-progress)));
  z-index: 2;
}
.category-card:not(.category-card-1) {
  filter: saturate(0.82);
}
.featured-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.lang-fa .featured-action {
  letter-spacing: 0;
}

@media (max-width: 980px) {
  .products-hero {
    grid-template-columns: 1fr;
    padding-top: 135px;
  }

  .editorial-frames {
    min-height: 560px;
  }

  .category-stage {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 100px 0 70px;
  }

  .category-heading {
    max-width: 680px;
  }

  .category-stack {
    min-height: 540px;
  }

  .category-card {
    width: min(58vw, 460px);
  }

  .category-card-1 {
    transform: translate(-50%, -50%) translateX(calc(-190px * var(--stack-progress)))
      rotate(calc(-7deg * var(--stack-progress)));
  }

  .category-card-3 {
    transform: translate(-50%, -50%) translateX(calc(190px * var(--stack-progress)))
      rotate(calc(7deg * var(--stack-progress)));
  }

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

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-card-wide {
    grid-column: span 1;
  }
}
@media (max-width: 680px) {
  .products-hero {
    padding: 120px 20px 70px;
  }

  .products-hero h1 {
    font-size: clamp(54px, 17vw, 82px);
  }

  .editorial-frames {
    min-height: 430px;
  }

  .frame-large {
    width: 78%;
  }

  .frame-small {
    width: 47%;
    right: 0;
  }

  .category-showcase {
    min-height: 155vh;
    padding-inline: 20px;
  }

  .category-stage {
    min-height: 100svh;
    padding-top: 90px;
  }

  .category-heading h2 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .category-stack {
    min-height: 430px;
  }

  .category-card {
    width: min(78vw, 340px);
    border-radius: 25px;
  }

  .category-card-1 {
    transform: translate(-50%, -50%) translateX(calc(-65px * var(--stack-progress)))
      translateY(calc(12px * var(--stack-progress))) rotate(calc(-6deg * var(--stack-progress)));
  }

  .category-card-2 {
    transform: translate(-50%, -50%) translateY(calc(-54px * var(--stack-progress)))
      rotate(calc(-1deg * var(--stack-progress)))
      scale(calc(0.97 + 0.04 * var(--stack-progress)));
  }

  .category-card-3 {
    transform: translate(-50%, -50%) translateX(calc(65px * var(--stack-progress)))
      translateY(calc(14px * var(--stack-progress))) rotate(calc(6deg * var(--stack-progress)));
  }

  .category-card-copy {
    inset: auto 21px 21px;
  }

  .catalog {
    padding: 88px 20px 100px;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 44px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 12px;
  }

  .catalog-card.layout-featured {
    grid-column: span 2;
  }

  .catalog-card.layout-offset {
    margin-top: 42px;
  }

  .catalog-info {
    display: block;
  }

  .catalog-info strong {
    display: block;
    margin-top: 10px;
  }

  .catalog-image .quick-add {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .catalog-card-wide {
    grid-column: span 1;
  }
  .catalog-info h3,
  .catalog-info p {
    min-height: 0;
  }
}

.category-stack.is-cycling {
  pointer-events: none;
}
.category-stack.is-cycling .category-card {
  transition: none;
}
.category-card.cycle-front-to-middle {
  z-index: 5;
  animation: featuredFrontToMiddle 0.76s cubic-bezier(0.22, 0.72, 0.2, 1) both;
}
.category-card.cycle-middle-to-back {
  z-index: 4;
  animation: featuredMiddleToBack 0.76s cubic-bezier(0.22, 0.72, 0.2, 1) both;
}
.category-card.cycle-back-to-front {
  z-index: 8;
  animation: featuredBackToFront 0.76s cubic-bezier(0.18, 0.82, 0.18, 1) both;
}
@keyframes featuredFrontToMiddle {
  from {
    transform: translate(-50%, -50%) translateX(calc(-260px * var(--stack-progress)))
      translateY(calc(26px * var(--stack-progress))) rotate(calc(-8deg * var(--stack-progress)));
    filter: saturate(1);
  }
  to {
    transform: translate(-50%, -50%) translateY(calc(-26px * var(--stack-progress)))
      scale(calc(0.965 + 0.035 * var(--stack-progress)));
    filter: saturate(0.82);
  }
}
@keyframes featuredMiddleToBack {
  from {
    transform: translate(-50%, -50%) translateY(calc(-26px * var(--stack-progress)))
      scale(calc(0.965 + 0.035 * var(--stack-progress)));
  }
  to {
    transform: translate(-50%, -50%) translateX(calc(260px * var(--stack-progress)))
      translateY(calc(30px * var(--stack-progress))) rotate(calc(8deg * var(--stack-progress)));
  }
}

.lang-fa .products-hero-copy h1 {
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 1.42;
}
.lang-fa .products-hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  font-size: 14px;
  line-height: 2.05;
}
.lang-fa .category-heading h2 {
  max-width: 720px;
  font-size: clamp(30px, 4.2vw, 45px);
  line-height: 1.5;
}
.lang-fa .category-heading > p:last-child {
  font-size: 14px;
  line-height: 2;
}
.lang-fa .category-card-copy {
  text-align: right;
}
.lang-fa .category-card-copy strong {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: clamp(23px, 2.2vw, 34px);
  line-height: 1.55;
}
.lang-fa .category-card-copy small {
  font-size: 12px;
  line-height: 1.9;
}
.lang-fa .catalog-toolbar h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.5;
}
.lang-fa .catalog-info h3 {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}
.lang-fa .catalog-info p {
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0;
  text-transform: none;
}
.lang-fa .filter-button {
  font-size: 12px;
}

.catalog-image {
  position: relative;

  display: grid;
  place-items: center;

  border-radius: 2px;

  aspect-ratio: 1 / 1;

  overflow: hidden;

  padding: 0;
  background: transparent;
}
.catalog-image img {
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);

  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.catalog-image .quick-add {
  left: 18px;
  right: 18px;
  bottom: 18px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition:
    transform 0.35s ease,
    opacity 0.25s ease,
    visibility 0.25s ease;

  position: absolute;
  z-index: 5;
}
.catalog-image .product-tag {
  top: 18px;
  left: 18px;

  position: absolute;
  z-index: 5;
}
.frame {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: #e9f1fa;
  box-shadow: 0 30px 80px rgba(23, 52, 95, 0.14);
  cursor: default;
}
@keyframes featuredBackToFront {
  0% {
    transform: translate(-50%, -50%) translateX(calc(260px * var(--stack-progress)))
      translateY(calc(30px * var(--stack-progress))) rotate(calc(8deg * var(--stack-progress)));
    filter: saturate(0.82);
  }
  52% {
    transform: translate(-50%, -57%) translateX(0) scale(1.025) rotate(0deg);
    filter: saturate(0.95);
  }
  100% {
    transform: translate(-50%, -50%) translateX(calc(-260px * var(--stack-progress)))
      translateY(calc(26px * var(--stack-progress))) rotate(calc(-8deg * var(--stack-progress)));
    filter: saturate(1);
  }
}

@media (max-width: 760px) {
  .product-modal-panel {
    grid-template-columns: 1fr;
  }
  .product-modal-media {
    min-height: 310px;
    border-radius: 28px 28px 0 0;
  }
  .product-modal-copy {
    padding: 1.6rem;
  }
  .contact-hero {
    grid-template-columns: 1fr;
    padding-top: 7rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .details-hint {
    display: none;
  }
  html[dir='rtl'] .product-modal-media {
    border-radius: 28px 28px 0 0;
  }
  .contact-hero {
    grid-template-columns: 1fr;
  }
  .contact-copy h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }
  .contact-list {
    margin-top: 0.5rem;
  }
}
