.product-modal {
  width: min(980px, 92vw);
  max-height: 92vh;
  overflow: hidden;
}

.modal-options {
  max-height: 92vh;
  overflow-y: auto;
}

.visual-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.visual-choice {
  justify-content: flex-start;
  padding: 7px;
}

.visual-choice > img,
.no-option {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--blush);
}

.no-option {
  display: grid;
  place-items: center;
  color: var(--wine);
  font-size: 25px;
}

.choice-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  line-height: 1.25;
}

.choice-copy > span {
  display: flex;
  align-items: flex-start;
  gap: 3px;
}

.choice-copy strong {
  color: var(--wine);
  font-size: 10px;
}

.visual-choice.is-unavailable {
  opacity: .52;
  cursor: not-allowed;
  background: #f4eeee;
}

.visual-choice.is-unavailable img {
  filter: grayscale(1);
}

.visual-choice.is-unavailable input {
  cursor: not-allowed;
}

.secret-spotlight {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 5vw;
  padding-top: 90px;
  padding-bottom: 90px;
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 209, 218, .85), transparent 32%),
    linear-gradient(135deg, #fff8ef, #ffe7ed 56%, #fff9f0);
  position: relative;
  overflow: hidden;
}

.secret-spotlight::before {
  content: "secret ✦ pack ✦ secret ✦ pack ✦";
  position: absolute;
  inset: auto -20px 16px auto;
  color: rgba(125, 24, 48, .08);
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 900;
  letter-spacing: -.08em;
  white-space: nowrap;
  pointer-events: none;
}

.secret-spotlight h2 {
  margin: 0;
  color: var(--wine);
  font-size: clamp(52px, 7vw, 92px);
  line-height: .88;
  letter-spacing: -.07em;
}

.secret-spotlight p {
  max-width: 560px;
  color: #73565b;
  font-size: 16px;
  line-height: 1.7;
}

.secret-spotlight-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.secret-spotlight-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: white;
  color: var(--wine);
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(125, 24, 48, .11);
}

.secret-spotlight-price {
  display: block;
  margin: 0 0 18px;
  color: var(--red);
  font-size: 30px;
  font-weight: 900;
}

.secret-spotlight-image {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transform: rotate(1.4deg);
}

.secret-spotlight-image img {
  display: block;
  width: 100%;
  border-radius: 34px;
  border: 10px solid white;
  box-shadow: 0 24px 60px rgba(125, 24, 48, .22);
}

.secret-spotlight-image span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--wine);
  color: white;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(80, 30, 40, .24);
}

.secret-pack-card {
  position: relative;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 215, 221, .9), transparent 35%),
    linear-gradient(145deg, #fff7f2, #ffe0e7 58%, #fff8ee);
  border-color: rgba(185, 29, 68, .25);
  box-shadow: 0 18px 42px rgba(125, 24, 48, .12);
}

.secret-pack-card .product-image {
  border: 2px solid rgba(255,255,255,.85);
}

.secret-pack-card .product-number {
  background: var(--wine);
  color: white;
}

.secret-ribbon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: 72%;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--wine);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(80, 30, 40, .16);
}

.secret-pack-card .build-button {
  background: var(--wine);
  color: white;
}

.secret-pack-card .build-button:hover {
  background: var(--red);
}

.secret-pack-modal > img {
  object-position: center;
}

.secret-pack-note {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(125, 24, 48, .13);
  border-radius: 18px;
  background: #fff7f3;
}

.secret-pack-note strong,
.secret-pack-note span {
  display: block;
}

.secret-pack-note strong {
  color: var(--wine);
  font-size: 14px;
}

.secret-pack-note span {
  margin-top: 4px;
  color: #75565d;
  font-size: 13px;
  line-height: 1.45;
}

.secret-pack-note.special {
  background: linear-gradient(135deg, #ffe2e9, #fff7ec);
  border-color: rgba(185, 29, 68, .22);
}

.secret-pack-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.secret-pack-list span {
  padding: 10px 12px;
  border-radius: 14px;
  background: white;
  color: var(--wine);
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(125, 24, 48, .1);
}

.example-gallery {
  margin: 18px 0 2px;
  padding: 14px;
  border: 1px solid rgba(125, 24, 48, .14);
  border-radius: 18px;
  background: #fff7f3;
}

.example-gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.example-gallery-head strong {
  color: var(--wine);
  font-size: 14px;
}

.example-gallery-head span {
  color: #80656a;
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}

.example-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 8px;
}

.example-gallery-track {
  min-width: 0;
}

.example-card {
  display: none;
  width: 100%;
  border: 0;
  padding: 0;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(80, 30, 40, .08);
  transition: .2s;
}

.example-card.active {
  display: block;
}

.example-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(80, 30, 40, .14);
}

.example-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
}

.example-card span {
  display: block;
  padding: 7px 5px 8px;
  color: var(--wine);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.example-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(125, 24, 48, .18);
  border-radius: 50%;
  background: white;
  color: var(--wine);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(80, 30, 40, .08);
}

.example-arrow:hover {
  background: var(--wine);
  color: white;
}

.example-counter {
  grid-column: 1 / -1;
  color: var(--wine);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.example-carousel.single {
  grid-template-columns: 1fr;
}

.example-carousel.single .example-arrow {
  display: none;
}

.frame-preview-box {
  margin: 18px 0 4px;
  padding: 15px;
  border: 1px dashed rgba(125, 24, 48, .24);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff8f6, #fff);
}

.frame-preview-copy {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.frame-preview-copy strong {
  color: var(--wine);
  font-size: 15px;
}

.frame-preview-copy span,
.frame-preview-box small {
  color: #80656a;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
}

.frame-preview-stage {
  display: grid;
  place-items: center;
  min-height: 190px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 182, 193, .38), transparent 34%),
    radial-gradient(circle at 82% 28%, rgba(178, 218, 255, .35), transparent 30%),
    #fffdf9;
  border: 1px solid rgba(125, 24, 48, .08);
}

.frame-preview-charm {
  position: relative;
  display: grid;
  place-items: center;
  width: 158px;
  min-height: 158px;
  filter: drop-shadow(0 16px 22px rgba(80, 30, 40, .18));
}

.frame-preview-ring {
  position: absolute;
  top: 0;
  width: 34px;
  height: 34px;
  border: 5px solid rgba(148, 139, 138, .85);
  border-radius: 50%;
  background: transparent;
}

.frame-preview-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 122px;
  height: 122px;
  margin-top: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,230,236,.68));
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: rgba(125, 24, 48, .52);
  font-size: 15px;
  font-weight: 900;
  overflow: hidden;
  border: 9px solid rgba(255, 255, 255, .62);
  outline: 5px solid rgba(180, 190, 195, .45);
  box-shadow: inset 0 0 18px rgba(255,255,255,.86);
}

.frame-preview-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255,255,255,.34), transparent 42%, rgba(255,255,255,.28) 58%, transparent 73%);
  pointer-events: none;
}

.frame-preview-photo.has-photo span {
  display: none;
}

.frame-preview-photo.has-photo {
  background-color: white;
  background-size: cover;
  background-repeat: no-repeat;
  border: 0;
  outline: 0;
  box-shadow: none;
}

.frame-preview-photo.has-photo::after {
  display: none;
}

.frame-preview-upload {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  min-height: 42px;
  border-radius: 999px;
  background: var(--wine);
  color: white;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.frame-preview-upload input {
  display: none;
}

.frame-preview-box small {
  display: block;
  margin-top: 8px;
  text-align: center;
}

.frame-preview-none .frame-preview-photo,
.frame-preview-frame2 .frame-preview-photo {
  border-radius: 18px;
}

.frame-preview-frame1 .frame-preview-photo {
  width: 132px;
  height: 122px;
  margin-top: 30px;
  clip-path: path("M66 117 C20 83 3 58 10 30 C16 6 44 1 66 27 C88 1 116 6 122 30 C129 58 112 83 66 117 Z");
}

.frame-preview-frame3 .frame-preview-photo {
  width: 104px;
  height: 144px;
  border-radius: 18px;
}

.frame-preview-frame4 .frame-preview-photo {
  width: 92px;
  height: 150px;
  border-radius: 18px;
}

.frame-preview-frame5 .frame-preview-photo {
  width: 132px;
  height: 120px;
  border-radius: 42% 42% 48% 48% / 34% 34% 58% 58%;
  clip-path: polygon(50% 7%, 58% 16%, 74% 8%, 92% 18%, 96% 42%, 88% 72%, 70% 96%, 50% 99%, 30% 96%, 12% 72%, 4% 42%, 8% 18%, 26% 8%, 42% 16%);
}

.frame-preview-frame6 .frame-preview-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
}

.frame-preview-phone-small .frame-preview-photo {
  width: 84px;
  height: 108px;
  border-radius: 15px;
}

.frame-preview-frame8 .frame-preview-photo {
  width: 86px;
  height: 86px;
  border-radius: 16px;
}

@media (max-width: 650px) {
  .product-modal {
    overflow-y: auto;
  }

  .modal-options {
    max-height: none;
    overflow: visible;
  }

  .visual-choices {
    grid-template-columns: 1fr;
  }

  .secret-spotlight {
    grid-template-columns: 1fr;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .secret-spotlight-image {
    transform: none;
  }

  .secret-spotlight-image img {
    border-width: 7px;
    border-radius: 24px;
  }

  .secret-pack-list {
    grid-template-columns: 1fr;
  }

  .example-card img {
    aspect-ratio: 1.08;
  }

  .frame-preview-copy {
    display: block;
  }

  .frame-preview-copy span {
    display: block;
    margin-top: 5px;
    text-align: left;
  }
}
