/* The supplied ivory-and-gold product-card references, as native controls. */
.royal-gallery .product-grid,
.royal-gallery .product-grid.filtered {
  gap: 36px 30px;
}

.royal-gallery .product-card,
.royal-gallery .product-card.wide,
.royal-gallery .product-grid.filtered .product-card.wide {
  border: 1.5px solid transparent;
  border-radius: 28px;
  background:
    linear-gradient(125deg, #fff5e4, #f5e7d1) padding-box,
    linear-gradient(135deg, #fff6d8 0%, #c39a55 22%, #f7dfab 48%, #a97a36 74%, #fff1c9 100%) border-box;
  box-shadow:
    0 3px 6px #70481f10,
    0 15px 28px -8px #70481f28,
    0 30px 42px -22px #70481f4a;
  isolation: isolate;
  animation-fill-mode: backwards;
  transition: transform .3s ease, box-shadow .3s ease;
}

.royal-gallery .product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid #fff5d97a;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
}

.royal-gallery .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px #70481f12, 0 22px 38px -10px #70481f35, 0 34px 50px -20px #70481f42;
}

.royal-gallery .product-card .product-photo,
.royal-gallery .product-grid.filtered .product-card .product-photo {
  aspect-ratio: 1.2;
  background: #dfc5a5;
}

.royal-gallery .product-photo img,
.royal-gallery .product-card:hover .product-photo img {
  object-fit: cover;
  object-position: center;
  transform: none;
  filter: none;
}

/* The portrait studio photographs need individual framing within the cards. */
.royal-gallery .product-card[data-id="modern-wardrobe"] .product-photo img {
  object-position: 50% 58%;
}

.royal-gallery .product-card[data-id="classical-wardrobe"] .product-photo img {
  object-fit: cover;
  object-position: 50% 59%;
  background: #dfc5a5;
}

.royal-gallery .product-card[data-id="classical-wardrobe"] .product-photo,
.royal-gallery .product-grid.filtered .product-card[data-id="classical-wardrobe"] .product-photo {
  aspect-ratio: 1.15;
}

.royal-gallery .product-card[data-id="glass-console"] .product-photo img {
  object-position: 50% 61.5%;
}

.royal-gallery .product-save {
  inset-inline: auto;
  top: 16px;
  left: 16px;
  right: auto;
  width: 48px;
  height: 48px;
  border: 1px solid #e4c27f;
  border-radius: 50%;
  color: #fff5e2;
  background: linear-gradient(135deg, #9d815f9c, #715e47b0);
  box-shadow: inset 1px 1px 1px #fff1ce90, inset -1px -1px 1px #8a65274d, 0 3px 7px #583c2521;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color .2s, background .2s, box-shadow .2s;
}

.royal-gallery .product-save .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.4;
}

.royal-gallery .product-save:hover {
  background: #80623edb;
  box-shadow: inset 1px 1px 1px #fff1ce90, 0 4px 10px #583c2533;
}

.royal-gallery .product-save.is-saved {
  color: #55371c;
  background: linear-gradient(135deg, #f5e4bd, #d9b97c);
}

.royal-gallery .product-save.is-saved .icon {
  fill: #704b2b45;
}

.royal-gallery .product-meta {
  padding: 18px 25px 17px;
  background: radial-gradient(ellipse at 23% 0%, #fff9ee94, transparent 72%), linear-gradient(120deg, #fcf0dd, #f5e7d1);
  border-top: 1px solid #fff4e2d9;
}

.royal-gallery .product-title {
  color: #533619;
  font: 400 clamp(29px, 2.45vw, 35px)/1.45 var(--display);
  text-wrap: balance;
}

.royal-gallery .product-title button {
  min-height: 44px;
  padding: 0;
  font: inherit;
}

.royal-gallery .product-category {
  margin: 2px 0 15px;
  color: #896b47;
  font-size: 15px;
  line-height: 1.65;
}

.royal-gallery .product-actions {
  position: relative;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 0;
}

.royal-gallery .product-actions::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, #d4ac62, #a57a37 48%, #dfbd7e);
  box-shadow: 0 1px 0 #fff9e8;
}

.royal-gallery .product-open,
.royal-gallery .product-direct {
  min-height: 44px;
  padding: 4px 0;
  gap: 9px;
  color: #654521;
  font-size: 16px;
  line-height: 1.6;
  white-space: nowrap;
}

.royal-gallery .action-disc {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: none;
  width: auto;
  height: auto;
}

.royal-gallery .product-open .icon {
  width: 23px;
  height: 23px;
  color: #aa7c37;
}

.royal-gallery .product-direct .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.55;
}

.royal-gallery .product-open:hover,
.royal-gallery .product-direct:hover {
  color: #916026;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.royal-gallery .product-photo:focus-visible {
  outline: 2px solid #fff4d9;
  outline-offset: -7px;
}

html[dir="ltr"] .royal-gallery .product-title {
  font: 400 27px/1.4 Georgia, serif;
}

@media (max-width: 1190px) and (min-width: 901px) {
  .royal-gallery .product-grid,
  .royal-gallery .product-grid.filtered { gap: 30px 22px; }
  .royal-gallery .product-meta { padding-inline: 18px; }
  .royal-gallery .product-title { font-size: 29px; }
  .royal-gallery .product-open,
  .royal-gallery .product-direct { font-size: 15px; gap: 7px; }
  html[dir="ltr"] .royal-gallery .product-title { font-size: 25px; }
  html[dir="ltr"] .royal-gallery .product-open,
  html[dir="ltr"] .royal-gallery .product-direct { font-size: 14px; gap: 6px; }
  html[dir="ltr"] .royal-gallery .product-actions .icon { width: 21px; height: 21px; }
}

@media (max-width: 650px) {
  .royal-gallery .product-grid,
  .royal-gallery .product-grid.filtered { gap: 32px; }
  .royal-gallery .product-card,
  .royal-gallery .product-card.wide,
  .royal-gallery .product-grid.filtered .product-card.wide { border-radius: 26px; }
  .royal-gallery .product-meta { padding: 17px 23px 15px; }
  .royal-gallery .product-title { font-size: clamp(29px, 7.8vw, 35px); }
  .royal-gallery .product-save { width: 46px; height: 46px; top: 15px; left: 15px; }
  html[dir="ltr"] .royal-gallery .product-title { font-size: 26px; }
}

@media (max-width: 360px) {
  .royal-gallery .product-meta { padding-inline: 18px; }
  .royal-gallery .product-title { font-size: 28px; }
  .royal-gallery .product-open,
  .royal-gallery .product-direct { font-size: 15px; gap: 7px; }
  html[dir="ltr"] .royal-gallery .product-title { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .royal-gallery .product-card:hover { transform: none; }
}
