/* Cart, product page, content page and breadcrumbs (loaded after pny.css on every page). */

/* ---- Cart: header button, drawer, toast, quick add ---- */
.cart-btn { position: relative; }
.cart-btn__count { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--accent-fill); color: #fff; font: 700 10px/17px var(--font); text-align: center; }
.cart-btn.is-bump { animation: cartBump .45s ease; }
@keyframes cartBump { 30% { transform: scale(1.25); } 60% { transform: scale(.92); } }
body.is-cart-open { overflow: hidden; }
.cart { position: fixed; inset: 0; z-index: 70; }
.cart__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.cart__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: flex; flex-direction: column; background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.25); animation: cartIn .2s ease; }
@keyframes cartIn { from { transform: translateX(30px); opacity: 0; } }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cart__head h2 { margin: 0; font-size: 20px; }
.cart__head .icon-btn { color: var(--ink); }
.cart__lines { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-line { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-line__img { display: grid; place-items: center; width: 76px; height: 76px; border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; color: var(--subtle); font-weight: 700; text-decoration: none; }
.cart-line__img img { width: 100%; height: 100%; object-fit: contain; }
.cart-line__text { min-width: 0; }
.cart-line__title { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.cart-line__opts { display: block; margin-top: 2px; font-size: 13px; color: var(--text); }
.cart-line__sku { display: block; font-size: 12px; color: var(--subtle); }
.cart-line__row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cart-line__price { font-weight: 700; color: var(--ink); }
.cart-line__remove { margin-top: 6px; font-size: 12px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; }
.qty button { width: 30px; height: 30px; border: 0; background: none; font-size: 16px; cursor: pointer; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.qty--lg button { width: 40px; height: 44px; font-size: 18px; }
.qty--lg span { min-width: 28px; font-size: 16px; }
.cart__foot { padding: 18px 20px 22px; border-top: 1px solid var(--border); background: var(--cream); }
.cart__total { display: flex; justify-content: space-between; font-size: 17px; }
.cart__note { margin: 6px 0 14px; font-size: 13px; color: var(--muted); }
.cart__checkout { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }
.cart__where { display: block; margin-top: 10px; text-align: center; font-size: 13px; color: var(--accent); }
.cart__empty { display: grid; justify-items: center; gap: 6px; padding: 60px 0; color: var(--muted); text-align: center; }
.cart__empty svg { width: 40px; height: 40px; }
.cart-toast { position: fixed; left: 50%; bottom: 26px; z-index: 80; display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100% - 32px)); padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.3); transform: translate(-50%, 160%); transition: transform .25s; }
.cart-toast.is-on { transform: translate(-50%, 0); }
.cart-toast > svg { flex: none; width: 18px; height: 18px; color: #6ee7b7; }
.cart-toast span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-toast b { margin-right: 6px; }
.cart-toast .link-btn { flex: none; color: var(--accent-soft); }
.result-card { position: relative; }
.quick-add { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; opacity: .92; transition: background .15s, color .15s; }
.quick-add svg { width: 18px; height: 18px; }
.quick-add:hover { background: var(--ink); color: #fff; }

/* ---- Breadcrumbs ---- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 22px 0 6px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs svg { width: 12px; height: 12px; color: var(--subtle); }
.crumbs span { color: var(--ink); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs--dark, .crumbs--dark a { color: #a3a7ad; }
.crumbs--dark span { color: #fff; }

/* ---- Product page ---- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; padding: 18px 0 10px; }
.pdp__gallery { position: sticky; top: 140px; align-self: start; }
.pdp__main { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.pdp__main img { width: 86%; height: 86%; object-fit: contain; }
.pdp__noimg { font-size: 80px; font-weight: 700; color: var(--border); }
.pdp__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.pdp__thumb { flex: none; width: 72px; height: 72px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; }
.pdp__thumb.is-on { border: 2px solid var(--ink); }
.pdp__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp__skeleton { display: block; width: 100%; height: 100%; min-height: 200px; border-radius: 12px; background: linear-gradient(90deg, #eceef0, #f6f7f8, #eceef0); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.pdp__skeleton--text { min-height: 36px; max-width: 520px; }
.pdp__eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.pdp__title { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; color: var(--ink); }
.pdp__sku { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.pdp__sku b { color: var(--ink); }
.pdp__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pdp__chips span { padding: 6px 12px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; }
.pdp__desc { margin: 18px 0 4px; font-size: 16px; line-height: 1.6; color: var(--text); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.picker { margin-top: 20px; }
.picker__label { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.picker__label b { color: var(--ink); }
.picker__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.picker__opt { min-width: 64px; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.picker__opt:hover { border-color: var(--ink); }
.picker__opt.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.picker__opt:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.picker__opt.is-static { cursor: default; font-weight: 500; }
.pdp__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.pdp__price { font-size: 30px; font-weight: 700; color: var(--ink); }
.pdp__add { flex: 1; justify-content: center; min-width: 200px; padding: 14px 22px; font-size: 16px; }
.pdp__add svg { width: 19px; height: 19px; }
.pdp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 18px; }
.pdp__actions a, .pdp__ask { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.pdp__actions svg { width: 16px; height: 16px; }
.pdp__ask { padding: 9px 14px; border-radius: 999px; background: var(--accent-tint); }
.pdp-section { padding-top: 64px; }
.pdp-section > h2 { margin: 0 0 20px; font-size: 28px; color: var(--ink); }
.spec-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.spec-table th { width: 36%; color: var(--muted); font-weight: 500; }
.spec-table tr:nth-child(odd) { background: var(--cream); }

/* ---- Cleaned page content (product overview and content pages) ---- */
.prose { max-width: 820px; font-size: 16px; line-height: 1.7; color: var(--text); }
.prose h2 { margin: 1.8em 0 .5em; font-size: 24px; line-height: 1.25; color: var(--ink); }
.prose h3 { margin: 1.5em 0 .4em; font-size: 19px; color: var(--ink); }
.prose h4, .prose h5 { margin: 1.3em 0 .3em; font-size: 16px; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 22px; }
.prose li { margin: .25em 0; }
.prose a { color: var(--accent); }
.prose img { display: block; max-width: 100%; height: auto; margin: 1em 0; border-radius: 10px; }
.prose figure { margin: 1.2em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); }
.prose figcaption h3 { margin-top: 0; }
.prose table { width: 100%; margin: 1em 0; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose blockquote { margin: 1em 0; padding: 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose__hero img { width: 100%; max-height: 420px; object-fit: cover; }

/* ---- Content page ---- */
.article-head { padding: 0 0 40px; background: #151515; color: #fff; }
.article-head__meta { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-soft); }
.article-head__meta svg { width: 16px; height: 16px; }
.article-head__title { margin: 0; max-width: 900px; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; }
.article-head__lead { max-width: 820px; margin: 14px 0 0; font-size: 18px; line-height: 1.55; color: #c9ccd0; }
.article-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }
.article-head__actions .btn svg { color: var(--accent); }
.article-head__live { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.article-head__live svg { width: 16px; height: 16px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 44px; }
.article-aside { position: sticky; top: 140px; align-self: start; }
.article-aside h2 { margin: 0 0 12px; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.article-aside h2 + div { margin-bottom: 28px; }
.aside-link { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.35; text-decoration: none; }
.aside-link span { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.aside-link span svg { width: 13px; height: 13px; }
.aside-link:hover { color: var(--accent); }
.article-aside .convo-card { margin-bottom: 10px; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pdp__gallery { position: static; }
  .pdp__main { aspect-ratio: 4 / 3; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .article-aside { position: static; }
  .crumbs span { max-width: 200px; }
}
@media (max-width: 640px) {
  .pdp__price { font-size: 24px; }
  .pdp__add { min-width: 0; }
  .spec-table th { width: 44%; }
  .quick-add { top: 8px; right: 8px; width: 34px; height: 34px; }
}
