/* 選品データ product view (dialog and product page), 2026-10-22 — layout after the staff Taobao product page. */
.cv{--cv-ink:#1f2d3d;--cv-muted:#6b7887;--cv-line:#e3e8ee;--cv-surface:#f4f6f8;--cv-accent:#e2456f;--cv-accent-soft:#fff2f6;color:var(--cv-ink);font-size:14px;line-height:1.7}
.cv button{font:inherit;color:inherit;background:none;border:0;padding:0;min-height:0;text-align:left;cursor:pointer}
.cv svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.cv-top{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:44px;align-items:start}
.cv-gallery{min-width:0;position:sticky;top:0}
.cv-page .cv-gallery{top:88px}
.cv-stage{position:relative;aspect-ratio:1;background:var(--cv-surface);border-radius:12px;overflow:hidden;outline-offset:3px}
.cv-hero{width:100%;height:100%;object-fit:contain;display:block}
.cv .cv-arrow{position:absolute;top:50%;translate:0 -50%;width:40px;height:40px;border-radius:50%;background:#ffffffe6;border:1px solid var(--cv-line);display:grid;place-items:center;box-shadow:0 2px 8px #1f2d3d14}
.cv .cv-arrow:hover{background:#fff;border-color:#a7b1bd}
.cv-left{left:14px}.cv-right{right:14px}
.cv-count{position:absolute;left:14px;bottom:14px;background:#fff;border-radius:4px;padding:3px 9px;font-size:12px;font-variant-numeric:tabular-nums;color:var(--cv-ink)}
.cv-thumbs{display:flex;gap:8px;overflow-x:auto;padding:12px 2px 6px;scrollbar-width:thin}
.cv .cv-thumb{flex:0 0 68px;height:68px;border:1px solid var(--cv-line);border-radius:8px;padding:3px;background:#fff}
.cv .cv-thumb img{width:100%;height:100%;object-fit:contain;border-radius:5px;display:block}
.cv .cv-thumb:hover{background:#fff;border-color:#a7b1bd}
.cv .cv-thumb[aria-pressed=true]{border:2px solid var(--cv-accent);padding:2px}
.cv-info{min-width:0}
.cv-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:12px;color:var(--cv-muted)}
.cv-source{background:#fff3e8;color:#a24f00;font-weight:700;border-radius:4px;padding:1px 8px}
.cv h1.cv-title{font-size:22px;line-height:1.5;letter-spacing:-.01em;font-weight:700;margin:10px 0 0;overflow-wrap:anywhere;text-wrap:pretty}
.cv-pick{display:inline-block;vertical-align:3px;margin-right:8px;font-size:10px;letter-spacing:1px;background:#eef5f3;color:#3f6f63;border-radius:4px;padding:2px 7px}
.cv-pricing{margin:18px 0 0;padding:16px 0;border-top:1px solid var(--cv-line);border-bottom:1px solid var(--cv-line);display:grid;gap:8px}
.cv-label{font-size:12px;color:var(--cv-muted);font-weight:500}
.cv-price{display:flex;align-items:baseline;gap:12px}
.cv-price strong{font-size:32px;line-height:1.2;font-weight:750;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.cv-cost{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
.cv-cost strong{font-size:16px;font-variant-numeric:tabular-nums}
.cv-cost small{margin-left:8px;color:var(--cv-muted);font-size:12px}
.cv-change{font-size:11px;font-weight:700;border-radius:4px;padding:1px 7px}
.cv-change-up{background:#eef4ff;color:#3538cd}.cv-change-down{background:#f0fdf9;color:#107569}
.cv-note{margin:0;font-size:11.5px;color:var(--cv-muted)}
.cv-variants{border:0;margin:18px 0 0;padding:0;min-width:0}
.cv-variants legend{display:flex;align-items:baseline;gap:8px;padding:0;margin-bottom:10px;font-weight:700;font-size:14px}
.cv-variants legend small{font-weight:500;color:var(--cv-muted);font-size:12px}
.cv-options{display:flex;flex-wrap:wrap;gap:8px}
.cv .cv-option{position:relative;display:flex;align-items:center;gap:10px;border:1px solid var(--cv-line);border-radius:8px;background:#fff;padding:8px 14px;min-height:44px;max-width:100%;transition:border-color .12s}
.cv .cv-option:hover{border-color:#a7b1bd;background:#fff}
.cv .cv-option[aria-pressed=true]{border-color:var(--cv-accent);box-shadow:inset 0 0 0 1px var(--cv-accent);background:var(--cv-accent-soft)}
.cv .cv-option.is-out{border-style:dashed}
.cv .cv-option.is-out .cv-option-name{color:var(--cv-muted)}
.cv-options.has-pictures{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr))}
.cv .cv-option-picture{padding:5px 10px 5px 5px;min-height:60px}
.cv .cv-option-picture img{width:48px;height:48px;object-fit:cover;border-radius:5px;flex:none;background:var(--cv-surface)}
.cv-option-text{display:grid;min-width:0;line-height:1.45}
.cv-option-name{font-size:13px;font-weight:600;overflow-wrap:anywhere}
.cv-level{font-size:11px;font-weight:700}
.cv-level.cv-in,.cv-pill.cv-in{color:#1f7a4d}.cv-level.cv-low,.cv-pill.cv-low{color:#b54708}.cv-level.cv-out,.cv-pill.cv-out{color:#d92d20}
.cv-stock{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin-top:16px}
.cv-stock small{font-size:11.5px;color:var(--cv-muted)}
.cv-pill{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:13px}
.cv-pill::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}
.cv-pill.cv-ended{color:#475467}.cv-pill.is-stale{opacity:.6}
.cv-warning{margin:6px 0 0;font-size:12px;color:#c0392b}
.cv-restock{margin:6px 0 0;font-size:12px;color:#1f7a4d;font-weight:600}
.cv-selected{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:12px 0 0;padding-top:12px;border-top:1px dashed var(--cv-line);font-size:13px;color:var(--cv-muted);min-height:24px}
.cv-selected strong{color:var(--cv-ink)}
.cv-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.cv .cv-save{flex:1 1 220px;display:flex;align-items:center;justify-content:center;gap:8px;background:var(--cv-accent);color:#fff;border-radius:10px;padding:13px 18px;font-weight:700;font-size:15px}
.cv .cv-save:hover{background:var(--cv-accent);filter:brightness(.95);border-color:transparent}
.cv .cv-save:disabled{opacity:1;cursor:default}
.cv .cv-save.is-saved{background:#eef5f3;color:#3f6f63;cursor:default}
/* 仕入れ先 (2026-10-26): one row per purchase link, the whole row opens it; the main one in the accent colour. */
.cv-suppliers{display:grid;gap:8px;margin-top:16px}
.cv-supplier{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--cv-line);border-radius:10px;color:var(--cv-ink);text-decoration:none;font-size:13px}
.cv-supplier:hover{border-color:#a7b1bd}
.cv-supplier-site{font-size:11px;font-weight:700;background:var(--cv-surface);border-radius:4px;padding:1px 8px;color:var(--cv-muted);white-space:nowrap}
.cv-supplier-text{min-width:0}
.cv-supplier-text strong{display:block;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cv-supplier-text small{display:block;color:var(--cv-muted);font-size:12px;font-variant-numeric:tabular-nums}
.cv-supplier .cv-pill{font-size:12px;white-space:nowrap}
.cv-supplier.is-main{border-color:var(--cv-accent);background:var(--cv-accent-soft)}
.cv-supplier.is-main .cv-supplier-site{background:#fff;color:var(--cv-accent)}
.cv-supplier>svg{color:var(--cv-muted)}
/* The product's own page, at the end of the source line (dialog only). */
.cv-meta .cv-detail-link{margin-left:auto;display:inline-flex;align-items:center;gap:4px;color:#466078;font-weight:600;text-decoration:none;white-space:nowrap}
.cv-meta .cv-detail-link:hover{text-decoration:underline}
.cv .cv-meta .cv-detail-link svg{width:14px;height:14px}
/* Clear of the dialog's close button in the top right corner. */
@media(min-width:761px){.cv-dialog .cv-meta{padding-right:20px}}
.cv-lower{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:44px;margin-top:36px;padding-top:28px;border-top:1px solid var(--cv-line)}
.cv-lower.is-single{grid-template-columns:minmax(0,1fr)}
.cv-lower.is-single .cv-description{max-width:860px}
.cv-block h2{font-size:15px;margin:0 0 12px}
.cv-description{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13.5px;line-height:1.9}
.cv-facts dl{display:grid;grid-template-columns:auto 1fr;gap:8px 18px;margin:0;font-size:13px}
.cv-facts dt{color:var(--cv-muted)}.cv-facts dd{margin:0}
@media(max-width:860px){
 .cv-top,.cv-lower{grid-template-columns:1fr;gap:22px}
 .cv-gallery{position:static}
 .cv h1.cv-title{font-size:18px}
 .cv-price strong{font-size:28px}
 .cv-options.has-pictures{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cv-page .cv-actions{position:sticky;bottom:0;background:#fff;margin:16px -18px 0;padding:10px 18px;border-top:1px solid var(--cv-line);z-index:2;flex-wrap:nowrap}
 .cv-page .cv-save{flex:1 1 auto;padding:12px}
}
#detail.has-cv{max-width:1200px;width:calc(100% - 48px);padding:34px 40px 36px}
@media(max-width:760px){#detail.has-cv{width:100%;padding:44px 18px 0}}
/* The product page (/catalog/?product=<id>). */
.gallery-page[data-view=product] .catalog-subnav{display:none}
.product-page{margin:0 auto 48px}
.cv-crumbs{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--cv-muted,#6b7887);margin:22px 0 16px;white-space:nowrap;min-width:0}
.cv-crumbs a{color:#3f6f8f;text-decoration:none}.cv-crumbs a:hover{text-decoration:underline}
.cv-crumbs>span:last-child{overflow:hidden;text-overflow:ellipsis;min-width:0}
.cv-page-card{background:#fff;border-radius:14px;padding:32px 36px 40px;box-shadow:0 2px 12px #1f2d3d0a}
@media(max-width:760px){.cv-page-card{padding:16px 18px 0;border-radius:0;margin:0 -18px}.cv-crumbs{margin:14px 0 10px}}
.cv-source-hint{margin:10px 0 0;font-size:12.5px;color:var(--cv-muted,#6b7887)}
.cv-margin strong{color:#067647}.cv-margin strong.is-loss{color:#b42318}
