/* The product cards share one reading order across discovery, search and saved items. */
.item-card,
.item-sheet {
  --item-ink: #183d30;
  --item-accent: #ad4328;
  --item-line: #d6d9ce;
  --item-muted: #526056;
  --item-paper: #faf9f5;
  color: var(--item-ink);
}
.product.item-card { border: 0; border-radius: 0; background: transparent; overflow: visible; }
.item-card .item-image { overflow: hidden; position: relative; border-radius: 6px; isolation: isolate; }
.item-image.is-model,
.item-sheet-image.is-model { background: #eaece5; }
.item-card .item-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.item-card .is-model img { object-fit: contain; }
.item-card .is-scene img { object-fit: cover; }
.item-image-caption { position: absolute; bottom: 6px; left: 7px; font-size: 11px; font-weight: 600; line-height: 1.5; background: #fffdf6ee; color: #425447; padding: 2px 6px; border-radius: 3px; }
.item-card .item-heart { top: 5px; right: 5px; width: 44px; height: 44px; background: transparent; box-shadow: none; color: var(--item-ink); isolation: isolate; }
.item-heart::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #fffdf5f2; z-index: -1; }
.item-card .item-heart.active { color: var(--item-accent); }
.item-card .item-copy { padding: 13px 2px 0; }
.item-byline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; font-size: .78rem; line-height: 1.5; color: var(--item-muted); }
.item-byline b { font-weight: 760; color: var(--item-ink); }
.item-byline span { border-left: 1px solid #b6c0b4; padding-left: 8px; }
.item-card h3 { margin: 5px 0 9px; font-size: clamp(1rem,2vw,1.14rem); line-height: 1.35; overflow-wrap: anywhere; }
.item-card .product-title { color: inherit; font-weight: 720; letter-spacing: -.025em; }
.item-card-price { display: grid; gap: 0; margin: 0; }
.item-card-price span,
.item-range span { color: var(--item-muted); font-size: .75rem; }
.item-card-price strong { font-size: clamp(.95rem,1.7vw,1.15rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.45; }
.item-card-price.is-offer strong { color: var(--item-accent); font-size: 1.38rem; }
.item-offer-caption { display: grid; gap: 3px; padding-top: 4px; }
.item-offer-caption span, .item-price-details p { font-size: .81rem; line-height: 1.45; }
.item-offer-caption small, .item-price-details small, .item-fineprint { color: var(--item-muted); font-size: .75rem; line-height: 1.55; }
.item-price-details { margin-top: 6px; } .item-price-details summary { cursor: pointer; font-size: .81rem; text-decoration: underline; text-underline-offset: 3px; }
.item-matches, .item-watch { margin: 5px 0 0; color: var(--item-ink); font-size: .81rem; font-weight: 650; }
.item-controls { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 6px; margin-top: auto; padding-top: 12px; }
.item-controls button { min-height: 44px; border: 1px solid var(--item-line); border-radius: 6px; padding: 7px 3px; background: var(--item-paper); font-weight: 700; font-size: .84rem; line-height: 1.4; }
.item-controls .item-open { background: var(--item-ink); color: white; border-color: var(--item-ink); }
.item-controls .item-compare[aria-pressed="true"], .item-sheet-actions .action[aria-pressed="true"] { background: #e6eddf; border-color: #849684; color: #254534; }
.detail-dialog { width: min(620px,100%); }
.detail-dialog .close-btn { width: 44px; height: 44px; }
.item-sheet .item-sheet-image { margin: 0; }
.item-sheet-image .detail-image { width: 100%; height: clamp(170px,28vh,265px); max-height: none; }
.item-sheet-image.is-model img { object-fit: contain; }
.item-sheet-image.is-scene img { object-fit: cover; }
.item-sheet-image figcaption { padding: 5px 14px; background: #f5f5ee; font-size: .75rem; color: #526056; text-align: start; }
.item-sheet-image figcaption a { color: #38533e; text-underline-offset: 3px; }
.item-sheet .item-sheet-body { padding: clamp(18px,3vw,30px); background: var(--item-paper); }
.item-sheet h2 { font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif; font-size: clamp(1.65rem,4vw,2.25rem); font-weight: 650; line-height: 1.24; margin: 7px 0 10px; letter-spacing: -.035em; }
.item-range { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0; }
.item-range strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.item-why { margin: 13px 0 17px; line-height: 1.75; }
.item-merchant { background: #e9ede2; border: 1px solid #cad2c2; border-radius: 8px; padding: 17px; margin: 12px 0 20px; }
.item-sheet h3 { letter-spacing: -.025em; }
.item-merchant h3 { font-size: .97rem; margin: 0; }
.item-sale-price { margin: 5px 0; display: flex; align-items: baseline; gap: 8px; }
.item-sale-price b { font-variant-numeric: tabular-nums; font-size: 1.75rem; line-height: 1.2; color: var(--item-accent); }
.item-sale-price small { color: var(--item-muted); font-size: .76rem; }
.item-variant { margin: 7px 0 2px; font-size: .91rem; }
.item-fineprint { margin: 5px 0; }
.item-buy { display: block; min-height: 44px; margin-top: 14px; padding: 11px 12px; text-align: center; background: var(--item-ink); color: white; font-size: .94rem; font-weight: 750; border-radius: 6px; }
.item-shops h3 { font-size: 1.02rem; margin: 12px 0 7px; }
.item-sheet-body .buy-links { margin: 7px 0; }
.item-shops .shop { border-radius: 6px; min-height: 44px; font-size: .81rem; }
.item-sheet-body .item-sheet-actions { margin-top: 15px; }
.item-sheet-actions .action { color: var(--item-ink); min-height: 44px; border-radius: 6px; font-size: .85rem; }
.item-check { border-top: 1px solid var(--item-line); margin: 16px 0; padding: 13px 0 0; color: var(--item-muted); font-size: .9rem; line-height: 1.7; }
.item-check strong { display: block; font-size: .85rem; color: var(--item-ink); }
.item-sheet .facts { border-top: 1px solid var(--item-line); padding-top: 2px; }
.item-sheet .watch-box { background: #f0f0e8; border-radius: 8px; }
@media (max-width: 700px) {
  .item-card .item-copy { padding: 9px 0 0; }
  .item-card .item-image img { aspect-ratio: 1.2; }
  .item-card .item-byline { gap: 1px 6px; font-size: .75rem; }
  .item-byline span { padding-left: 6px; }
  .item-controls { gap: 4px; }
  .item-controls button { font-size: .77rem; }
  .item-card h3 { margin-bottom: 6px; font-size: 1rem; }
  .item-sheet-body .item-sheet-actions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; }
  .item-sheet-actions .action { padding: 7px 4px; font-size: .78rem; }
}

.detail-dialog { width: min(680px,calc(100% - 20px)); max-height: min(92dvh,940px); overscroll-behavior: contain; }
.selected-product { display: flex; align-items: center; gap: 14px; padding-right: 35px; }
.selected-product > div { min-width: 0; }
.selected-product h2 { overflow-wrap: anywhere; margin: 3px 0; font-size: clamp(1.28rem,3.4vw,1.9rem); }
.selected-product .selected-model { font-size: .8rem; color: var(--item-muted); overflow-wrap: anywhere; }
.selected-product-photo { flex: 0 0 clamp(62px,14vw,98px); border: 1px solid var(--item-line); border-radius: 8px; padding: 0; overflow: hidden; background: #eff0e9; cursor: zoom-in; }
.selected-product-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.item-sheet .item-disclosure { border-top: 1px solid var(--item-line); }
.item-sheet .item-disclosure > summary, .previous-product { min-height: 44px; padding: 10px 0; font-size: .94rem; cursor: pointer; }
.item-sheet .item-disclosure .facts { border: 0; }
.item-sheet .previous-product { text-decoration: underline; text-underline-offset: 3px; color: var(--item-muted); }
@media (max-width:700px) {
  .detail-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: 92vh; max-height: 92dvh; }
  .item-sheet .item-sheet-body { padding: 15px; }
}

#itemTitle:focus{outline:none}

.item-sheet .store-note { margin-block: .7rem .35rem; }
.store-note > summary { display: list-item; padding: .55rem 0; color: var(--ink); min-height: 44px; line-height: 1.45; cursor: pointer; }
.store-note > summary small { color: var(--item-muted); font-weight: 500; overflow-wrap: anywhere; }
.store-note > summary strong { margin-inline: .25em; }
.store-note form, .store-history { padding: .65rem 0; }
.store-note .watch-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.store-note .watch-fields > div, .store-note .watch-fields input { min-width: 0; width: 100%; }
.store-note .watch-fields input { font: inherit; min-height: 44px; }
.store-actions { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; }
.store-actions button, .store-history button { min-height: 44px; }
.store-actions [hidden] { display: none; }
.store-message { margin: .35rem 0 0; font-size: .85rem; }
.store-message:empty { display: none; }
.store-history ul { list-style: none; margin: 0; padding: 0; }
.store-history li { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .35rem 0; border-bottom: 1px solid var(--item-line); }
.store-history li small, .store-prices small { display: block; font-size: .76rem; color: var(--item-muted); overflow-wrap: anywhere; }
.store-prices { display: grid; gap: .45rem; margin: .35rem 0; }
.store-prices dt { font-size: .76rem; color: var(--item-muted); }
.store-prices dd { margin: 0; }
.store-prices b { font-size: 1.05rem; }
@media(max-width: 380px) { .store-note .watch-fields { grid-template-columns: 1fr; } }
