.collection-hero { padding: 95px 0 100px; }
.collection-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 7vw; align-items: center; }
.collection-hero h1 { font-size: clamp(3.55rem, 6.65vw, 6.3rem); }
.collection-hero .button { margin-top: 30px; }
.collection-hero figure { position: relative; margin: 0; overflow: hidden; border-radius: 32px; }
.collection-hero figure img { aspect-ratio: 16 / 10; object-fit: cover; object-position: center; transition: opacity .45s ease, transform .75s ease; }
.collection-hero figure img.is-changing { opacity: .18; transform: scale(.98); }
.collection-hero figcaption { position: absolute; left: 28px; right: 28px; bottom: 26px; color: #fff; text-shadow: 0 1px 12px #20302b; font-size: .9375rem; font-weight: 600; }
.collection-intro { max-width: 370px; color: var(--muted); margin: 0; font-size: 1.0625rem; }
#collection { scroll-margin-top: 110px; }
.collection-brands { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; margin: 0 0 38px; }
.collection-brands article { border-top: 1px solid var(--line); padding-top: 22px; }
.collection-brand-logo { display: flex; min-height: 52px; align-items: center; margin-bottom: 18px; }
.collection-brand-logo img { width: min(220px, 72%); height: auto; max-height: 52px; object-fit: contain; object-position: left center; }
.collection-brand-logo--pramedia img { width: min(190px, 68%); }
.collection-brands h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: 0; }
.collection-brands p { max-width: 510px; color: var(--muted); font-size: 1.0625rem; margin: 13px 0 0; }
.collection-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.collection-filters, .collection-controls { display: flex; align-items: center; gap: 8px; }
.collection-filters { flex-wrap: wrap; }
.collection-filter, .collection-arrow { color: var(--ink); background: transparent; border: 1px solid var(--line); font: inherit; cursor: pointer; }
.collection-filter { min-height: 46px; border-radius: 100px; padding: 10px 18px; font-size: .9375rem; font-weight: 700; }
.collection-filter[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.collection-filter:hover:not([aria-pressed='true']), .collection-arrow:hover:not(:disabled) { background: var(--sage); }
.collection-arrow { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; line-height: 1; }
.collection-arrow:disabled { opacity: .35; cursor: default; }
.collection-status { color: var(--muted); font-size: .9rem; margin: 0 12px 0 0; }
.collection-hint { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.collection-state { display: flex; min-height: 220px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding: 28px 0; border-block: 1px solid var(--line); }
.collection-state p { max-width: 540px; margin: 0; color: var(--muted); }
.collection-state .button { cursor: pointer; color: var(--ink); background: var(--paper); }
.collection-state .button:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 4px; }
.collection-viewport { overflow: hidden; padding: 3px 3px 20px; margin: -3px -3px 0; }
.collection-grid { display: flex; width: 100%; gap: var(--collection-gap, 22px); overflow: visible; padding: 0; margin: 0; touch-action: pan-y; cursor: grab; will-change: transform; transition: transform .72s cubic-bezier(.22,.72,.2,1); }
.collection-grid.is-static { cursor: default; }
.collection-grid.is-dragging { cursor: grabbing; user-select: none; }
.collection-grid:focus-visible, .collection-filter:focus-visible, .collection-arrow:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 4px; }
.collection-card { display: flex; flex: 0 0 calc((100% - var(--collection-gap, 22px) - var(--collection-gap, 22px)) / 3); min-width: 0; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; transition: background-color .7s ease, border-color .7s ease, transform .45s ease; }
.collection-card:hover { transform: translateY(-4px); }
.collection-card[hidden], .collection-brands article[hidden] { display: none; }
.collection-brand { align-self: flex-start; color: var(--ink); background: var(--sage); border-radius: 100px; padding: 7px 12px; margin: 0 0 16px; font-size: .85rem; font-weight: 700; letter-spacing: .035em; }
.collection-brand--pramedia { background: var(--sage); color: var(--ink); }
.collection-photo { position: relative; aspect-ratio: 1.1; flex: 0 0 auto; background: var(--paper); transition: background-color .7s ease; }
.collection-photo img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.collection-photo--empty { display: grid; place-items: center; padding: 24px; color: var(--muted); background: var(--sage); font-size: .9375rem; text-align: center; }
.collection-photo--listing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--sage); }
.collection-photo--listing span { font-size: 2rem; font-weight: 600; letter-spacing: 0; }
.collection-photo--listing small { color: var(--muted); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.collection-body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.collection-body .tag { margin: 0 0 15px; font-size: .9rem; }
.collection-body h3 { font-size: 2rem; overflow-wrap: anywhere; }
.collection-color { display: block; margin-top: 12px; font-size: .9375rem; font-weight: 700; }
.collection-body > p:not(.tag) { color: var(--muted); font-size: 1.0625rem; margin: 15px 0 25px; }
.collection-markets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.collection-markets a { display: flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 13px; border: 1px solid var(--market-secondary-border); border-radius: 100px; color: var(--ink); background: var(--market-secondary); font-size: .9rem; font-weight: 700; letter-spacing: 0; text-align: center; transition: color .7s ease, background-color .35s, border-color .7s, transform .25s ease; }
.collection-markets a:hover { transform: translateY(-2px); background: var(--sage); }
.collection-markets a[data-market="US"] { grid-column: 1 / -1; color: var(--paper); background: var(--ink); border-color: var(--ink); }
.collection-markets a[data-market="US"]:hover { color: var(--paper); background: var(--terracotta); border-color: var(--terracotta); }
.collection-markets a[data-market="CA"] { background: var(--market-ca); border-color: var(--market-ca-border); }
.collection-markets a[data-market="UK"] { background: var(--market-uk); border-color: var(--market-uk-border); }
.collection-markets a:only-child { grid-column: 1 / -1; }
.collection-markets a:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.collection-footnote { margin: 25px 0 0; color: var(--muted); font-size: .9375rem; }
.collection-story { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: center; }
.collection-story-section { background: var(--paper); }
.collection-story-image { margin: 0; overflow: hidden; border-radius: 28px; }
.collection-story-image img { aspect-ratio: 16 / 10; object-fit: cover; transition: opacity .5s ease, transform .7s ease; }
.collection-story-image img.is-changing { opacity: .15; transform: scale(.985); }
.collection-story .button, .collection-support .button { margin-top: 30px; }
.collection-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
.collection-guide article { padding-top: 25px; border-top: 1px solid var(--line); }
.collection-guide article > span { font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.collection-guide h3 { margin-top: 25px; font-size: 2rem; }
.collection-guide p { color: var(--muted); margin: 18px 0 0; }
.collection-support { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8vw; align-items: center; }
.collection-support figure { margin: 0; overflow: hidden; border-radius: 50%; }
.collection-support figure img { aspect-ratio: 1; object-fit: cover; }
body.products-page { transition: color .7s ease, background-color .7s ease; }
body.products-page .announcement, body.products-page .site-header, body.products-page .site-footer, body.products-page main, body.products-page .section, body.products-page .collection-hero, body.products-page .collection-brands article, body.products-page .collection-filters, body.products-page .collection-story, body.products-page .collection-guide, body.products-page .collection-support, body.products-page .inner-callout { transition: color .7s ease, background-color .7s ease, border-color .7s ease; }
body.products-page .button, body.products-page .nav-cta { transition: color .7s ease, background-color .7s ease, border-color .7s ease; }
body.products-page main :is(h1, h2, h3, p, .eyebrow, .tag, .collection-color, .collection-brand) { transition: color .7s ease, background-color .7s ease, border-color .7s ease; }
body.products-page .nav a { transition: color .7s ease, border-color .7s ease; }
body.products-page .site-header { border-bottom-color: var(--line); }
body.products-page .section-soft { background: var(--section-soft); }
body.products-page .section-sage { background: var(--section-alt); }
body.products-page .collection-hero, body.products-page .collection-grid, body.products-page .collection-brands article { color: var(--ink); }
body.products-page[data-brand-theme='pramedia'] {
  --ink: #3b2b24;
  --muted: #705f55;
  --cream: #f3eadf;
  --paper: #fffaf2;
  --line: #c9b49f;
  --terracotta: #a66543;
  --sage: #dcc6ad;
  --dark: #38251e;
  --section-soft: #e8d7c7;
  --section-alt: #d5c0a7;
  --brand-flash: rgba(166, 101, 67, .52);
  --market-secondary: #f0e0c8;
  --market-secondary-border: #c9a77d;
  --market-ca: #f0e0c8;
  --market-ca-border: #c9a77d;
  --market-uk: #e2d5e4;
  --market-uk-border: #b9a2bd;
}
body.products-page[data-brand-theme='melenta'] {
  --ink: #253b36;
  --muted: #65736c;
  --cream: #f8f0ea;
  --paper: #fffaf7;
  --line: #d7c2c5;
  --terracotta: #b65f72;
  --sage: #d9e7dd;
  --dark: #1f342e;
  --section-soft: #f0e4e5;
  --section-alt: #dce9e1;
  --brand-flash: rgba(182, 95, 114, .5);
  --market-secondary: #f3dfe4;
  --market-secondary-border: #d4aab4;
  --market-ca: #f3dfe4;
  --market-ca-border: #d4aab4;
  --market-uk: #deebe1;
  --market-uk-border: #a8c5b0;
}
body.products-page[data-collection-brand='all'] { --brand-flash: rgba(168, 150, 115, .5); }
body.products-page[data-collection-brand='all'] #collection { background: #e6dfd2; }
.products-page .collection-filter, .products-page .collection-arrow, .products-page .collection-markets a { transition: color .7s ease, background-color .35s ease, border-color .7s ease; }

/* Each brand gets distinct spacing, card shapes and hero treatment. */
body.products-page[data-brand-theme='pramedia'] .media-banner {
  --banner-tint: 76, 48, 35;
}
body.products-page[data-brand-theme='melenta'] .collection-card {
  border-radius: 32px 32px 18px 18px;
  box-shadow: 0 14px 36px rgba(74, 48, 55, .08);
}
body.products-page[data-brand-theme='melenta'] .collection-grid { --collection-gap: 26px; }
body.products-page[data-brand-theme='melenta'] .collection-body { padding: 28px; }
body.products-page[data-brand-theme='melenta'] .collection-brands { gap: 58px; }
body.products-page[data-brand-theme='pramedia'] .collection-card {
  border-radius: 10px;
  box-shadow: 0 11px 24px rgba(74, 48, 35, .15);
}
body.products-page[data-brand-theme='pramedia'] .collection-grid { --collection-gap: 14px; }
body.products-page[data-brand-theme='pramedia'] .collection-body { padding: 30px 24px 24px; }
body.products-page[data-brand-theme='pramedia'] .collection-brands { gap: 24px; }
body.products-page[data-brand-theme='pramedia'] .collection-brands article { border-top-width: 3px; }
body.products-page[data-brand-theme='pramedia'] .collection-filter { border-radius: 8px; }
body.products-page[data-brand-theme='pramedia'] .collection-markets a { border-radius: 6px; }
body.products-page[data-brand-theme='pramedia'] .collection-hero-copy { width: 56%; }
body.products-page[data-brand-theme='pramedia'] .collection-story-image img { aspect-ratio: 4 / 3; }
body.products-page[data-brand-theme='melenta'] .collection-hero-copy { width: 63%; }
body.products-page[data-brand-theme='pramedia'] #collection { background: #eee6db; }
body.products-page[data-brand-theme='pramedia'] .collection-story-section { background: #f4dfca; }
body.products-page[data-brand-theme='pramedia'] .collection-support figure { background: #fffaf2; }
body.products-page[data-brand-theme='pramedia'] .collection-support figure img { object-fit: contain; padding: clamp(14px, 3vw, 34px); }
body.products-page[data-brand-theme='pramedia'] #collection .section-head { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 8%; }
body.products-page[data-brand-theme='pramedia'] #collection .section-head h2 { color: var(--ink); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.65rem, 4.4vw, 4.25rem); font-weight: 500; letter-spacing: 0; }
body.products-page[data-brand-theme='pramedia'] #collection :is(.section-head .eyebrow, .collection-intro, .collection-brands p, .collection-status, .collection-hint, .collection-footnote) { color: var(--muted); }
body.products-page[data-brand-theme='pramedia'] .collection-brands { grid-template-columns: 1fr; }
body.products-page[data-brand-theme='pramedia'] .collection-brands h3 { color: #7d5b3f; letter-spacing: .2em; }
body.products-page[data-brand-theme='pramedia'] .collection-brands p { max-width: 680px; }
body.products-page[data-brand-theme='pramedia'] :is(.collection-filter, .collection-arrow) { color: var(--ink); border-color: #927a65; }
body.products-page[data-brand-theme='pramedia'] .collection-filter[aria-pressed='true'] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
body.products-page[data-brand-theme='pramedia'] .collection-filter:hover:not([aria-pressed='true']),
body.products-page[data-brand-theme='pramedia'] .collection-arrow:hover:not(:disabled) { color: #3b2b24; }

body.products-page::after {
  position: fixed;
  z-index: 100;
  inset: -25%;
  pointer-events: none;
  content: '';
  opacity: 0;
  background: radial-gradient(circle at center, var(--brand-flash) 0%, transparent 62%);
  transform: scale(.08);
}
body.products-page.brand-switching::after { animation: brand-color-spread 1.05s cubic-bezier(.2, .75, .25, 1) both; }
@keyframes brand-color-spread {
  0% { opacity: .46; transform: scale(.08); }
  42% { opacity: .25; transform: scale(.85); }
  100% { opacity: 0; transform: scale(2.5); }
}
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: brand-reveal .85s cubic-bezier(.22, .7, .25, 1) both; }
@keyframes brand-reveal {
  from { clip-path: circle(0 at 50% 50%); }
  to { clip-path: circle(150vmax at 50% 50%); }
}
@media (max-width: 960px) {
  .collection-hero-grid, .collection-story, .collection-support { grid-template-columns: 1fr; gap: 45px; }
  .collection-hero figure img { aspect-ratio: 16 / 10; }
  .collection-card { flex-basis: calc((100% - var(--collection-gap, 22px)) / 2); }
  .collection-body { padding: 20px; }
  .collection-body h3 { font-size: 1.7rem; }
}
@media (max-width: 650px) {
  .collection-hero { padding: 65px 0 75px; }
  .collection-hero h1 { font-size: clamp(3.2rem, 15vw, 4.8rem); }
  .collection-guide, .collection-brands { grid-template-columns: 1fr; }
  .collection-brands { gap: 25px; }
  .collection-card { flex-basis: 88%; }
  .collection-toolbar { gap: 16px; }
  .collection-controls { width: 100%; }
  .collection-status { margin-right: auto; }
  .collection-filter { padding-inline: 14px; }
  .collection-intro { margin-top: 22px; }
  .collection-body { padding: 25px; }
  .collection-body h3 { font-size: 2rem; }
  .collection-hero figure { border-radius: 24px; }
  .collection-markets a { padding: 10px 14px; }
  body.products-page[data-brand-theme='melenta'] .collection-hero-copy,
  body.products-page[data-brand-theme='pramedia'] .collection-hero-copy { width: 100%; margin-left: 0; }
  body.products-page[data-brand-theme='pramedia'] #collection .section-head { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .collection-grid, .collection-markets a, .collection-filter, .collection-arrow, .collection-card, .collection-hero figure img, .collection-story-image img { transition: none; }
  body.products-page.brand-switching::after { animation: none; }
  ::view-transition-group(root), ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
