﻿.detail-page-wrapper {
    --detail-red: var(--eduoduo-red, #b4282d);
    --detail-deep: var(--eduoduo-red-deep, #7d1b20);
    --detail-rose: var(--eduoduo-rose, #fff3f3);
    --detail-border: #eadfdf;
    --detail-muted: #6f6262;
    background: #fff;
    color: #292323;
    padding-bottom: 72px;
    overflow-x: clip;
}
.detail-page-wrapper *, .detail-page-wrapper *::before, .detail-page-wrapper *::after { box-sizing: border-box; }
.detail-container { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.detail-breadcrumb { display: flex; gap: 8px; align-items: center; min-width: 0; padding: 16px 0; color: var(--detail-muted); font-size: 13px; overflow: hidden; white-space: nowrap; }
.detail-breadcrumb a { color: var(--detail-deep); }
.detail-breadcrumb span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.detail-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 40px; }
.detail-gallery, .detail-info { min-width: 0; }
.gallery-mobile { display: flex; width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 10px; background: #faf7f7; }
.gallery-mobile::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; width: 100%; aspect-ratio: 1 / 1; scroll-snap-align: center; }
.gallery-slide img, .main-img-wrap img { width: 100%; height: 100%; display: block; object-fit: contain; }
.gallery-hint { margin: 8px 0 0; text-align: center; color: var(--detail-muted); font-size: 12px; }
.gallery-desktop { display: none; }
.eduoduo-eyebrow { margin: 0 0 8px; color: var(--detail-red); font-size: 13px; font-weight: 700; }
.detail-title { margin: 0; color: #302525; font-size: clamp(25px, 7vw, 38px); line-height: 1.25; }
.detail-subtitle { margin: 8px 0 0; color: #514444; font-size: 16px; font-weight: 700; line-height: 1.55; }
.detail-summary { margin: 12px 0; color: var(--detail-muted); font-size: 15px; line-height: 1.75; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 14px 0 20px; color: var(--detail-muted); font-size: 13px; }
.product-tag { padding: 3px 9px; border-radius: 999px; background: var(--detail-rose); color: var(--detail-red); }
.detail-price-box { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; padding: 18px; margin-bottom: 24px; border-radius: 10px; background: linear-gradient(135deg, #fff7f7, #fff); border: 1px solid #f3dddd; }
.detail-price-main { color: var(--detail-red); font-size: 36px; font-weight: 800; line-height: 1; }
.detail-price-old { color: #9c8d8d; font-size: 14px; text-decoration: line-through; }
.festival-notice { flex-basis: 100%; color: var(--detail-red); font-size: 13px; font-weight: 700; }
.price-note { flex-basis: 100%; color: var(--detail-muted); font-size: 12px; }
.variant-section, .quantity-section { margin-bottom: 22px; }
.variant-title, .quantity-section > label { display: block; margin: 0 0 10px; color: #3d3131; font-size: 14px; font-weight: 700; }
.variant-list { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-btn { min-height: 42px; max-width: 100%; padding: 9px 16px; border: 1px solid #d7c8c8; border-radius: 6px; background: #fff; color: #493d3d; cursor: pointer; overflow-wrap: anywhere; }
.variant-btn:hover, .variant-btn:focus-visible { border-color: var(--detail-red); outline: none; }
.variant-btn.on { border-color: var(--detail-red); background: var(--detail-red); color: #fff; }
.variant-btn.is-disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.quantity-control { display: inline-grid; grid-template-columns: 40px 58px 40px; height: 40px; border: 1px solid #d7c8c8; border-radius: 6px; overflow: hidden; }
.quantity-control button { border: 0; background: #faf6f6; font-size: 20px; cursor: pointer; }
.quantity-control input { width: 100%; border: 0; border-inline: 1px solid #e6dada; text-align: center; font-size: 15px; appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button { appearance: none; }
.variant-message { min-height: 20px; margin: -10px 0 12px; color: var(--detail-red); font-size: 13px; }
.action-group { display: none; gap: 12px; margin-bottom: 24px; }
.action-group .btn { flex: 1; min-height: 50px; border: 1px solid var(--detail-red); border-radius: 7px; font-weight: 700; cursor: pointer; }
.btn-outline { background: #fff; color: var(--detail-red); }
.btn-primary { background: var(--detail-red); color: #fff; }
.guarantee-box { padding: 18px; border-radius: 10px; background: #faf7f7; }
.guarantee-box p { margin: 0 0 14px; color: var(--detail-muted); font-size: 14px; line-height: 1.7; }
.guarantee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guarantee-item { color: var(--detail-deep); font-size: 13px; font-weight: 700; }
.detail-tabs { display: flex; position: sticky; top: 0; z-index: 20; margin: 0 -14px; padding: 0 14px; overflow-x: auto; background: rgba(255,255,255,.96); border-block: 1px solid var(--detail-border); }
.detail-tabs a { flex: 1 0 auto; padding: 14px 16px; color: #544747; text-align: center; font-size: 14px; font-weight: 700; }
.detail-section { padding: 36px 0; border-bottom: 1px solid var(--detail-border); scroll-margin-top: 56px; }
.detail-section-title { margin: 0 0 24px; color: #302525; font-size: 24px; text-align: center; }
.parameter-list { max-width: 900px; margin: 0 auto; border: 1px solid var(--detail-border); border-radius: 8px; overflow: hidden; }
.parameter-row { display: grid; grid-template-columns: minmax(92px, 28%) 1fr; border-bottom: 1px solid var(--detail-border); }
.parameter-row:last-child { border-bottom: 0; }
.parameter-row dt, .parameter-row dd { margin: 0; padding: 13px 14px; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.parameter-row dt { background: #faf6f6; color: #4e4040; font-weight: 700; }
.parameter-row dd { color: var(--detail-muted); }
.legacy-detail-html, .article-content { max-width: 900px; margin: 0 auto 24px; color: #514545; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.legacy-detail-html img, .article-content img { max-width: 100%; height: auto !important; }
.legacy-detail-html table, .article-content table { display: block; max-width: 100%; overflow-x: auto; }
.pro-images { max-width: 720px; margin: 0 auto; }
.pro-images img { width: 100%; height: auto; display: block; object-fit: contain; }
.category-detail-common { max-width: 720px; margin: 0 auto; }
.category-detail-common img { display: block; width: 100%; height: auto; }
.article-sections { display: grid; gap: 18px; max-width: 900px; margin: 0 auto; }
.article-section { padding: 20px; border: 1px solid var(--detail-border); border-radius: 8px; }
.article-section h3 { margin: 0 0 12px; color: var(--detail-deep); font-size: 18px; }
.article-section .article-content { margin-bottom: 0; }
.cateDiv { max-width: 900px; margin: 0 auto; }
.cateDiv .plT { min-height: 40px; line-height: 40px; color: #333; font-size: 16px; font-weight: 600; }
.cateDiv .plul { margin: 0; padding: 0 0 20px; list-style: none; }
.cateDiv .plul li { clear: both; padding: 12px 0; border-top: 1px solid var(--detail-border); }
.cateDiv .plul .procon .con { color: #777; font-size: 14px; line-height: 22px; white-space: pre-wrap; overflow-wrap: anywhere; }
.section-empty { color: var(--detail-muted); text-align: center; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.related-card { min-width: 0; border: 1px solid var(--detail-border); border-radius: 9px; overflow: hidden; background: #fff; }
.related-card a { display: block; color: inherit; }
.related-image { position: relative; aspect-ratio: 1 / 1; background: #faf7f7; overflow: hidden; }
.related-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.related-image span { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 3px 7px; border-radius: 4px; background: rgba(180,40,45,.9); color: #fff; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-card h3 { margin: 12px 10px 4px; font-size: 14px; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.related-category { margin: 0 10px; color: var(--detail-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-price { margin: 8px 10px 13px; color: var(--detail-red); font-size: 17px; font-weight: 800; }
.mobile-bottom-bar { display: grid; grid-template-columns: 48px 58px 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; min-height: 58px; padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--detail-border); box-shadow: 0 -3px 14px rgba(55,25,25,.08); }
.bar-icon, .bar-btn { display: flex; align-items: center; justify-content: center; border: 0; text-align: center; }
.bar-icon { color: var(--detail-muted); font-size: 11px; }
.bar-btn { font-size: 13px; font-weight: 700; cursor: pointer; }
.btn-cart { background: var(--detail-rose); color: var(--detail-red); }
.btn-buy { background: var(--detail-red); color: #fff; }
.detail-page-wrapper ~ .eduoduo-mobile-dock { display: none !important; }

@media (max-width: 767px) {
    .detail-page-wrapper .article-section-wrap { display: none; }
}

@media (min-width: 768px) {
    .detail-container { width: min(1180px, calc(100% - 48px)); }
    .detail-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 46px; align-items: start; margin-top: 16px; }
    .gallery-mobile, .gallery-hint { display: none; }
    .gallery-desktop { display: block; }
    .main-img-wrap { width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #faf7f7; }
    .thumb-list { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
    .thumb-item { flex: 0 0 72px; width: 72px; height: 72px; padding: 0; border: 1px solid var(--detail-border); border-radius: 6px; overflow: hidden; background: #fff; cursor: pointer; }
    .thumb-item img { width: 100%; height: 100%; display: block; object-fit: cover; }
    .action-group { display: flex; }
    .mobile-bottom-bar { display: none; }
    .detail-page-wrapper { padding-bottom: 30px; }
    .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

@media (min-width: 1100px) {
    .detail-main { grid-template-columns: minmax(0, 55%) minmax(0, 45%); gap: 64px; }
    .detail-gallery { position: sticky; top: 20px; }
    .related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
}

