/* ============ Hạt Cải — trang chi tiết sản phẩm (thiết kế lại 20/11/2026) ============
 * Dùng chung token + nút + thẻ + phần xem trước của styles.css. File này chỉ thêm bố cục riêng của trang chi tiết.
 * Thứ tự: xem trước + lựa chọn (đầu trang) → điểm nổi bật → dành cho ai → hai phiên bản → thông số
 *         → quy trình → đặt cho cả đội → hỏi đáp → mẫu khác; thanh đặt hàng dính đáy trên điện thoại.
 */
.pdp-page section { padding: 48px 0; }

/* ---------- đầu trang: xem trước + lựa chọn ---------- */
.pdp-hero.studio { padding: 18px 0 80px;
  background: radial-gradient(60% 50% at 88% 0%, rgba(217,182,92,.14), transparent 70%), linear-gradient(180deg, var(--paper) 0%, var(--parchment) 100%); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 26px; font-size: 14px; color: var(--ink-mute); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--green-ink); font-weight: 600; }
.crumbs span[aria-hidden] { color: #C9BBA3; }
.pdp-hero .studio-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 0 60px; }
@media (min-width: 981px) { .pdp-hero .stage { top: 92px; } }
.pdp-hero .studio-head .eyebrow { font-size: 13px; }
.pdp-hero .studio-head h1 { margin: 14px 0 14px; font-size: clamp(38px, 4.2vw, 56px); line-height: 1.04; }
.pdp-hero .studio-head .lead { margin: 0; font-size: 17px; line-height: 1.7; }
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 22px 0 26px; padding: 16px 0; border-block: 1px solid var(--line); }
.pdp-price-main { font-size: 32px; font-weight: 700; line-height: 1; color: var(--green-ink); letter-spacing: -.01em; }
.pdp-price-main small { margin-right: 6px; font-size: 15px; font-weight: 500; color: var(--ink-mute); letter-spacing: 0; }
.pdp-price-sub { font-size: 14.5px; color: var(--ink-soft); }
.pdp-hero .studio-panel .form { gap: 22px; }
.pdp-hero .field > label, .pdp-hero .name-head > label:first-child { font-size: 14px; letter-spacing: .02em; }
.pdp-hero .studio-cta { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 4px; }
.pdp-hero .studio-cta .btn { min-height: 54px; font-size: 16px; }
.pdp-hero .studio-cta .price-note { grid-column: 1 / -1; font-size: 14px; line-height: 1.5; }
.assure { list-style: none; margin: 4px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.assure li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.assure b { color: var(--green-ink); font-weight: 600; }
.assure svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--green-soft);
  fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- điểm nổi bật ---------- */
.pdp-page .pdp-band { padding: 0; background: var(--green-deep); color: #E9F0EA; }
.pdp-highlights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.pdp-highlights li { display: flex; gap: 14px; align-items: center; padding: 26px 22px; border-left: 1px solid rgba(255,255,255,.09); }
.pdp-highlights li:first-child { border-left: 0; padding-left: 0; }
.pdp-highlights svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 50%; border: 1px solid rgba(217,182,92,.4);
  fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pdp-highlights b { display: block; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.3; }
.pdp-highlights span { font-size: 14px; color: #BFD0C4; line-height: 1.45; }

/* ---------- tiêu đề phần ---------- */
.pdp-head { max-width: 720px; margin-bottom: 44px; }
.pdp-head h2, .pdp-story h2, .pdp-specs h2, .pdp-lot h2 { margin: 14px 0 0; font-size: clamp(32px, 3.6vw, 46px); }
.pdp-head .lead { margin-top: 14px; }

/* ---------- dành cho ai ---------- */
.pdp-story { background: var(--paper); }
.pdp-story-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.pdp-story-art { position: relative; margin: 0; aspect-ratio: 1 / 1.08; border-radius: 999px 999px 32px 32px; overflow: hidden;
  background: radial-gradient(60% 45% at 50% 82%, #FFE7B0 0%, #E3BE76 30%, #4A3826 72%, #241B14 100%); box-shadow: var(--shadow-lg); }
.pdp-story-art img { position: absolute; left: 50%; bottom: 5%; height: 86%; width: auto; transform: translateX(-50%); filter: drop-shadow(0 0 24px rgba(255,214,140,.45)); }
.pdp-story .lead { margin-top: 18px; }
.pdp-uses { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.pdp-uses li { display: grid; gap: 2px; padding: 16px 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.pdp-uses b { color: var(--green-ink); font-size: 16.5px; font-weight: 600; }
.pdp-uses span { color: var(--ink-soft); font-size: 15px; }

/* ---------- hai phiên bản ---------- */
.pdp-versions { background: var(--parchment); }
.ver-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.vc { display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.vc-featured { border: 1.5px solid var(--green); box-shadow: 0 0 0 4px rgba(46,90,68,.08), var(--shadow); }
.vc-art { display: flex; align-items: flex-end; justify-content: center; padding: 18px 10px 10px; background: radial-gradient(80% 70% at 50% 40%, #fff 0%, var(--cream) 75%, #EADFC6 100%); }
.vc-art-nga { background: radial-gradient(80% 70% at 50% 40%, #fff 0%, #EFEDE8 75%, #DCD8CF 100%); }
.vc-art img { width: 100%; max-height: 300px; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(31,26,22,.18)); }
.vc-body { display: flex; flex-direction: column; gap: 14px; padding: 26px 24px; }
.vc-top { display: grid; gap: 4px; }
.vc h3 { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--green-ink); }
.vc h3 small { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--green); padding: 4px 10px; border-radius: 999px; }
.vc-price { font-size: 20px; font-weight: 700; color: var(--green-ink); }
.vc-price small { margin-right: 4px; font-size: 14px; font-weight: 500; color: var(--ink-mute); }
.vc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vc li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.vc li::before { content: ''; position: absolute; left: 0; top: .32em; width: 15px; height: 15px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E5A44' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 9px no-repeat; }
.vc .btn { margin-top: auto; align-self: flex-start; }

/* ---------- thông số ---------- */
.pdp-specs { background: var(--paper); }
.pdp-specs-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.pdp-specs .lead { margin-top: 16px; }
.in-box { margin-top: 30px; padding: 22px 24px; border-radius: var(--radius); background: var(--cream); }
.in-box h3 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 12px; }
.in-box ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.in-box li { position: relative; padding-left: 18px; font-size: 15px; color: var(--green-ink); }
.in-box li::before { content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.spec-table { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.spec-table > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); }
.spec-table > div:first-child { border-top: 0; }
.spec-table > div:nth-child(even) { background: #FDFAF4; }
.spec-table dt { font-size: 14.5px; font-weight: 600; color: var(--green-ink); }
.spec-table dd { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- quy trình ---------- */
.pdp-process { background: var(--white); }
.pdp-process .step-n { box-shadow: 0 0 0 8px var(--white); }

/* ---------- đặt cho cả đội ---------- */
.pdp-lot { background: var(--white); padding-top: 0 !important; }
.lot-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; padding: 48px 52px;
  border-radius: 28px; background: linear-gradient(135deg, #24493A 0%, var(--green-deep) 60%, #172F24 100%); color: #DCE7DF; box-shadow: var(--shadow-lg); }
.lot-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 70% at 90% 10%, rgba(217,182,92,.22), transparent 70%); pointer-events: none; }
.lot-card > * { position: relative; }
.lot-card .eyebrow { color: var(--gold); }
.lot-card h2 { color: #fff; }
.lot-card p { margin-top: 14px; font-size: 16px; line-height: 1.7; color: #C9D8CE; max-width: 52ch; }
.lot-side { display: grid; gap: 14px; justify-items: start; padding: 26px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(217,182,92,.3); }
.lot-price b { font-size: 34px; font-weight: 700; color: #fff; line-height: 1; }
.lot-price b small { font-size: 15px; font-weight: 500; color: #BFD0C4; margin-right: 6px; }
.lot-price span { display: block; margin-top: 6px; font-size: 14px; color: #BFD0C4; }
.lot-side small { font-size: 13.5px; color: #9FB5A7; }

/* ---------- hỏi đáp + mẫu khác ---------- */
.pdp-faq .lead a { color: var(--green); font-weight: 600; }
.pdp-related { background: var(--paper); }
.pdp-related .card-art.art-saints img { width: auto; height: 94%; max-height: none; }

/* ---------- thanh đặt hàng dính đáy (điện thoại) ---------- */
.buybar { display: none; }
@media (max-width: 760px) {
  .buybar:not([hidden]) { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom)); background: rgba(255,253,249,.96); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -18px rgba(31,26,22,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: bar-up .28s var(--ease); }
  .buybar-info { display: grid; line-height: 1.25; min-width: 0; }
  .buybar-info b { font-size: 18px; color: var(--green-ink); }
  .buybar-info span { font-size: 13px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar .btn { flex: none; padding: 13px 20px; }
  body.has-buybar footer { padding-bottom: 110px; }
  body.has-buybar .toast { bottom: 88px; }
}
@keyframes bar-up { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .vc { grid-template-columns: 1fr; }
  .vc-art { height: 260px; }
  .vc-art img { height: 100%; width: auto; }
  .pdp-highlights li { padding: 22px 16px; }
}
@media (max-width: 980px) {
  .pdp-page section { padding: 32px 0; }
  .pdp-hero.studio { padding: 14px 0 56px; }
  .pdp-hero .studio-grid { grid-template-columns: 1fr; gap: 0; }
  .pdp-hero .studio-head h1 { font-size: clamp(34px, 6vw, 46px); }
  .pdp-price { margin: 18px 0 22px; }
  .pdp-highlights { grid-template-columns: 1fr 1fr; }
  .pdp-highlights li { padding: 20px 16px; border-left: 0; border-top: 1px solid rgba(255,255,255,.09); }
  .pdp-highlights li:first-child, .pdp-highlights li:nth-child(2) { border-top: 0; }
  .pdp-highlights li:first-child { padding-left: 16px; }
  .pdp-story-grid, .pdp-specs-grid { grid-template-columns: 1fr; gap: 40px; }
  .pdp-story-art { max-width: 380px; width: 100%; margin: 0 auto; }
  .lot-card { grid-template-columns: 1fr; gap: 28px; padding: 36px 30px; }
  .pdp-related .cards > .card:last-child { display: none; }
}
@media (max-width: 760px) {
  .pdp-page section { padding: 28px 0; }
  .crumbs { margin-bottom: 18px; font-size: 13.5px; }
  .pdp-hero .studio-head h1 { font-size: clamp(32px, 9vw, 40px); }
  .pdp-hero .studio-head .lead { font-size: 16px; }
  .pdp-price-main { font-size: 28px; }
  .pdp-hero .studio-cta { grid-template-columns: 1fr; }
  .pdp-highlights { grid-template-columns: 1fr; }
  .pdp-highlights li, .pdp-highlights li:first-child { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.09); }
  .pdp-highlights li:first-child { border-top: 0; }
  .pdp-head { margin-bottom: 30px; }
  .ver-compare { grid-template-columns: 1fr; gap: 18px; }
  .vc { grid-template-columns: 1fr 1.25fr; }
  .vc-art { height: auto; padding: 14px 6px 8px; }
  .vc-art img { width: 100%; height: auto; max-height: 220px; }
  .vc-body { padding: 18px 16px; gap: 12px; }
  .vc h3 { font-size: 26px; flex-wrap: wrap; gap: 6px; }
  .vc .btn { padding: 11px 16px; font-size: 14.5px; }
  .in-box ul { grid-template-columns: 1fr; }
  .spec-table > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 18px; }
  .lot-card { padding: 30px 22px; border-radius: 22px; }
  .lot-side { width: 100%; padding: 20px; }
  .lot-side .btn { width: 100%; }
  .pdp-related .cards > .card:last-child { display: flex; }
}
@media (max-width: 400px) {
  .vc { grid-template-columns: 1fr; }
  .vc-art img { max-height: 240px; width: auto; }
}

/* ---------- ảnh ngang (cô dâu chú rể, Tượng Thánh, Giáng Sinh) ---------- */
.pdp-story-grid.is-wide { grid-template-columns: 1.1fr .9fr; }
.pdp-story-art.wide { aspect-ratio: 4 / 3; border-radius: 28px; display: flex; align-items: center; justify-content: center; padding: 28px;
  background: radial-gradient(70% 70% at 50% 45%, #fff 0%, var(--cream) 70%, #E8DCC2 100%); }
.pdp-story-art.wide img { position: static; transform: none; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(31,26,22,.2)); }
.pdp-story-art.wide.dark { background: radial-gradient(65% 75% at 50% 55%, #715C39 0%, #34483B 48%, #172A21 100%); padding: 12px; }
.pdp-story-art.wide.dark img { filter: drop-shadow(0 16px 18px rgba(0,0,0,.35)); }
.ver-compare.is-wide .vc { grid-template-columns: 1fr; }
.ver-compare.is-wide .vc-art { height: auto; aspect-ratio: 16 / 9; align-items: center; }
.ver-compare.is-wide .vc-art img { width: 100%; height: 100%; max-height: none; }
@media (max-width: 980px) { .pdp-story-grid.is-wide { grid-template-columns: 1fr; } .pdp-story-art.wide { max-width: none; } }

/* ---------- trang danh mục + trang sản phẩm đơn giản (build_catalog.py, 25/11/2026) ---------- */
.cat-page .cat-hero { padding: 22px 0 36px; background: radial-gradient(60% 70% at 90% 0%, rgba(217,182,92,.16), transparent 70%), linear-gradient(180deg, var(--paper), var(--parchment)); }
.cat-hero h1 { margin: 14px 0 12px; font-size: clamp(38px, 4.6vw, 60px); max-width: 18ch; }
.cat-hero .lead { max-width: 60ch; }
.cat-soon-note { margin-top: 16px; display: inline-block; padding: 10px 14px; border-radius: 12px; background: var(--gold-soft); color: #6F4F12; font-size: 14.5px; }
.cat-page .cat-list, .cat-page .cat-items { padding-top: 40px; }
.cat-page .cat-more { background: var(--parchment); }
.simple-hero { padding: 18px 0 72px; background: linear-gradient(180deg, var(--paper), var(--parchment)); }
.simple-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 0 60px; align-items: start; }
.simple-stage { position: relative; display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 1 / 1.05; padding: 28px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(72% 58% at 50% 58%, #51452f 0%, #27372d 42%, #101b16 100%); box-shadow: var(--shadow-lg); }
.simple-stage img { height: 92%; width: auto; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0,0,0,.4)); transition: opacity .25s ease, transform .4s var(--ease); }
.simple-stage img.swap { opacity: .35; transform: scale(.97); }
.simple-size { position: absolute; top: 16px; right: 16px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--green-ink); background: rgba(255,253,249,.92); }
.simple-note { color: var(--ink-mute); text-align: left; margin: 12px 4px 0; }
.simple-info h1 { margin: 14px 0 14px; font-size: clamp(36px, 4vw, 52px); line-height: 1.05; }
.simple-info .field { margin-bottom: 22px; }
.simple-info .field > label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--green-ink); }
.simple-cta { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 20px; }
.simple-cta .btn { min-height: 54px; font-size: 16px; }
@media (min-width: 981px) { .simple-media { position: sticky; top: 92px; } }
@media (max-width: 980px) { .simple-grid { grid-template-columns: 1fr; gap: 24px; } .simple-stage { max-width: 520px; margin: 0 auto; width: 100%; } }
@media (max-width: 760px) { .simple-cta { grid-template-columns: 1fr; } .simple-stage { aspect-ratio: 1 / .95; padding: 18px; } }
