.product-detail-page {
  padding: 38px 15px 112px;
  background: radial-gradient(circle at 100% 0, #ebf4ff 0, transparent 25%), #f8faff;
}
.detail-head {
  position: relative; height: 49px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 11px;
}
.detail-head h1 { margin: 0; font-size: 20px; }
.detail-head .mini { top: 6px; }
.detail-back { position: absolute; left: -9px; top: 1px; width: 44px; height: 44px; border: 0; color: #111827; background: none; font-size: 34px; line-height: 1; cursor: pointer; }

.detail-showcase {
  position: relative; min-height: 151px; display: flex; align-items: center; gap: 21px; overflow: hidden;
  padding: 24px 22px; border-radius: 18px; color: #fff;
  background: linear-gradient(130deg, #298cff 0%, #126cf4 48%, #287ff4 100%);
  box-shadow: 0 16px 35px #176cf32b;
}
.detail-icon {
  position: relative; z-index: 2; width: 82px; height: 82px; display: grid; flex: 0 0 auto;
  place-items: center; border: 1px solid #ffffff70; border-radius: 22px;
  background: linear-gradient(145deg, #62c6ff66, #1668ed99); box-shadow: inset 5px 5px 16px #ffffff23, 0 12px 20px #0758c74a;
}
.detail-icon img { width: 68px; height: 68px; }
.detail-hero-copy { position: relative; z-index: 2; min-width: 0; flex: 1; }
.detail-hero-copy h2 { margin: 0 0 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 25px; }
.detail-benefits { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-benefits span { padding: 6px 8px; border: 1px solid #ffffff1f; border-radius: 8px; background: #ffffff18; font-size: 9px; white-space: nowrap; }
.detail-watermark { position: absolute; right: -3px; bottom: -20px; width: 125px; opacity: .1; transform: rotate(-13deg); filter: brightness(0) invert(1); }
.detail-spark { position: absolute; z-index: 1; color: #a7d6ff; font-style: normal; }
.spark-a { right: 99px; top: 19px; font-size: 20px; }.spark-b { right: 84px; top: 40px; font-size: 9px; }

.detail-info-card { margin-top: 13px; padding: 6px 17px; border-radius: 18px; }
.detail-info-card > div { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #e8edf4; }
.detail-info-card > div:last-child { border-bottom: 0; }
.detail-info-card span:first-child { color: #202838; font-size: 13px; }
.detail-info-card b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.detail-info-card strong { color: #1471f5; font-size: 16px; }
.detail-info-card .stock-empty { color: #e5484d; }
.detail-info-card .stock-low { color: #f08a1c; }
.detail-info-card .stock-enough { color: #15a66f; }
.detail-qty { display: grid; grid-template-columns: 36px 45px 36px; overflow: hidden; border: 1px solid #dce5f1; border-radius: 9px; }
.detail-qty button, .detail-qty input { height: 34px; display: grid; place-items: center; border: 0; background: #fff; }
.detail-qty input { width: 45px; padding: 0; border-right: 1px solid #e5ebf4; border-left: 1px solid #e5ebf4; border-radius: 0; outline: 0; color: #111827; text-align: center; font: 700 14px/34px inherit; appearance: textfield; -moz-appearance: textfield; }
.detail-qty input::-webkit-inner-spin-button, .detail-qty input::-webkit-outer-spin-button { margin: 0; appearance: none; -webkit-appearance: none; }
.detail-qty input:focus { background: #f4f8ff; box-shadow: inset 0 0 0 1px #1671f8; }
.detail-qty button { color: #176cf3; font-size: 20px; cursor: pointer; }
.detail-qty button:first-child { color: #9aa6b7; }

.detail-discount-card { margin-top: 13px; padding: 16px 17px; border-radius: 18px; background: linear-gradient(135deg,#fffaf2,#fff); }
.detail-discount-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.detail-discount-card header b, .detail-discount-card header small { display: block; }
.detail-discount-card header b { font-size: 15px; }.detail-discount-card header small { margin-top: 3px; color: #8793a5; font-size: 10px; }
.detail-discount-card header strong { padding: 5px 9px; border-radius: 12px; color: #fff; background: linear-gradient(135deg,#ff9b24,#ff6c32); font-size: 10px; white-space: nowrap; }
.detail-discount-card > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.detail-discount-card > div span { padding: 7px 10px; border: 1px solid #ffdcb9; border-radius: 9px; color: #b5661c; background: #fff7ed; font-size: 10px; }
.detail-discount-card > div span.active { border-color: #ff8b32; color: #fff; background: linear-gradient(135deg,#ff9f2a,#ff7334); box-shadow: 0 6px 14px #ff812b2b; }
.detail-discount-card > div b { margin-left: 3px; }

.detail-description { margin-top: 13px; padding: 19px 17px; border-radius: 18px; }
.detail-description > h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 15px; font-size: 15px; }
.detail-description > h2 i { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 6px; color: #176cf3; background: #eaf3ff; font-size: 12px; font-style: normal; }
.detail-description > p { margin: 0; color: #69768b; font-size: 12px; line-height: 1.8; white-space: pre-line; }
.detail-tip { display: grid; grid-template-columns: minmax(0,1fr) 100px; align-items: end; gap: 12px; margin-top: 16px; padding-top: 15px; border-top: 1px dashed #dce4ee; }
.detail-tip h3 { margin: 0 0 8px; font-size: 13px; }.detail-tip h3 i { margin-right: 7px; color: #ff9a22; font-style: normal; }
.detail-tip ul { margin: 0; padding-left: 17px; color: #69768b; font-size: 10px; line-height: 1.85; }.detail-tip li::marker { color: #ff9a22; }
.detail-shield { width: 78px; height: 70px; display: grid; place-items: center; justify-self: end; border-radius: 50%; background: radial-gradient(circle, #d9eaff 0, #eff6ff 55%, transparent 56%); }
.detail-shield span { width: 50px; height: 57px; display: grid; place-items: center; clip-path: polygon(50% 0, 93% 17%, 87% 72%, 50% 100%, 13% 72%, 7% 17%); color: #fff; background: linear-gradient(145deg, #70b8ff, #166af1); font-size: 23px; font-weight: 900; box-shadow: inset 0 0 0 4px #ffffff3d; }

.detail-assurance { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin-top: 13px; padding: 13px 9px; border-radius: 17px; }
.detail-assurance > div { min-width: 0; display: flex; align-items: center; gap: 6px; }
.detail-assurance img { width: 28px; height: 28px; flex: 0 0 auto; }
.detail-assurance b, .detail-assurance small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-assurance b { font-size: 9px; }.detail-assurance small { margin-top: 2px; color: #8b96a7; font-size: 7px; }

.product-buy-footer {
  position: fixed; z-index: 18; bottom: 0; width: 100%; max-width: 500px; display: grid;
  grid-template-columns: 135px minmax(0,1fr); align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #e0e7f0;
  background: #ffffffed; box-shadow: 0 -10px 30px #183d6b12; backdrop-filter: blur(18px);
}
.product-buy-footer > div strong, .product-buy-footer > div span { display: block; }
.product-buy-footer > div strong { color: #126bf2; font-size: 22px; }
.product-buy-footer > div strong small { font-size: 11px; }.product-buy-footer > div span { margin-top: 2px; color: #7f8b9e; font-size: 10px; }
.product-buy-footer .primary { height: 47px; padding: 0; border-radius: 13px; font-size: 16px; box-shadow: 0 11px 24px #176cf338; }
.product-buy-footer .primary:disabled { box-shadow: none; color: #fff; background: #aab5c4; cursor: not-allowed; }

@media (min-width: 640px) { .product-buy-footer { bottom: 27px; max-width: 486px; } }
@media (max-width: 380px) {
  .detail-showcase { gap: 14px; padding-left: 16px; padding-right: 16px; }
  .detail-icon { width: 72px; height: 72px; }.detail-icon img { width: 59px; height: 59px; }
  .detail-hero-copy h2 { font-size: 21px; }.detail-benefits span { padding: 5px 6px; }
  .detail-tip { grid-template-columns: 1fr 76px; }.detail-shield { transform: scale(.85); transform-origin: right bottom; }
  .detail-assurance { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .product-buy-footer { grid-template-columns: 115px minmax(0,1fr); }.product-buy-footer > div strong { font-size: 19px; }
}
