.product-page {
  background: var(--soft-paper);
}

.dtf-main {
  min-height: 100svh;
  background:
    linear-gradient(180deg, var(--silver-soft) 0, var(--soft-paper) 300px, var(--paper) 300px);
}

.dtf-product-shell {
  width: min(100%, 1480px);
  margin-inline: auto;
  padding: 38px var(--page-gutter) clamp(100px, 10vw, 150px);
}

.dtf-breadcrumb {
  display: flex;
  margin-bottom: 28px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.dtf-breadcrumb a {
  transition: color 180ms ease;
}

.dtf-breadcrumb a:hover {
  color: var(--brand-red);
}

.dtf-product {
  display: grid;
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid var(--line);
  background: var(--paper);
  grid-template-columns: minmax(0, 1.03fr) minmax(410px, 0.97fr);
  gap: clamp(42px, 5vw, 78px);
}

.dtf-gallery {
  min-width: 0;
}

.dtf-gallery-main {
  position: relative;
  width: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--brand-charcoal);
  cursor: zoom-in;
  aspect-ratio: 1.02;
}

.dtf-gallery-main > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease;
}

.dtf-gallery-main:hover > img {
  transform: scale(1.025);
}

.dtf-gallery-zoom {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  color: var(--brand-charcoal);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.dtf-gallery-zoom svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.dtf-thumbnails {
  display: grid;
  margin-top: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dtf-thumbnail {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--silver-soft);
  cursor: pointer;
  aspect-ratio: 1;
  transition: border-color 180ms ease, transform 180ms ease;
}

.dtf-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.dtf-thumbnail:hover {
  transform: translateY(-2px);
}

.dtf-thumbnail.is-active {
  border-color: var(--brand-red);
}

.dtf-configurator {
  min-width: 0;
  padding-top: 5px;
}

.dtf-configurator h1 {
  max-width: 660px;
  margin: 0;
  font-family: var(--primary-title);
  font-size: clamp(42px, 4vw, 64px);
  font-weight: 600;
  line-height: 0.84;
  letter-spacing: -0.035em;
}

.dtf-lead {
  max-width: 620px;
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.dtf-production-note {
  display: flex;
  margin-top: 25px;
  padding: 15px 17px;
  align-items: center;
  gap: 11px;
  border-left: 3px solid var(--brand-red);
  background: var(--silver-soft);
  font-size: 12px;
  font-weight: 600;
}

.dtf-production-note svg {
  width: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--brand-red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.dtf-form {
  margin-top: 34px;
}

.dtf-fieldset {
  margin: 0;
  padding: 0 0 29px;
  border: 0;
}

.dtf-fieldset + .dtf-fieldset,
.dtf-upload-group,
.dtf-note-field {
  padding-top: 2px;
}

.dtf-fieldset legend,
.dtf-field-label {
  display: block;
  margin-bottom: 13px;
  padding: 0;
  color: var(--brand-charcoal);
  font-family: var(--headline);
  font-size: 13px;
  font-weight: 500;
}

.dtf-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.dtf-choice {
  position: relative;
  cursor: pointer;
}

.dtf-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dtf-choice span {
  display: inline-flex;
  min-height: 47px;
  padding: 0 15px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.dtf-choice:hover span {
  border-color: var(--brand-silver);
}

.dtf-choice input:checked + span {
  border-color: var(--brand-charcoal);
  background: var(--brand-charcoal);
  color: var(--paper);
}

.dtf-choice input:focus-visible + span {
  outline: 2px solid var(--brand-red);
  outline-offset: 3px;
}

.dtf-radio-stack {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.dtf-radio-stack input {
  accent-color: var(--brand-red);
}

.dtf-upload-group {
  margin-bottom: 29px;
}

.dtf-upload {
  display: flex;
  min-height: 145px;
  padding: 22px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1.5px dashed var(--brand-silver);
  border-radius: 15px;
  background: color-mix(in srgb, var(--brand-silver) 8%, var(--paper));
  cursor: pointer;
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease;
}

.dtf-upload:hover,
.dtf-upload.is-dragging,
.dtf-upload.has-file {
  border-color: var(--brand-red);
  background: color-mix(in srgb, var(--brand-red) 5%, var(--paper));
}

.dtf-upload.has-file {
  border-style: solid;
}

.dtf-upload.has-file small {
  color: var(--brand-red);
  font-size: 13px;
  font-weight: 600;
}

.dtf-upload:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 3px;
}

.dtf-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.dtf-upload svg {
  width: 27px;
  margin-bottom: 11px;
  fill: none;
  stroke: var(--brand-red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.dtf-upload strong {
  font-family: var(--headline);
  font-size: 13px;
  font-weight: 500;
}

.dtf-upload small {
  max-width: 420px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.dtf-note-field {
  display: block;
  margin-bottom: 29px;
}

.dtf-note-field textarea {
  width: 100%;
  padding: 15px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--brand-charcoal);
  background: var(--paper);
  font: 13px/1.55 var(--body);
}

.dtf-note-field textarea:focus {
  border-color: var(--brand-red);
  outline: 0;
}

.dtf-order-summary {
  margin-top: 4px;
  padding-top: 27px;
  border-top: 1px solid var(--line);
}

.dtf-total-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.dtf-total-line span {
  display: block;
  font-family: var(--headline);
  font-size: 13px;
  font-weight: 600;
}

.dtf-total-line small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.dtf-total-line strong {
  font-family: var(--headline);
  font-size: 29px;
  font-weight: 600;
  line-height: 1;
}

.dtf-buy-row {
  display: grid;
  margin-top: 23px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
}

.dtf-quantity {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  grid-template-columns: 38px 38px 38px;
}

.dtf-quantity button,
.dtf-quantity output {
  display: grid;
  min-height: 54px;
  padding: 0;
  place-items: center;
  border: 0;
  background: var(--paper);
  font-size: 14px;
}

.dtf-quantity button {
  cursor: pointer;
}

.dtf-quantity button:hover {
  background: var(--silver-soft);
}

.dtf-quantity output {
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-weight: 600;
}

.dtf-add-button {
  display: inline-flex;
  min-height: 56px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 14px;
  background: var(--brand-red);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--headline);
  font-size: 13px;
  font-weight: 600;
  transition: background 180ms ease, transform 180ms ease;
}

.dtf-add-button:hover {
  background: var(--brand-charcoal);
  transform: translateY(-2px);
}

.dtf-add-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.dtf-form-status {
  min-height: 20px;
  margin: 11px 0 0;
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 600;
}

.dtf-benefits {
  display: grid;
  margin-top: 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dtf-benefits article {
  min-height: 250px;
  padding: 37px clamp(24px, 3vw, 44px);
}

.dtf-benefits article:not(:last-child) {
  border-right: 1px solid var(--line);
}

.dtf-benefits strong {
  color: var(--brand-red);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.dtf-benefits h2 {
  margin: 42px 0 12px;
  font-family: var(--primary-title);
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.dtf-benefits p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.dtf-lightbox {
  width: min(92vw, 1100px);
  max-height: 92svh;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 18px;
  background: var(--brand-charcoal);
}

.dtf-lightbox::backdrop {
  background: rgb(0 0 0 / 78%);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.dtf-lightbox img {
  width: 100%;
  max-height: 88svh;
  display: block;
  border-radius: 18px;
  object-fit: contain;
}

.dtf-lightbox button {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

@media (max-width: 960px) {
  .dtf-product {
    grid-template-columns: 1fr;
  }

  .dtf-gallery {
    max-width: 760px;
    margin-inline: auto;
  }

  .dtf-configurator {
    max-width: 760px;
    margin-inline: auto;
  }

  .dtf-benefits {
    grid-template-columns: 1fr;
  }

  .dtf-benefits article {
    min-height: 0;
  }

  .dtf-benefits article:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 480px) {
  .dtf-product-shell {
    padding: 22px 0 88px;
  }

  .dtf-breadcrumb {
    padding-inline: 20px;
    overflow: hidden;
    font-size: 10px;
    white-space: nowrap;
  }

  .dtf-product {
    padding: 0 20px 56px;
    border-right: 0;
    border-left: 0;
    gap: 38px;
  }

  .dtf-gallery-main {
    margin-inline: -20px;
    width: calc(100% + 40px);
    border-radius: 0;
    aspect-ratio: 0.94;
  }

  .dtf-gallery-zoom {
    top: 14px;
    right: 14px;
  }

  .dtf-thumbnails {
    gap: 8px;
  }

  .dtf-thumbnail {
    border-radius: 9px;
  }

  .dtf-configurator h1 {
    font-size: clamp(38px, 11.4vw, 49px);
    overflow-wrap: break-word;
  }

  #acrylic-product-title {
    font-size: clamp(30px, 9.2vw, 42px);
  }

  .dtf-choice span {
    min-height: 45px;
    padding-inline: 13px;
    font-size: 12px;
  }

  .dtf-size-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dtf-size-grid .dtf-choice span {
    width: 100%;
  }

  .dtf-rush-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dtf-rush-grid .dtf-choice span {
    width: 100%;
  }

  .dtf-buy-row {
    grid-template-columns: 1fr;
  }

  .dtf-quantity {
    width: max-content;
  }

  .dtf-benefits {
    margin: 26px 20px 0;
  }

  .dtf-benefits article {
    padding: 31px 22px 34px;
  }

  .dtf-benefits h2 {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dtf-gallery-main > img,
  .dtf-thumbnail,
  .dtf-add-button {
    transition: none;
  }
}
