/* ==========================================================================
   Utsman — Katalog Produk Digital (utsman.works/cuan-via-produk-digital)
   Selaras dengan css/style.css & blog/blog.css pada utsman.works
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: 12px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}

.skip:focus {
  left: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  flex: 1;
}

/* ---------- Header (identik utsman.works & /blog/) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 242, .86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .2px;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.nav a {
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--gold);
}

.nav .is-here {
  color: var(--ink);
  font-weight: 650;
}

.nav .nav-cta {
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--ink);
}

.nav .nav-cta:hover {
  color: var(--gold);
}

@media (max-width: 780px) {
  .nav a:not(.nav-cta):not(.is-here) {
    display: none;
  }
}

/* ---------- Buttons (identik utsman.works) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 15.5px;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 14.5px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(180deg, #1c2c4d, #101c33);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: #cfc6b4;
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #2a1f04;
  box-shadow: var(--shadow-md);
}

.btn-gold:hover {
  color: #2a1f04;
  transform: translateY(-1px);
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: .5;
  pointer-events: none;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- Typography & Sections ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-wash);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 7px 14px;
  margin: 0;
}

h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 20px 0 16px;
}

h1 .accent {
  color: var(--gold);
}

h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.16;
  letter-spacing: -.015em;
  margin: 0 0 10px;
}

.lede {
  font-size: 18.5px;
  color: var(--ink-soft);
  max-width: 35em;
  margin: 0 0 28px;
}

.band {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}

.section-head p {
  color: var(--muted);
  font-size: 16.5px;
  margin: 0;
}

.section-meta {
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  padding: 62px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 48px;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.summary-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.summary-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

.summary-card__title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  margin: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-tile {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-tile__value {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.stat-tile__value--gold {
  color: var(--gold);
}

.stat-tile__label {
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Badges & Tags (identik blog.css) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--gold-wash);
  color: var(--gold);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 4px 11px;
  line-height: 1.3;
}

.badge--navy {
  background: var(--ink);
  color: var(--gold-soft);
  border-color: var(--ink);
}

.badge--free {
  background: var(--green-wash);
  color: var(--green);
  border-color: var(--green-line);
}

.badge--subtle {
  background: var(--cream);
  color: var(--ink-soft);
  border-color: var(--line);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 999px;
  padding: 4px 12px;
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.price-block__current {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
  line-height: 1.15;
}

.price-block__current--free {
  color: var(--green);
}

.price-block__original {
  font-size: 15px;
  color: var(--muted);
  text-decoration: line-through;
}

/* ---------- Featured Highlight Section ---------- */
.featured-section {
  padding: 54px 0;
}

.featured-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.featured-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.featured-card__cover-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.featured-card__cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .28s ease;
}

.featured-card:hover .featured-card__cover {
  transform: scale(1.02);
}

.featured-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.featured-card__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0 0 10px;
}

.featured-card__title a:hover {
  color: var(--gold);
}

.featured-card__desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16.5px;
  max-width: 58ch;
}

.featured-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.featured-card__specs .tag {
  background: #fff;
}

.featured-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.featured-card__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Catalog Controls & Grid ---------- */
.catalog-section {
  padding: 58px 0 76px;
}

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.search-bar {
  position: relative;
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 14px 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.search-bar:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 139, 30, .15);
}

.search-bar__icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  margin-right: 10px;
  flex: none;
}

.search-bar__input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 15.5px;
  color: var(--ink);
  outline: none;
}

.search-bar__input::placeholder {
  color: var(--muted);
}

.search-bar__clear {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-bar__clear:hover {
  color: var(--ink);
}

.search-bar__clear[hidden] {
  display: none;
}

.select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sort-select {
  appearance: none;
  height: 48px;
  padding: 0 38px 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.select-wrap__icon {
  position: absolute;
  right: 14px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  color: var(--muted);
}

.chips-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chips-divider {
  width: 1px;
  height: 22px;
  background: var(--line);
  margin: 0 4px;
}

/* Filter Pill (selaras .page-btn di blog.css) */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.filter-pill:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.filter-pill[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Product Grid & Card (selaras .card di utsman.works) */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 20px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.product-card__media {
  position: relative;
  cursor: pointer;
}

.product-card__cover-frame {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream);
  border: 1px solid var(--line);
}

.product-card__cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}

.product-card:hover .product-card__cover {
  transform: scale(1.025);
}

.product-card__top-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
  z-index: 2;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

.product-card__cat {
  color: var(--gold);
  font-weight: 650;
}

.product-card__title {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}

.product-card__title a:hover {
  color: var(--gold);
}

.product-card__summary {
  margin: 0 0 16px;
  font-size: 15.5px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card__actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 52px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.empty-state[hidden] {
  display: none;
}

.empty-state__title {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 0 0 8px;
}

.empty-state__desc {
  margin: 0 auto 20px;
  max-width: 36em;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- Detail Modal / Sheet (?produk=slug) ---------- */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16, 28, 51, .52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.dialog-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.dialog-surface {
  width: 100%;
  max-width: 820px;
  max-height: min(88vh, 780px);
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(14px);
  transition: transform .24s ease;
}

.dialog-backdrop.is-open .dialog-surface {
  transform: translateY(0);
}

.dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px 15px 24px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.dialog__header-title {
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: .02em;
}

.dialog__header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-pill-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}

.icon-pill-btn:hover {
  color: var(--gold);
  border-color: var(--gold-soft);
}

.icon-pill-btn svg {
  width: 17px;
  height: 17px;
}

.dialog__body {
  padding: 26px 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.dialog__cover-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dialog__cover-frame {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.dialog__cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dialog__specs-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.spec-row__label {
  color: var(--muted);
}

.spec-row__value {
  font-weight: 650;
  color: var(--ink);
  text-align: right;
}

.dialog__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.dialog__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.8vw, 30px);
  line-height: 1.2;
  margin: 0 0 8px;
}

.dialog__subtitle {
  margin: 0 0 16px;
  font-size: 16.5px;
  color: var(--muted);
}

.dialog__section-label {
  margin: 20px 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold);
}

.dialog__description {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
}

.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}

.toc-list__num {
  font-family: var(--font-serif);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-wash);
  border: 1px solid #ecd9a8;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.dialog__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.dialog__footer-note {
  font-size: 13.5px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.dialog__footer-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Toast / Snackbar ---------- */
.snackbar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 150;
  transform: translate(-50%, 14px);
  background: var(--ink);
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(227, 198, 117, .35);
  box-shadow: var(--shadow-md);
  font-size: 14.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.snackbar.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.snackbar__tick {
  color: var(--gold-soft);
  font-weight: 700;
}

/* ---------- Footer (identik utsman.works) ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  background: #fff;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.site-footer .foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 15px;
}

/* ---------- Halaman Detail Produk (/produk/<slug>) ---------- */
.breadcrumb-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .65);
  padding: 13px 0;
}

.breadcrumb-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  font-size: 14.5px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  color: var(--ink-soft);
}

.back-link svg {
  width: 17px;
  height: 17px;
}

.back-link:hover {
  color: var(--gold);
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  min-width: 0;
}

.breadcrumb-trail a {
  color: var(--muted);
}

.breadcrumb-trail a:hover {
  color: var(--gold);
}

#breadcrumbCurrent {
  color: var(--ink);
  font-weight: 600;
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-page-section {
  padding: 40px 0 72px;
}

.detail-loading {
  text-align: center;
  padding: 64px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.detail-loading__text {
  margin: 14px 0 0;
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: 36px;
  align-items: start;
}

.detail-main-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-cover-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.detail-cover-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.detail-cover-frame {
  border-radius: 18px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}

.detail-cover-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.detail-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.detail-panel__title {
  font-family: var(--font-serif);
  font-size: 24px;
  margin: 0 0 12px;
}

.detail-panel__head .detail-panel__title {
  margin-bottom: 0;
}

.detail-panel__sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15.5px;
}

.detail-prose {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.7;
}

.detail-prose p {
  margin: 0 0 14px;
}

.detail-prose p:last-child {
  margin-bottom: 0;
}

.detail-prose ul,
.detail-prose ol {
  padding-left: 22px;
  margin: 0 0 14px;
}

.detail-prose li {
  margin-bottom: 6px;
}

.detail-subsection {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

.detail-subsection__title {
  font-family: var(--font-serif);
  font-size: 19px;
  margin: 0 0 12px;
}

/* Payment Methods Grid */
.pm-group {
  margin-top: 18px;
}

.pm-group__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold);
  margin: 0 0 10px;
}

.pm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 10px;
}

.pm-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.pm-tile__logo {
  width: 38px;
  height: 24px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 2px 4px;
  border: 1px solid var(--line);
  flex: none;
}

.pm-tile__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pm-tile__name {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.25;
}

.pm-tile__fee {
  font-size: 12px;
  color: var(--muted);
}

/* Sticky Purchase Card */
.detail-side-col {
  position: sticky;
  top: 88px;
}

.purchase-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.detail-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.6vw, 31px);
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 16px 0 10px;
}

.detail-subtitle {
  margin: 0 0 20px;
  font-size: 15.8px;
  color: var(--muted);
}

.detail-price-box {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.detail-price-main {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.detail-price-original {
  font-size: 16px;
  color: var(--muted);
  text-decoration: line-through;
}

.detail-price-saving {
  margin: 6px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green);
}

.detail-price-note {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.purchase-block {
  margin-bottom: 18px;
}

.purchase-block__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 8px;
}

.addon-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.addon-list__item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 14px;
}

.purchase-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.detail-cta-btn,
.detail-share-btn {
  width: 100%;
}

.detail-specs-box {
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  padding: 16px 0;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-guarantees {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.detail-guarantees li {
  position: relative;
  padding-left: 20px;
}

.detail-guarantees li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
}

.related-section {
  padding: 54px 0 68px;
}

@media (max-width: 940px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side-col {
    position: static;
    order: -1;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero {
    padding: 46px 0 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .featured-card {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
  }
}

@media (max-width: 720px) {
  .site-header .wrap {
    height: 62px;
    gap: 10px;
    padding: 0 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .brand-name {
    font-size: 18px;
  }

  .nav {
    gap: 12px;
  }

  .nav .nav-cta {
    padding: 8px 13px;
    font-size: 13.5px;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .dialog-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .dialog-surface {
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 0;
  }

  .dialog__body {
    grid-template-columns: 1fr;
    padding: 20px 18px;
    gap: 20px;
  }

  .dialog__footer {
    padding: 14px 18px;
  }

  .dialog__footer-cta {
    width: 100%;
  }

  .dialog__footer-cta .btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .product-card:hover,
  .featured-card:hover,
  .btn:hover,
  .filter-pill:hover {
    transform: none;
  }
}
