/* Sunday Supper product detail — scoped to main-product section.
   Accent + media colors come from --pdp-accent / --pdp-media-bg
   (set per product in components/product/detail.html). */

.product-detail--sunday .product-detail__media-gallery {
  --padding-inline-start: calc(
    var(--detail-padding-inline-start, 0px) + var(--ss-container-pad, 0px)
  );
  --padding-inline-end: calc(
    var(--detail-padding-inline-end, 0px) + var(--ss-container-pad, 0px)
  );
}

.product-detail--sunday {
  font-family: var(--ss-font-body);
}

/* Breadcrumb sits above the media + info columns (outside the flex row) */
.product-detail-wrapper .product-detail__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ss-space-2);
  margin-top: 50px;
}

.product-detail-wrapper .product-detail__crumb,
.product-detail-wrapper .product-detail__crumb-sep {
  font-family: var(--ss-font-display);
  font-size: 30px;
  font-weight: var(--ss-font-weight-bold);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(var(--pdp-accent, 230, 59, 46));
}

.product-detail-wrapper a.product-detail__crumb {
  text-decoration: none;
}

.product-detail-wrapper a.product-detail__crumb:hover {
  filter: brightness(1.12);
}

.product-detail-wrapper .product-detail__crumb-sep {
  opacity: 0.75;
}

/* ---- Media (left): product image inside an accent square ---- */
.product-detail--sunday .product-detail__media-group {
  align-self: start;
}

.product-detail--sunday .media-gallery__list-wrapper {
  background: rgb(var(--pdp-media-bg, 250, 214, 57));
  border-radius: 0;
}

.product-detail--sunday .media-gallery__media {
  padding: clamp(var(--ss-space-4), 4vw, var(--ss-space-9));
  background: transparent;
}

.product-detail--sunday .media-gallery__image {
  object-fit: contain;
}

/* Hover magnify on the main image (desktop + fine pointer). Click still
   opens the existing full preview modal. */
@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
  .product-detail--sunday
    .media-gallery__item:not([data-media-type="video"]):not(
      [data-media-type="external_video"]
    )
    .media-gallery__media {
    overflow: hidden;
  }

  .product-detail--sunday
    .media-gallery__item:not([data-media-type="video"]):not(
      [data-media-type="external_video"]
    )
    .media-gallery__image {
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.18s ease-out;
    will-change: transform;
  }

  .product-detail--sunday
    .media-gallery__item:not([data-media-type="video"]):not(
      [data-media-type="external_video"]
    )
    .media-gallery__media.is-zooming
    .media-gallery__image {
    transform: scale(var(--media-zoom-scale, 1.85));
    transition: transform 0.08s ease-out;
  }
}

/* Keep the media stage a constant height so switching between images with
   different original aspect ratios doesn't make the gallery jump. The box is
   pinned to the tallest image's ratio (--min-aspect-ratio, set per product),
   so nothing is cropped — shorter images simply center on the media bg.
   This overrides the base rule that binds the height to the active slide's
   --aspect-ratio (which media-gallery.js rewrites on every switch). */
@media (min-width: 960px) {
  .product-detail--sunday
    .product-detail__media-gallery[data-desktop-layout="thumbnail-flatten"]
    .media-gallery__list,
  .product-detail--sunday
    .product-detail__media-gallery[data-desktop-layout="thumbnail-carousel"]
    .media-gallery__list {
    aspect-ratio: var(--min-aspect-ratio);
  }

  .product-detail--sunday
    .product-detail__media-gallery[data-desktop-layout="thumbnail-flatten"]
    .media-gallery__media,
  .product-detail--sunday
    .product-detail__media-gallery[data-desktop-layout="thumbnail-carousel"]
    .media-gallery__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .product-detail--sunday
    .product-detail__media-gallery[data-desktop-layout="thumbnail-flatten"]
    .media-gallery__image,
  .product-detail--sunday
    .product-detail__media-gallery[data-desktop-layout="thumbnail-carousel"]
    .media-gallery__image {
    height: 100%;
  }
}

.product-detail--sunday .media-gallery__thumbnails {
  padding-inline: 0;
  margin-block-start: var(--ss-space-3);
}

/* Enlarge the prev/next arrows that flank the thumbnail strip. */
.product-detail--sunday .media-gallery__thumbnail-arrows .media-gallery__arrow {
  padding: 10px;
}

.product-detail--sunday
  .media-gallery__thumbnail-arrows
  .media-gallery__arrow
  .icon {
  width: 16px;
  height: 16px;
}

.product-detail--sunday .media-gallery__thumbnail {
  border-radius: 0;
  overflow: hidden;
}

/* ---- Info column (right): on the page background, accent text ---- */
.product-detail--sunday .product-detail__info--sunday {
  align-self: start;
  display: flex;
  flex-flow: row wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: var(--ss-space-3) var(--ss-space-6);
}

.product-detail--sunday .product-detail__info--sunday > * {
  flex: 0 0 100%;
  margin: 0;
}

/* Stars */
.product-detail--sunday .product-detail__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ss-space-3);
}

.product-detail--sunday .product-detail__stars {
  display: flex;
  gap: 4px;
  color: rgb(var(--pdp-accent));
}

.product-detail--sunday .product-detail__stars svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.product-detail--sunday .product-detail__stars svg:nth-child(n + 6) {
  display: none;
}

.product-detail--sunday .product-detail__review-text {
  color: rgba(var(--color-light-text));
  font-weight: var(--ss-font-weight-medium);
}

/* Title */
.product-detail--sunday .product-detail__title {
  font-family: var(--ss-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--ss-font-weight-black);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: rgb(var(--pdp-accent));
}

/* Price */
.product-detail--sunday .product-detail__price {
  gap: 0;
}

.product-detail--sunday .product-detail__price .product-price {
  font-family: var(--ss-font-body);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: var(--ss-font-weight-bold);
  line-height: 1;
  color: var(--ss-color-text, #000);
}

.product-detail--sunday .product-detail__price .body4 {
  display: none;
}

/* Variant picker */
.product-detail--sunday .product-detail__variant-picker {
  gap: var(--ss-space-3);
}

.product-detail--sunday
  .product-detail__variant-picker
  .variant-picker__group-label {
  font-family: var(--ss-font-display);
  font-size: var(--ss-font-size-xs);
  font-weight: var(--ss-font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-detail--sunday
  .product-detail__variant-picker
  .variant-picker__button {
  min-width: 2.75rem;
  padding: 0.5rem 1rem;
}

/* Description */
.product-detail--sunday .product-detail__description {
  font-size: var(--ss-font-size-sm);
  line-height: 1.5;
  color: rgba(var(--color-text));
  margin-bottom: var(--ss-space-6);
}

.product-detail--sunday .product-detail__description p,
.product-detail--sunday .product-detail__description ul {
  margin: 0 0 var(--ss-space-3);
}

.product-detail--sunday .product-detail__description p:last-child {
  margin-bottom: 0;
}

.product-detail--sunday .product-detail__description strong,
.product-detail--sunday .product-detail__description b {
  display: inline-block;
  margin-block-end: var(--ss-space-1);
  font-weight: var(--ss-font-weight-bold);
}

/* ---- Purchase row: ADD TO CART (left) + qty (right), left-aligned ---- */
.product-detail--sunday .product-detail__buy-buttons {
  flex: 0 1 auto;
}

.product-detail--sunday .product-detail__quantity-selector {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-detail--sunday
  .product-detail__quantity-selector
  theme-input-number[class*="product-form-"] {
  border-block-start: 1px solid rgb(var(--pdp-accent));
  border-block-end: 1px solid rgb(var(--pdp-accent));
}

.product-detail--sunday .product-detail__buy-buttons .form__buttons {
  gap: 0;
  margin: 0;
}

.product-detail--sunday .product-detail__buy-buttons .button {
  display: inline-flex;
  width: auto;
  min-width: 15rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--ss-space-4);
  /* Tight, em-based padding so the display type fills the button like the
     mini-cart checkout CTA. Vertical padding is symmetric; optical centering
     of the display font is handled on the label below. */
  padding: 0.36em 0.5em 0.18em;
  font-family: var(--ss-font-display);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: var(--ss-font-weight-black);
  line-height: 0.76;
  text-transform: uppercase;
  color: rgb(var(--pdp-accent-contrast, 255, 255, 255));
  background-color: rgb(var(--pdp-accent));
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.product-detail--sunday
  .product-detail__buy-buttons
  .button.product-detail__atc--no-arrow {
  justify-content: center;
}

.product-detail--sunday .product-detail__buy-buttons .button::after {
  display: none;
  content: none;
}

.product-detail--sunday .product-detail__buy-buttons .button:hover {
  color: rgb(var(--pdp-accent-contrast, 255, 255, 255));
  background-color: rgb(var(--pdp-accent));
  filter: brightness(1.08);
  transform: none;
}

.product-detail--sunday .product-detail__buy-buttons .button .ss-btn__label {
  /* Display font caps sit high in the line box (empty space at the bottom);
     a tight line-height + small downward nudge optically centers them. */
  line-height: 0.76;
  transform: translateY(0.05em);
}

.product-detail--sunday .product-detail__atc-arrow {
  display: block;
  flex: none;
  width: 1.5em;
  height: 0.95em;
  fill: currentColor;
}

/* Quantity stepper: accent − | cream qty | accent + */
.product-detail--sunday .product-detail__quantity-selector > .body3 {
  display: none;
}

.product-detail--sunday .product-detail__quantity-selector theme-input-number {
  display: inline-flex;
  align-items: stretch;
  width: auto;
  height: 3.5rem;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.product-detail--sunday
  .product-detail__quantity-selector
  theme-input-number::before,
.product-detail--sunday
  .product-detail__quantity-selector
  theme-input-number::after {
  display: none;
  content: none;
}

.product-detail--sunday
  .product-detail__quantity-selector
  theme-input-number
  button[name="minus"],
.product-detail--sunday
  .product-detail__quantity-selector
  theme-input-number
  button[name="plus"] {
  display: flex;
  flex: 0 0 3.5rem;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  color: rgb(var(--pdp-accent-contrast, 255, 255, 255));
  background-color: rgb(var(--pdp-accent));
  border: none;
  border-radius: 0;
}

.product-detail--sunday
  .product-detail__quantity-selector
  theme-input-number
  button[name="minus"]:disabled,
.product-detail--sunday
  .product-detail__quantity-selector
  theme-input-number
  button[name="plus"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.product-detail--sunday
  .product-detail__quantity-selector
  theme-input-number
  button[name="minus"]
  .icon,
.product-detail--sunday
  .product-detail__quantity-selector
  theme-input-number
  button[name="plus"]
  .icon {
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.product-detail--sunday
  .product-detail__quantity-selector
  theme-input-number
  button[name="minus"]
  .icon
  path,
.product-detail--sunday
  .product-detail__quantity-selector
  theme-input-number
  button[name="plus"]
  .icon
  path {
  stroke: currentColor;
  stroke-width: 2.5;
}

.product-detail--sunday
  .product-detail__quantity-selector
  theme-input-number
  input[type="number"] {
  flex: 0 0 3.5rem;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  font-family: var(--ss-font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: var(--ss-font-weight-black);
  line-height: 1;
  color: rgb(var(--pdp-accent));
  text-align: center;
  appearance: textfield;
  background: var(--ss-cream);
  border: none;
  border-radius: 0;
  outline: none;
}

/* Hide volume "each" pricing per spec */
.product-detail--sunday .product-detail__quantity-selector .volume-pricing__tip,
.product-detail--sunday
  .product-detail__quantity-selector
  .quantity-selector__rules,
.product-detail--sunday .product-detail__volume-pricing {
  display: none !important;
}

@media (max-width: 959px) {
  .product-detail--sunday .product-detail__buy-buttons,
  .product-detail--sunday .product-detail__quantity-selector {
    flex: 1 1 100%;
  }

  .product-detail--sunday
    .product-detail__quantity-selector
    theme-input-number {
    width: fit-content;
  }
}

@media (min-width: 960px) {
  .product-detail--sunday[data-desktop-direction="row"]
    .product-detail__info--sunday,
  .product-detail--sunday[data-desktop-direction="row"]
    .product-detail__media-group {
    position: sticky;
    inset-block-start: calc(
      var(--detail-padding-block-start, 0px) + var(--ss-space-4)
    );
  }
}
