.product-photo-carousel[hidden] { display: none; }
.product-photo-carousel {
  padding: 42px 0 36px;
  background: #fff;
  border-bottom: 1px solid #e8e5e2;
}
.product-photo-carousel .photo-carousel-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}
.product-photo-carousel h2 {
  margin: 7px 0 8px;
  color: #252830;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -1px;
}
.photo-carousel-heading p { margin: 0; color: #616871; font-size: 16px; line-height: 1.5; }
.photo-carousel-controls { display: flex; gap: 8px; flex-shrink: 0; }
.photo-carousel-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid #dcdfe3;
  border-radius: 9px;
  background: #fff;
  color: #30343b;
  font-size: 14px;
  font-weight: 700;
  padding: 10px;
}
.photo-carousel-controls .photo-carousel-toggle { padding-inline: 14px; }
.photo-carousel-controls svg { width: 18px; height: 18px; }
.photo-carousel-controls button:hover { border-color: #ed701b; background: #fff6ef; }
.photo-carousel-controls button:disabled { opacity: .4; cursor: default; }
.photo-carousel-viewport {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: none;
  scrollbar-width: thin;
  scrollbar-color: #d5c4b7 #f5f3f1;
  padding: 3px 0 14px;
}
.photo-carousel-card {
  flex: 0 0 224px;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  scroll-margin-inline: 0;
  border: 1px solid #e6e7e9;
  border-radius: 12px;
  overflow: hidden;
  color: #30343b;
  background: #fff;
  text-decoration: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.photo-carousel-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  flex-shrink: 0;
  width: 100%;
  overflow: hidden;
  background: #f7f7f6;
}
.photo-carousel-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 420ms cubic-bezier(.2,.65,.3,1), opacity 180ms ease;
}
.photo-carousel-card[data-image-state="pending"] img,
.photo-carousel-card[data-image-state="loading"] img { opacity: 0; }
.photo-carousel-image img[hidden] { display: none; }
.photo-carousel-image .photo-unavailable { position: absolute; padding: 20px; text-align: center; font-size: 14px; color: #737982; }
.photo-carousel-image .photo-unavailable[hidden] { display: none; }
.photo-carousel-name { margin: 14px 14px 6px; min-height: 2.8em; font-size: 15px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.photo-carousel-cta { margin-top: auto; padding: 0 14px 14px; color: #b74e08; font-size: 14px; font-weight: 700; }
.photo-carousel-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 14px; color: #68707a; line-height: 1.5; }
.photo-carousel-viewport:focus-visible,
.photo-carousel-card:focus-visible,
.photo-carousel-controls button:focus-visible { outline: 3px solid #ed701b; outline-offset: 2px; }
.photo-carousel-card:focus-visible { outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .photo-carousel-card:hover { border-color: #ed701b; box-shadow: 0 5px 16px #29201912; }
  .photo-carousel-card:hover img,
  .photo-carousel-card:focus-visible img { transform: scale(1.04); }
}
@media (max-width: 700px) {
  .product-photo-carousel { padding-block: 28px; }
  .product-photo-carousel .photo-carousel-heading { align-items: start; flex-direction: column; gap: 16px; }
  .photo-carousel-card { flex-basis: 172px; }
  .photo-carousel-viewport { gap: 12px; }
  .photo-carousel-footer { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-carousel-card, .photo-carousel-image img { transition: none; }
}
