.edc-product-page { padding: 20px 0 96px; overflow: clip; }
.edc-product-page .edc-breadcrumbs { margin-bottom: 24px; }
.edc-product-layout { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(420px, 1fr); column-gap: clamp(32px, 3vw, 44px); align-items: start; }
.edc-product-hero { display: contents; }
.edc-product-gallery { grid-column: 1; grid-row: 1; min-width: 0; }
.edc-product-gallery__main { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 5 / 4; border: 1px solid var(--edc-line); background: var(--edc-paper); color: inherit; overflow: hidden; }
.edc-product-gallery__main img { display: block; width: 100%; height: 100%; padding: clamp(16px, 2.4vw, 32px); object-fit: contain; mix-blend-mode: multiply; transition: transform 220ms ease-out; }
.edc-product-gallery__main:hover img { transform: scale(1.018); }
.edc-product-gallery__main > span { position: absolute; right: 16px; bottom: 14px; min-height: 32px; display: inline-flex; align-items: center; border-bottom: 1px solid currentColor; font-size: 12px; }
.edc-product-gallery__empty { display: grid; place-items: center; width: 100%; aspect-ratio: 5 / 4; border: 1px solid var(--edc-line); background: var(--edc-paper); color: var(--edc-muted); }
.edc-product-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; }
.edc-product-gallery__thumbs a { flex: 0 0 88px; display: grid; place-items: center; height: 76px; border: 1px solid var(--edc-line); background: var(--edc-white); }
.edc-product-gallery__thumbs a:first-child { border-color: var(--edc-ink); }
.edc-product-gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.edc-product-buy { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 20px; min-width: 0; padding-top: 2px; }
.edc-product-buy__topline { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 12px; }
.edc-product-brand { font-family: "EDC UI", Arial, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
body.edc-page .edc-product-buy h1 { max-width: 22ch; margin: 0; font-size: clamp(28px, 2.15vw, 34px); line-height: 1.1; letter-spacing: -.025em; overflow-wrap: anywhere; text-wrap: balance; }
body.edc-page .edc-product-buy h1.is-long { max-width: 28ch; font-size: clamp(25px, 1.8vw, 30px); line-height: 1.08; }
body.edc-page .edc-product-buy h1.is-very-long { max-width: 32ch; font-size: clamp(22px, 1.55vw, 26px); line-height: 1.07; }
.edc-product-utility { display: flex; gap: 4px; }
.edc-product-utility button { width: 40px; height: 40px; border: 1px solid var(--edc-line); background: var(--edc-white); cursor: pointer; }
.edc-product-utility button:hover { border-color: var(--edc-ink); background: var(--edc-paper); }
.edc-product-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0; color: var(--edc-muted); font-size: 12px; }
.edc-product-meta div { display: flex; gap: 6px; }
.edc-product-meta dt { font-weight: 400; }
.edc-product-meta dd { margin: 0; color: var(--edc-ink); font-variant-numeric: tabular-nums; }
.edc-product-meta .is-in-stock { color: var(--edc-positive, #27643c); }
.edc-product-meta .is-unavailable { color: var(--edc-muted); }
.edc-product-rating { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; color: var(--edc-muted) !important; font-size: 12px; }
.edc-product-rating > span:first-child { color: #9b671f; font-size: 16px; }
.edc-product-price { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: baseline; margin: 20px 0 18px; }
.edc-product-price strong { font-family: "EDC UI", Arial, sans-serif; font-size: clamp(32px, 2.8vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; }
.edc-product-price del { order: -1; color: var(--edc-muted); font-size: 15px; }
.edc-product-price > span { padding: 3px 7px; background: var(--edc-danger, #a33124); color: var(--edc-white); font-size: 10px; text-transform: uppercase; }
.edc-product-price small { flex-basis: 100%; color: var(--edc-muted); font-size: 11px; }
.edc-product-discounts { list-style: none; margin: -6px 0 16px; padding: 0; color: var(--edc-muted); font-size: 12px; }
.edc-product-discounts li { display: flex; justify-content: space-between; border-top: 1px solid var(--edc-line); padding: 7px 0; }

.edc-product-form { border-top: 1px solid var(--edc-ink); padding-top: 18px; }
.edc-product-options { display: grid; gap: 14px; margin-bottom: 18px; }
.edc-product-options h2 { margin: 0; font-size: 18px; }
.edc-option { display: grid; gap: 7px; margin: 0; }
.edc-option > label, .edc-option legend { margin: 0; padding: 0; color: var(--edc-ink); font-size: 13px; font-weight: 600; }
.edc-option label > span[aria-hidden], .edc-option legend > span { margin-left: 3px; color: var(--edc-danger, #a33124); }
.edc-option select, .edc-option > input, .edc-option textarea { width: 100%; min-height: 46px; border: 1px solid var(--edc-line); border-radius: 0; padding: 10px 12px; background: var(--edc-white); box-shadow: none; }
.edc-option textarea { resize: vertical; }
.edc-option fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.edc-option-choices { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.edc-option-choices label { position: relative; display: flex; gap: 8px; align-items: center; min-height: 44px; border: 1px solid var(--edc-line); padding: 6px 10px; cursor: pointer; }
.edc-option-choices label:has(input:checked) { border-color: var(--edc-ink); box-shadow: inset 0 0 0 1px var(--edc-ink); }
.edc-option-choices input { accent-color: var(--edc-ink); }
.edc-option-choices img { width: 32px; height: 32px; object-fit: contain; }
.edc-option-choices small { display: block; color: var(--edc-muted); }
.edc-upload-button { min-height: 46px; border: 1px solid var(--edc-line); background: var(--edc-white); cursor: pointer; }
.edc-field-error, .edc-option .text-danger { margin-top: 2px; color: var(--edc-danger, #a33124); font-size: 13px; }
.edc-option.has-error select, .edc-option.has-error input, .edc-option.has-error textarea { border-color: var(--edc-danger, #a33124); }

.edc-product-actions { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 10px; align-items: end; }
.edc-product-actions.is-notify { grid-template-columns: 1fr; }
.edc-quantity { display: grid; gap: 5px; }
.edc-quantity > label { color: var(--edc-muted); font-size: 11px; }
.edc-quantity > div { display: grid; grid-template-columns: 44px 48px 44px; height: 52px; overflow: hidden; box-sizing: border-box; border: 1px solid var(--edc-line); border-radius: var(--edc-equipment-control); background: var(--edc-white); }
.edc-quantity button, .edc-quantity input { width: 100%; min-width: 0 !important; height: 100%; box-sizing: border-box; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--edc-white); color: var(--edc-ink); font: inherit; text-align: center; }
.edc-quantity button { cursor: pointer; font-size: 19px; transition: background-color 140ms ease, color 140ms ease; }
.edc-quantity button:hover { background: var(--edc-paper); }
.edc-quantity button:active { background: var(--edc-equipment-surface-strong); }
.edc-quantity button:focus-visible, .edc-quantity input:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--edc-focus); outline-offset: -2px; }
.edc-quantity input { appearance: textfield; border-right: 1px solid var(--edc-line); border-left: 1px solid var(--edc-line); font-variant-numeric: tabular-nums; }
.edc-quantity input::-webkit-inner-spin-button, .edc-quantity input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.edc-product-primary, .edc-product-secondary-action { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--edc-ink); padding: 11px 18px; font-family: "EDC UI", Arial, sans-serif; font-weight: 600; cursor: pointer; transition: background 160ms ease-out, color 160ms ease-out, transform 100ms ease-out; }
.edc-product-primary { background: var(--edc-ink); color: var(--edc-white); }
.edc-product-primary[hidden], .edc-quantity[hidden], #out-stock[hidden] { display: none !important; }
.edc-product-primary:hover { background: var(--edc-hover, #282828); }
.edc-product-primary:active, .edc-product-secondary-action:active { transform: translateY(1px); }
.edc-product-primary:disabled { cursor: wait; opacity: .62; }
.edc-product-secondary-action { width: 100%; margin-top: 9px; background: var(--edc-white); color: var(--edc-ink); }
.edc-product-secondary-action:hover { background: var(--edc-paper); }
#out-stock { min-width: 0; }
#out-stock .edc-product-primary { width: 100%; }
.edc-product-status { min-height: 20px; margin-top: 7px; font-size: 12px; }
.edc-product-status.is-error { color: var(--edc-danger, #a33124); }
.edc-product-status.is-success { color: var(--edc-positive, #27643c); }
.edc-product-minimum { margin: 6px 0 0; color: var(--edc-muted); font-size: 11px; }
.edc-product-service { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; border-block: 1px solid var(--edc-line); }
.edc-product-service p, .edc-product-service > a { min-width: 0; margin: 0; padding: 11px 12px; border-right: 1px solid var(--edc-line); font-size: 11px; line-height: 1.4; }
.edc-product-service p { display: grid; gap: 2px; }
.edc-product-service p:last-of-type { border-right: 1px solid var(--edc-line); }
.edc-product-service span { color: var(--edc-muted); }
.edc-product-service > a { display: flex; align-items: center; border-right: 0; font-weight: 600; }

.edc-product-content-nav { grid-column: 1; grid-row: 2; display: flex; gap: clamp(22px, 4vw, 54px); margin-top: 28px; border-bottom: 1px solid var(--edc-line); overflow-x: auto; scrollbar-width: thin; }
.edc-product-content-nav a { flex: 0 0 auto; min-height: 48px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; font-family: "EDC UI", Arial, sans-serif; font-size: 14px; font-weight: 600; }
.edc-product-content-nav a:hover { border-bottom-color: var(--edc-ink); }
.edc-product-content { grid-column: 1; grid-row: 3; display: block; padding-top: 36px; scroll-margin-top: 24px; }
.edc-product-narrative { min-width: 0; }
.edc-product-narrative > section + section { margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--edc-line); }
.edc-product-content h2, .edc-product-reviews h2, .edc-product-related h2 { margin: 0 0 22px; font-size: clamp(28px, 3vw, 42px); line-height: 1.08; letter-spacing: -.025em; }
.edc-product-content section, .edc-product-reviews { scroll-margin-top: 24px; }
.edc-richtext { max-width: 72ch; line-height: 1.72; }
.edc-richtext > :first-child { margin-top: 0; }
.edc-richtext > :last-child { margin-bottom: 0; }
.edc-richtext img, .edc-richtext iframe { max-width: 100%; height: auto; }
.edc-product-specs { margin-top: 56px; border-top: 1px solid var(--edc-line); padding-top: 40px; }
.edc-product-specs > section { margin-bottom: 28px; }
.edc-product-specs h3 { margin: 0 0 7px; font-size: 15px; }
.edc-product-specs dl { margin: 0; }
.edc-product-specs dl > div { display: grid; grid-template-columns: minmax(120px, .82fr) minmax(0, 1.18fr); gap: 18px; border-top: 1px solid var(--edc-line); padding: 10px 0; }
.edc-product-specs dt { color: var(--edc-muted); font-weight: 400; }
.edc-product-specs dd { margin: 0; }

.edc-product-reviews { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 480px); gap: clamp(44px, 6vw, 88px); margin-top: 88px; border-top: 1px solid var(--edc-ink); padding-top: 48px; }
.edc-review-form { display: grid; gap: 10px; }
.edc-review-form h3 { margin: 0 0 10px; font-size: 22px; }
.edc-review-form input[type="text"], .edc-review-form textarea { width: 100%; border: 1px solid var(--edc-line); padding: 12px; }
.edc-review-form fieldset { border: 0; padding: 0; margin: 8px 0; }
.edc-review-rating { display: flex; gap: 6px; margin-top: 8px; }
.edc-review-rating label { position: relative; }
.edc-review-rating input { position: absolute; opacity: 0; }
.edc-review-rating span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--edc-line); cursor: pointer; }
.edc-review-rating input:checked + span { background: var(--edc-ink); color: var(--edc-white); }
.edc-review-form > button { min-height: 50px; border: 1px solid var(--edc-ink); background: var(--edc-ink); color: var(--edc-white); font-weight: 600; }
.edc-product-related { margin-top: 96px; }
.edc-product-related .edc-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.edc-product-tags { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 56px; color: var(--edc-muted); font-size: 13px; }
.edc-product-tags a { border-bottom: 1px solid currentColor; }
.edc-product-secondary { display: none; }

.edc-stock-modal .modal-dialog { width: min(520px, calc(100% - 32px)); margin: 10vh auto 20px; }
.edc-stock-modal .modal-content { border: 1px solid var(--edc-ink); border-radius: 0; box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.edc-stock-modal .modal-header, .edc-stock-modal .modal-body, .edc-stock-modal .modal-footer { padding: 22px 24px; }
.edc-stock-modal .modal-header { border-bottom-color: var(--edc-line); }
.edc-stock-modal .modal-title { margin: 0; padding-right: 34px; font-size: 26px; }
.edc-stock-modal #preorder_name { margin: 7px 34px 0 0; color: var(--edc-muted); }
.edc-stock-modal label { display: block; margin-bottom: 7px; }
.edc-stock-modal .form-control { width: 100%; }
.edc-stock-modal .form-group [class*="col-sm-"] { width: 100%; float: none; padding-inline: 0; }
.edc-stock-modal__note { margin: 12px 0 0; color: var(--edc-muted); font-size: 12px; }
.edc-stock-modal .modal-footer { border-top-color: var(--edc-line); text-align: left; }
.edc-stock-modal .modal-footer .btn { width: 100%; }
.edc-stock-modal .alert { margin: 0 0 16px; border-radius: 0; }

@media (max-width: 1100px) {
  .edc-product-layout { grid-template-columns: minmax(0, 1.18fr) minmax(380px, .82fr); column-gap: 28px; }

  .edc-product-service { grid-template-columns: 1fr; }
  .edc-product-service p, .edc-product-service > a { border-right: 0; border-bottom: 1px solid var(--edc-line); }
  .edc-product-service > a { border-bottom: 0; }
}

@media (max-width: 900px) {
  .edc-product-layout { display: block; }
  .edc-product-hero { display: grid; grid-template-columns: 1fr; }
  .edc-product-gallery, .edc-product-buy { grid-column: auto; grid-row: auto; }
  .edc-product-buy { position: static; }
  .edc-product-gallery__main, .edc-product-gallery__empty { aspect-ratio: 1 / 1; height: auto; }
  body.edc-page .edc-product-buy h1 { max-width: 30ch; }
  .edc-product-service { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .edc-product-service p, .edc-product-service > a { border-right: 1px solid var(--edc-line); border-bottom: 0; }
  .edc-product-service > a { border-right: 0; }

  .edc-product-reviews { grid-template-columns: 1fr; }
  .edc-product-related .edc-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .edc-product-page { padding-top: 16px; padding-bottom: 72px; }
  .edc-product-gallery__main, .edc-product-gallery__empty { aspect-ratio: 1 / 1; height: auto; }
  .edc-product-gallery__main img { width: 100%; height: 100%; padding: 14px; }
  .edc-product-gallery__thumbs a { flex-basis: 76px; height: 68px; }
  .edc-product-buy { margin-top: 24px; }
body.edc-page .edc-product-buy h1 { font-size: clamp(28px, 8.5vw, 36px); }
  body.edc-page .edc-product-buy h1.is-long { font-size: clamp(26px, 7.6vw, 31px); }
  body.edc-page .edc-product-buy h1.is-very-long { font-size: clamp(24px, 7vw, 28px); }
  .edc-product-price { margin-block: 18px 16px; }
  .edc-product-actions { grid-template-columns: 138px minmax(0, 1fr); }
  body.edc-equipment-site .edc-product-actions .edc-quantity > div { grid-template-columns: 44px 48px 44px; }
  .edc-product-service { grid-template-columns: 1fr; }
  .edc-product-service p, .edc-product-service > a { border-right: 0; border-bottom: 1px solid var(--edc-line); }
  .edc-product-service > a { border-bottom: 0; }
  .edc-product-content-nav { margin-top: 38px; }
  .edc-product-content { gap: 44px; padding-top: 32px; }
  .edc-product-specs dl > div { grid-template-columns: 1fr; gap: 3px; }
  .edc-stock-modal .modal-header, .edc-stock-modal .modal-body, .edc-stock-modal .modal-footer { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .edc-product-gallery__main img, .edc-product-primary, .edc-product-secondary-action { transition: none; }
}
