.detail-main {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #6f6c65;
  font-size: 12px;
}

.detail-breadcrumb strong {
  color: #11110f;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
}

.detail-gallery-shell,
.detail-summary,
.detail-panel {
  border: 1px solid #e4e0d8;
  background: #fff;
}

.detail-gallery-shell {
  padding: 18px;
}

.detail-gallery {
  aspect-ratio: 1 / 1;
  background: #f2eee7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-gallery-empty {
  color: #8a857c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.detail-thumb-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.detail-thumb {
  width: 76px;
  aspect-ratio: 1 / 1;
  border: 1px solid #e4e0d8;
  background: #f2eee7;
  cursor: pointer;
  overflow: hidden;
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-thumb.active {
  border-color: #11110f;
}

.detail-summary {
  padding: 24px;
}

.detail-brand-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.detail-brand {
  margin: 0;
  color: #6f6c65;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #e4e0d8;
  color: #6f6c65;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}

.detail-badge-dark {
  border-color: #11110f;
  background: #11110f;
  color: #fff;
}

.detail-name {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.detail-name-en {
  margin: 0 0 20px;
  color: #6f6c65;
  font-size: 14px;
  line-height: 1.6;
}

.detail-price-box {
  padding: 18px 0;
  border-top: 1px solid #e4e0d8;
  border-bottom: 1px solid #e4e0d8;
}

.detail-price-original {
  margin: 0 0 6px;
  color: #98938a;
  font-size: 13px;
  text-decoration: line-through;
}

.detail-price-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.detail-discount,
.detail-price-final {
  font-weight: 900;
  color: #11110f;
}

.detail-discount {
  font-size: 22px;
}

.detail-price-final {
  font-size: 34px;
}

.detail-price-note {
  margin: 10px 0 0;
  color: #6f6c65;
  font-size: 13px;
  line-height: 1.6;
}

.detail-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 22px;
}

.detail-action {
  min-height: 50px;
  border: 1px solid #11110f;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.detail-action-light {
  background: #fff;
  color: #11110f;
}

.detail-action-dark {
  background: #11110f;
  color: #fff;
}

.detail-spec-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.detail-spec-list div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
}

.detail-spec-list dt {
  color: #6f6c65;
  font-size: 12px;
}

.detail-spec-list dd {
  margin: 0;
  color: #11110f;
  font-size: 13px;
  line-height: 1.6;
}

.detail-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.detail-panel {
  padding: 24px;
}

.detail-panel-label {
  margin: 0 0 10px;
  color: #6f6c65;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.detail-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-copy {
  margin: 0;
  color: #11110f;
  font-size: 15px;
  line-height: 1.9;
}

.detail-copy-muted {
  margin-top: 14px;
  color: #6f6c65;
}

.detail-check-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: #11110f;
  font-size: 14px;
  line-height: 1.7;
}

.detail-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 15, .42);
  z-index: 60;
}

.detail-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 61;
}

.detail-modal[hidden],
.detail-modal-backdrop[hidden] {
  display: none;
}

.detail-modal-card {
  width: min(560px, calc(100% - 24px));
  padding: 20px;
  border: 1px solid #e4e0d8;
  background: #fff;
}

.detail-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.detail-modal-top button {
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.detail-modal textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px;
  border: 1px solid #e4e0d8;
  resize: vertical;
  font: inherit;
}

.detail-modal p {
  margin: 10px 0 0;
  color: #6f6c65;
  font-size: 12px;
  line-height: 1.6;
}

.detail-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.detail-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  padding: 12px 16px;
  background: #11110f;
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 80;
}

.detail-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

@media (max-width: 980px) {
  .detail-hero,
  .detail-section-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .detail-main {
    width: min(100% - 24px, 1280px);
    padding: 18px 0 48px;
  }

  .detail-summary,
  .detail-gallery-shell,
  .detail-panel {
    padding: 18px;
  }

  .detail-brand-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-badges {
    justify-content: flex-start;
  }

  .detail-action-row,
  .detail-modal-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .detail-spec-list div {
    grid-template-columns: 84px minmax(0, 1fr);
  }
}
