/* Catalog product mockup fallbacks — homepage cards + product gallery */

.og-catalog-mockup {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  overflow: hidden;
}

.og-product-card-media > .og-catalog-mockup {
  position: absolute;
  inset: 0;
  min-height: 0;
  z-index: 1;
}

.og-catalog-mockup__stage {
  position: relative;
  width: min(78%, 220px);
  height: min(68%, 168px);
  transform: perspective(900px) rotateX(8deg) rotateY(-12deg);
  transform-style: preserve-3d;
}

.og-catalog-mockup--card .og-catalog-mockup__stage {
  width: min(72%, 210px);
  height: min(62%, 150px);
}

.og-catalog-mockup--gallery .og-catalog-mockup__stage,
.og-catalog-mockup.is-main .og-catalog-mockup__stage {
  width: min(70%, 420px);
  height: min(70%, 280px);
}

.og-cm-bar,
.og-cm-line {
  display: block;
  border-radius: 999px;
  background: rgba(15, 39, 71, 0.12);
}

.og-cm-bar {
  width: 42%;
  height: 8px;
  margin: 18% 0 10px 12%;
  background: rgba(0, 108, 255, 0.35);
}

.og-cm-line {
  width: 58%;
  height: 5px;
  margin: 0 0 7px 12%;
}

.og-cm-line--short {
  width: 34%;
}

.og-cm-bc-stack,
.og-cm-bc-card {
  position: absolute;
  inset: 18% 8% 22% 18%;
  border-radius: 10px;
  background: #f4f7fb;
  box-shadow: 0 14px 28px rgba(15, 39, 71, 0.14);
}

.og-cm-bc-stack {
  inset: 26% 4% 14% 24%;
  background: linear-gradient(180deg, #e8eef7 0%, #d7e2f0 100%);
}

.og-cm-bc-card--back {
  inset: 22% 14% 26% 10%;
  background: #0f2747;
  transform: rotate(-8deg);
}

.og-cm-bc-card--front {
  inset: 14% 10% 28% 22%;
  background: linear-gradient(160deg, #ffffff 0%, #eef4ff 100%);
  transform: rotate(6deg);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 12px;
}

.og-cm-bc-mark {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #006cff;
}

.og-cm-flyer {
  position: absolute;
  inset: 12% 18% 18% 22%;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 39, 71, 0.12);
}

.og-cm-flyer--3 {
  transform: translate(10px, 12px) rotate(4deg);
  background: #e7eef8;
}

.og-cm-flyer--2 {
  transform: translate(5px, 6px) rotate(2deg);
  background: #f3f7fd;
}

.og-cm-flyer--1 {
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.og-cm-brochure {
  position: absolute;
  inset: 16% 8% 18% 8%;
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: 0;
  transform: rotateX(4deg);
  filter: drop-shadow(0 16px 24px rgba(15, 39, 71, 0.14));
}

.og-cm-brochure-panel {
  display: block;
  background: #fff;
  border: 1px solid rgba(191, 215, 255, 0.7);
}

.og-cm-brochure-panel--left {
  border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg, #eef4ff 0%, #dce8fb 100%);
  transform: perspective(400px) rotateY(18deg);
  transform-origin: right center;
}

.og-cm-brochure-panel--mid {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.og-cm-brochure-panel--right {
  border-radius: 0 8px 8px 0;
  background: linear-gradient(180deg, #f7faff 0%, #e8f0fc 100%);
  transform: perspective(400px) rotateY(-16deg);
  transform-origin: left center;
}

.og-cm-postcard {
  position: absolute;
  inset: 22% 16% 24% 18%;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 39, 71, 0.12);
}

.og-cm-postcard--2 {
  transform: translate(12px, 10px) rotate(5deg);
  background: #e8eef8;
}

.og-cm-postcard--1 {
  background: linear-gradient(160deg, #fff 0%, #eef5ff 100%);
}

.og-cm-banner-roll {
  position: absolute;
  left: 12%;
  top: 22%;
  width: 18%;
  height: 56%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c5d4e8 0%, #eef3fa 45%, #b7c8de 100%);
  box-shadow: 0 10px 20px rgba(15, 39, 71, 0.14);
}

.og-cm-banner-sheet {
  position: absolute;
  inset: 24% 12% 24% 26%;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #edf3fc 100%);
  box-shadow: 0 14px 28px rgba(15, 39, 71, 0.14);
}

.og-cm-banner-hem {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 10px;
  background: rgba(15, 39, 71, 0.08);
}

.og-cm-yard-stake {
  position: absolute;
  left: 48%;
  bottom: 8%;
  width: 8px;
  height: 42%;
  margin-left: -4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #9aa8ba 0%, #6d7c90 100%);
}

.og-cm-yard-board {
  position: absolute;
  inset: 14% 18% 34% 18%;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #eaf1fb 100%);
  border: 3px solid #d7e3f4;
  box-shadow: 0 16px 28px rgba(15, 39, 71, 0.14);
}

.og-cm-sticker {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 20px rgba(15, 39, 71, 0.12);
}

.og-cm-sticker--a {
  width: 34%;
  height: 48%;
  left: 16%;
  top: 28%;
  background: #e8eef8;
}

.og-cm-sticker--b {
  width: 30%;
  height: 42%;
  right: 18%;
  top: 18%;
  border-radius: 28%;
  background: #f3f7fd;
}

.og-cm-sticker--c {
  width: 38%;
  height: 52%;
  left: 34%;
  top: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #fff 0%, #eef5ff 100%);
}

.og-cm-folder {
  position: absolute;
  inset: 16% 14% 18% 14%;
  filter: drop-shadow(0 16px 24px rgba(15, 39, 71, 0.14));
}

.og-cm-folder-cover,
.og-cm-folder-pocket,
.og-cm-folder-sheet {
  position: absolute;
  display: block;
  border-radius: 8px;
}

.og-cm-folder-cover {
  inset: 0 0 0 18%;
  background: linear-gradient(160deg, #1d4ed8 0%, #0f2747 100%);
}

.og-cm-folder-pocket {
  inset: 38% 8% 8% 0;
  background: linear-gradient(180deg, #e8eef8 0%, #d5e0ef 100%);
  border: 1px solid rgba(191, 215, 255, 0.8);
}

.og-cm-folder-sheet {
  inset: 18% 28% 28% 8%;
  background: #fff;
  transform: rotate(-6deg);
}

.og-cm-generic {
  position: absolute;
  inset: 18% 16% 18% 16%;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #eef4ff 100%);
  box-shadow: 0 14px 28px rgba(15, 39, 71, 0.12);
}

/* Gallery shell integration */
html body.single-product .og-gallery-css-mockup .og-catalog-mockup,
html body.single-product .og-gallery-preview--css-mockup .og-catalog-mockup {
  width: 100%;
  height: 100%;
  min-height: 220px;
}

html body.single-product .og-gallery-thumb-image .og-catalog-mockup {
  min-height: 0;
  transform: none;
}

html body.single-product .og-gallery-thumb-image .og-catalog-mockup__stage {
  width: 78%;
  height: 70%;
  transform: perspective(600px) rotateX(6deg) rotateY(-10deg) scale(0.92);
}

@media (max-width: 640px) {
  .og-catalog-mockup--card .og-catalog-mockup__stage {
    width: min(76%, 190px);
    height: min(64%, 140px);
  }
}
