.krep-product-page {
  --kp-green: #18864b;
  --kp-blue: #edf6ff;
  padding-bottom: 52px;
  color: var(--ink)
}
.kp-crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 22px 0 15px;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden
}
.kp-crumbs a {
  white-space: nowrap
}
.kp-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 0 20px;
  border-bottom: 1px solid var(--line)
}
.kp-title h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(25px,2.3vw,34px);
  line-height: 1.18;
  letter-spacing: -.8px
}
.kp-code {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 14px;
  color: var(--muted)
}
.kp-spec-link {
  padding-top: 8px;
  text-decoration: underline!important;
  text-underline-offset: 4px
}
.kp-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(260px,.47fr) minmax(320px,.55fr);
  gap: 34px;
  align-items: start;
  padding: 28px 0 40px
}
.kp-main-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #fff
}
.kp-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain
}
.kp-thumbs {
  display: flex;
  gap: 9px;
  margin-top: 10px
}
.kp-thumb {
  width: 66px;
  height: 58px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff
}
.kp-thumb.is-active {
  border: 2px solid var(--ink)
}
.kp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain
}
.kp-config {
  padding-top: 6px
}
.kp-config h2 {
  margin: 0 0 20px;
  font-size: 20px
}
.kp-option-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0
}
.kp-option-group+.kp-option-group {
  margin-top: 26px
}
.kp-option-group legend {
  width: auto;
  margin: 0 0 11px;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500
}
.kp-option-group legend span {
  color: #bd3131
}
.kp-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px
}
.kp-option {
  margin: 0;
  cursor: pointer
}
.kp-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0
}
.kp-option span {
  display: grid;
  place-items: center;
  min-width: 58px;
  min-height: 40px;
  padding: 7px 14px;
  border: 1px dashed #cfd0cb;
  border-radius: 13px;
  background: #fff;
  line-height: 1.2
}
.kp-option input:checked+span {
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 700
}
.kp-option input:focus-visible+span {
  outline: 3px solid rgba(255,219,26,.72);
  outline-offset: 2px
}
.kp-select,
.kp-input {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff
}
.kp-option-error {
  min-height: 0;
  margin-top: 7px;
  color: #bd3131;
  font-size: 13px
}
.kp-option-group.has-error {
  padding: 10px;
  border: 1px solid #e3a4a4;
  border-radius: 10px
}
.kp-buy {
  min-width: 0
}
.kp-stock {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 15px;
  padding: 13px 15px;
  border-radius: 14px;
  background: #edf6ff
}
.kp-stock-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #17618f;
  color: #fff;
  font-weight: 900
}
.kp-stock strong,
.kp-stock span {
  display: block
}
.kp-stock span {
  margin-top: 2px;
  color: #466070;
  font-size: 13px
}
.kp-purchase-card {
  padding: 19px 20px;
  border: 1px solid #ecece9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(32,34,31,.08)
}
.kp-price {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding-bottom: 12px
}
.kp-price>span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase
}
.kp-price strong {
  grid-row: 1/3;
  grid-column: 2;
  font: 900 28px var(--mono)
}
.kp-price del {
  color: var(--muted)
}
.kp-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line)
}
.kp-total span {
  color: var(--muted);
  font-weight: 700
}
.kp-total strong {
  font: 900 23px var(--mono)
}
.kp-purchase-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px;
  margin-top: 6px
}
.kp-quantity {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden
}
.kp-quantity button {
  border: 0;
  background: #f5f5f3;
  font-size: 22px
}
.kp-quantity input {
  width: 100%;
  padding: 0;
  border: 0;
  text-align: center;
  font: 700 16px var(--mono);
  appearance: textfield
}
.kp-quantity input::-webkit-inner-spin-button {
  appearance: none
}
.kp-add,
.kp-quick {
  min-height: 50px;
  border: 1px solid var(--accent-strong);
  border-radius: 8px;
  background: var(--accent);
  color: #292a15;
  font-weight: 800
}
.kp-add:hover {
  background: var(--accent-strong)
}
.kp-add[disabled] {
  opacity: .65
}
.kp-quick {
  width: 100%;
  margin-top: 11px;
  border-color: #cfd0cb;
  background: #fff
}
.kp-quick-note,
.kp-minimum {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px
}
.kp-alert {
  margin: 16px 0 0;
  padding: 12px 15px;
  border-radius: 9px;
  background: #eaf9ec;
  color: #176b38
}
.kp-alert.is-error {
  background: #fff0f0;
  color: #9d2525
}
.kp-section {
  padding: 28px 0
}
.kp-section h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -.5px
}
.kp-prose {
  max-width: 78ch;
  color: var(--muted)
}
.kp-prose p {
  margin: 0 0 10px
}
.kp-related {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px
}
.kp-related-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px
}
.kp-related-image {
  display: grid;
  place-items: center;
  height: 130px;
  background: #fff
}
.kp-related-image img {
  max-width: 100%;
  max-height: 100%
}
.kp-related-card h3 {
  margin: 11px 0 0;
  font-size: 15px;
  line-height: 1.3
}
.kp-related-card p {
  margin: 6px 0 0;
  font-weight: 700
}
.kp-attribute-group {
  margin: 18px 0 8px;
  font-size: 16px
}
.kp-spec-table {
  width: min(100%,680px);
  border-collapse: collapse
}
.kp-spec-table th,
.kp-spec-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line)
}
.kp-spec-table th {
  width: 66%;
  color: var(--muted);
  font-weight: 400;
  text-align: left
}
.kp-spec-table td {
  text-align: right;
  font-family: var(--mono)
}
.kp-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(20,21,19,.52)
}
.kp-modal.is-open {
  display: grid
}
.kp-modal-panel {
  position: relative;
  width: min(100%,440px);
  padding: 26px;
  border-radius: 16px;
  background: #fff
}
.kp-modal-panel h2 {
  margin: 0 0 9px
}
.kp-modal-panel label {
  display: block;
  margin-top: 16px
}
.kp-modal-panel input {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 7px
}
.kp-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px
}
.kp-modal-honest {
  color: var(--muted);
  font-size: 13px
}
@media(max-width:1120px) {
  .kp-layout {
    grid-template-columns: minmax(0,1fr) minmax(300px,.65fr)
  }
  .kp-gallery {
    grid-row: span 2
  }
  .kp-config,
  .kp-buy {
    grid-column: 2
  }
}
@media(max-width:820px) {
  .kp-layout {
    grid-template-columns: 1fr;
    gap: 24px
  }
  .kp-gallery,
  .kp-config,
  .kp-buy {
    grid-column: auto;
    grid-row: auto
  }
  .kp-main-image {
    aspect-ratio: 4/3
  }
  .kp-buy {
    max-width: 540px
  }
  .kp-related {
    grid-template-columns: repeat(2,minmax(0,1fr))
  }
}
@media(max-width:520px) {
  .kp-crumbs {
    white-space: nowrap
  }
  .kp-title {
    display: block
  }
  .kp-spec-link {
    display: inline-block
  }
  .kp-layout {
    padding-top: 22px
  }
  .kp-purchase-card {
    padding: 16px
  }
  .kp-related {
    grid-template-columns: 1fr 1fr;
    gap: 9px
  }
  .kp-related-image {
    height: 100px
  }
  .kp-spec-table th {
    width: 59%
  }
}
