/* SavorIP 4.3.2 — recommendation-to-revenue flow and clearer artwork controls */
.recommend-card {
  cursor: default;
  border: 1px solid rgba(7,49,38,.13);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.recommend-card.is-selected {
  border-color: #b98b37;
  box-shadow: 0 0 0 3px rgba(231,195,118,.28), 0 18px 38px rgba(7,39,30,.12);
}
.recommend-card figure,
.art-card figure,
.picker-thumb,
.passport-image-wrap,
.product-art-choice img {
  background: #f7f3e9;
}
.recommend-card figure img,
.art-card figure img,
.picker-thumb img,
.passport-image-wrap img,
.product-art-choice img {
  object-fit: contain !important;
  object-position: center !important;
  image-rendering: auto;
  filter: saturate(1.035) contrast(1.025);
}
.recommend-card figure img { padding: 6px; }
.art-card figure img { padding: 7px; }
.picker-thumb img { padding: 4px; }
.passport-image-wrap img { padding: 12px; }
.recommend-choose {
  color: #fff !important;
  background: #0b3a2d !important;
}
.recommend-card.is-selected .recommend-choose {
  color: #08251d !important;
  background: #edcc80 !important;
}
.recommend-next-step {
  margin-top: 18px;
  padding: 20px;
  display: grid;
  gap: 17px;
  border: 1px solid rgba(181,135,49,.35);
  border-radius: 20px;
  background: linear-gradient(135deg,#fffaf0,#f3ead6);
  box-shadow: 0 16px 35px rgba(32,53,44,.08);
}
.recommend-next-step[hidden] { display: none !important; }
.recommend-next-copy { display: grid; gap: 4px; }
.recommend-next-copy > span { color: #8b671f; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.recommend-next-copy > strong { color: #0b3328; font-family: var(--serif); font-size: clamp(22px,2.4vw,32px); line-height: 1.25; }
.recommend-next-copy > p { margin: 2px 0 0; color: #627169; font-size: 12px; }
.recommend-next-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.recommend-next-actions > a {
  min-width: 0;
  min-height: 104px;
  padding: 16px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  color: #fff;
  border-radius: 17px;
  background: #063d2f;
  box-shadow: 0 12px 28px rgba(4,48,36,.16);
  transition: transform .2s ease, background .2s ease;
}
.recommend-next-actions > a:last-child { background: #72521a; }
.recommend-next-actions > a:hover { transform: translateY(-2px); background: #0b4c3a; }
.recommend-next-actions > a:last-child:hover { background: #8a6420; }
.recommend-next-actions i {
  width: 42px; height: 42px; display: grid; place-items: center;
  color: #0b3328; background: #edcc80; border-radius: 50%; font-style: normal; font-size: 20px; font-weight: 900;
}
.recommend-next-actions span { min-width: 0; display: grid; gap: 3px; }
.recommend-next-actions b { font-size: 16px; }
.recommend-next-actions small { color: rgba(255,255,255,.72); font-size: 10px; line-height: 1.5; }
.recommend-next-actions em { font-style: normal; font-size: 20px; }
.canvas-art-close {
  position: absolute;
  z-index: 8;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  background: rgba(3,35,27,.86);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.canvas-art-close:hover { background: #8d342b; }
.canvas-art-close[hidden] { display: none !important; }
.range-help { margin: -2px 0 11px; color: #728078; font-size: 10px; line-height: 1.55; }
#artScale { accent-color: #0c4b3a; }
.art-card figure { aspect-ratio: 4 / 3 !important; }
.art-card h3 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.65em; }
@media (max-width: 700px) {
  .recommend-next-actions { grid-template-columns: 1fr; }
  .recommend-next-actions > a { min-height: 90px; padding: 14px; }
  .recommend-next-step { padding: 15px; border-radius: 17px; }
  .canvas-art-close { top: 9px; right: 9px; }
  .art-card figure { aspect-ratio: 1 / 1 !important; }
  .art-card figure img { padding: 5px; }
}

/* Product and space image controls */
.product-canvas-wrap { position: relative; touch-action: none; }
.product-image-close {
  position: absolute;
  z-index: 9;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  background: rgba(3,35,27,.88);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.product-image-close:hover { background: #8d342b; }
.product-image-close[hidden] { display: none !important; }
.product-range-help { grid-column: 1 / -1; margin-top: -9px; }
#productScale { accent-color: #0c4b3a; }
#productCanvas { cursor: grab; }
#productCanvas:active { cursor: grabbing; }
.canvas-wrap { touch-action: none; }
.recommendation-list img,
.artwork-grid img,
.artwork-picker img,
.product-art-picker-grid img {
  backface-visibility: hidden;
  transform: translateZ(0);
}
@media (max-width: 700px) {
  .product-image-close { top: 9px; right: 9px; }
}
