.products-page {
  padding-block: 0 9.5rem;
}

.products-gallery,
.pg-lightbox,
.complete-list-trigger,
.complete-list-modal {
  --gallery-paper: var(--paper, #f3f0e8);
  --gallery-white: var(--white, #fffdf8);
  --gallery-ink: var(--ink, #272522);
  --gallery-muted: var(--muted, #6e6860);
  --gallery-line: var(--line, #c9c1b5);
  --gallery-red: var(--red, #a92b25);
}

.products-gallery {
  color: var(--gallery-ink);
}

.products-gallery__tabs {
  position: sticky;
  top: 76px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid var(--gallery-line);
  background: color-mix(in srgb, var(--gallery-paper) 94%, transparent);
  backdrop-filter: blur(14px);
}

.products-gallery__tabs button {
  position: relative;
  min-height: 84px;
  padding: 1.15rem 1.5rem;
  border: 0;
  background: var(--gallery-white);
  color: var(--gallery-muted);
  cursor: pointer;
  font-size: clamp(.88rem, 1.15vw, 1.08rem);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .25s ease, background-color .25s ease;
}

.products-gallery__tabs button + button {
  border-inline-start: 1px solid var(--gallery-line);
}

.products-gallery__tabs button::after {
  position: absolute;
  right: 12%;
  bottom: -1px;
  left: 12%;
  height: 3px;
  background: var(--gallery-red);
  content: '';
  transform: scaleX(0);
  transition: transform .28s ease;
}

.products-gallery__tabs button[aria-selected='true'] {
  color: #fff;
  background: var(--gallery-red);
}

.products-gallery__tabs button[aria-selected='true']::after {
  background: #fff;
  transform: scaleX(.76);
}

.products-gallery__meta {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .65fr);
  align-items: end;
  gap: clamp(2rem, 8vw, 8rem);
  padding-block: clamp(4.5rem, 9vw, 8rem) clamp(3rem, 6vw, 5.25rem);
}

.products-gallery__meta h2 {
  max-width: 760px;
  margin: .7rem 0 0;
  font-family: var(--display, var(--serif, Georgia, serif));
  font-size: clamp(3.5rem, 7vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .86;
  animation: pg-meta-in .3s cubic-bezier(.21,.8,.32,1) both;
}

.products-gallery__meta > div:last-child {
  padding-bottom: .45rem;
}

.products-gallery__meta > div:last-child p {
  margin: 0 0 1.25rem;
  color: var(--gallery-muted);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.75;
  animation: pg-meta-in .3s cubic-bezier(.21,.8,.32,1) both;
}

@keyframes pg-meta-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.products-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.8rem);
}

.pg-card-shell {
  min-width: 0;
}

.pg-card {
  position: relative;
  height: 100%;
}

.pg-card__visual {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #e9e6df;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}

.pg-card--frozen .pg-card__visual {
  background: #ece9e2;
}

.pg-card--frozen .pg-card__visual picture {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: clamp(1.2rem, 4vw, 4rem);
}

.pg-card__visual picture,
.pg-card__visual img {
  width: 100%;
  height: 100%;
}

.pg-card__visual img {
  object-fit: cover;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1), filter .35s ease;
}

.pg-card--frozen .pg-card__visual img {
  object-fit: contain;
}

.pg-card__visual:hover img,
.pg-card__visual:focus-visible img {
  transform: scale(1.035);
}

.pg-card__package {
  position: absolute;
  right: clamp(.8rem, 2vw, 1.5rem);
  bottom: 5.3rem;
  display: grid;
  width: clamp(88px, 15%, 122px);
  min-width: 88px;
  padding: .55rem .55rem .6rem;
  border: 1px solid color-mix(in srgb, var(--gallery-ink) 15%, transparent);
  background: var(--gallery-white);
  box-shadow: 0 16px 32px rgba(39, 37, 34, .16);
  cursor: pointer;
  gap: .35rem;
  transform: translateY(.4rem) rotate(1.2deg);
  transition: transform .35s ease, box-shadow .35s ease;
}

.pg-card__package img {
  width: 100%;
  height: auto;
  max-height: 126px;
  object-fit: contain;
}

.pg-card__package span {
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.pg-card:hover .pg-card__package,
.pg-card__package:focus-visible {
  box-shadow: 0 22px 42px rgba(39, 37, 34, .22);
  transform: translateY(-.3rem) rotate(0);
}

.pg-card__caption {
  display: grid;
  align-items: baseline;
  min-height: 76px;
  padding: 1.1rem .2rem .2rem;
  border-top: 1px solid var(--gallery-line);
}

.pg-card__caption h2 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--display, var(--serif, Georgia, serif));
  font-size: clamp(1.5rem, 2.1vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.05;
}

.products-gallery__enquiry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  margin-top: clamp(5rem, 9vw, 9rem);
  padding: clamp(2.2rem, 5vw, 4.25rem);
  background: var(--gallery-red);
  color: #fff;
}

.products-gallery__enquiry p {
  max-width: 710px;
  margin: 0;
  font-family: var(--display, var(--serif, Georgia, serif));
  font-size: clamp(1.7rem, 3vw, 3.1rem);
  line-height: 1.05;
}

.products-gallery__enquiry .button {
  border-color: #fff;
  background: transparent;
  color: #fff;
  white-space: nowrap;
}

.pg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(22, 21, 19, .82);
  backdrop-filter: blur(8px);
  animation: pg-fade .22s ease both;
}

body:has(.pg-lightbox) .site-header {
  z-index: 0;
}

.pg-lightbox__panel {
  display: grid;
  width: min(1180px, 100%);
  height: min(900px, calc(100svh - clamp(2rem, 6vw, 5rem)));
  max-height: calc(100svh - clamp(2rem, 6vw, 5rem));
  overflow: hidden;
  background: var(--gallery-paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .36);
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  animation: pg-rise .28s ease both;
}

.pg-lightbox__header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 1rem clamp(1.1rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--gallery-line);
}

.pg-lightbox__header span {
  color: var(--gallery-red);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pg-lightbox__header h2 {
  margin: .12rem 0 0;
  font-family: var(--display, var(--serif, Georgia, serif));
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  font-weight: 500;
  line-height: 1;
}

.pg-lightbox__close {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--gallery-line);
  background: transparent;
  color: var(--gallery-ink);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.pg-lightbox__modes {
  display: flex;
  border-bottom: 1px solid var(--gallery-line);
}

.pg-lightbox__modes button {
  min-width: 150px;
  min-height: 48px;
  padding-inline: 1.3rem;
  border: 0;
  border-inline-end: 1px solid var(--gallery-line);
  background: transparent;
  color: var(--gallery-muted);
  cursor: pointer;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pg-lightbox__modes button[aria-selected='true'] {
  background: var(--gallery-ink);
  color: #fff;
}

.pg-lightbox__stage {
  display: grid;
  min-height: min(58vh, 640px);
  overflow: auto;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: #e6e2da;
}

.pg-lightbox__stage img {
  width: 100%;
  height: 100%;
  max-height: min(56vh, 610px);
  object-fit: contain;
  animation: pg-stage-in .28s cubic-bezier(.22,.61,.36,1) both;
}

@keyframes pg-stage-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pg-lightbox__stage--product img {
  max-width: 900px;
}

.pg-lightbox__stage--packaging img {
  max-width: 520px;
}

.pg-lightbox__packages {
  display: flex;
  overflow-x: auto;
  padding: .65rem 1rem;
  border-top: 1px solid var(--gallery-line);
  gap: .6rem;
}

.pg-lightbox__packages button {
  width: 58px;
  height: 70px;
  padding: .25rem;
  border: 1px solid var(--gallery-line);
  background: #fff;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.pg-lightbox__packages button[aria-pressed='true'] {
  border-color: var(--gallery-red);
  box-shadow: inset 0 0 0 1px var(--gallery-red);
}

@media (hover: hover) and (pointer: fine) {
  .pg-lightbox__packages button:hover {
    box-shadow: 0 6px 16px rgba(39, 37, 34, .14);
    transform: translateY(-2px);
  }
  .pg-lightbox__packages button[aria-pressed='true']:hover {
    box-shadow: inset 0 0 0 1px var(--gallery-red);
  }
}

.pg-lightbox__packages img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pg-lightbox__footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--gallery-line);
}

.pg-lightbox__footer button {
  min-height: 54px;
  padding: .8rem 1.4rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.pg-lightbox__footer button:first-child { text-align: left; }
.pg-lightbox__footer button:last-child { text-align: right; }
.pg-lightbox__footer span { color: var(--gallery-muted); font-size: .72rem; }

.products-gallery button:focus-visible,
.pg-lightbox button:focus-visible,
.complete-list-trigger:focus-visible,
.complete-list-modal button:focus-visible {
  outline: 3px solid #1668e8;
  outline-offset: 3px;
}

/* Complete product list */
.complete-list-trigger {
  justify-self: end;
  align-self: end;
  display: inline-flex;
  min-height: 62px;
  max-width: 310px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--gallery-ink);
  background: transparent;
  color: var(--gallery-ink);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .075em;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.complete-list-trigger b { color: var(--gallery-red); font-size: 1.15rem; transition: transform .25s ease; }
.complete-list-trigger:hover { border-color: var(--gallery-red); background: var(--gallery-red); color: #fff; }
.complete-list-trigger:hover b { color: #fff; transform: translate(3px, -3px); }

.complete-list-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(22, 21, 19, .84);
  backdrop-filter: blur(8px);
  animation: pg-fade .2s ease both;
}

body:has(.complete-list-modal) .site-header { z-index: 0; }

.complete-list-modal__panel {
  display: grid;
  width: min(1180px, 100%);
  height: min(880px, calc(100svh - clamp(2rem, 6vw, 5rem)));
  max-height: calc(100svh - clamp(2rem, 6vw, 5rem));
  overflow: hidden;
  background: var(--gallery-paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
  grid-template-rows: auto minmax(0, 1fr);
  animation: pg-rise .28s ease both;
}

.complete-list-modal__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--gallery-line);
}

.complete-list-modal__header .eyebrow { margin-bottom: .55rem; }
.complete-list-modal__header h2 {
  margin: 0;
  font-family: var(--display, var(--serif, Georgia, serif));
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: .94;
}
.complete-list-modal__header p:last-child { margin: .8rem 0 0; color: var(--gallery-muted); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.complete-list-modal__close { display: grid; width: 52px; height: 52px; flex: 0 0 auto; place-items: center; border: 1px solid var(--gallery-ink); background: transparent; cursor: pointer; font-size: 2rem; line-height: 1; }
.complete-list-modal__close:hover { border-color: var(--gallery-red); background: var(--gallery-red); color: #fff; }

.complete-list-modal__table-wrap { overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.complete-list-table { width: 100%; min-width: 940px; border-collapse: collapse; color: var(--gallery-ink); font-size: .86rem; }
.complete-list-table thead { position: sticky; z-index: 2; top: 0; background: var(--gallery-ink); color: #fff; }
.complete-list-table th,
.complete-list-table td { padding: 1rem 1.15rem; border-bottom: 1px solid var(--gallery-line); text-align: left; vertical-align: top; }
.complete-list-table thead th { font-size: .67rem; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.complete-list-table tbody th { width: 27%; font-family: var(--display, var(--serif, Georgia, serif)); font-size: 1.18rem; font-weight: 550; line-height: 1.25; }
.complete-list-table tbody td:nth-last-child(-n + 2) { white-space: nowrap; }
.complete-list-table tbody tr:nth-child(even) { background: rgba(216, 209, 197, .18); }
.complete-list-table tbody tr:hover { background: rgba(165, 45, 40, .07); }

@keyframes pg-fade { from { opacity: 0; } }
@keyframes pg-rise { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 900px) {
  .products-page { padding-bottom: 7rem; }
  .products-gallery__tabs { top: 68px; }
  .products-gallery__meta { grid-template-columns: 1fr; gap: 2rem; }
  .products-gallery__meta > div:last-child { max-width: 640px; }
  .products-gallery__enquiry { grid-template-columns: 1fr; }
  .products-gallery__enquiry .button { justify-self: start; }
  .complete-list-trigger { justify-self: start; }
}

@media (max-width: 620px) {
  .products-page { padding-bottom: 4.5rem; }
  .products-gallery__tabs {
    top: 60px;
    width: 100%;
    margin-inline: 0;
  }
  .products-gallery__tabs button { min-height: 68px; padding: .8rem .55rem; font-size: clamp(.72rem, 3.25vw, .9rem); }
  .products-gallery__meta { padding-block: 3.8rem 2.5rem; }
  .products-gallery__meta h2 { font-size: clamp(3.15rem, 17vw, 5rem); }
  .products-gallery__grid { display: block; }
  .pg-card-shell + .pg-card-shell { margin-top: 2.5rem; }
  .pg-card__visual { aspect-ratio: 4 / 3; }
  .pg-card--frozen .pg-card__visual picture { padding: 1.7rem; }
  .pg-card__package { right: .8rem; bottom: 5rem; min-width: 84px; }
  .pg-card__caption h2 { font-size: 1.8rem; }
  .products-gallery__enquiry { padding: 2rem 1.35rem; }
  .pg-lightbox { padding: 0; }
  .pg-lightbox__panel { width: 100%; height: 100svh; max-height: none; }
  .pg-lightbox__header { padding: .85rem .8rem .85rem 1rem; }
  .pg-lightbox__header h2 { font-size: 1.75rem; }
  .pg-lightbox__close { width: 46px; height: 46px; }
  .pg-lightbox__modes button { min-width: 0; flex: 1; min-height: 50px; }
  .pg-lightbox__stage { min-height: 0; padding: 1rem; }
  .pg-lightbox__stage img { max-height: 100%; }
  .pg-lightbox__footer button { min-height: 58px; padding-inline: .85rem; font-size: .62rem; }
  .complete-list-trigger { width: 100%; max-width: none; }
  .complete-list-modal { padding: 0; }
  .complete-list-modal__panel { width: 100%; height: 100svh; max-height: none; }
  .complete-list-modal__header { align-items: flex-start; padding: 1.2rem 1rem; }
  .complete-list-modal__header h2 { font-size: clamp(2.4rem, 12vw, 3.7rem); }
  .complete-list-modal__close { width: 48px; height: 48px; }
  .complete-list-table { min-width: 820px; font-size: .8rem; }
  .complete-list-table th,
  .complete-list-table td { padding: .85rem .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .products-gallery *,
  .pg-lightbox *,
  .complete-list-modal *,
  .complete-list-trigger {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .pg-card__visual:hover img,
  .pg-card__visual:focus-visible img,
  .pg-card:hover .pg-card__package,
  .pg-card__package:focus-visible { transform: none; }
}
