.product-detail-page,
.product-shell {
  background: #fff;
}

.product-detail-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  min-height: calc(44px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 16px 0;
  background: #f6f6f6;
}

.product-detail-header strong {
  color: #262626;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  text-align: center;
}

.product-detail-header__back {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
}

.product-detail-header__back::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  width: 12px;
  height: 12px;
  border-left: 2px solid #262626;
  border-bottom: 2px solid #262626;
  transform: rotate(45deg);
}

.product-main {
  padding: 0;
  background: #fff;
}

.product-hero {
  background: #e9eef4;
}

.product-hero img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-summary {
  padding: 24px 20px 17px;
  background: #fff;
}

.product-summary h1 {
  color: #262626;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
}

.product-summary__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
}

.product-summary__price strong {
  color: #262626;
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
}

.product-summary__price del {
  color: #b3b4b8;
  font-size: 12px;
  line-height: 18px;
}

.product-summary__meta {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  color: #4d4f55;
  font-size: 12px;
  line-height: 17px;
  white-space: nowrap;
}

.product-summary__meta-item {
  display: inline-flex;
  align-items: center;
}

.product-summary__meta-item--ship::before,
.product-action-panel__contact span::before {
  content: "";
  width: 15px;
  height: 12px;
  margin-right: 5px;
  background:
    linear-gradient(#9aa1a9, #9aa1a9) 2px 4px / 8px 5px no-repeat,
    linear-gradient(#9aa1a9, #9aa1a9) 10px 6px / 4px 3px no-repeat,
    radial-gradient(circle, #fff 0 2px, #9aa1a9 2.3px 3px, transparent 3.3px) 3px 8px / 7px 7px no-repeat,
    radial-gradient(circle, #fff 0 2px, #9aa1a9 2.3px 3px, transparent 3.3px) 10px 8px / 7px 7px no-repeat;
}

.product-card {
  margin: 0 20px;
  border-radius: 6px;
  background: #f6f7f9;
}

.product-card--promo {
  padding: 18px 18px 16px;
}

.promo-item + .promo-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(38, 38, 38, 0.09);
}

.promo-item__tag {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 0 4px;
  border: 1px solid #ff9f24;
  border-radius: 2px;
  color: #ff9f24;
  font-size: 10px;
  line-height: 14px;
}

.promo-item__lead,
.promo-item p {
  color: #262626;
  font-size: 12px;
  line-height: 1.55;
}

.promo-item__lead {
  margin-top: 12px;
}

.promo-item--detail p {
  margin-top: 7px;
}

.product-card--purchase {
  display: grid;
  margin-top: 20px;
  padding: 9px 18px 8px;
}

.purchase-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 14px;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  color: #262626;
  font-size: 12px;
  line-height: 1.42;
}

.purchase-row + .purchase-row {
  border-top: 1px solid rgba(38, 38, 38, 0.08);
}

.purchase-row::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.6px solid #262626;
  border-right: 1.6px solid #262626;
  transform: rotate(45deg);
  opacity: 0.72;
}

.purchase-row--plain::after {
  content: none;
}

.purchase-row__label {
  color: #8d9299;
}

.purchase-row__value {
  min-width: 0;
  color: #262626;
}

.purchase-row__value em {
  display: inline-flex;
  align-items: center;
  min-height: 15px;
  padding: 0 4px;
  border: 1px solid #ff4d4f;
  border-radius: 2px;
  color: #ff4d4f;
  font-size: 10px;
  font-style: normal;
  line-height: 13px;
}

.purchase-row__extra {
  color: #ff3030;
  font-size: 12px;
  white-space: nowrap;
}

.product-section {
  padding: 30px 20px 0;
  background: #fff;
}

.product-section h2 {
  color: #262626;
  font-size: 18px;
  line-height: 25px;
  font-weight: 600;
}

.bundle-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.bundle-card {
  display: grid;
  grid-template-columns: 18px 48px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  min-height: 132px;
  padding: 26px 18px 16px;
  border: 1px solid #dcdfe4;
  border-radius: 6px;
  background: #fff;
}

.bundle-card.is-selected {
  border-color: #007a55;
}

.bundle-card__toggle {
  position: relative;
  width: 16px;
  height: 16px;
  margin-top: 6px;
  border: 1px solid #cbd0d7;
  border-radius: 2px;
  background: #fff;
}

.bundle-card__toggle.is-selected {
  border-color: #007a55;
  background: #007a55;
}

.bundle-card__toggle.is-selected::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.bundle-card__image {
  width: 42px;
  height: 48px;
  object-fit: contain;
}

.bundle-card__body {
  min-width: 0;
}

.bundle-card__body h3 {
  color: #262626;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.bundle-card__body strong {
  display: block;
  margin-top: 8px;
  color: #262626;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
}

.qty-stepper--bundle {
  display: inline-grid;
  grid-template-columns: 34px 42px 34px;
  align-items: center;
  margin-top: 12px;
  border-radius: 4px;
}

.qty-stepper--bundle button,
.qty-stepper--bundle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  color: #262626;
  font-size: 17px;
  line-height: 1;
}

.qty-stepper--bundle button {
  border: 1px solid #dde0e5;
  background: #fafafa;
}

.qty-stepper--bundle span {
  border-top: 1px solid #dde0e5;
  border-bottom: 1px solid #dde0e5;
  font-size: 16px;
}

.product-section--detail {
  padding-bottom: 22px;
}

.detail-stage {
  display: grid;
  place-items: center;
  height: 486px;
  margin-top: 16px;
  border-radius: 6px;
  background: #f7f8fa;
}

.detail-stage img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.product-action-wrap {
  background: #fff;
  box-shadow: 0 -1px 0 rgba(38, 38, 38, 0.08);
}

.product-action-panel {
  max-width: 430px;
  margin: 0 auto;
  padding: 10px 20px calc(8px + var(--safe-bottom));
  background: #fff;
}

.product-action-panel__ship {
  color: #262626;
  font-size: 12px;
  line-height: 17px;
}

.product-action-panel__contact {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #262626;
  font-size: 11px;
  line-height: 16px;
}

.product-action-panel__contact span {
  display: inline-flex;
  align-items: center;
}

.product-action-panel__address {
  margin-top: 5px;
  color: #8f949b;
  font-size: 11px;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-action-bar {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) 94px 94px;
  align-items: center;
  margin-top: 8px;
}

.product-action-bar__price strong {
  display: block;
  color: #262626;
  font-size: 18px;
  line-height: 22px;
  font-weight: 600;
}

.product-action-bar__price del {
  display: block;
  color: #b3b4b8;
  font-size: 11px;
  line-height: 15px;
}

.product-action-bar__ghost,
.product-action-bar__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  font-size: 14px;
  line-height: 18px;
}

.product-action-bar__ghost {
  border-radius: 21px 0 0 21px;
  background: #dff2ea;
  color: #007a55;
}

.product-action-bar__primary {
  border-radius: 0 21px 21px 0;
  background: #007a55;
  color: #fff;
}

@media (max-width: 359px) {
  .product-detail-header {
    padding-inline: 12px;
  }

  .product-summary,
  .product-section,
  .product-action-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .product-card {
    margin-left: 16px;
    margin-right: 16px;
  }

  .product-summary__meta {
    gap: 8px;
    font-size: 11px;
  }

  .bundle-card {
    grid-template-columns: 16px 42px minmax(0, 1fr);
    column-gap: 10px;
    padding-inline: 14px;
  }

  .product-action-bar {
    grid-template-columns: minmax(58px, 1fr) 86px 86px;
  }
}
