/* ==== Page-scoped editorial product detail ==== */
.breadcrumb-line { padding: 27px 0 0; color: #999; font-size: 11px; }
.breadcrumb-line a:hover { color: var(--ink); }

/* Product top */
.product-top {
    padding: 46px 0 82px;
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
    gap: 70px;
}

/* Gallery — 1-col when no thumbs, 2-col when thumbnails exist */
.gallery { display: grid; grid-template-columns: 1fr; gap: 18px; }
.gallery:has(> .thumbs) { grid-template-columns: 76px 1fr; }
.thumbs { display: flex; flex-direction: column; gap: 12px; }
.thumb {
    width: 76px; height: 76px; border: 1px solid #e6e2dc; background: #fff;
    padding: 8px; cursor: pointer; overflow: hidden;
}
.thumb.active { border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.main-photo {
    aspect-ratio: 1/1; background: var(--soft);
    overflow: hidden; position: relative; display: block;
}
.main-photo img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.main-photo .badges {
    position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 2;
}
.pbadge {
    display: inline-block; background: var(--ink); color: #fff;
    font-size: 9px; letter-spacing: 0.08em; padding: 6px 8px;
}
.pbadge.sale { background: var(--accent); }
.pbadge.new { background: #4a6757; }
.pbadge.cert { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.soldout-overlay {
    position: absolute; inset: 0; background: rgba(255,255,255,0.72);
    display: grid; place-items: center;
    font-size: 2rem; font-weight: 700; color: #666; z-index: 3;
}

/* Summary */
.summary { padding-top: 6px; }
.brandline { display: flex; align-items: center; justify-content: space-between; }
.brandline .brand {
    font-size: 11px; letter-spacing: 0.15em; color: #777; font-weight: 700; text-transform: uppercase;
}
.share {
    border: 0; background: #fff; font-size: 11px; color: #777; cursor: pointer;
}
.share:hover { color: var(--ink); }
.summary h1 {
    font-size: 28px; line-height: 1.35; margin: 15px 0 12px;
    font-weight: 600; letter-spacing: -0.04em;
}
.subcopy {
    font-size: 13px; line-height: 1.7; color: #888; margin-bottom: 25px;
}
.rating-line { font-size: 11px; color: #777; margin-bottom: 26px; }
.rating-line strong { color: var(--ink); }
.rating-line .stars { color: #f59e0b; letter-spacing: 0.1em; }

/* Pricebox */
.pricebox { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 23px 0 21px; }
.price-row { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.price-row .sale { color: var(--accent); font-size: 16px; font-weight: 700; }
.price-row strong { font-size: 27px; font-weight: 800; }
.price-row .old { font-size: 12px; color: #aaa; text-decoration: line-through; }
.price-row .label { font-size: 11px; color: #888; margin-left: 6px; }
.tier-hint {
    margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e6e3dc;
    font-size: 11px; color: #888; display: flex; gap: 14px; flex-wrap: wrap;
}
.tier-hint strong { color: var(--ink); font-size: 12px; margin-left: 4px; }

/* Info dl */
.info { padding: 21px 0; border-bottom: 1px solid var(--line); }
.info-row {
    display: grid; grid-template-columns: 92px 1fr; gap: 15px;
    font-size: 12px; line-height: 1.65; margin: 11px 0;
}
.info-row dt { color: #888; margin: 0; }
.info-row dd { margin: 0; color: var(--ink); }
.info-row .note { color: #999; font-size: 11px; }

/* Option / qty / cta */
.option { padding: 22px 0; border-bottom: 1px solid var(--line); }
.option label { display: block; font-size: 11px; color: #777; margin-bottom: 10px; }
.qty-row {
    display: flex; justify-content: space-between; align-items: center; margin-top: 18px;
}
.qty {
    display: grid; grid-template-columns: 36px 60px 36px; height: 38px;
    border: 1px solid #ddd8d0;
}
.qty button {
    border: 0; background: #fff; display: grid; place-items: center; font-size: 14px; cursor: pointer;
}
.qty input {
    border: 0; text-align: center; font-size: 13px; padding: 0; width: 100%;
    -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}
.total { text-align: right; }
.total small { font-size: 10px; color: #999; display: block; margin-bottom: 4px; }
.total strong { font-size: 20px; font-weight: 800; }

.cta {
    display: grid; grid-template-columns: 52px 1fr 1fr; gap: 8px; margin-top: 22px;
}
.cta button, .cta a {
    height: 54px; border: 1px solid var(--ink); background: #fff; color: var(--ink);
    font-size: 12px; font-weight: 700; cursor: pointer; letter-spacing: 0.03em;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}
.cta .wish { padding: 0; }
.cta .cart:hover { background: var(--soft); }
.cta .buy { background: var(--ink); color: #fff; }
.cta .buy:hover { background: transparent; color: var(--ink); }

/* Quick benefit */
.quick-benefit {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--line); margin-top: 18px;
}
.quick-benefit div {
    background: #fff; padding: 14px 10px; text-align: center;
    font-size: 10px; color: #777; line-height: 1.55;
}
.quick-benefit b { display: block; margin-top: 3px; color: var(--ink); font-size: 11px; letter-spacing: 0.08em; }

/* Vendor mini */
.vendor-mini {
    margin-top: 22px; padding: 16px 18px; border: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center;
}
.vendor-mini .v-brand { font-size: 12px; font-weight: 700; }
.vendor-mini .v-sub { font-size: 10px; color: #888; margin-top: 3px; }
.vendor-mini .v-badge { font-size: 10px; color: var(--green); border: 1px solid var(--green); padding: 4px 8px; }

/* Tabs */
.tabs-shell {
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: #fff; position: sticky; top: 86px; z-index: 15;
}
.tabs { height: 70px; display: grid; grid-template-columns: repeat(4, 1fr); }
.tabs a {
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: #777; border-right: 1px solid var(--line);
    cursor: pointer;
}
.tabs a:last-child { border-right: 0; }
.tabs a.active { color: #111; font-weight: 700; box-shadow: inset 0 -2px #111; }

/* Detail sections */
.detail-section { padding: 110px 0; }
.detail-head { text-align: center; margin-bottom: 55px; }
.detail-head span { font-size: 10px; letter-spacing: 0.18em; color: #8e8980; }
.detail-head h2 {
    font-family: Georgia, serif; font-size: 39px;
    margin: 12px 0 14px; letter-spacing: -0.04em;
}
.detail-head p { font-size: 13px; color: #777; line-height: 1.8; margin: 0; }

.editorial-wrap { width: min(980px, 100%); margin: 0 auto; }
.desc-body {
    font-size: 14px; line-height: 1.9; color: #555; white-space: pre-wrap;
    max-width: 780px; margin: 0 auto;
}

/* Info table */
.info-table { width: min(980px, 100%); margin: 0 auto; border-top: 1px solid var(--ink); }
.info-table .row {
    display: grid; grid-template-columns: 170px 1fr;
    border-bottom: 1px solid var(--line); font-size: 12px;
}
.info-table .row b { background: #faf9f6; padding: 18px 20px; font-weight: 500; color: #666; }
.info-table .row span { padding: 18px 22px; color: #555; }

/* Review */
.review-section { background: #faf9f6; padding: 92px 0; }
.review-head {
    display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px;
}
.review-head h2 { font-size: 25px; margin: 0; font-family: inherit; }
.review-score { font-family: Georgia, serif; font-size: 42px; letter-spacing: -0.03em; }
.review-score small { font: 11px Arial, sans-serif; color: #888; margin-left: 6px; }
.review-empty { text-align: center; color: #999; padding: 60px 0; }

/* Recommend (related products) */
.recommend { padding: 105px 0 120px; }
.section-title {
    display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 35px;
}
.section-title h2 {
    font-family: Georgia, serif; font-size: 31px; margin: 0; letter-spacing: -0.03em;
}
.section-title p { margin: 7px 0 0; font-size: 12px; color: #888; }
.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.rel { display: block; color: inherit; }
.rel-img {
    aspect-ratio: 1/1; border: 1px solid #efede8; background: #fff; overflow: hidden; position: relative;
}
.rel-img img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; padding: 0; display: block;
    transition: transform 0.4s ease;
}
.rel:hover .rel-img img { transform: scale(1.05); }
.rel-brand { font-size: 14px; letter-spacing: 0.13em; color: #999; margin-top: 13px; text-transform: uppercase; }
.rel h3 { font-size: 18px; line-height: 1.45; margin: 6px 0 8px; font-weight: 700; font-family: inherit; }
.rel strong { font-size: 14px; font-weight: 800; }

/* Responsive */
@media (max-width: 1000px) {
    .product-top { grid-template-columns: 1fr; gap: 45px; }
    .gallery { max-width: 760px; margin: auto; }
    .summary { max-width: 760px; margin: auto; width: 100%; }
    .related { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .gallery { grid-template-columns: 1fr; }
    .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); order: 2; }
    .thumb { width: 100%; height: auto; aspect-ratio: 1/1; }
    .product-top { padding-top: 28px; }
    .summary h1 { font-size: 23px; }
    .tabs-shell { top: 86px; overflow: auto; }
    .tabs { min-width: 600px; }
    .related { gap: 16px; }
}
