.catalogue-page.fahima-catalogue {
  --ink: #211c19;
  --muted: #615852;
  --paper: #f7f5f2;
  --fahima-accent: #8e3e2c;
  background: var(--paper);
  color: var(--ink);
}

.fahima-catalogue .site-header {
  border-radius: 24px;
  background: #fffdfb;
  border-color: #ece6e0;
}

.fahima-catalogue .main-nav a.active {
  color: var(--fahima-accent);
}

.catalogue-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  container-type: inline-size;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 355px), 1fr));
  align-items: center;
  min-height: 530px;
  overflow: hidden;
  margin-block: 24px 64px;
  border-radius: 32px;
  background: #f0ebe4;
}

.catalogue-hero-copy {
  position: relative;
  z-index: 1;
  padding: 38px clamp(16px, 3cqw, 42px);
}

.catalogue-hero h1 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(25px, 4.3cqw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.catalogue-hero h1 span { display: block; color: var(--fahima-accent); }

.catalogue-hero-photo {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 13px;
  padding: 28px 16px;
  background: radial-gradient(ellipse at 50% 55%, #fffaf1a0, transparent 74%);
}

.catalogue-phone-stage {
  position: relative;
  width: min(100%, 318px);
}

.catalogue-phone {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  padding: 0;
  border: 0;
  background: transparent;
}

.catalogue-phone:disabled { opacity: 1; }
.phone-original { display: block; width: 100%; height: 100%; }

.phone-screen {
  position: absolute;
  inset: 21% 17.4% 16% 26.9%;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  clip-path: polygon(1.6% 0, 87% 0, 100% 100%, 9.2% 100%);
  isolation: isolate;
  background: #f6ede0;
  mask-image: linear-gradient(transparent, #000 3%, #000 97%, transparent);
  pointer-events: none;
}

.phone-screen canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  transform: skewX(4deg);
}
.phone-screen[hidden] { display: none; }

.phone-pagination {
  position: absolute;
  top: 81.8%;
  left: 43.5%;
  width: 27%;
  height: 7%;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
  pointer-events: none;
}
.phone-pagination[hidden] { display: none; }
.phone-pagination::before {
  content: "";
  position: absolute;
  inset: 29% 10% 25%;
  background: #f6ede0;
}
.phone-pagination > span {
  position: relative;
  flex: 1;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
}
.phone-pagination > span::after {
  content: "";
  width: 30%;
  min-width: 4px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #cfc6b8;
  translate: var(--dot-shift, 0) 0;
}
.phone-pagination > span:first-child { --dot-shift: 4px; }
.phone-pagination > span:nth-child(2) { --dot-shift: 1px; }
.phone-pagination > span:nth-child(3) { --dot-shift: -1px; }
.phone-pagination > span:nth-child(4) { --dot-shift: -4px; }
.phone-pagination > .is-current::after { background: #075039; }

.catalogue-page.fahima-catalogue .detail-info dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-block: 0 18px;
}
.catalogue-page.fahima-catalogue .detail-info dl > div {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  min-height: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
}
.catalogue-page.fahima-catalogue .detail-info dl dt { font-size: 13px; color: #615852; }
.catalogue-page.fahima-catalogue .detail-info dl > [data-detail-price] {
  order: -1;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f4f0ea;
}
.catalogue-page.fahima-catalogue .detail-info dl > [data-detail-price] dd { font-size: 20px; font-weight: 700; }

.checkout-dialog #checkout-form:not([hidden]),
.checkout-dialog #checkout-sizes { display: grid; gap: 12px; }
.checkout-dialog label { display: grid; gap: 5px; }
.checkout-dialog :is(input, textarea) {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dcd4ca;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
}
.checkout-payment { margin: 0; padding: 10px 12px; background: #edf4ef; border-radius: 10px; color: #245740; }
#checkout-result:empty { display: none; }
#cart-onsite-order { width: 100%; margin-top: 8px; }
.catalogue-page .onsite-order {
  background: #222420;
  color: #fff;
  border: 1px solid #222420;
}
.catalogue-page .store-location a {
  display: inline-block;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.catalogue-thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  animation: catalogue-thread-sway 7s ease-in-out 2 alternate both;
}

.catalogue-thread path { fill: none; stroke: #a45e42; opacity: .21; vector-effect: non-scaling-stroke; }
.catalogue-thread .thread-glint {
  stroke: #ffe8b9;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 26 74;
  opacity: .95;
  animation: thread-glint 4.5s linear infinite;
}
@keyframes thread-glint {
  from { stroke-dashoffset: 26; }
  to { stroke-dashoffset: -74; }
}
@keyframes catalogue-thread-sway {
  from { transform: translateY(1%) scaleX(1.06); }
  to { transform: translateY(-3%) scaleX(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .catalogue-thread { animation: none; }
  .catalogue-thread .thread-glint { display: none; }
}

.fahima-catalogue .collection .section-heading h2 {
  font-size: clamp(29px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.2;
}

.fahima-catalogue .catalogue-tools {
  border: 1px solid #ece6e0;
  background: #fffdfb;
}

.catalogue-page.fahima-catalogue .product-card {
  border: 1px solid #ece7e2;
  border-radius: 22px;
  background: #fff;
  box-shadow: none;
}

.fahima-catalogue .product-meta { background: #fff; padding: 16px 17px 12px; }
.fahima-catalogue .product-title button { font-weight: 700; }
.fahima-catalogue .card-detail-link { color: var(--fahima-accent); font-size: 13px; min-height: 44px; }
.fahima-catalogue .reel-journey article > div > span { display: none; }

@media (max-width: 700px) {
  .catalogue-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    margin-block: 14px 36px;
    border-radius: 24px;
  }
  .catalogue-hero-copy { text-align: center; padding: 30px 16px 24px; }
  .catalogue-hero h1 { font-size: clamp(34px, 8.8vw, 48px); }
  .catalogue-hero-photo { padding-block: 5px 22px; }
  .catalogue-phone-stage { width: clamp(200px, 63vw, 250px); }
  .fahima-catalogue .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalogue-page.fahima-catalogue .product-card { border-radius: 17px; }
  .fahima-catalogue .product-meta { padding: 10px 10px 5px; }
  .fahima-catalogue .card-detail-link { font-size: 11px; }
}
.fahima-catalogue .reveal-pending {
  opacity: 0;
  translate: 0 14px;
}

.fahima-catalogue .reveal-shown {
  animation: catalogue-reveal 420ms ease-out;
}
.fahima-catalogue .reveal-shown:focus-within { animation: none; }

@keyframes catalogue-reveal {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fahima-catalogue .reveal-pending { opacity: 1; translate: none; }
  .fahima-catalogue .reveal-shown { animation: none; }
}
