body.page-preview .phone-shop {
  max-width: 1110px;
  margin: clamp(58px, 9vw, 106px) auto 0;
  scroll-margin-top: 104px;
  --shop-accent: #ff4500;
  --shop-outline: #37302d;
  --shop-text: #f7f4f2;
}

.phone-shop-heading {
  display: grid;
  gap: 12px;
  padding-block: 23px;
  border-top: 1px solid var(--shop-outline);
}

.phone-shop-heading h2 {
  margin: 0;
  color: var(--shop-text);
  font-size: clamp(27px, 4.2vw, 48px);
  line-height: 1.14;
  letter-spacing: -.035em;
}

.page-preview .phone-shop-heading p {
  margin: 0;
  color: #d4c7c1;
  font-size: 14px;
  line-height: 1.65;
}

.phone-shop-product {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--shop-outline);
  border-radius: 26px;
  background: #131211;
}

.phone-shop-stage {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 328px;
  margin: 0;
  padding: 25px;
  overflow: hidden;
  border-right: 1px solid var(--shop-outline);
  background:
    radial-gradient(ellipse at 50% 52%, #302922, #141211 66%);
  background:
    radial-gradient(ellipse at 50% 54%, color-mix(in srgb, var(--shop-finish) 34%, #25201c), #151210 70%);
}

.phone-shop-artwork {
  display: grid;
  place-items: center;
  min-height: 240px;
  isolation: isolate;
}

.phone-shop-stage figcaption {
  position: relative;
  margin-top: 13px;
  color: #eee5e0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.phone-shop-render {
  position: relative;
  width: 125px;
  aspect-ratio: 0.52;
  padding: 4px;
  border: 1px solid #fff8;
  border-radius: 24px;
  background: linear-gradient(150deg, #ffffff39, transparent 43%, #0004 89%), var(--shop-finish);
  box-shadow: 7px 16px 24px #000b, 0 0 29px color-mix(in srgb, var(--shop-finish) 44%, transparent);
  transform: rotate(-10deg);
}

.phone-shop-render::before,
.phone-shop-render::after {
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: var(--shop-finish);
  box-shadow: inset 0 1px #fffa;
  content: '';
}

.phone-shop-render::before { left: -3px; top: 45px; height: 31px; }
.phone-shop-render::after { right: -3px; top: 52px; height: 32px; }

.phone-shop-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border: 2px solid #080809;
  border-radius: 19px;
  background: linear-gradient(150deg, #2e2521, #0d0d11 74%);
  background:
    linear-gradient(180deg, #08080c23, #100b0a40 62%, #090809a8),
    url('../img/phone/wallpaper-dark.jpg') center / cover,
    linear-gradient(150deg, #2e2521, #0d0d11 74%);
}

.phone-shop-screen::before,
.phone-shop-screen::after {
  position: absolute;
  left: 50%;
  border-radius: 99px;
  transform: translateX(-50%);
  content: '';
}

.phone-shop-screen::before { top: 7px; width: 37px; height: 10px; background: #050507; }
.phone-shop-screen::after { bottom: 6px; width: 33px; height: 2px; background: #fff8; }

.phone-shop-controls {
  display: grid;
  align-content: center;
  gap: 20px;
  min-width: 0;
  padding: clamp(23px, 4vw, 44px);
}

.phone-shop-item {
  display: flex;
  align-items: center;
  gap: 13px;
}

.phone-shop-item img { width: 58px; height: 58px; object-fit: contain; }

.phone-shop-item h3 {
  margin: 0;
  color: var(--shop-text);
  font-size: clamp(20px, 2.8vw, 29px);
  font-weight: 850;
  letter-spacing: -.02em;
}

.page-preview .phone-shop-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0;
  color: #c7bab4;
  font-size: 13px;
}

.phone-shop-price strong { color: #fff; font-size: 16px; }
.phone-shop-finishes { min-width: 0; border: 0; margin: 0; padding: 0; }
.phone-shop-finishes legend { margin-bottom: 10px; color: var(--shop-text); font-size: 14px; font-weight: 750; }

.phone-shop-swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.phone-shop-option { position: relative; cursor: pointer; }

.phone-shop-option input {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}

.phone-shop-option-face {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 68px;
  height: 100%;
  padding: 8px;
  border: 1px solid #423a36;
  border-radius: 9px;
  color: #ede3de;
  background: #1d1917;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.phone-shop-option-face [data-phone-shop-color] { min-width: 0; overflow-wrap: anywhere; }

.phone-shop-option-face::before {
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid #fff6;
  border-radius: 50%;
  background: var(--shop-swatch);
  content: '';
}

.phone-shop-option:hover .phone-shop-option-face { border-color: #c58064; }

.phone-shop-option input:checked + .phone-shop-option-face {
  border-color: #ff7140;
  color: #fff;
  background: #402318;
}

.phone-shop-option input:focus-visible + .phone-shop-option-face,
.phone-shop :is(button, a):focus-visible {
  outline: 2px solid #ffbc9f;
  outline-offset: 3px;
}

.phone-shop-buy,
.phone-shop-cancel {
  min-height: 45px;
  padding: 8px 16px;
  border: 1px solid #ff794d;
  border-radius: 10px;
  color: #fff;
  background: #ae3008;
  font-size: 13px;
  font-weight: 800;
}

.phone-shop-buy:not(:disabled):hover { background: #c1350a; }
.phone-shop-buy:disabled { cursor: default; opacity: .55; }
.phone-shop-footer {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px clamp(18px, 3vw, 28px);
  border-top: 1px solid var(--shop-outline);
  background: #1b1715;
}

.phone-shop-feedback {
  grid-column: 1 / -1;
  padding: 12px clamp(18px, 3vw, 28px);
  border-top: 1px solid var(--shop-outline);
}

.phone-shop-feedback:has([role="status"]:empty) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
}
.page-preview .phone-shop-feedback [role="status"] { margin: 0 0 6px; color: #e4f8de; font-size: 13px; line-height: 1.5; }
.phone-shop-feedback a { color: #ffad8e; font-size: 13px; font-weight: 800; text-underline-offset: 3px; }

.phone-shop-dialog {
  position: fixed;
  width: min(410px, calc(100% - 32px));
  max-width: 100%;
  margin: auto;
  padding: clamp(19px, 4vw, 28px);
  border: 1px solid #61514a;
  border-radius: 18px;
  color: var(--shop-text);
  background: #1a1614;
  box-shadow: 0 20px 70px #0009;
}

.phone-shop-dialog::backdrop { background: #080605bf; }
.phone-shop-dialog h3 { margin: 0 0 16px; color: var(--shop-text); font-size: 19px; line-height: 1.45; }
.phone-shop-summary { display: grid; gap: 8px; margin: 0 0 19px; padding: 12px; border: 1px solid var(--shop-outline); border-radius: 9px; }
.phone-shop-summary div { display: flex; justify-content: space-between; gap: 9px; font-size: 13px; }
.phone-shop-summary dt { color: #cebbb2; }
.phone-shop-summary dd { margin: 0; font-weight: 800; text-align: right; }
.phone-shop-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.phone-shop-cancel { border-color: #65534b; background: #2b231f; }
.phone-shop-cancel:hover { background: #43352d; }
.phone-shop [hidden] { display: none !important; }

@media (max-width: 770px) {
  .phone-shop-product { grid-template-columns: minmax(0, 1fr); }
  .phone-shop-stage { min-height: 284px; padding: 18px 16px; border-right: 0; border-bottom: 1px solid var(--shop-outline); }
  .phone-shop-artwork { min-height: 195px; }
  .phone-shop-render { width: 99px; }
}

@media (max-width: 400px) {
  .phone-shop-controls { padding-inline: 18px; }
  .phone-shop-option-face { padding-inline: 6px; }
  .phone-shop-footer .phone-shop-price { display: grid; gap: 0; }
}
