.sanri-harvest-root {
  --harvest-gap: 22px;
  --harvest-accent: #d83a6f;
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  margin: 0 auto;
  padding: 48px 0;
  color: #261e22;
  font: 400 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.sanri-harvest-root *, .sanri-harvest-root *::before, .sanri-harvest-root *::after {box-sizing: border-box;}
.sanri-harvest-root [hidden], .sanri-harvest-root dialog:not([open]) {display: none !important;}
.sanri-harvest-root .sanri-harvest-heading {margin: 0; padding: 0; text-align: center; background: transparent; border: 0;}
.sanri-harvest-root .sanri-harvest-heading h2 {
  margin: 0 0 10px;
  padding: 0;
  font: 750 clamp(27px, 3.5vw, 43px)/1.12 system-ui, sans-serif;
  color: #261e22;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.sanri-harvest-root .sanri-harvest-heading p {max-width: 680px; margin: 0 auto 15px; padding: 0; color: #5c5157; font: inherit; text-wrap: pretty;}
.sanri-harvest-root .sanri-harvest-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--harvest-gap)) / 3);
  gap: var(--harvest-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0;
  padding: 8px 0 23px;
  list-style: none;
}
.sanri-harvest-root .sanri-harvest-track::-webkit-scrollbar {display: none;}
.sanri-harvest-root .sanri-harvest-slide {display: block; min-width: 0; padding: 0; margin: 0; list-style: none; background: none; scroll-snap-align: start;}
.sanri-harvest-root .sanri-harvest-slide::before {content: none;}
.sanri-harvest-root .sanri-harvest-card {
  display: block;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 20px;
  background: #f3f5f1;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  cursor: zoom-in;
}
.sanri-harvest-root .sanri-harvest-card img, .sanri-harvest-root .sanri-harvest-large {
  display: block;
  max-width: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}
.sanri-harvest-root .sanri-harvest-card img {transition: transform .3s ease;}
.sanri-harvest-root .sanri-harvest-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #241f22;
  font: 650 13px/1.35 system-ui, sans-serif;
}
.sanri-harvest-root .sanri-harvest-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.sanri-harvest-root .sanri-harvest-controls, .sanri-harvest-root .sanri-harvest-light-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.sanri-harvest-root .sanri-harvest-arrow {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #39262e;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  cursor: pointer;
  transition: background-color .18s, color .18s;
}
.sanri-harvest-root .sanri-harvest-prev::after, .sanri-harvest-root .sanri-harvest-next::after {
  content: "";
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translateX(-2px) rotate(45deg);
}
.sanri-harvest-root .sanri-harvest-prev::after {transform: translateX(2px) rotate(-135deg);}
.sanri-harvest-root .sanri-harvest-arrow:disabled {opacity: .42; cursor: default;}
.sanri-harvest-root .sanri-harvest-range {min-width: 65px; text-align: center; color: #5c5157; font-variant-numeric: tabular-nums;}
.sanri-harvest-root :is(a,button,[tabindex]):focus-visible {outline: 3px solid #ad2051; outline-offset: 2px;}
.sanri-harvest-root .sanri-harvest-card:focus-visible {outline-offset: -4px;}
.sanri-harvest-root .sanri-harvest-dialog[open] {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  gap: 12px;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
  border: 0;
  background: #181419;
  color: #fff;
  overflow: hidden;
  overscroll-behavior: contain;
}
.sanri-harvest-dialog::backdrop {background: #181419;}
.sanri-harvest-root .sanri-harvest-close {justify-self: end;}
.sanri-harvest-root .sanri-harvest-close::before, .sanri-harvest-root .sanri-harvest-close::after {
  content: ""; grid-area: 1/1; width: 18px; height: 2px; background: currentColor; transform: rotate(45deg);
}
.sanri-harvest-root .sanri-harvest-close::after {transform: rotate(-45deg);}
.sanri-harvest-root .sanri-harvest-stage {min-height: 0; min-width: 0;}
.sanri-harvest-root .sanri-harvest-large {object-fit: contain;}
.sanri-harvest-root .sanri-harvest-caption {max-width: 260px; text-align: center; color: #fff; font: 650 16px/1.4 system-ui, sans-serif;}
@media (hover:hover) {
  .sanri-harvest-root .sanri-harvest-card:hover img {transform: scale(1.03);}
  .sanri-harvest-root .sanri-harvest-arrow:hover:enabled {background: var(--harvest-accent); color: #fff;}
}
@media (max-width:1024px) {
  .sanri-harvest-root .sanri-harvest-track {grid-auto-columns: calc((100% - var(--harvest-gap)) / 2);}
}
@media (max-width:768px) {
  .sanri-harvest-root {--harvest-gap: 14px;}
  .sanri-harvest-root .sanri-harvest-track {grid-auto-columns: calc((100% - var(--harvest-gap)) / 1.2);}
  .sanri-harvest-root .sanri-harvest-badge {top: 9px; left: 9px;}
}
@media (prefers-reduced-motion:reduce) {
  .sanri-harvest-root .sanri-harvest-card img, .sanri-harvest-root .sanri-harvest-arrow {transition: none;}
  .sanri-harvest-root .sanri-harvest-card:hover img {transform: none;}
}
