:root {
  --page: #ffffff;
  --surface: #ffffff;
  --line: #171717;
  --text: #111111;
  --muted: rgba(17, 17, 17, 0.18);
  --muted-strong: rgba(17, 17, 17, 0.52);
  --shadow: 0 18px 28px rgba(10, 10, 10, 0.045);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.navbar {
  background: #f5f5f4;
  border-bottom: 2.5px solid var(--line);
  position: relative;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px 28px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 10;
}

.logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 4px;
  line-height: 1;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.6px;
}

.nav-menu a.active {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.shop-link {
  border: 1.5px solid var(--line);
  padding: 6px 12px;
}

.gallery {
  padding: 0;
}

.gallery-stage {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 100 / 84;
  min-height: clamp(720px, 88vw, 1320px);
  background: var(--surface);
  overflow: hidden;
}

#art-gallery {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.stage-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
  pointer-events: none;
}

.stage-lines polyline {
  fill: none;
  stroke: var(--line);
  stroke-width: 6;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
  opacity: 0.45;
}

.stage-lines-shadow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.18;
}

.stage-lines-shadow polyline {
  fill: none;
  stroke: #000000;
  stroke-width: 24;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

.slot {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  isolation: isolate;
}

.slot.is-transition-source-hidden {
  visibility: hidden;
}

.slot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(252, 252, 249, 1) 58%, rgba(246, 246, 241, 1) 100%);
  box-shadow:
    inset 0 0 20px 6px rgba(0, 0, 0, 0.06),
    inset 0 0 44px 10px rgba(0, 0, 0, 0.03);
  border-radius: 0;
}

a.slot:hover .slot-media img {
  transform: scale(1.025);
}

.slot.is-empty {
  pointer-events: none;
}

.slot.is-empty::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 248, 244, 0.92) 100%);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.12),
    0 1px 4px rgba(0, 0, 0, 0.08);
}

.slot-card {
  position: absolute;
  width: var(--card-width);
  left: var(--card-center-x);
  top: var(--card-center-y);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.slot.is-empty .slot-card {
  opacity: 0.65;
}

.slot-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ece8e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.slot.is-empty .slot-media {
  background: #f4f2ed;
  box-shadow: none;
  border: 1px solid rgba(17, 17, 17, 0.06);
}

.slot-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.slot-copy {
  padding-top: 12px;
}

.slot.is-empty .slot-copy {
  opacity: 0.45;
}

.slot-title {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.slot-price {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 1.1px;
  color: var(--muted-strong);
}

.slot-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

.slot-1 {
  clip-path: polygon(0% 0%, 24% 0%, 28% 18%, 24% 36%, 12% 33%, 0% 30%);
  --card-center-x: 12.5%;
  --card-center-y: 17%;
  --card-width: 12.8%;
}

.slot-2 {
  clip-path: polygon(24% 0%, 50% 0%, 48% 16%, 52% 36%, 38% 34%, 24% 36%, 28% 18%);
  --card-center-x: 38%;
  --card-center-y: 18%;
  --card-width: 13.8%;
}

.slot-3 {
  clip-path: polygon(50% 0%, 76% 0%, 79% 18%, 75% 38%, 63% 33%, 52% 36%, 48% 16%);
  --card-center-x: 63.5%;
  --card-center-y: 18%;
  --card-width: 13.8%;
}

.slot-4 {
  clip-path: polygon(76% 0%, 100% 0%, 100% 34%, 88% 35%, 75% 38%, 79% 18%);
  --card-center-x: 88.2%;
  --card-center-y: 18.2%;
  --card-width: 12.6%;
}

.slot-5 {
  clip-path: polygon(0% 30%, 12% 33%, 24% 36%, 20% 54%, 24% 74%, 14% 63%, 0% 66%);
  --card-center-x: 12.8%;
  --card-center-y: 49.2%;
  --card-width: 12.6%;
}

.slot-6 {
  clip-path: polygon(24% 36%, 38% 34%, 52% 36%, 48% 56%, 50% 76%, 36% 72%, 24% 74%, 20% 54%);
  --card-center-x: 37.5%;
  --card-center-y: 51.5%;
  --card-width: 14.4%;
}

.slot-7 {
  clip-path: polygon(52% 36%, 63% 33%, 75% 38%, 79% 56%, 77% 78%, 61% 73%, 50% 76%, 48% 56%);
  --card-center-x: 62.8%;
  --card-center-y: 52.2%;
  --card-width: 12.8%;
}

.slot-8 {
  clip-path: polygon(75% 38%, 88% 35%, 100% 34%, 100% 76%, 90% 74%, 77% 78%, 79% 56%);
  --card-center-x: 88.2%;
  --card-center-y: 54.5%;
  --card-width: 11.8%;
}

.slot-9 {
  clip-path: polygon(0% 66%, 14% 63%, 24% 74%, 22% 100%, 0% 100%);
  --card-center-x: 11.8%;
  --card-center-y: 86%;
  --card-width: 12.2%;
}

.slot-10 {
  clip-path: polygon(24% 74%, 36% 72%, 50% 76%, 47% 100%, 22% 100%);
  --card-center-x: 36.5%;
  --card-center-y: 86.5%;
  --card-width: 12.8%;
}

.slot-11 {
  clip-path: polygon(50% 76%, 61% 73%, 77% 78%, 80% 100%, 47% 100%);
  --card-center-x: 62.5%;
  --card-center-y: 86.7%;
  --card-width: 12.8%;
}

.slot-12 {
  clip-path: polygon(77% 78%, 90% 74%, 100% 76%, 100% 100%, 80% 100%);
  --card-center-x: 88.5%;
  --card-center-y: 86.5%;
  --card-width: 11.8%;
}

.footer {
  border-top: 2.5px solid var(--line);
  padding: 22px 28px;
  background: #ebebea;
  position: relative;
  z-index: 50;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08), 0 -1px 3px rgba(0, 0, 0, 0.06);
}

.footer-content {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left p,
.footer-links a,
.footer-links span {
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(17, 17, 17, 0.46);
  text-decoration: none;
}

body.product-open {
  overflow: hidden;
}

.product-view {
  position: fixed;
  inset: 0;
  z-index: 120;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.22s ease;
}

.product-view.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.product-view__inner {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 22px 28px 56px;
}

.product-view__topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.product-view__eyebrow,
.product-view__breadcrumb,
.product-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}

.product-view__eyebrow,
.product-kicker {
  color: rgba(17, 17, 17, 0.5);
}

.product-view__breadcrumb {
  margin-top: 6px;
  color: rgba(17, 17, 17, 0.24);
}

.product-close {
  border: 1.5px solid var(--line);
  background: #ffffff;
  color: var(--text);
  padding: 10px 16px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  cursor: pointer;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
  padding-top: 34px;
}

.product-hero__media-shell {
  background: linear-gradient(180deg, rgba(247, 244, 238, 0.72) 0%, rgba(255, 255, 255, 0.94) 100%);
  padding: clamp(16px, 1.9vw, 24px);
  box-shadow: 0 30px 50px rgba(10, 10, 10, 0.05);
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.18s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.product-hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(245, 240, 232, 0.96) 100%),
    radial-gradient(circle at 20% 18%, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 74% 62%, rgba(0, 0, 0, 0.045) 0 1px, transparent 1px 100%);
  background-size: auto, 18px 18px, 22px 22px;
}

.product-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-hero__copy {
  padding-top: 10px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.16s ease 0.03s, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1) 0.03s;
  will-change: transform, opacity;
}

.product-title {
  margin-top: 18px;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  max-width: 9ch;
}

.product-price {
  margin-top: 18px;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.product-description {
  margin-top: 24px;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(17, 17, 17, 0.66);
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.product-meta__item dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.38);
}

.product-meta__item dd {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.product-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.product-action:hover {
  transform: translateY(-1px);
}

.product-action--primary {
  background: var(--line);
  color: #ffffff;
}

.product-action--secondary {
  border: 1.5px solid var(--line);
  color: var(--text);
  background: transparent;
}

.product-related {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.16s ease 0.06s, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1) 0.06s;
  will-change: transform, opacity;
}

.product-view.is-open .product-hero__media-shell,
.product-view.is-open .product-hero__copy,
.product-view.is-open .product-related {
  opacity: 1;
  transform: none;
}

body.panel-open {
  overflow: hidden;
}

.panel-view {
  position: fixed;
  inset: 0;
  z-index: 125;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.985);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.992) translateY(10px);
  transition: opacity 0.18s ease, transform 0.22s ease;
}

.panel-view.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.panel-view__inner {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 22px 28px 56px;
}

.panel-view__topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.panel-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(32px, 6vw, 92px);
  padding-top: 34px;
}

.panel-shell__intro {
  position: sticky;
  top: 22px;
  align-self: start;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.16s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.panel-title {
  margin-top: 18px;
  font-size: clamp(2.6rem, 5vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  max-width: 10ch;
}

.panel-lead {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(17, 17, 17, 0.64);
}

.panel-shell__content {
  min-width: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.18s ease 0.03s, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1) 0.03s;
  will-change: transform, opacity;
}

.panel-view.is-open .panel-shell__intro,
.panel-view.is-open .panel-shell__content {
  opacity: 1;
  transform: none;
}

.panel-content[hidden] {
  display: none !important;
}

.panel-richtext {
  max-width: 52ch;
}

.panel-richtext p {
  font-size: 16px;
  line-height: 1.95;
  color: rgba(17, 17, 17, 0.76);
}

.panel-richtext p + p {
  margin-top: 1.2em;
}

.panel-note {
  max-width: 50ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(17, 17, 17, 0.68);
}

.panel-form {
  margin-top: 26px;
}

.panel-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.panel-field {
  display: block;
}

.panel-field + .panel-field,
.panel-form__grid + .panel-field,
.panel-field + .panel-form__grid,
.panel-note + .panel-form {
  margin-top: 18px;
}

.panel-field span {
  display: block;
  margin-bottom: 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.48);
}

.panel-field input,
.panel-field textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.panel-field textarea {
  resize: vertical;
  min-height: 168px;
}

.panel-field input:focus,
.panel-field textarea:focus {
  border-color: rgba(17, 17, 17, 0.38);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.04);
}

.panel-form__actions {
  margin-top: 22px;
}

.panel-form__status {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.62);
}

.panel-form__status.is-success {
  color: #205b3b;
}

.panel-form__status.is-error {
  color: #8a2d2d;
}

.product-related__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}

.product-related__title {
  margin-top: 8px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.carousel-button {
  border: 1.5px solid rgba(17, 17, 17, 0.22);
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.1px;
  text-transform: uppercase;
  cursor: pointer;
}

.related-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
}

.related-track::-webkit-scrollbar {
  height: 8px;
}

.related-track::-webkit-scrollbar-thumb {
  background: rgba(17, 17, 17, 0.18);
}

.related-card {
  flex: 0 0 clamp(240px, 24vw, 312px);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
}

.related-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 239, 232, 0.96) 100%),
    radial-gradient(circle at 20% 18%, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 100%);
  background-size: auto, 18px 18px;
}

.related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.related-card:hover .related-card__media img {
  transform: scale(1.03);
}

.related-card__copy {
  padding-top: 12px;
}

.related-card__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.3px;
  text-transform: uppercase;
}

.related-card__price {
  margin-top: 4px;
  font-size: 10px;
  color: rgba(17, 17, 17, 0.54);
  letter-spacing: 1px;
}

@media (max-width: 980px) {
  .gallery {
    padding: 0 16px;
  }

  .gallery-stage {
    min-height: auto;
    aspect-ratio: auto;
    background: var(--page);
    overflow: visible;
  }

  #art-gallery {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px 0 32px;
  }

  .stage-lines,
  .stage-lines-shadow {
    display: none;
  }

  .slot {
    position: relative;
    inset: auto;
    clip-path: none !important;
    min-height: 0;
    overflow: visible;
    display: block;
    isolation: auto;
  }

  .slot::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(252, 252, 249, 1) 58%, rgba(246, 246, 241, 1) 100%);
    box-shadow:
      0 2px 8px rgba(0, 0, 0, 0.07),
      0 0 0 1px rgba(0, 0, 0, 0.04);
    z-index: 0;
  }

  .slot-card {
    position: relative;
    width: 100%;
    left: auto;
    top: auto;
    transform: none;
    padding: 10px;
    z-index: 1;
  }

  .slot-media {
    width: 100%;
    border-radius: 2px;
  }

  .slot-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .slot-copy {
    padding-top: 10px;
    text-align: center;
  }

  .slot.is-empty {
    display: none;
  }

  .product-view__inner {
    padding: 18px 16px 42px;
  }

  .panel-view__inner {
    padding: 18px 16px 42px;
  }

  .product-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .panel-shell {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .panel-shell__intro {
    position: static;
  }

  .product-meta {
    grid-template-columns: 1fr;
  }

  .panel-form__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-container {
    padding: 16px 14px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .logo {
    font-size: 14px;
    letter-spacing: 3px;
    text-align: center;
  }

  .nav-menu {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-menu a {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .gallery {
    padding: 0 12px;
  }

  #art-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 0 24px;
    max-width: 400px;
    margin: 0 auto;
  }

  .slot::before {
    box-shadow:
      0 2px 10px rgba(0, 0, 0, 0.08),
      0 0 0 1px rgba(0, 0, 0, 0.04);
  }

  .slot-card {
    padding: 8px;
  }

  .slot-title {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .slot-price {
    font-size: 9px;
  }

  .footer {
    padding: 18px 14px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .product-view__topbar,
  .product-related__header,
  .panel-view__topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .product-actions {
    flex-direction: column;
  }

  .product-action {
    width: 100%;
  }

  .panel-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }
}
