/* Product cards, photo frames, guide (journal) cards. */

.wy-product { min-width: 0; }
.wy-product-image {
  display: block; position: relative; width: 100%; padding: 0; overflow: hidden; cursor: pointer;
  background: var(--photo-bg); border-radius: var(--radius-card); border: 1px solid var(--photo-line);
}
.wy-product-image::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px #00000003; border-radius: inherit; pointer-events: none; }
.wy-product-image:hover { border-color: var(--photo-line-hover); }

.wy-photo-frame { display: block; position: relative; width: 100%; aspect-ratio: 1; background: var(--photo-bg); overflow: hidden; }
.wy-photo-frame img { display: block; width: 100%; height: 100%; object-fit: contain; aspect-ratio: 1; }
.wy-photo-missing { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; font: 12px/1.5 sans-serif; color: var(--missing-ink); }

.wy-product-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; margin: 15px 0 7px; }
.wy-product-type { font-size: 12px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wy-product-price { font-size: 15px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.wy-product-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; font-weight: 500; line-height: 1.4; text-align: left; padding: 0; min-height: 39px; width: 100%;
  text-decoration: none;
}
.wy-product-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.wy-product-desc { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wy-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }

/* journal / guide cards */
.wy-guide { padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-guide); display: flex; flex-direction: column; }
.wy-guide-tag { font-size: 11px; letter-spacing: .8px; font-weight: 500; color: var(--muted); }
.wy-guide h3 { font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -.5px; margin: 20px 0 14px; }
.wy-guide > p { font-size: 14px; line-height: 1.8; color: var(--muted); margin-bottom: 19px; max-width: 300px; }
.wy-guide details, .wy-guide-link { margin-top: auto; }
.wy-guide summary, .wy-guide-link {
  display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500;
  cursor: pointer; padding: 10px 0; min-height: 40px; list-style: none; text-decoration: none;
}
.wy-guide-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.wy-guide summary::-webkit-details-marker { display: none; }
.wy-guide summary span, .wy-guide-link span { font-size: 19px; }
.wy-guide-body { border-top: 1px solid var(--line); padding-top: 8px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.wy-guide-body ol { padding-left: 18px; }
.wy-guide-body li { margin: 0 0 12px; }
.wy-guide-body .wy-text-button { color: var(--ink); margin-top: 14px; }

@media (max-width: 1150px) {
  .wy-guide { padding: 21px; }
}

@media (max-width: 900px) {
  .wy-guide h3 { font-size: 19px; }
}

@media (max-width: 650px) {
  .wy-product-image { border-radius: 10px; }
  .wy-product-meta { margin-top: 12px; gap: 6px; }
  .wy-product-type { font-size: 11px; }
  .wy-product-price { font-size: 13px; }
  .wy-product-name { font-size: 14px; min-height: 41px; line-height: 1.45; }
  .wy-product-desc { font-size: 11px; margin-top: 4px; }
  .wy-card-actions { gap: 5px; margin-top: 5px; }
  .wy-guide { padding: 23px; }
  .wy-guide h3 { font-size: 22px; margin: 13px 0 10px; }
  .wy-guide > p { max-width: none; margin-bottom: 9px; }
  .wy-guide summary, .wy-guide-link { font-size: 14px; }
}
