/* Demo page kit. Scoped to main.ppd; colours/radius/font come from the
   --ppd-* variables on <body> (demo_catalog.THEMES). Never style bare
   elements outside .ppd: the theme's own header/footer must stay intact. */
.ppd { font-family: var(--ppd-font); color: #1f2430; background: var(--ppd-surface); padding: calc(var(--ppd-top) + 32px) 0 72px; line-height: 1.65; }
.ppd *, .ppd *::before, .ppd *::after { box-sizing: border-box; }
.ppd a { color: inherit; }
.ppd img { max-width: 100%; display: block; }
.ppd :focus-visible { outline: 2px solid var(--ppd-accent); outline-offset: 2px; }
.ppd-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.ppd h1 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.25; margin: 8px 0 12px; font-weight: 700; color: #111; }
.ppd h2 { font-size: 22px; line-height: 1.3; margin: 0 0 14px; font-weight: 700; color: #111; }
.ppd h3 { font-size: 17px; margin: 0 0 6px; font-weight: 700; color: #111; }
.ppd p { margin: 0 0 12px; }
.ppd-lead { color: #5b6270; max-width: 42em; font-size: 16.5px; }
.ppd-muted { color: #6b7280; font-size: 14px; }
.ppd-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #6b7280; }
.ppd-crumbs a { text-decoration: none; }
.ppd-crumbs a:hover { color: var(--ppd-brand); text-decoration: underline; }
.ppd-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--ppd-radius); padding: 24px; }
.ppd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--ppd-radius); border: 1.5px solid var(--ppd-brand); background: var(--ppd-brand); color: var(--ppd-brand-ink) !important; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.ppd-btn:hover { filter: brightness(1.1); }
.ppd-btn-accent { background: var(--ppd-accent); border-color: var(--ppd-accent); color: #fff !important; }
.ppd-btn-ghost { background: #fff; color: var(--ppd-brand) !important; }
.ppd-btn-line { background: #06C755; border-color: #06C755; color: #fff !important; }
.ppd-badge { position: absolute; top: 12px; left: 12px; background: var(--ppd-accent); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; z-index: 1; }
.ppd-art { color: var(--ppd-brand); background: color-mix(in srgb, var(--ppd-brand) 6%, #fff); border-radius: var(--ppd-radius); display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; }
.ppd-art svg { width: 70%; height: auto; }
/* shop */
.ppd-shop { display: grid; grid-template-columns: 240px 1fr; gap: 28px; margin-top: 20px; }
.ppd-side { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--ppd-radius); padding: 8px; align-self: start; }
.ppd-side a { display: block; padding: 10px 12px; border-radius: calc(var(--ppd-radius) * .6); text-decoration: none; font-size: 15px; }
.ppd-side a[aria-current="page"] { background: var(--ppd-brand); color: var(--ppd-brand-ink); font-weight: 600; }
.ppd-side a:not([aria-current]):hover { background: var(--ppd-surface); }
.ppd-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ppd-sort a { margin-left: 12px; font-size: 14px; color: #6b7280; }
.ppd-sort a[aria-current="true"] { color: var(--ppd-brand); font-weight: 700; text-decoration: none; }
.ppd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.ppd-card { position: relative; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #e5e7eb; border-radius: var(--ppd-radius); padding: 12px 12px 16px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ppd-card:hover { border-color: var(--ppd-brand); box-shadow: 0 10px 24px -14px rgba(0,0,0,.35); }
.ppd-card-name { font-weight: 700; font-size: 16px; margin-top: 6px; }
.ppd-card-blurb { font-size: 13.5px; color: #6b7280; }
.ppd-card-price { margin-top: auto; font-size: 14px; color: #6b7280; }
.ppd-card-price strong { color: var(--ppd-accent); font-size: 18px; }
.ppd-product { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 20px; }
.ppd-options label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
.ppd-options select, .ppd-form input, .ppd-form select, .ppd-form textarea { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1.5px solid #d1d5db; border-radius: calc(var(--ppd-radius) * .6); background: #fff; color: #111; }
.ppd-price-now { font-size: 30px; font-weight: 700; color: var(--ppd-accent); margin: 16px 0 2px; }
.ppd-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.ppd-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.ppd-table th { text-align: left; font-size: 13px; color: #6b7280; font-weight: 600; padding: 8px 10px; border-bottom: 2px solid var(--ppd-brand); }
.ppd-table td { padding: 10px; border-bottom: 1px solid #eef0f3; }
.ppd-table td.num, .ppd-table th.num { text-align: right; }
.ppd-table tr.is-pick td { background: color-mix(in srgb, var(--ppd-accent) 10%, #fff); font-weight: 700; }
.ppd-specs { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; font-size: 14.5px; margin: 0; }
.ppd-specs dt { color: #6b7280; }
.ppd-specs dd { margin: 0; }
.ppd-section { margin-top: 44px; }
.ppd-toast { position: fixed; right: 16px; bottom: 16px; background: #111; color: #fff; padding: 12px 16px; border-radius: 8px; z-index: 2147483001; font-size: 15px; }
.ppd-toast a { color: #fff; font-weight: 700; margin-left: 8px; }
/* company */
.ppd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.ppd-chips button { font: inherit; font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid #d1d5db; background: #fff; cursor: pointer; }
.ppd-chips button[aria-pressed="true"] { background: var(--ppd-brand); color: var(--ppd-brand-ink); border-color: var(--ppd-brand); }
.ppd-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.ppd-case { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--ppd-radius); overflow: hidden; }
.ppd-case img, .ppd-case .ppd-art { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.ppd-case div.ppd-case-body { padding: 14px 16px 16px; font-size: 14px; color: #6b7280; }
.ppd-case[hidden] { display: none; }
.ppd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.ppd-stats div { background: #fff; border-radius: var(--ppd-radius); padding: 18px; border-top: 4px solid var(--ppd-accent); }
.ppd-stats strong { display: block; font-size: 26px; color: var(--ppd-brand); }
.ppd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ppd-list { list-style: none; padding: 0; margin: 0; }
.ppd-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #eef0f3; }
.ppd-list li span:last-child { color: #6b7280; text-align: right; }
.ppd-certs { display: flex; flex-wrap: wrap; gap: 10px; }
.ppd-certs span { border: 1.5px solid var(--ppd-brand); color: var(--ppd-brand); border-radius: 999px; padding: 4px 14px; font-weight: 600; font-size: 14px; }
.ppd-map { aspect-ratio: 16 / 9; border-radius: var(--ppd-radius); background: repeating-linear-gradient(45deg, #eef0f3 0 12px, #e5e7eb 12px 24px); display: flex; align-items: center; justify-content: center; color: #6b7280; font-weight: 600; }
.ppd-form .ppd-field { margin-bottom: 14px; }
.ppd-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.ppd-error { color: #b42318; font-weight: 600; margin: 6px 0 12px; }
.ppd-ok { background: color-mix(in srgb, #06C755 12%, #fff); border: 1px solid #06C755; border-radius: var(--ppd-radius); padding: 16px; font-weight: 600; }
.ppd-promos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ppd-promo { background: #fff; border-radius: var(--ppd-radius); border: 1px dashed var(--ppd-accent); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.ppd-promo .ppd-off { font-size: 30px; font-weight: 800; color: var(--ppd-accent); line-height: 1.1; }
.ppd-code { display: flex; gap: 8px; align-items: center; margin-top: auto; }
.ppd-code code { flex: 1; font-size: 16px; font-weight: 700; letter-spacing: .06em; background: var(--ppd-surface); padding: 8px 10px; border-radius: 6px; }
/* account */
.ppd-cart { display: grid; grid-template-columns: 1fr 340px; gap: 28px; margin-top: 20px; }
.ppd-line { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 16px; align-items: center; background: #fff; border: 1px solid #e5e7eb; border-radius: var(--ppd-radius); padding: 12px; margin-bottom: 12px; }
.ppd-line .ppd-art { aspect-ratio: 1; }
.ppd-stepper { display: inline-flex; border: 1.5px solid #d1d5db; border-radius: calc(var(--ppd-radius) * .6); overflow: hidden; }
.ppd-stepper button { width: 34px; border: 0; background: #fff; font-size: 18px; cursor: pointer; }
.ppd-stepper input { width: 80px; border: 0; text-align: center; font: inherit; }
.ppd-remove { background: none; border: 0; color: #b42318; cursor: pointer; font: inherit; font-size: 14px; text-decoration: underline; }
.ppd-sum div { display: flex; justify-content: space-between; padding: 8px 0; }
.ppd-sum .ppd-total { border-top: 2px solid var(--ppd-brand); margin-top: 8px; font-size: 20px; font-weight: 700; }
.ppd-tabs { display: flex; gap: 4px; border-bottom: 2px solid #e5e7eb; margin-bottom: 20px; }
.ppd-tabs button { font: inherit; font-weight: 600; padding: 10px 18px; border: 0; background: none; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.ppd-tabs button[aria-selected="true"] { border-color: var(--ppd-accent); color: var(--ppd-brand); }
.ppd-auth { max-width: 460px; margin: 20px auto 0; }
.ppd-timeline { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ppd-timeline li { border-top: 5px solid #e5e7eb; padding-top: 10px; font-size: 14px; color: #6b7280; }
.ppd-timeline li.is-done { border-color: var(--ppd-brand); color: #111; }
.ppd-timeline li.is-now { border-color: var(--ppd-accent); color: #111; font-weight: 700; }
@media (max-width: 900px) {
    .ppd-shop, .ppd-product, .ppd-cart, .ppd-cols { grid-template-columns: 1fr; }
    .ppd-side { display: flex; overflow-x: auto; }
    .ppd-side a { white-space: nowrap; }
    .ppd-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .ppd-line { grid-template-columns: 64px 1fr; }
    .ppd-timeline { grid-template-columns: 1fr; }
    .ppd-specs { grid-template-columns: 1fr; }
}
