/* Detail-only layout. Homepage and payment dialog keep their shared styles. */
.product-detail-page { background: #fafafa; }
.detail-main { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.detail-main > .container, .detail-main .related-products > .container { padding: 0; max-width: none; }
.product-detail-page .breadcrumb {
  margin: 26px 0 22px; font-size: 13px; line-height: 1.7; color: #858585;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
}
.product-detail-page .breadcrumb a { color: #666; text-decoration: none; }
.product-detail-page .breadcrumb a:hover { color: var(--primary-dark); }
.product-detail-page .breadcrumb {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 10px;
  width: fit-content; max-width: 100%; padding: 5px 14px 5px 5px;
  background: #fff; border: 1px solid #ededed; border-radius: 999px;
  font-size: 13px; line-height: 20px;
}
.product-detail-page .breadcrumb a { white-space: nowrap; transition: color .2s ease, background-color .2s ease; }
.product-detail-page .breadcrumb .crumb-home {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; background: #f6f6f6; color: #555;
}
.crumb-home svg { display: block; flex: none; width: 16px; height: 16px; }
.product-detail-page .breadcrumb .crumb-home:hover { background: #fff0f2; color: var(--primary-dark); }
.crumb-divider { color: #c5c5c5; font-size: 18px; }
.crumb-current { color: var(--primary-dark); font-weight: 600; white-space: nowrap; }
.product-detail-page .breadcrumb a:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 3px; }
.product-detail-page .product-d-detail {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch; gap: 24px; padding: 0; margin: 0 0 48px;
  border: 0; border-radius: 0; box-shadow: none; background: transparent;
}
.product-detail-page .product-d-info,
.product-detail-page .purchase-options,
.product-detail-page .product-d-description {
  min-width: 0; padding: 28px; margin: 0; background: #fff;
  border: 1px solid #ededed; border-radius: 20px; box-shadow: none;
}
.product-detail-page .product-d-info { grid-column: 1; grid-row: 1; }
.detail-eyebrow {
  margin: 0 0 16px; color: var(--primary-dark); font-size: 16px; line-height: 24px;
  font-weight: 600; letter-spacing: .3px;
}
.product-detail-page .product-d-title {
  margin: 0 0 18px; font-size: 25px; line-height: 1.6; font-weight: 700;
  color: #222; letter-spacing: -.5px; overflow-wrap: anywhere;
}
.product-detail-page .product-d-price {
  display: block; background: none; margin-bottom: 26px;
  color: var(--primary-dark); font-size: 34px; line-height: 1.3;
  font-weight: 750; letter-spacing: -.8px;
}
.detail-spec-heading { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.product-detail-page .product-d-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px;
  padding: 0; margin: 0; background: none; border-radius: 0;
}
.product-detail-page .spec-row {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 6px; padding: 14px 0; border: 0; border-top: 1px solid #f0f0f0;
}
.product-detail-page .spec-label { flex: none; width: auto; font-size: 13px; color: #777; }
.product-detail-page .spec-label i { display: none; }
.product-detail-page .spec-value { font-size: 15px; line-height: 1.5; color: #333; font-weight: 500; }
.product-detail-page .spec-value.highlight { color: #16805d; }
.product-detail-page .purchase-options {
  grid-column: 2; grid-row: 1; position: static;
  background: #fff; padding: 28px;
}
.product-detail-page .option-title { padding: 0; margin: 0 0 16px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--primary-dark); }
.product-detail-page .detail-panel-title {
  display: block; height: 24px; padding: 0; margin: 0 0 16px;
  font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: 0;
}
.product-detail-page .detail-panel-title {
  display: flex; align-items: center; gap: 8px;
}
.detail-brand-mark {
  position: relative; display: inline-block; flex: none;
  width: 36px; height: 36px; border-radius: 10px; overflow: hidden;
  background: transparent;
}
.detail-brand-mark img {
  display: block; width: 100%; height: 100%;
}

.detail-eyebrow .detail-brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.detail-eyebrow .detail-brand-mark img { width: 100%; height: 100%; }
.detail-inline-icon { display: block; flex: none; width: 24px; height: 24px; color: var(--primary-dark); }
.detail-icon-text { display: block; transform: translateY(2px); }

.product-detail-page .detail-spec-heading,
.product-detail-page .description-d-title,
.product-detail-page .related-products .section-title { display: flex; align-items: center; gap: 9px; }
.product-detail-page .spec-label { display: inline-flex; align-items: center; gap: 6px; }
.product-detail-page .spec-label .detail-inline-icon { width: 18px; height: 18px; color: #bc7985; }
.detail-purchase-subtitle { margin: 0 0 24px; color: #777; font-size: 13px; }
.product-detail-page .form-group { margin-bottom: 22px; }
.product-detail-page .form-label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.product-detail-page .required { color: var(--primary-dark); }
.product-detail-page .email-input {
  padding: 12px 14px; height: 48px; width: 100%; border: 1px solid #e6e6e6;
  border-radius: 12px; background: #fafafa; font-size: 15px; color: #222;
}
.product-detail-page .email-input:focus { background: #fff; border-color: var(--primary); }
.product-detail-page .email-hint { margin-top: 8px; color: #777; font-size: 12px; line-height: 1.7; }
.product-detail-page .quantity-selector {
  height: 42px; max-width: 160px; border: 1px solid #e9e9e9; border-radius: 10px;
}
.product-detail-page .quantity-btn { height: 40px; width: 40px; background: #f6f6f6; color: #444; }
.product-detail-page .quantity-btn:hover { background: #fff0f2; color: var(--primary-dark); }
.product-detail-page .quantity-input { min-width: 0; height: 40px; font-size: 15px; }
.product-detail-page .payment-section { margin-bottom: 22px; }
.product-detail-page .payment-methods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.product-detail-page .payment-method {
  position: relative; min-width: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  padding: 8px 4px; aspect-ratio: 1; min-height: 0; border: 1px solid #e8e8e8; border-radius: 14px;
  background: #fff; color: #555; font-family: inherit; cursor: pointer;
}
.product-detail-page .payment-method.selected { border-color: var(--primary); background: #fff4f6; color: var(--primary-dark); }
.product-detail-page .payment-method:hover { border-color: #ff9aab; }
.product-detail-page .payment-method:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 2px; }
.product-detail-page .payment-icon { flex: none; margin: 0; line-height: 0; }
.product-detail-page .payment-icon img { width: 44px; height: 44px; border-radius: 50%; }
.product-detail-page .payment-text { font-size: 13px; font-weight: 600; white-space: nowrap; }
.product-detail-page .total-price {
  margin: 0 0 16px; padding: 16px; border-radius: 12px;
  background: #fff4f6; gap: 10px;
}
.product-detail-page .total-label { color: #666; font-size: 13px; }
.product-detail-page .total-label i { display: none; }
.product-detail-page .total-amount { color: var(--primary-dark); font-size: 27px; line-height: 1.3; }
.product-detail-page #buyBtn {
  width: 100%; min-height: 48px; padding: 0 20px; border: 0;
  border-radius: 999px; font-size: 16px; gap: 9px;
}
.product-detail-page #buyBtn:disabled { opacity: .6; cursor: wait; }
.product-detail-page .purchase-handoff { margin: 12px 0 0; text-align: center; }
.product-detail-page .product-d-description { grid-column: 1 / -1; grid-row: 2; }
.product-detail-page .description-d-title { margin: 0 0 20px; font-size: 20px; font-weight: 650; }
.product-detail-page .description-d-content { color: #555; }
.product-detail-page .description-d-content p { font-size: 15px; line-height: 1.95; margin: 0 0 18px; }
.product-detail-page .description-d-content p:last-child { margin-bottom: 0; }
.product-detail-page .related-products { margin: 0 0 56px; }
.product-detail-page .section-title { text-align: left; font-size: 23px; margin-bottom: 6px; }
.product-detail-page .section-subtitle { text-align: left; max-width: none; font-size: 14px; color: #777; margin: 0 0 22px; padding-left: 33px; }
.product-detail-page .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-detail-page .ks-product-card {
  min-width: 0; padding: 20px; border: 1px solid #ededed;
  border-radius: 16px; box-shadow: none; background: #fff;
}
.product-detail-page .ks-product-card:hover { border-color: #e6d5da; box-shadow: 0 4px 15px rgba(34,34,34,.04); }
.product-detail-page .ks-product-card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 16px; line-height: 1.65; margin-bottom: 12px;
}
.product-detail-page .ks-product-card-description {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 13px; line-height: 1.8; color: #777; margin-bottom: 22px;
}
.related-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.product-detail-page .ks-product-card-price { margin: 0; font-size: 23px; }
.product-detail-page .ks-product-card-action .note-buy { font-size: 14px; min-height: 42px; padding: 0 15px; }
@media (max-width: 960px) {
  .product-detail-page .product-d-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
  .product-detail-page .product-d-info, .product-detail-page .product-d-description { padding: 22px; }
  .product-detail-page .purchase-options { padding: 22px; }
  .product-detail-page .product-d-title { font-size: 22px; }
  .product-detail-page .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {



  .detail-main { padding: 0 1rem; }
  .product-detail-page .breadcrumb { margin: 18px 0; font-size: 12px; }
  .product-detail-page .product-d-detail { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 32px; }
  .product-detail-page .product-d-info,
  .product-detail-page .purchase-options,
  .product-detail-page .product-d-description { grid-column: 1; grid-row: auto; padding: 22px 20px; border-radius: 16px; }
  .product-detail-page .purchase-options { position: static; }
  .product-detail-page .product-d-title { font-size: 22px; line-height: 1.65; margin-bottom: 14px; }
  .product-detail-page .product-d-price { font-size: 32px; margin-bottom: 20px; }
  .product-detail-page .payment-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail-page .payment-text { font-size: 14px; }
  .product-detail-page .payment-method { padding: 12px 8px; gap: 6px; }
  .product-detail-page .payment-icon img { width: 48px; height: 48px; }
  .product-detail-page .product-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .product-detail-page .section-title { font-size: 21px; }
  .product-detail-page .ks-product-card-title { font-size: 17px; }
  .product-detail-page .ks-product-card-description { font-size: 14px; }
  .product-detail-page .ks-product-card-action .note-buy { min-height: 44px; font-size: 15px; }
}
@media (max-width: 400px) {
  .product-detail-page .payment-method { flex-direction: column; justify-content: center; gap: 8px; }
}

/* 较矮桌面压缩购买面板，保留清晰字号。 */
@media (min-width: 761px) and (max-height: 700px) {
  .product-detail-page .detail-purchase-subtitle { display: none; }

  .product-detail-page .form-group:has(#quantity) { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .product-detail-page .form-group:has(#quantity) .form-label { margin: 0; }
  .product-detail-page .purchase-handoff { display: none; }
}
@media (min-width: 761px) and (max-height: 900px) {
  .product-detail-page .breadcrumb { margin: 16px 0; }
  .product-detail-page .purchase-options { padding: 20px; }
  .product-detail-page .product-d-info { padding: 20px; }
  .detail-purchase-subtitle { margin-bottom: 12px; }
  .product-detail-page .form-group { margin-bottom: 12px; }
  .product-detail-page .form-label { margin-bottom: 6px; }
  .product-detail-page .email-input { height: 42px; padding: 9px 12px; }
  .product-detail-page .email-hint { margin-top: 5px; }
  .product-detail-page .payment-section { margin-bottom: 14px; }
  .product-detail-page .payment-method { min-height: 0; padding: 8px 3px; }
  .product-detail-page .payment-methods { gap: 8px; }
  .product-detail-page .payment-icon img { width: 40px; height: 40px; }
  .product-detail-page .total-price { padding: 12px 14px; margin-bottom: 12px; }
  .product-detail-page .purchase-handoff { margin-top: 8px; }
}
@media (max-width: 760px) {
  .product-detail-page { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .product-detail-page .purchase-checkout {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100;
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: center; gap: 14px; padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid #eee; box-shadow: 0 -4px 18px rgba(0,0,0,.04);
  }
  .product-detail-page .purchase-checkout .total-price {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 0; margin: 0; background: transparent;
  }
  .product-detail-page .purchase-checkout .total-label { font-size: 11px; }
  .product-detail-page .purchase-checkout .total-amount { font-size: 24px; }
  .product-detail-page .purchase-checkout .action-buttons { min-width: 0; }
  .product-detail-page #email { scroll-margin-top: 100px; }
}
@media (min-width: 761px) and (max-height: 700px) {
  .product-detail-page .breadcrumb { margin: 8px 0; }
  .product-detail-page .purchase-options, .product-detail-page .product-d-info { padding: 16px; }
}

@media (min-width: 761px) and (max-width: 768px) {
  .detail-main { padding: 0 1rem; }
}
@media (max-width: 760px) {
  .product-detail-page .breadcrumb { gap: 6px; padding-right: 10px; }
  .product-detail-page .breadcrumb .crumb-home { padding: 4px 8px; }
  .crumb-home svg { width: 14px; height: 14px; }
}
