/* Full-scene photography must not inherit the transparent packshot's crop/float. */
.product-detail--photo-editorial .product-hero {
  margin-top: 0;
  background: var(--photo-base, #020a14);
  color: #fff4dc;
}
.product-detail--photo-editorial .berry-white-editorial,
.berry-white-editorial--collection {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: stretch;
  width: 100%;
  max-width: 1440px;
  height: auto;
  margin: 0 auto;
  padding: 0;
  background: var(--photo-base, #020a14);
}
.product-detail--photo-editorial .berry-white-editorial .berry-white-editorial__photo,
.category-editorial--vapes .berry-white-editorial--collection .berry-white-editorial__photo {
  grid-area: 1 / 1;
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  object-fit: contain;
  transform: none;
  translate: none;
  rotate: none;
  filter: none;
  animation: none;
  will-change: auto;
}
.berry-white-editorial__heading {
  grid-area: 1 / 1;
  z-index: 2;
  align-self: start;
  width: 38%;
  margin: 6% 0 0 8%;
}
.berry-white-editorial__photo-frame {
  grid-area: 1 / 1;
  position: relative;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
}
.berry-white-editorial__line {
  margin: 0 0 2.6cqw;
  padding: 0 0 1.7cqw;
  border-bottom: 1px solid #c39340;
  color: #edc87a;
  font-size: clamp(9px, 1.65cqw, 23px);
  font-weight: 500;
  letter-spacing: .27em;
  line-height: 1.5;
  text-transform: uppercase;
}
.berry-white-editorial .berry-white-editorial__title {
  margin: 0;
  color: #fff4dc;
  font-family: "DimeGothamBlack", sans-serif;
  font-size: 10.8cqw;
  font-weight: 900;
  line-height: .91;
  letter-spacing: -.06em;
  text-transform: uppercase;
}
.berry-white-editorial__title span { display: block; }
.berry-white-editorial__type {
  display: flex;
  align-items: center;
  gap: 2cqw;
  margin: 2.5cqw 0 0;
  color: #f2cf82;
  font-size: clamp(12px, 2.7cqw, 32px);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.berry-white-editorial__type :is(svg, img) { flex: 0 0 7.4cqw; width: 7.4cqw; height: 7.4cqw; object-fit: contain; }
.berry-white-editorial__type span { color: #fff4dc; }
.berry-white-editorial__specs {
  grid-area: 2 / 1;
  z-index: 2;
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 28px 24px 34px;
  background: linear-gradient(var(--photo-base, #020a14), var(--photo-detail, #071527));
}
.berry-white-editorial__specs dt {
  margin: 0 0 6px;
  color: #edc87a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
}
.berry-white-editorial__specs dd { margin: 0; color: #fff4dc; font-size: 19px; line-height: 1.35; text-wrap: pretty; }
.berry-white-editorial__specs > div + div::before {
  display: block;
  width: 40px;
  height: 1px;
  margin: 0 0 18px;
  background: #c39340;
  content: "";
}
.berry-white-editorial__botanical {
  grid-area: 1 / 1;
  z-index: 1;
  align-self: start;
  justify-self: end;
  width: 35%;
  aspect-ratio: 1;
  opacity: .65;
  background: url("../media/berry-white-botanical.svg") right top / contain no-repeat;
  /* Keep line art in the negative space, never across the package lettering. */
  mask-image: linear-gradient(to bottom, #000 8%, transparent 38%);
  pointer-events: none;
}
.product-detail--photo-editorial .product-overview { background: linear-gradient(var(--photo-detail, #071527), var(--photo-base, #020a14)); }
.product-detail--photo-editorial .berry-white-details-title {
  margin: 0 0 18px;
  color: #fff4dc;
  font: 900 clamp(28px, 4vw, 48px)/1.15 "DimeGothamBlack", sans-serif;
}
@media (min-width: 600px) {
  .berry-white-editorial__specs {
    grid-area: 1 / 1;
    align-self: start;
    width: 34%;
    margin: 46% 0 0 8%;
    padding: 3cqw 0 0;
    gap: 2.5cqw;
    border-top: 1px solid #c39340;
    background: none;
  }
  .berry-white-editorial__specs dt { margin-bottom: .5cqw; font-size: 1.7cqw; }
  .berry-white-editorial__specs dd { font-size: 3cqw; }
  .berry-white-editorial__specs > div + div::before { width: 5cqw; margin-bottom: 2cqw; }
}
@media (min-width: 1000px) {
  .product-detail--photo-editorial .berry-white-editorial {
    height: clamp(740px, 66vw, 920px);
    grid-template-rows: minmax(0, 1fr);
  }
  .product-detail--photo-editorial .berry-white-editorial__photo-frame {
    justify-self: end;
    height: 100%;
    min-height: 0;
    aspect-ratio: 1122 / 1402;
    max-width: 100%;
    mask-image: linear-gradient(to right, transparent, #000 18%);
  }
  .product-detail--photo-editorial .berry-white-editorial .berry-white-editorial__photo {
    height: 100%;
    min-height: 0;
  }
  .product-detail--photo-editorial .berry-white-editorial__heading { width: 40%; margin: 5% 0 0 6%; }
  .product-detail--photo-editorial .berry-white-editorial__line { max-width: 470px; margin-bottom: 24px; padding-bottom: 16px; font-size: 17px; }
  .product-detail--photo-editorial .berry-white-editorial__title { font-size: clamp(100px, 9cqw, 130px); }
  .product-detail--photo-editorial .berry-white-editorial__type { margin-top: 24px; gap: 24px; font-size: 25px; }
  .product-detail--photo-editorial .berry-white-editorial__type :is(svg, img) { flex-basis: 64px; width: 64px; height: 64px; }
  .berry-white-editorial__specs { width: 32%; margin: 36% 0 0 6%; padding-top: 24px; gap: 22px; }
  .berry-white-editorial__specs dt { font-size: 13px; margin-bottom: 7px; }
  .berry-white-editorial__specs dd { font-size: clamp(23px, 2.2cqw, 29px); }
  .berry-white-editorial__specs > div + div::before { width: 46px; margin-bottom: 20px; }
  .product-detail--photo-editorial .berry-white-editorial__botanical { width: 26%; }
}

/* The photo moves inside a fixed frame; the live text stays sharp and readable. */
@media (prefers-reduced-motion: no-preference) {
  .product-detail--photo-editorial[data-product-motion-ready] .berry-white-editorial .berry-white-editorial__photo {
    translate: 0 var(--product-art-y, 0px);
    transform-origin: 60% 50%;
    animation: berry-white-ken-burns 22s ease-in-out infinite alternate;
    animation-play-state: paused;
  }
  .product-detail--photo-editorial[data-product-motion-ready]:not(.product-motion-paused) .berry-white-editorial .berry-white-editorial__photo {
    animation-play-state: running;
  }
  .product-detail--photo-editorial[data-product-motion-ready] :is(.berry-white-editorial__heading, .berry-white-editorial__specs) {
    translate: 0 var(--berry-copy-y, 0px);
  }
  .product-detail--photo-editorial[data-product-motion-ready] .berry-white-editorial__botanical {
    translate: 0 var(--product-effect-y, 0px);
  }
  .product-detail--photo-editorial[data-product-motion-ready] .product-summary {
    translate: 0 var(--berry-detail-y, 0px);
  }
  .product-detail--photo-editorial[data-product-motion-ready] .product-attributes {
    translate: 0 calc(var(--berry-detail-y, 0px) * -.5);
  }
}
@keyframes berry-white-ken-burns {
  from { transform: scale(var(--berry-zoom-from, 1.035)); }
  to { transform: scale(var(--berry-zoom-to, 1.07)); }
}
@media (max-width: 599px) {
  .product-detail--photo-editorial .berry-white-editorial {
    --berry-zoom-from: 1.025;
    --berry-zoom-to: 1.045;
  }
}

/* Collection feature: a full-width composition, not a boxed-in portrait poster. */
.category-editorial--vapes .prerolls-product--berry-white .prerolls-product__art {
  padding: 0;
  place-items: stretch;
  background: #020a14;
}
/* The shared gold hover glow exposes light side bands around this opaque photo. */
.category-editorial--vapes .prerolls-product--berry-white .prerolls-product__art::before {
  content: none;
}
.category-editorial--vapes .prerolls-product--berry-white .prerolls-product__art > a {
  max-width: none;
  transform: none;
}
.prerolls-product--berry-white { scroll-margin-top: 84px; }
.berry-white-editorial--collection {
  max-width: none;
  min-height: 0;
  height: 100%;
  aspect-ratio: 4 / 5;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  font-family: var(--font-body, "DimeGotham", sans-serif);
}
.category-editorial--vapes .berry-white-editorial--collection .berry-white-editorial__photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-position: right bottom;
  /* Only blend the empty edge: the device, box and berries remain fully visible. */
  mask-image: linear-gradient(to right, transparent, #000 18%, #000 97%, transparent);
}
.berry-white-editorial--collection .berry-white-editorial__heading {
  margin: 7% 0 0 7%;
}
.berry-white-editorial--collection .berry-white-editorial__title { font-family: var(--font-display, "DimeGothamBlack", sans-serif); }
.berry-white-editorial--collection .berry-white-editorial__line { color: #edc87a; }
.berry-white-editorial--collection .berry-white-editorial__type { color: #f2cf82; }
@media (min-width: 901px) {
  .berry-white-editorial--collection {
    aspect-ratio: auto;
    min-height: 650px;
  }
}

/* Useful, touch-friendly interactions; the product title and copy remain static. */
.product-detail.product-detail--photo-editorial .product-availability li {
  min-height: 0;
  padding: 0;
  background: none;
  backdrop-filter: none;
}
.product-detail--photo-editorial .berry-detail-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(237, 200, 122, .18);
  border-radius: 999px;
  background: linear-gradient(145deg, #ffffff12, #ffffff07);
  box-shadow: inset 0 1px 0 #ffffff08, 0 4px 12px #0002;
  color: #fff4dc;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.product-detail--photo-editorial .berry-detail-chip:is(:hover, :focus-visible) {
  color: #07101b;
  background: #edc87a;
  border-color: #edc87a;
  box-shadow: 0 6px 20px #0004;
}
.product-detail--photo-editorial :is(.berry-detail-chip, .berry-format summary, .berry-format__info a):focus-visible {
  outline: 2px solid #fff4dc;
  outline-offset: 4px;
}
.product-detail--photo-editorial .product-attribute dd { align-items: center; }
.product-detail.product-detail--photo-editorial .product-form-factors {
  position: relative;
  gap: 12px;
}
.product-detail.product-detail--photo-editorial .product-form-factors li {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
}
.product-detail--photo-editorial .product-summary:has(.berry-format[open]) { z-index: 4; }
.product-detail--photo-editorial .berry-format summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 7px;
  border: 1px solid #edc87a33;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff0e, #ffffff03);
  box-shadow: 0 5px 16px #0003;
  cursor: pointer;
  list-style: none;
}
.product-detail--photo-editorial .berry-format summary::-webkit-details-marker { display: none; }
.product-detail--photo-editorial .berry-format summary::marker { content: ""; }
.product-detail--photo-editorial .berry-format[open] summary,
.product-detail--photo-editorial .berry-format summary:is(:hover, :focus-visible) {
  background: #edc87a18;
  border-color: #edc87a;
  box-shadow: 0 0 0 3px #edc87a12, 0 8px 24px #0005;
}
.product-detail--photo-editorial .berry-format__info {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  z-index: 5;
  width: min(330px, 100%);
  padding: 20px;
  border: 1px solid #edc87a66;
  border-radius: 16px;
  background: linear-gradient(145deg, #142638, #07101b);
  color: #fff4dc;
  box-shadow: 0 18px 45px #0008;
}
.product-detail--photo-editorial .berry-format__info strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}
.product-detail--photo-editorial .berry-format__info p {
  margin: 9px 0 12px;
  color: #d3d8dc;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}
.product-detail--photo-editorial .berry-format__info a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: #edc87a;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
@media (prefers-reduced-motion: no-preference) {
  .product-detail--photo-editorial :is(.berry-detail-chip, .berry-format summary) {
    transition: transform .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product-detail--photo-editorial :is(.berry-detail-chip, .berry-format summary):hover { transform: translateY(-3px); }
  .product-detail--photo-editorial :is(.berry-detail-chip, .berry-format summary):active { transform: translateY(0); }
}
