@import url("./catalogue-photo-orientation.css");

.products-page {
  --products-paper: #faf7f1;
  --products-line: #e4dbd1;
  --products-accent: #a11938;
  --products-muted: #685e56;
  background: var(--products-paper);
}
.products-rail {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 7px 5.5%;
  border-block: 1px solid var(--products-line);
  background: #f2ebe2;
  font-size: 14px;
  font-weight: 650;
}
.products-rail a { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; }
.products-rail a:last-child { margin-left: auto; }
.products-rail a[aria-current] { color: var(--products-accent); }
.products-rail span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding-inline: 4px;
  border: 1px solid #d4c4b6;
  border-radius: 50px;
}
.products-hero { padding-block: 14px 0; }
.products-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 24%);
  align-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #4e1526;
  color: #fff;
}
.products-hero-copy { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px; min-width: 0; }
.products-hero h1 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -.05em;
  font-weight: 750;
  margin: 0;
}
.products-hero-image { display: block; width: 100%; height: 112px; object-fit: cover; }
.products-search { flex: 0 1 430px; min-width: 250px; }
.products-search-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.products-search label { display: block; margin-bottom: 7px; font-weight: 650; font-size: 14px; }
.products-search > div { display: flex; gap: 6px; border-radius: 10px; padding: 6px; background: #fff; }
.products-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #26211d;
  font: inherit;
  font-size: 16px;
  padding-inline: 9px;
}
.products-search button {
  min-height: 40px;
  padding-inline: 19px;
  border: 0;
  border-radius: 7px;
  background: var(--products-accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.products-browser {
  display: grid;
  grid-template-columns: minmax(185px, 232px) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 36px);
  padding-top: clamp(18px, 2vw, 28px);
  scroll-margin-top: 85px;
}
.products-categories {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100svh - 120px);
  overflow: auto;
  border: 1px solid var(--products-line);
  border-radius: 12px;
  padding: 11px;
  background: #fffcf8;
}
.products-categories h2 { font-size: 17px; letter-spacing: -.02em; margin: 6px 9px 9px; }
.products-categories > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 38px;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.35;
}
.products-categories > a[aria-current], .products-categories > a:hover { color: var(--products-accent); background: #f8e9ec; }
.products-categories small { font-size: 12px; color: var(--products-muted); }
.products-result-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.products-result-header h2, .products-related h2 { font-size: clamp(27px, 3vw, 45px); line-height: 1.16; letter-spacing: -.045em; margin: 0; }
.products-result-header p { color: var(--products-muted); margin: 5px 0 0; font-size: 14px; }
.products-mobile-category { display: none; }
.products-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.products-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--products-line);
  border-radius: 13px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.products-card:hover { border-color: #bf9b90; box-shadow: 0 9px 22px #44282210; }
.products-card-link { display: block; height: 100%; }
.products-card-link:focus-visible { outline-offset: -3px; }
.products-card-image { position: relative; aspect-ratio: 1.12; overflow: hidden; border-bottom: 1px solid #eee7e0; background: radial-gradient(circle at 50% 45%, #fff 15%, var(--product-tint, #f6f2ed) 100%); }
.products-card-image img { position: absolute; inset: 7%; display: block; width: 86%; height: 86%; object-fit: contain; }
.products-card-copy { padding: 14px 15px 16px; }
.products-card-copy > p { margin: 0 0 5px; font-size: 12px; color: var(--products-muted); }
.products-card-copy h3 { margin: 0; font-size: clamp(15px, 1.35vw, 20px); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.products-code { display: inline-block; margin-top: 7px; font-size: 12px; color: var(--products-accent); overflow-wrap: anywhere; }
.products-card-skeleton { position: relative; pointer-events: none; }
.products-card-skeleton .products-card-image,
.products-card-skeleton span { background: #eee9e2; }
.products-card-skeleton span { display: block; height: 12px; width: 36%; border-radius: 5px; }
.products-card-skeleton span:nth-child(2) { width: 75%; height: clamp(15px, 1.35vw, 20px); margin-block: 8px; }
.products-card-skeleton span:last-child { width: 25%; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.experience-reduced) .products-card-skeleton::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 55%;
    background: linear-gradient(110deg, transparent 5%, #ffffffa3 50%, transparent 95%);
    animation: products-skeleton-shimmer 1.8s ease-in-out infinite;
  }
  .products-card-skeleton:nth-child(3n + 2)::after { animation-delay: .15s; }
  .products-card-skeleton:nth-child(3n)::after { animation-delay: .3s; }
}
@keyframes products-skeleton-shimmer {
  from { transform: translateX(-100%); }
  75%, to { transform: translateX(185%); }
}
.products-note { color: var(--products-muted); font-size: 14px; margin: 22px 0 0; }
.products-empty { padding: 30px; border: 1px dashed var(--products-line); border-radius: 12px; }
.products-empty[hidden] { display: none; }
.products-empty > h3 { font-size: 22px; margin: 0; }
.products-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 14px; }
.products-pagination:not(:empty) { margin-top: 21px; }
.products-pagination button {
  color: inherit;
  font: inherit;
  min-height: 44px;
  border: 1px solid var(--products-line);
  background: #fff;
  padding: 8px 13px;
  border-radius: 7px;
  cursor: pointer;
}
.products-pagination button:disabled { opacity: .5; cursor: default; }
.product-detail { padding-block: 40px 60px; }
.product-unavailable-page { padding-block: clamp(2rem, 6vw, 5rem); }
.product-unavailable { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: stretch; overflow: hidden; border: 1px solid var(--products-line); border-radius: 1rem; background: #fff; }
.product-unavailable-copy { align-self: center; padding: clamp(1.5rem, 5vw, 4rem); }
.product-unavailable h1 { max-width: 16ch; margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.05; letter-spacing: -.045em; }
.product-unavailable p { max-width: 42ch; margin-bottom: 1.5rem; color: var(--products-muted); }
.product-unavailable-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.product-unavailable img { width: 100%; height: 100%; min-height: 18rem; object-fit: cover; }
@media (max-width: 680px) {
  .product-unavailable { grid-template-columns: minmax(0, 1fr); }
  .product-unavailable img { height: clamp(9rem, 36vw, 13rem); min-height: 0; }
}
.product-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; margin-bottom: 22px; color: var(--products-muted); }
.product-crumb a { text-decoration: underline; text-underline-offset: 3px; }
.product-detail-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(25px, 5vw, 75px); }
.product-detail-grid[hidden] { display: none; }
.product-detail-image { display: grid; place-items: center; min-height: min(52vw, 470px); padding: clamp(18px, 3vw, 40px); background: radial-gradient(circle at 50% 45%, #fff 15%, var(--product-tint, #f6f2ed) 100%); border: 1px solid var(--products-line); border-radius: 17px; }
.product-detail-image img, .product-detail-photo-space { display: block; width: 100%; height: min(52vw, 520px); object-fit: contain; }
.product-detail-image.products-card-skeleton { overflow: hidden; background: #eee9e2; }
.product-detail-image.products-card-skeleton img { visibility: hidden; }
.product-detail-placeholder { overflow: hidden; }
.product-detail-placeholder span:first-child { width: 80%; height: clamp(36px, 5vw, 67px); }
.product-detail-placeholder span:nth-child(2) { margin: 18px 0 0; height: 14px; width: 42%; }
.product-detail-placeholder span:nth-child(3) { margin: 23px 0 16px; height: 46px; width: min(40%, 130px); }
.product-detail-placeholder span:last-child { height: 48px; width: min(75%, 280px); }
.product-detail-copy h1 { font-size: clamp(36px, 5vw, 67px); line-height: 1.04; letter-spacing: -.055em; margin: 0 0 18px; }
.product-detail-code { color: var(--products-muted); }
.product-detail-code strong { margin-left: 6px; color: var(--products-accent); }
.product-quantity { display: grid; gap: 5px; font-size: 15px; margin: 23px 0 16px; }
.product-quantity input { max-width: 130px; min-height: 46px; padding: 8px 10px; border: 1px solid #c9b9ad; border-radius: 7px; font: inherit; background: #fff; }
.product-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.product-detail-copy [data-gift-save-status] { color: #215a32; font-size: 14px; margin-bottom: 0; }
.product-detail-copy [data-gift-save-status]:empty { display: none; }
.products-related { padding-top: 22px; }
.products-related h2 { margin-bottom: 16px; }
.products-page :is(a,button,input,select):focus-visible { outline: 2px solid #b21d40; outline-offset: 3px; }
.products-page .products-card-link:focus-visible { outline-offset: -4px; }
@media (max-width: 1000px) {
  .products-browser .products-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .products-hero-copy { display: block; }
  .products-hero h1 { margin-bottom: 12px; }
}
@media (max-width: 740px) {
  .products-rail { gap: 13px; font-size: 13px; }
  .products-hero-panel, .products-browser, .product-detail-grid { grid-template-columns: minmax(0,1fr); }
  .products-hero-image, .products-categories { display: none; }
  .products-hero { padding-top: 10px; }
  .products-hero-copy { padding: 14px 15px; }
  .products-hero h1 { font-size: clamp(26px, 7vw, 31px); margin-bottom: 10px; }
  .products-search { min-width: 0; }
  .products-search > div { padding: 4px; }
  .products-search input { font-size: 14px; }
  .products-search button { min-height: 39px; padding-inline: 13px; font-size: 13px; }
  .products-browser { padding-top: 17px; }
  .products-result-header { margin-bottom: 12px; }
  .products-result-header h2 { font-size: 25px; }
  .products-mobile-category { display: grid; gap: 0; width: min(46%, 165px); font-size: 0; font-weight: 650; }
  .products-mobile-category select { width: 100%; min-height: 40px; padding: 6px; border-radius: 7px; border: 1px solid #c9b9ad; background: #fff; font-size: 13px; }
  .products-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .products-card-copy { padding: 10px; }
  .product-detail-image { min-height: 210px; }
  .product-detail-image img, .product-detail-photo-space { height: min(90vw, 360px); }
  .product-detail-actions .button { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .products-card { transition: none; }
}
.managed-product-description { white-space: pre-wrap; overflow-wrap: anywhere; }

.product-directory {
  padding-block: clamp(24px, 4vw, 56px) 72px;
  scroll-margin-top: 90px;
}
.product-directory [hidden], .product-crumb [hidden] { display: none; }
.directory-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 20px;
}
.directory-header h1 {
  margin: 0;
  font-size: clamp(32px, 4.1vw, 66px);
  font-weight: 750;
  letter-spacing: -.055em;
  line-height: 1.05;
}
.directory-header h1:focus { outline: none; }
.directory-header p { margin: 7px 0 0; color: var(--products-muted); font-size: 14px; }
.directory-header form > div { border: 1px solid var(--products-line); }
.directory-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 22px;
}
.directory-tools label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
}
.directory-tools :is(select, input) {
  min-height: 42px;
  max-width: 100%;
  padding: 7px 10px;
  color: inherit;
  border: 1px solid var(--products-line);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 14px;
}
.directory-tools input { width: min(225px, 100%); font-weight: 450; }
.directory-tools a {
  margin-left: auto;
  align-self: end;
  padding-block: 9px;
  color: var(--products-accent);
  font-size: 14px;
  font-weight: 700;
}
.directory-tools a:hover { text-decoration: underline; text-underline-offset: 4px; }
.collection-grid, .product-directory .products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 22px);
}
.collection-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--products-line);
  border-radius: 15px;
  background: #fffdfa;
  transition: border-color .2s, box-shadow .2s;
}
.collection-card:hover { border-color: #c1a196; box-shadow: 0 7px 24px #44282214; }
.collection-card:focus-visible { outline-offset: -4px; }
.collection-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4%;
  aspect-ratio: 1.47;
  padding: 9%;
  overflow: hidden;
  background: radial-gradient(ellipse at 48% 36%, #fffdf9 0%, var(--collection-tint) 100%);
}
.collection-photo img {
  display: block;
  width: 48%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.collection-photo-single img { width: 100%; }
.collection-caption {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: clamp(10px, 1.4vw, 20px);
  border-top: 1px solid var(--products-line);
}
.collection-caption h3 { margin: 0; font-size: clamp(14px, 1.45vw, 21px); line-height: 1.2; }
.collection-caption p { margin: 5px 0 0; color: var(--products-muted); font-size: 12px; }
.collection-caption > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  aspect-ratio: 1;
  border: 1px solid var(--products-line);
  border-radius: 50%;
  color: var(--products-accent);
}
.collection-card:hover .collection-caption > span { background: var(--products-accent); color: white; }
.product-directory .products-empty h2 { margin-bottom: 18px; font-size: clamp(20px, 4vw, 28px); }
@media (max-width: 1050px) {
  .collection-grid, .product-directory .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .product-directory { padding-block: 20px 48px; }
  .directory-header { display: grid; gap: 12px; margin-bottom: 14px; }
  .directory-tools { gap: 8px; margin-bottom: 14px; }
  .directory-tools label { flex: 1 1 135px; }
  .directory-tools input { width: 100%; }
  .directory-tools a { margin-left: 0; padding-block: 4px; }
  .collection-grid, .product-directory .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-caption > span { width: 24px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .collection-card { transition: none; }
}
