/* Jacob Diamonds — collection (loaded after styles.css and blog.css) */

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- list pages ---------- */
.coll { padding-bottom: clamp(80px, 10vw, 140px); }
.coll-head { max-width: 900px; padding-bottom: clamp(32px, 4vw, 52px); }
.coll-head .crumbs { margin-bottom: 30px; }
.crumbs { flex-wrap: wrap; }
.crumbs span[aria-hidden] { color: var(--line-2); }
.crumbs [aria-current] { color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.chip {
  display: inline-flex; align-items: center; height: 40px; padding-inline: 20px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; color: var(--ink-2);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

.coll-group { padding-top: clamp(48px, 6vw, 84px); }
.coll-group__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 3vw, 36px); }
.coll-group__head h2 { font-family: var(--serif); font-weight: 200; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; }
.coll-group__head .link { white-space: nowrap; font-size: 15px; }

.jgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.jcard { display: flex; flex-direction: column; gap: 18px; }
.jcard__img {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #fff;
  border: 1px solid var(--line); transition: border-color .5s var(--ease), box-shadow .7s var(--ease);
}
.jcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.jcard__img .jcard__alt { opacity: 0; }
.jcard:hover .jcard__img { border-color: var(--gold-2); box-shadow: 0 30px 50px -36px rgba(17,17,17,.45); }
.jcard:hover .jcard__img img { transform: scale(1.045); }
.jcard:hover .jcard__img .jcard__alt { opacity: 1; }
.jcard__body { display: flex; flex-direction: column; gap: 6px; }
.jcard__type { font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.jcard__name { font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.25; color: var(--ink); transition: color .4s var(--ease); }
.jcard:hover .jcard__name { color: var(--gold); }

.jcta { margin-top: clamp(72px, 9vw, 120px); }
.jcta .btn svg { width: 18px; height: 18px; }

/* ---------- product page ---------- */
.coll--product { padding-top: clamp(28px, 4vw, 48px); }
.prod { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; margin-top: 28px; }

.pgal { position: sticky; top: calc(var(--header-h) + 24px); }
.pgal__stage { position: relative; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.pgal__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(1.03); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.pgal__img.is-active { opacity: 1; transform: none; }
.pgal__video {
  position: absolute; inset-inline-start: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding-inline: 18px;
  background: rgba(17,17,17,.82); color: var(--ivory); font-size: 14.5px; border-radius: 999px;
  backdrop-filter: blur(6px); transition: background .4s var(--ease);
}
.pgal__video span { font-size: 11px; color: var(--gold-2); }
.pgal__video:hover { background: var(--ink); }
.pgal__thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pgal__thumb { width: 84px; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); padding: 0; cursor: pointer; transition: border-color .4s var(--ease), opacity .4s; opacity: .7; }
.pgal__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pgal__thumb:hover { opacity: 1; }
.pgal__thumb.is-active { border-color: var(--gold); opacity: 1; }

.prod__info { padding-top: 6px; }
.prod__title { font-family: var(--serif); font-weight: 200; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.1; margin-top: 18px; letter-spacing: -.01em; }
.prod__desc { margin-top: 24px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.85; color: var(--ink-2); }

.pspecs { margin-top: 36px; border-top: 1px solid var(--line); }
.pspecs__group { padding-block: 24px; border-bottom: 1px solid var(--line); }
.pspecs__group h2 { font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--gold); margin-bottom: 16px; }
.pspecs dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pspecs dl > div { display: flex; flex-direction: column-reverse; gap: 4px; }
.pspecs dd { font-family: var(--latin); font-size: 26px; line-height: 1.1; color: var(--ink); text-align: right; }
.pspecs dt { font-size: 13.5px; color: var(--muted); }
.pspecs dd.is-word { font-family: inherit; font-size: 18px; line-height: 1.35; }
.pspecs__note { margin-top: 14px; font-size: 14px; line-height: 1.7; color: var(--muted); }

.popts { margin-top: 26px; display: grid; gap: 10px; }
.popts li { position: relative; padding-inline-start: 22px; font-size: 16px; color: var(--ink-2); }
.popts li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

.prod__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.prod__actions .btn { flex: 1 1 220px; }
.prod__actions .btn svg { width: 18px; height: 18px; }
.prod__promise { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.prod__promise li { display: inline-flex; align-items: center; gap: 8px; }
.prod__promise li::before { content: ""; width: 5px; height: 5px; border: 1px solid var(--gold); transform: rotate(45deg); }

.coll-related { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }

/* video box */
.vbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(13,13,12,.9); opacity: 0; transition: opacity .5s var(--ease); }
.vbox[hidden] { display: none; }
.vbox:not(.is-open) { pointer-events: none; }
.vbox.is-open { opacity: 1; }
.vbox__frame { width: min(1000px, 100%); aspect-ratio: 16 / 9; background: #000; transform: scale(.96); transition: transform .7s var(--ease); }
.vbox.is-open .vbox__frame { transform: none; }
.vbox__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vbox__close { position: absolute; top: 18px; inset-inline-end: 22px; width: 48px; height: 48px; font-size: 34px; line-height: 1; color: var(--ivory); }
.vbox__close:hover { color: var(--gold-2); }

/* ---------- new designs (Trends 2026) ---------- */
.jcard__img .jcard__badge {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  padding: 5px 12px; background: var(--ink); color: var(--ivory);
  font-size: 12px; letter-spacing: .08em; border-radius: 999px;
}
.chip--new:not(.is-active) { border-color: var(--gold); color: var(--gold); }
.coll-group--new .coll-group__head h2 { color: var(--ink); }
.coll-group--new .coll-group__head h2::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-start: 14px; vertical-align: middle; background: var(--gold); transform: rotate(45deg); }
.pgal__note { margin-top: 14px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.prod__new { display: inline-block; margin-top: 14px; padding: 5px 14px; border: 1px solid var(--gold); border-radius: 999px; font-size: 13px; color: var(--gold); transition: background .4s var(--ease), color .4s var(--ease); }
.prod__new:hover { background: var(--gold); color: var(--ivory); }
.trend-gloss { padding-top: clamp(40px, 5vw, 64px); }
.trend-gloss dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.trend-gloss dl > div { padding-top: 18px; border-top: 1px solid var(--line); }
.trend-gloss dt { font-family: var(--latin); font-style: italic; font-size: 22px; color: var(--gold); margin-bottom: 8px; text-align: right; }
.trend-gloss dd { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.trend-gloss__note { margin-top: 26px; font-size: 14px; color: var(--muted); }

/* reveal on scroll (collection.js adds .is-in) */
.js .jcard { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--jd, 0s); }
.js .jcard.is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .jgrid { grid-template-columns: repeat(3, 1fr); }
  .trend-gloss dl { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .prod { grid-template-columns: 1fr; margin-top: 20px; }
  .pgal { position: static; }
  .pgal__thumb { width: 68px; }
  .pspecs dl { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .jgrid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .jcard { gap: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .trend-gloss dl { grid-template-columns: 1fr; }
  .jcard__img .jcard__badge { top: 8px; inset-inline-start: 8px; padding: 4px 10px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .jcard { opacity: 1; transform: none; transition: none; }
  .pgal__img, .jcard__img img { transition: none; }
}
