/* Shared by the server-rendered storefront and the admin's live preview.
   One positioned group contains an image frame and its normal-flow caption.
   Artwork supplies its own shadows; CSS never creates device shadows. */
.ipac-home-showroom {
  --ipac-showroom-ink: #08173e;
  --ipac-showroom-blue: #08a8ed;
  --ipac-showroom-muted: #607895;
  --showroom-ratio: 2 / 1;
  --showroom-background: url('../../../../../image/catalog/ipac-home-showroom-v15/stage-desktop.webp');
  --showroom-title-size: clamp(28px, 3.2cqw, 46px);
  --showroom-subtitle-size: clamp(18px, 1.8cqw, 26px);
  --showroom-label-size: clamp(16px, 1.45cqw, 22px);
  --showroom-heading-padding: 30px 5% 6px;
  --showroom-heading-align: left;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--ipac-showroom-ink);
  background: #fff;
  font-family: inherit;
  container-type: inline-size;
}

.ipac-home-showroom *,
.ipac-home-showroom *::before,
.ipac-home-showroom *::after { box-sizing: border-box; }

.ipac-home-showroom .ipac-showroom-heading {
  padding: var(--showroom-heading-padding);
  text-align: var(--showroom-heading-align);
}

.ipac-home-showroom .ipac-showroom-heading h2 {
  margin: 0;
  color: var(--ipac-showroom-ink);
  font-size: 38px;
  font-size: var(--showroom-title-size);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.ipac-home-showroom .ipac-showroom-heading p {
  margin: 8px 0 0;
  color: var(--ipac-showroom-muted);
  font-size: 22px;
  font-size: var(--showroom-subtitle-size);
  line-height: 1.3;
}

.ipac-home-showroom .ipac-showroom-catalog {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ipac-home-showroom .ipac-showroom-catalog--scene {
  position: relative;
  width: 100%;
  aspect-ratio: var(--showroom-ratio);
  isolation: isolate;
  background-color: #f8fafc;
  background-image: var(--showroom-background);
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.ipac-home-showroom .ipac-showroom-position {
  --x: var(--x-d, 50%);
  --y: var(--y-d, 0%);
  --size: var(--size-d, 15%);
  --rotation: var(--rotation-d, 0deg);
  --tilt-x: var(--tilt-x-d, 0deg);
  --tilt-y: var(--tilt-y-d, 0deg);
  --fit: var(--fit-d, 1);
  --label-gap: var(--label-gap-d, 0px);
  margin: 0;
  padding: 0;
  min-width: 0;
  list-style: none;
}

.ipac-home-showroom .ipac-showroom-catalog--scene .ipac-showroom-position {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  transform: translateX(-50%);
}

.ipac-home-showroom .ipac-showroom-entry {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  color: var(--ipac-showroom-ink);
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: rgba(8, 168, 237, .12);
}

.ipac-home-showroom .ipac-showroom-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  flex: none;
  /* The fit factor is computed from all three angles by the shared library.
     Clipping additionally keeps malformed external image sizes off captions. */
  overflow: hidden;
}

.ipac-home-showroom .ipac-showroom-object {
  position: absolute;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: center;
  transform: perspective(1600px) scale(var(--fit)) rotateZ(var(--rotation)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.ipac-home-showroom .ipac-showroom-label {
  position: static;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: calc(6px + var(--label-gap)) 0 0;
  color: var(--ipac-showroom-ink);
  font-size: 20px;
  font-size: var(--showroom-label-size);
  line-height: 1.18;
  text-align: center;
  overflow-wrap: anywhere;
  border-radius: 4px;
}

.ipac-home-showroom .ipac-showroom-label-copy {
  display: block;
  min-width: 0;
  width: 100%;
}

.ipac-home-showroom .ipac-showroom-label strong {
  display: block;
  font-weight: 700;
  color: inherit;
}

.ipac-home-showroom .ipac-showroom-label-description {
  display: block;
  margin-top: 4px;
  color: var(--ipac-showroom-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}

.ipac-home-showroom a.ipac-showroom-entry:focus-visible .ipac-showroom-label,
.ipac-home-showroom .ipac-showroom-block-button:focus-visible {
  outline: 3px solid #008aca;
  outline-offset: 4px;
}

/* Unconfigured modules with a different item count remain fully readable. */
.ipac-home-showroom .ipac-showroom-catalog--list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 32px;
  padding: 32px 5% 48px;
}

.ipac-home-showroom .ipac-showroom-catalog--list .ipac-showroom-entry {
  height: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.ipac-home-showroom .ipac-showroom-empty {
  margin: 0;
  padding: 36px 5% 48px;
  color: var(--ipac-showroom-muted);
  font-size: 18px;
  line-height: 1.5;
}

.ipac-home-showroom .ipac-showroom-content {
  display: grid;
  gap: 24px;
  padding: 0 0 32px;
}

.ipac-home-showroom .ipac-showroom-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  min-width: 0;
  background: var(--ipac-showroom-block-bg, #edf9ff);
}

.ipac-home-showroom .ipac-showroom-block-media { min-width: 0; }

.ipac-home-showroom .ipac-showroom-block-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.ipac-home-showroom .ipac-showroom-block-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 32px max(24px, 5vw);
}

.ipac-home-showroom .ipac-showroom-block-copy h2 {
  margin: 0;
  color: var(--ipac-showroom-ink);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.ipac-home-showroom .ipac-showroom-block-text {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ipac-home-showroom .ipac-showroom-block-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 24px;
  padding: 10px 22px;
  border: 1px solid var(--ipac-showroom-blue);
  border-radius: 24px;
  color: #fff;
  background: var(--ipac-showroom-blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.ipac-home-showroom .ipac-showroom-block--right .ipac-showroom-block-media,
.ipac-home-showroom .ipac-showroom-block--image-right .ipac-showroom-block-media { grid-column: 2; grid-row: 1; }
.ipac-home-showroom .ipac-showroom-block--right .ipac-showroom-block-copy,
.ipac-home-showroom .ipac-showroom-block--image-right .ipac-showroom-block-copy { grid-column: 1; grid-row: 1; }
.ipac-home-showroom .ipac-showroom-block--text-only,
.ipac-home-showroom .ipac-showroom-block--full,
.ipac-home-showroom .ipac-showroom-block--cta { display: block; }

.ipac-home-showroom .ipac-showroom-block--text-only .ipac-showroom-block-copy,
.ipac-home-showroom .ipac-showroom-block--cta .ipac-showroom-block-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.ipac-home-showroom .ipac-showroom-block--text-only .ipac-showroom-block-text,
.ipac-home-showroom .ipac-showroom-block--cta .ipac-showroom-block-text { flex-basis: 100%; margin-top: 0; }
.ipac-home-showroom .ipac-showroom-block--text-only .ipac-showroom-block-button,
.ipac-home-showroom .ipac-showroom-block--cta .ipac-showroom-block-button { margin-top: 0; }
.ipac-home-showroom .ipac-showroom-block--full .ipac-showroom-block-media { position: absolute; inset: 0; }
.ipac-home-showroom .ipac-showroom-block--full .ipac-showroom-block-media img { height: 100%; }

.ipac-home-showroom .ipac-showroom-block--full .ipac-showroom-block-copy {
  min-height: 260px;
  width: min(100%, 720px);
  padding-top: 48px;
  padding-bottom: 48px;
  background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.78) 80%, rgba(255,255,255,0));
}

@media (hover: hover) and (pointer: fine) {
  .ipac-home-showroom a.ipac-showroom-entry:hover .ipac-showroom-label strong { color: #008aca; }
  .ipac-home-showroom .ipac-showroom-block-button:hover { color: #fff; background: #008aca; border-color: #008aca; }
}

/* These profile rules are duplicated intentionally: the editor must render
   either profile at an exact design width, regardless of the browser width. */
.ipac-home-showroom[data-showroom-profile="mobile"] {
  --showroom-ratio: 1 / 2.4;
  --showroom-background: url('../../../../../image/catalog/ipac-home-showroom-v15/stage-mobile.webp');
  --showroom-title-size: clamp(26px, 6cqw, 38px);
  --showroom-subtitle-size: clamp(18px, 4cqw, 24px);
  --showroom-label-size: clamp(16px, 3.7cqw, 23px);
  --showroom-heading-padding: 26px 16px 4px;
  --showroom-heading-align: center;
}

.ipac-home-showroom[data-showroom-profile="mobile"] .ipac-showroom-position {
  --x: var(--x-m, 50%);
  --y: var(--y-m, 0%);
  --size: var(--size-m, 35%);
  --rotation: var(--rotation-m, 0deg);
  --tilt-x: var(--tilt-x-m, 0deg);
  --tilt-y: var(--tilt-y-m, 0deg);
  --fit: var(--fit-m, 1);
  --label-gap: var(--label-gap-m, 0px);
}

@media (max-width: 900px) {
  .ipac-home-showroom:not([data-showroom-profile="desktop"]) {
    --showroom-ratio: 1 / 2.4;
    --showroom-background: url('../../../../../image/catalog/ipac-home-showroom-v15/stage-mobile.webp');
    --showroom-title-size: clamp(26px, 6cqw, 38px);
    --showroom-subtitle-size: clamp(18px, 4cqw, 24px);
    --showroom-label-size: clamp(16px, 3.7cqw, 23px);
    --showroom-heading-padding: 26px 16px 4px;
    --showroom-heading-align: center;
  }
  .ipac-home-showroom:not([data-showroom-profile="desktop"]) .ipac-showroom-position {
    --x: var(--x-m, 50%);
    --y: var(--y-m, 0%);
    --size: var(--size-m, 35%);
    --rotation: var(--rotation-m, 0deg);
    --tilt-x: var(--tilt-x-m, 0deg);
    --tilt-y: var(--tilt-y-m, 0deg);
    --fit: var(--fit-m, 1);
    --label-gap: var(--label-gap-m, 0px);
  }
  .ipac-home-showroom:not([data-showroom-profile="desktop"]) .ipac-showroom-catalog--list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    padding: 28px 16px 40px;
  }
  .ipac-home-showroom .ipac-showroom-content { gap: 20px; padding: 0 16px 24px; }
  .ipac-home-showroom .ipac-showroom-block { display: block; border-radius: 12px; }
  .ipac-home-showroom .ipac-showroom-block-copy { padding: 24px; }
  .ipac-home-showroom .ipac-showroom-block--text-only .ipac-showroom-block-copy,
  .ipac-home-showroom .ipac-showroom-block--cta .ipac-showroom-block-copy { gap: 20px; }
  .ipac-home-showroom .ipac-showroom-block--full .ipac-showroom-block-copy { min-height: 220px; padding: 32px 24px; }
}

.ipac-home-showroom .ipac-showroom-position{
  --g-dx: var(--g-dx-d, 0);
  --g-dy: var(--g-dy-d, 0);
  --g-scale: var(--g-scale-d, 1);
  --g-rz: var(--g-rz-d, 0deg);
  --g-rx: var(--g-rx-d, 0deg);
  --g-ry: var(--g-ry-d, 0deg);
  --g-p: var(--g-p-d, 160);
  --im-dx: var(--im-dx-d, 0);
  --im-dy: var(--im-dy-d, 0);
  --im-scale: var(--im-scale-d, 1);
  --im-rz: var(--im-rz-d, 0deg);
  --im-rx: var(--im-rx-d, 0deg);
  --im-ry: var(--im-ry-d, 0deg);
  --im-p: var(--im-p-d, 160);
  --tx-dx: var(--tx-dx-d, 0);
  --tx-dy: var(--tx-dy-d, 0);
  --tx-scale: var(--tx-scale-d, 1);
  --tx-rz: var(--tx-rz-d, 0deg);
  --tx-rx: var(--tx-rx-d, 0deg);
  --tx-ry: var(--tx-ry-d, 0deg);
  --tx-p: var(--tx-p-d, 160);
}
.ipac-home-showroom[data-showroom-profile="mobile"] .ipac-showroom-position{
  --g-dx: var(--g-dx-m, 0);
  --g-dy: var(--g-dy-m, 0);
  --g-scale: var(--g-scale-m, 1);
  --g-rz: var(--g-rz-m, 0deg);
  --g-rx: var(--g-rx-m, 0deg);
  --g-ry: var(--g-ry-m, 0deg);
  --g-p: var(--g-p-m, 160);
  --im-dx: var(--im-dx-m, 0);
  --im-dy: var(--im-dy-m, 0);
  --im-scale: var(--im-scale-m, 1);
  --im-rz: var(--im-rz-m, 0deg);
  --im-rx: var(--im-rx-m, 0deg);
  --im-ry: var(--im-ry-m, 0deg);
  --im-p: var(--im-p-m, 160);
  --tx-dx: var(--tx-dx-m, 0);
  --tx-dy: var(--tx-dy-m, 0);
  --tx-scale: var(--tx-scale-m, 1);
  --tx-rz: var(--tx-rz-m, 0deg);
  --tx-rx: var(--tx-rx-m, 0deg);
  --tx-ry: var(--tx-ry-m, 0deg);
  --tx-p: var(--tx-p-m, 160);
}
@media(max-width:900px){.ipac-home-showroom:not([data-showroom-profile="desktop"]) .ipac-showroom-position{
  --g-dx: var(--g-dx-m, 0);
  --g-dy: var(--g-dy-m, 0);
  --g-scale: var(--g-scale-m, 1);
  --g-rz: var(--g-rz-m, 0deg);
  --g-rx: var(--g-rx-m, 0deg);
  --g-ry: var(--g-ry-m, 0deg);
  --g-p: var(--g-p-m, 160);
  --im-dx: var(--im-dx-m, 0);
  --im-dy: var(--im-dy-m, 0);
  --im-scale: var(--im-scale-m, 1);
  --im-rz: var(--im-rz-m, 0deg);
  --im-rx: var(--im-rx-m, 0deg);
  --im-ry: var(--im-ry-m, 0deg);
  --im-p: var(--im-p-m, 160);
  --tx-dx: var(--tx-dx-m, 0);
  --tx-dy: var(--tx-dy-m, 0);
  --tx-scale: var(--tx-scale-m, 1);
  --tx-rz: var(--tx-rz-m, 0deg);
  --tx-rx: var(--tx-rx-m, 0deg);
  --tx-ry: var(--tx-ry-m, 0deg);
  --tx-p: var(--tx-p-m, 160);
}}

/* The live shop's categories should read as clickable without adding a
   second device shadow or changing any saved scene coordinates. The admin
   canvas intentionally has no .ipac-homepage class and keeps its own hover. */
.ipac-homepage.ipac-home-showroom .ipac-showroom-catalog--scene .ipac-showroom-media {
  scale: 1;
  transition: scale 220ms cubic-bezier(.2, .7, .2, 1), filter 220ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .ipac-homepage.ipac-home-showroom .ipac-showroom-catalog--scene .ipac-showroom-position:hover {
    z-index: 2;
  }
  .ipac-homepage.ipac-home-showroom .ipac-showroom-catalog--scene a.ipac-showroom-entry:hover .ipac-showroom-media {
    scale: 1.14;
    filter: brightness(1.08) saturate(1.08);
  }
}
.ipac-homepage.ipac-home-showroom .ipac-showroom-catalog--scene a.ipac-showroom-entry:focus-visible .ipac-showroom-media {
  scale: 1.14;
  filter: brightness(1.08) saturate(1.08);
}
@media (prefers-reduced-motion: reduce) {
  .ipac-homepage.ipac-home-showroom .ipac-showroom-catalog--scene .ipac-showroom-media {
    transition: none;
  }
}
/* V3 transforms are layered above the old composition. A rollback ignores
   these additive fields, preserving the positions saved before V3. */
.ipac-home-showroom .ipac-showroom-catalog--scene .ipac-showroom-position {
  transform: translateX(-50%) translate(calc(var(--g-dx) * 1cqw), calc(var(--g-dy) * 1cqw));
  pointer-events: none;
}
.ipac-home-showroom .ipac-showroom-catalog--scene .ipac-showroom-entry {
  transform-origin: 50% 50%;
  transform: perspective(calc(var(--g-p) * 1cqw)) rotateZ(var(--g-rz)) rotateX(var(--g-rx)) rotateY(var(--g-ry)) scale(var(--g-scale));
  pointer-events: none;
}
.ipac-home-showroom .ipac-showroom-catalog--scene .ipac-showroom-media {
  transform: translate(calc(var(--im-dx) * 1cqw), calc(var(--im-dy) * 1cqw)) perspective(calc(var(--im-p) * 1cqw)) rotateZ(var(--im-rz)) rotateX(var(--im-rx)) rotateY(var(--im-ry)) scale(var(--im-scale));
  transform-origin: 50% 50%;
  pointer-events: auto;
}
.ipac-home-showroom .ipac-showroom-catalog--scene .ipac-showroom-label {
  position: relative;
  transform: translate(calc(var(--tx-dx) * 1cqw), calc(var(--tx-dy) * 1cqw)) perspective(calc(var(--tx-p) * 1cqw)) rotateZ(var(--tx-rz)) rotateX(var(--tx-rx)) rotateY(var(--tx-ry)) scale(var(--tx-scale));
  transform-origin: 50% 50%;
  pointer-events: auto;
}
