.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.catalog-card{padding:0;text-align:left;background:#fff;border:1px solid #d8d0df;border-radius:12px;overflow:hidden;cursor:pointer;color:#302638;font:inherit}.catalog-card:hover{border-color:#7a628b;box-shadow:0 8px 24px #3026380d}.catalog-visual{height:210px;background:#f7f5f2;padding:24px;display:flex;align-items:center;justify-content:center}.catalog-visual img{width:100%;height:100%;object-fit:contain}.catalog-card-copy{padding:20px}.catalog-card-copy small{color:#6a5976;font-size:12px}.catalog-card-copy h2{font-size:21px;margin:9px 0}.catalog-card-copy p{color:#4e425a;font-size:14px}.catalog-card-copy span{font-weight:600;font-size:14px;color:#674d7c}.catalog-detail{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:32px;margin-top:24px}.catalog-main-image,.catalog-gallery{margin:0 0 18px;border:1px solid #ded7e5;border-radius:12px;background:#fff;padding:24px}.catalog-main-image img{width:100%;height:340px;object-fit:contain}.catalog-gallery img{max-width:100%;max-height:300px;object-fit:contain}.catalog-main-image figcaption,.catalog-gallery figcaption{margin-top:12px;font-size:12px;color:#61526b;line-height:1.5}.catalog-detail h1{font-size:34px;margin:10px 0 22px}.catalog-price{display:flex;align-items:flex-start;flex-direction:column;gap:12px;margin:0 0 28px}.catalog-price strong{font-size:30px;color:#594068}.catalog-price span{color:#5e5267;font-size:14px}.catalog-section{padding:22px 0;border-top:1px solid #d9d1e2}.catalog-section h2{font-size:22px;margin:0 0 12px}.catalog-description{white-space:pre-wrap;overflow-wrap:anywhere;color:#403449;line-height:1.7}.catalog-placeholder{color:#675b6f;line-height:1.65}.catalog-resource{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 0}.catalog-resource a{color:#5b3e74;font-weight:600}.catalog-resource small{color:#695b73}@media(max-width:1050px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.catalog-grid,.catalog-detail{grid-template-columns:1fr}.catalog-visual{height:230px}.catalog-detail{gap:18px}.catalog-main-image img{height:280px}}

/* Official pack photography, consistent visual frame. */
.catalog-visual{height:260px;padding:22px 32px}.catalog-pack{display:block;width:100%;height:100%;overflow:hidden}.catalog-main-image>.catalog-pack{height:350px}.catalog-source{font-size:13px;color:#5a4a64;line-height:1.7}.catalog-source a,.catalog-main-image figcaption a{color:#59406e;text-decoration:underline;text-underline-offset:3px}.catalog-detail h1{line-height:1.2}.catalog-card-copy h2{min-height:50px}.catalog-main-image{background:#fff}.catalog-main-image:has(.catalog-pack){padding:28px}.catalog-description{font-size:16px}.catalog-resource{padding:16px 0;border-bottom:1px solid #ece7ef}.catalog-resource a{line-height:1.55}@media(max-width:760px){.catalog-visual{height:250px}.catalog-main-image>.catalog-pack{height:290px}}

/* Start the image at the card edge when a neighboring card has more copy. */
.catalog-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.catalog-card > .catalog-visual {
  flex: none;
}

/* Use the same surface for every pack, both in the catalog grid and on product detail. */
.catalog-card .catalog-visual,
.product-hero > .product-hero-photo {
  background: var(--panel-lavender);
}
.catalog-pack {
  object-fit: contain;
}
.catalog-isolated {
  filter: drop-shadow(0 3px 4px #38204038);
}
.catalog-cutout {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
}
.catalog-pack.catalog-cutout > img {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  clip-path: var(--catalog-outline);
}

@media (max-width: 760px) {
  .catalog-card .catalog-visual {
    position: relative;
  }
  .catalog-card .catalog-visual > .catalog-pack {
    position: absolute;
    inset: 12px 8px;
    width: calc(100% - 16px);
    height: calc(100% - 24px);
  }
}

.stock-status {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 6px;
  background: #e5f1e8;
  color: #28523b;
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1.35;
}
.stock-status.stock-unavailable {
  background: #eee7f0;
  color: #553c60;
}
.catalog-card.product-out-of-stock .catalog-visual,
.product-presentation.product-out-of-stock .product-hero-photo { background: #e1dae8; }
.product-out-of-stock .catalog-pack { opacity: .72; filter: saturate(.35) brightness(.87); }
.catalog-card.product-out-of-stock .catalog-visual {
  position: relative;
  padding-top: 40px;
}
.catalog-card .catalog-visual > .stock-unavailable {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
}
.catalog-card .catalog-visual > .stock-unavailable,
.product-hero-photo > .stock-unavailable {
  background: #56335e;
  color: #fff;
}
.product-hero-photo > .stock-unavailable {
  display: flex;
  margin-bottom: 12px;
}
@media (max-width: 1024px) {
  .catalog-card .catalog-visual > .stock-unavailable {
    top: 7px;
    left: 7px;
    max-width: calc(100% - 14px);
    padding-inline: 5px;
    font-size: .6875rem;
  }
}
@media (max-width: 760px) {
  .catalog-card.product-out-of-stock .catalog-visual {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 6px;
    align-items: stretch;
    justify-content: stretch;
    padding: 7px 7px 12px;
  }
  .catalog-card .catalog-visual > .stock-unavailable {
    position: static;
    grid-row: 1;
    max-width: 100%;
  }
  .catalog-card.product-out-of-stock .catalog-visual > .catalog-pack {
    position: static;
    grid-row: 2;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
}
tr.product-out-of-stock > td { background: #f6f2f7; }
.stock-line-warning { color: #8a3449; margin: 6px 0; grid-column: 1 / -1; font-size: .9rem; }
.stock-list { border: 1px solid var(--line); border-radius: 12px; }
.stock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 12px;
  padding: 11px 14px;
}
.stock-row + .stock-row { border-top: 1px solid var(--line); }
.stock-row > div { min-width: 0; overflow-wrap: anywhere; }
.stock-row small { display: block; color: #61516f; }
.stock-row .btn { white-space: normal; }
@media (max-width: 640px) {
  .stock-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .stock-row > div { grid-column: 1 / -1; }
}
