.ys-product-refined {
  padding-top: 28px;
}

.ys-product-refined .ys-product-detail {
  gap: clamp(24px, 4vw, 58px);
}

.ys-product-refined .ys-product-summary {
  position: static;
  min-width: 0;
}

.ys-product-refined .ys-product-title {
  font-size: clamp(2.1rem, 3.5vw, 3.25rem);
  overflow-wrap: anywhere;
}

.ys-product-refined .ys-product-description {
  margin: 14px 0;
}

.ys-product-refined .ys-product-actions {
  gap: 20px;
  margin-top: 22px;
}

.ys-product-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ys-product-options-grid:empty {
  display: none;
}

.ys-product-options-grid > :first-child,
.ys-product-options-grid > :last-child:nth-child(2) {
  grid-column: 1 / -1;
}

.ys-product-refined .ys-product-option-row {
  gap: 5px;
  font-size: 0.9rem;
  min-width: 0;
}

.ys-product-refined .ys-product-option-row select {
  min-width: 0;
  width: 100%;
  min-height: 46px;
  padding: 10px 32px 10px 12px;
  font-size: 0.94rem;
}

.ys-product-refined .ys-product-color-options legend {
  font-size: 0.9rem;
}

.ys-product-selected-color {
  margin: 1px 0 8px;
  color: var(--ys-mauve);
  font-size: 0.8rem;
}

.ys-product-selected-color span {
  color: var(--ys-plum);
  font-weight: 700;
}

.ys-product-refined .ys-product-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ys-product-refined .ys-product-color-option {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 3px 7px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
}

.ys-product-refined .ys-product-color-option:has(input:checked) {
  border-color: var(--ys-plum);
  background: color-mix(in srgb, var(--ys-sage) 12%, var(--ys-white));
  box-shadow: 0 0 0 1px var(--ys-plum);
}

.ys-product-refined .ys-product-color-option:focus-within {
  outline: 3px solid var(--ys-focus);
  outline-offset: 3px;
}

.ys-product-refined .ys-product-color-option input {
  width: 1px;
  height: 1px;
  margin: 0;
}

.ys-product-refined .ys-product-color-option strong {
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}

.ys-product-refined .ys-product-color-option em {
  font-size: 0.7rem;
  line-height: 1.25;
}

.ys-product-refined .ys-color-swatch {
  width: 22px;
  height: 22px;
}

.ys-product-purchase-box {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--ys-border);
  border-radius: var(--ys-radius-md);
  background: var(--ys-white);
}

.ys-product-purchase-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 12px;
}

.ys-product-price-label {
  color: var(--ys-mauve);
  font-size: 0.85rem;
}

.ys-product-refined .ys-product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ys-plum);
  font-variant-numeric: tabular-nums;
}

.ys-product-refined .ys-product-details-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}

.ys-product-refined .ys-quantity-control {
  grid-template-columns: 36px 45px 36px;
  min-height: 48px;
}

.ys-product-refined .ys-product-details-action .ys-btn {
  padding: 12px 16px;
  min-height: 48px;
}

.ys-product-reassurance {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  color: var(--ys-mauve);
  font-size: 0.8rem;
  line-height: 1.5;
}

.ys-product-reassurance p {
  margin: 0;
}

.ys-product-reassurance a,
.ys-product-disclosure-body a {
  color: var(--ys-plum);
  text-underline-offset: 3px;
}

.ys-product-availability {
  color: var(--ys-plum);
  font-weight: 700;
}

.ys-availability-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #4a7356;
}

.ys-product-information {
  margin-top: 24px;
  border-top: 1px solid var(--ys-border);
}

.ys-product-information details {
  border-bottom: 1px solid var(--ys-border);
}

.ys-product-information summary {
  position: relative;
  padding: 15px 26px 15px 0;
  color: var(--ys-plum);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.ys-product-information summary::-webkit-details-marker {
  display: none;
}

.ys-product-information summary::after {
  content: '+';
  position: absolute;
  right: 3px;
  font-size: 1.2rem;
  line-height: 1.4;
}

.ys-product-information details[open] summary::after {
  content: '−';
}

.ys-product-information summary:focus-visible {
  outline: 3px solid var(--ys-focus);
  outline-offset: 3px;
}

.ys-product-disclosure-body {
  padding: 0 0 18px;
  color: var(--ys-mauve);
  font-size: 0.9rem;
  line-height: 1.65;
}

.ys-product-disclosure-body p {
  margin: 0 0 12px;
  white-space: pre-line;
}

.ys-product-disclosure-body ul {
  margin: 0;
  padding-left: 20px;
}

.ys-product-disclosure-body dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.ys-product-disclosure-body dl > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
}

.ys-product-disclosure-body dt {
  font-weight: 650;
}

.ys-product-disclosure-body dd {
  margin: 0;
  color: var(--ys-plum);
}

.ys-product-mobile-purchase {
  display: none;
}

@media (min-width: 769px) and (max-width: 1100px) {
  .ys-product-refined .ys-product-detail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .ys-product-refined .ys-product-gallery {
    top: 118px;
  }

  .ys-product-options-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .ys-product-refined {
    padding-top: 20px;
  }

  .ys-product-refined .ys-product-detail {
    gap: 26px;
    grid-template-columns: minmax(0, 1fr);
  }

  .ys-product-refined .ys-product-gallery-main img {
    aspect-ratio: 1 / 1;
  }

  .ys-product-refined .ys-product-gallery-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
    gap: 8px;
  }

  .ys-product-refined .ys-product-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .ys-product-mobile-purchase:not([hidden]) {
    position: fixed;
    inset: auto 0 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px max(18px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    background: var(--ys-ivory);
    border-top: 1px solid var(--ys-border);
    box-shadow: 0 -4px 22px rgba(74, 52, 80, 0.08);
  }

  .ys-product-mobile-purchase > div {
    display: grid;
    min-width: 0;
    gap: 1px;
    color: var(--ys-plum);
    line-height: 1.4;
  }

  .ys-product-mobile-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
  }

  .ys-product-mobile-purchase strong {
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
  }

  .ys-product-mobile-purchase .ys-btn {
    flex-shrink: 0;
    min-height: 46px;
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  body.ys-has-mobile-purchase .ys-main {
    padding-bottom: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ys-product-refined *,
  .ys-product-mobile-purchase * {
    scroll-behavior: auto;
  }
}

@media (max-width: 480px) {
  .ys-product-options-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
