.p-detail {
  max-width: 1120px;
  margin: 0 auto;
}

.p-detail-top {
  display: grid;
  grid-template-columns: 560px minmax(0, 420px);
  gap: 32px;
  align-items: start;
  justify-content: center;
}

.p-detail-right {
  padding-top: 38px;
}

.p-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 14px;
  margin-bottom: 12px;
}

.p-breadcrumb a {
  color: #475467;
}

.p-image {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  overflow: hidden;
  background: #f8f9fb;
}

.p-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-image-empty {
  min-height: 440px;
  display: grid;
  place-items: center;
  color: #98a2b3;
}

.p-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #101828;
  line-height: 1.32;
}

.p-price {
  margin: 14px 0 4px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #111827;
}

.p-points-preview {
  margin: 0 0 10px;
  color: #0f766e;
  font-size: 14px;
  line-height: 1.55;
}

.p-points-preview strong {
  color: #047857;
  font-size: 18px;
  font-weight: 800;
  margin-right: 4px;
}

.p-points-preview span {
  display: inline-block;
  margin-left: 8px;
  color: #667085;
}

.p-points-preview--guest {
  color: #667085;
}

.p-meta {
  margin: 0;
  color: #667085;
  font-size: 14px;
}

.p-status {
  margin: 10px 0 16px;
  font-weight: 700;
  font-size: 14px;
}

.p-status-onsale { color: #027a48; }
.p-status-soldout { color: #b42318; }

.p-info-box {
  border: 1px solid #e4e7ec;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border-radius: 12px;
  padding: 12px 14px;
  color: #344054;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.p-info-box p {
  margin: 0;
}

.p-options {
  border-top: 1px solid #eaecf0;
  border-bottom: 1px solid #eaecf0;
  padding: 14px 0;
}

.p-option-item + .p-option-item {
  margin-top: 10px;
}

.p-option-item label {
  display: block;
  margin: 0 0 6px;
  color: #344054;
  font-weight: 600;
  font-size: 13px;
}

.p-option-item select {
  width: 100%;
  height: 46px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  color: #101828;
  font-size: 14px;
  outline: none;
}

.p-option-item select:focus {
  border-color: #111827;
}

.p-quantity {
  margin-top: 12px;
}

.p-quantity label {
  display: block;
  margin: 0 0 6px;
  color: #344054;
  font-weight: 600;
  font-size: 13px;
}

.p-quantity-control {
  width: 180px;
  height: 44px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  background: #fff;
}

.p-qty-btn {
  border: 0;
  background: #f9fafb;
  color: #101828;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.p-qty-input {
  width: 100%;
  height: 100%;
  border: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #101828;
  outline: none;
}

.p-qty-input::-webkit-outer-spin-button,
.p-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.p-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 58px 1fr 1fr;
  gap: 10px;
}

.p-actions form {
  margin: 0;
}

.p-btn {
  width: 100%;
  height: 52px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.p-btn-heart {
  background: #fff;
  border-color: #d0d5dd;
  color: #d92d20;
  font-size: 24px;
  line-height: 1;
}

.p-btn-heart.is-active {
  background: #fff1f1;
  border-color: #f04438;
  box-shadow: inset 0 0 0 1px rgba(240, 68, 56, 0.08);
}

.p-btn-cart {
  background: #fff;
  border-color: #111827;
  color: #111827;
}

.p-btn-buy {
  background: linear-gradient(135deg, #111827 0%, #2f3d55 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.22);
}

.p-btn-disabled {
  background: #f2f4f7;
  color: #98a2b3;
  border-color: #eaecf0;
  box-shadow: none;
  cursor: not-allowed;
}

.p-tabbed {
  margin-top: 34px;
}

.p-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.p-tab {
  height: 52px;
  border: 1px solid #d0d5dd;
  background: #f2f4f7;
  color: #344054;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.p-tab.is-active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.p-tab-panels {
  border-top: 1px solid #e4e7ec;
  margin-top: 12px;
}

.p-tab-panel {
  padding-top: 22px;
}

.p-desc {
  line-height: 1.8;
}

.p-desc h2 {
  margin: 0 auto 14px;
  max-width: 980px;
  font-size: 24px;
  color: #101828;
}

.p-desc-body {
  max-width: 980px;
  margin: 0 auto;
}

.p-desc-body img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.p-review h2 {
  margin: 0 0 14px;
  font-size: 24px;
  color: #101828;
}

.p-review-empty {
  margin: 0;
  color: #667085;
}

.p-review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #eaecf0;
}

.p-review-item {
  padding: 14px 0;
  border-bottom: 1px solid #eaecf0;
}

.p-review-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475467;
  font-size: 13px;
}

.p-review-item__meta strong {
  color: #111827;
  font-size: 14px;
}

.p-review-item__stars {
  color: #b45309;
  letter-spacing: 1px;
  font-size: 14px;
}

.p-review-item__content {
  margin: 8px 0 0;
  color: #344054;
  font-size: 14px;
  line-height: 1.65;
}

.confirm-modal__actions--single {
  grid-template-columns: 1fr;
}

@media (max-width: 980px) {
  .p-detail-top {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .p-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .p-detail-right {
    padding-top: 0;
  }

  .p-title {
    font-size: 26px;
  }

  .p-price {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .p-detail {
    padding: 0 2px;
  }

  .p-breadcrumb {
    flex-wrap: wrap;
    row-gap: 4px;
    font-size: 13px;
  }

  .p-title {
    font-size: 22px;
  }

  .p-price {
    margin-top: 10px;
    font-size: 24px;
  }

  .p-info-box {
    padding: 11px 12px;
    font-size: 13px;
  }

  .p-options {
    padding: 12px 0;
  }

  .p-option-item {
    display: grid;
    gap: 6px;
  }

  .p-option-item + .p-option-item {
    margin-top: 12px;
  }

  .p-option-item label,
  .p-quantity label {
    width: 100%;
    text-align: left;
    font-size: 12px;
    color: #667085;
    letter-spacing: -0.01em;
  }

  .p-option-item select {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    text-align: left;
  }

  .p-quantity {
    display: grid;
    gap: 6px;
    justify-items: start;
  }

  .p-quantity-control {
    width: min(220px, 100%);
    max-width: 220px;
  }

  .p-actions {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
  }

  .p-actions form:last-child {
    grid-column: 1 / -1;
  }

  .p-btn {
    height: 48px;
    border-radius: 10px;
  }

  .p-btn-buy {
    height: 52px;
  }

  .p-tabs {
    gap: 6px;
  }

  .p-tab {
    height: 48px;
    font-size: 15px;
  }

  .p-desc h2,
  .p-review h2 {
    font-size: 20px;
  }

  .p-review-item__meta {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .p-image-empty {
    min-height: 280px;
  }
}
