/* DICHANA v2.2.45 — scalable 96-product catalog and photoreal packshot balance. */
.product-library-page .product-library-hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  align-items: center;
  gap: clamp(36px, 5vw, 84px);
}

.product-library-page .product-library-hero-visual {
  width: min(100%, 520px);
  justify-self: end;
}

.product-library-page .product-library-hero-visual img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 30px;
}

.product-library-page .product-taxonomy-search-control input {
  min-height: 48px;
}

.product-library-page .product-category-navigation,
.product-library-page .product-group-tabs,
.product-library-page .product-type-tabs {
  scrollbar-width: thin;
  scrollbar-color: rgba(225, 0, 145, .34) transparent;
}

.product-library-page .product-concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  align-items: stretch;
}

.product-library-page .product-concept-card {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(15, 31, 55, .1);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(24, 37, 61, .08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-library-page .product-concept-card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 0, 145, .28);
  box-shadow: 0 24px 58px rgba(24, 37, 61, .13);
}

.product-library-page .product-concept-card:focus-visible,
.product-library-page .product-load-more:focus-visible {
  outline: 3px solid #19aee6;
  outline-offset: 3px;
}

.product-library-page .product-concept-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #fff6fb, #f5fcff);
}

.product-library-page .product-concept-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-library-page .product-concept-body {
  display: flex;
  min-height: 310px;
  padding: clamp(18px, 2vw, 24px);
  flex-direction: column;
}

.product-library-page .product-concept-body h3 {
  margin: 10px 0 6px;
  overflow-wrap: anywhere;
  font-size: clamp(1.15rem, 1.3vw, 1.36rem);
  line-height: 1.3;
}

.product-library-page .product-card-type,
.product-library-page .product-card-focus {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.product-library-page .product-card-type { -webkit-line-clamp: 2; }
.product-library-page .product-card-focus { -webkit-line-clamp: 3; }

.product-library-page .product-card-detail-link {
  margin-top: auto;
  padding-top: 18px;
}

.product-library-page .product-load-more {
  display: block;
  min-height: 48px;
  margin: 28px auto 0;
  padding: 11px 22px;
  color: #9b096d;
  font: inherit;
  font-weight: 750;
  background: #fff;
  border: 1px solid rgba(225, 0, 145, .3);
  border-radius: 999px;
  cursor: pointer;
}

.product-library-page .product-load-more[hidden] { display: none; }

.product-detail-modal .product-detail-visual-frame img,
.tester-modal .tester-selected-product img {
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1180px) {
  .product-library-page .product-library-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  }
  .product-library-page .product-concept-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .product-library-page .product-library-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .product-library-page .product-library-hero-visual {
    width: min(86vw, 420px);
    justify-self: center;
  }
  .product-library-page .product-concept-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-library-page .product-concept-body { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .product-library-page .product-concept-card { transition: none; }
}

/* v2.2.60 — square, edge-to-edge delivery for the 96 generated packshots.
   The source art is 1:1, so a 1:1 frame fills the surface without cropping. */
body.product-library-page.product-library-card-detail-v8557 .product-concept-visual {
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
}

body.product-library-page.product-library-card-detail-v8557 .product-concept-visual > img[src*="/product-packshot/"],
body.product-library-page .product-detail-visual-frame > img[src*="/product-packshot/"],
body.product-library-page .tester-selected-product > img[src*="/product-packshot/"],
.product-cms-visual > img[src*="/product-packshot/"] {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

body.product-library-page .product-detail-visual-frame,
body.product-library-page .tester-selected-product,
.product-cms-visual {
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
}

/* v2.2.82 — TESTER selected-product card contrast hotfix. */
.tester-modal .tester-modal-summary .tester-selected-product {
  background: #ffffff !important;
  border-color: rgba(15, 31, 55, .14) !important;
  box-shadow: 0 14px 34px rgba(4, 10, 30, .18);
}

.tester-modal .tester-modal-summary .tester-selected-product > div {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 4px 2px;
  background: #ffffff;
}

.tester-modal .tester-modal-summary .tester-selected-product small {
  color: #006985 !important;
  font-weight: 700;
}

.tester-modal .tester-modal-summary .tester-selected-product strong {
  color: #10213a !important;
}

.tester-modal .tester-modal-summary .tester-selected-product span {
  color: #40516a !important;
}
