.assorted-page {
  --assorted-paper: #fbf8f1;
  --assorted-crust: #ead7bb;
  --assorted-cream: #f8edd9;
  --assorted-picked: #edf2e7;
  --assorted-nav-offset: 92px;
  max-width: 1220px;
}

.assorted-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 74px);
  margin-block: 16px clamp(32px, 5vw, 56px);
}

.assorted-hero .product-gallery, .assorted-hero-copy { min-width: 0; }
.assorted-hero .product-gallery-stage { height: auto; min-height: 0; }

.customer-ux:not(.admin-mode) .assorted-hero .product-gallery-stage .detail-main-img {
  aspect-ratio: 1.6;
  max-height: 370px;
  object-fit: cover;
}

.assorted-hero-copy h1 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 4.5vw, 4.35rem);
  overflow-wrap: anywhere;
}

.assorted-hero-copy p { color: var(--muted); margin: 0; max-width: 34rem; }

.assorted-builder-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 18px;
  margin-bottom: 20px;
}

.assorted-config, .assorted-preview {
  min-width: 0;
  padding: clamp(14px, 2.3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--assorted-paper);
}

.assorted-config h2, .assorted-contact h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(1.65rem, 3.3vw, 2.7rem);
  font-weight: 600;
}

.assorted-config > p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }

.assorted-preview {
  display: grid;
  grid-template-columns: minmax(98px, 1fr) minmax(0, .92fr);
  align-content: center;
  align-items: center;
  gap: clamp(10px, 2.8vw, 26px);
  background: var(--assorted-picked);
}

.assorted-preview h3 { color: var(--forest); font-size: 1.06rem; font-weight: 750; margin: 0 0 8px; }
.assorted-start { color: var(--muted); margin: 0; font-size: .86rem; line-height: 1.55; }

.assorted-plate {
  width: min(100%, 242px);
  margin: 0 auto;
  padding: clamp(8px, 1.1vw, 13px);
  aspect-ratio: 1;
  border: 1px solid #d4d0c0;
  border-radius: 50%;
  background: radial-gradient(circle, #f5eee2 61%, #e1d9c9 67%, #f8f4e9 69%, #fffdf6 73%, #e4dacc 100%);
  box-shadow: 0 9px 19px #43534226, inset 0 0 0 2px #fffdf7d9;
}

.assorted-wheel {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #f9f3e9;
  box-shadow: 0 0 0 1px #866b4920, 0 2px 4px #593c2320;
}

.assorted-wedge {
  position: absolute;
  inset: 0;
  display: block;
  transform: rotate(var(--slice-turn));
  background: radial-gradient(circle closest-side, #f3ebdc 37%, #e8ddc7 100%);
}

.assorted-wedge.is-filled {
  background: radial-gradient(circle closest-side, #f7e7c8 32%, #ead2a4 100%);
}

.assorted-wedge.is-filled::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle closest-side, transparent 84%, #6d473709 94%, #49251434);
}

.assorted-wedge img {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--slice-width);
  height: 50%;
  transform: translateX(-50%);
  object-fit: fill;
}

.assorted-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.assorted-picks li {
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--cream);
  color: var(--ink);
  font-size: .78rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.assorted-picks strong { font-variant-numeric: tabular-nums; white-space: nowrap; }

.assorted-toolbar {
  position: sticky;
  z-index: 5;
  top: var(--assorted-nav-offset);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.assorted-menu-status,
.assorted-menu-controls { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 8px; }
.assorted-menu-status p { color: var(--forest); font-size: .9rem; font-weight: 750; margin: 0; line-height: 1.4; }
.assorted-menu-controls input {
  min-width: 0;
  flex: 1;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-size: .88rem;
}

.assorted-filter, .assorted-to-pickup {
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--assorted-paper);
  color: var(--forest);
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
}

.assorted-filter[aria-pressed="true"], .assorted-to-pickup {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}

.assorted-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }

.assorted-option {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.assorted-option.is-selected {
  border-color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--forest);
  background: var(--assorted-picked);
}

.assorted-option-photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 380 / 280;
  border-radius: 6px;
  overflow: clip;
  background: var(--assorted-cream);
}

.assorted-option-photo img { width: 100%; height: 100%; object-fit: cover; }

.assorted-option-photo:not(:has(img))::before {
  content: '';
  width: 48%;
  height: 53%;
  background: repeating-linear-gradient(0deg, var(--assorted-crust) 0 12%, var(--white) 12% 20%);
  clip-path: polygon(0 43%, 74% 0, 100% 28%, 100% 62%, 32% 100%, 0 79%);
}

.assorted-option-photo span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 3px 5px;
  border-radius: 4px;
  color: var(--ink);
  background: var(--cream);
  font-size: .67rem;
  font-weight: 700;
  line-height: 1.2;
}

.assorted-option-details { display: grid; flex: 1; gap: 6px; grid-template-rows: 1fr auto; padding: 9px 4px 4px; }

.assorted-option-details h3 {
  margin: 0;
  color: var(--ink);
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.assorted-stepper { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px; align-items: center; }
.assorted-stepper span { text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; }

.assorted-stepper button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--assorted-paper);
  color: var(--forest);
  font-size: 1.31rem;
  font-weight: 750;
  line-height: 1;
}

.assorted-stepper button[data-assorted-delta="1"] { background: var(--forest); border-color: var(--forest); color: var(--white); }
.assorted-stepper button[aria-disabled="true"] { cursor: default; opacity: .4; }
.assorted-stepper button:not([aria-disabled="true"]):hover { box-shadow: inset 0 0 0 2px var(--olive); }
.assorted-builder [hidden] { display: none !important; }

.assorted-no-results { padding: 12px; margin: 0; color: var(--muted); background: var(--assorted-paper); border-radius: 6px; }

.assorted-contact {
  max-width: 710px;
  margin-top: 32px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 10px;
  scroll-margin-top: calc(var(--assorted-nav-offset) + 18px);
}

.assorted-contact .form-grid { margin-top: 14px; }
.assorted-contact button[type="submit"] { margin-top: 1rem; }

@media (max-width: 1020px) {
  .assorted-page { --assorted-nav-offset: 76px; }
  .assorted-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .assorted-page { --assorted-nav-offset: 66px; }
  .assorted-hero, .assorted-builder-top { grid-template-columns: minmax(0, 1fr); }
  .assorted-hero { gap: 16px; margin-block: 12px 23px; }
  .assorted-hero-copy { grid-row: 1; }
  .assorted-preview { grid-template-columns: minmax(98px, .82fr) minmax(0, 1fr); }
  .assorted-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .assorted-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 7px 8px; }
  .assorted-to-pickup { min-height: 32px; }
}

@media (max-width: 535px) {
  .assorted-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assorted-builder-top { gap: 9px; }
  .assorted-contact .form-grid { grid-template-columns: minmax(0, 1fr); }
}
