/* ============================================================
   Product detail page (OCOP) — kế thừa design system trang chủ
   Dùng chung biến màu từ homepage-refresh.css (:root --hotel-*)
   ============================================================ */

.product-detail-page {
  background: linear-gradient(180deg, #fff8fc 0%, #fff 320px);
}

/* ---------- Breadcrumb ---------- */

.pd-breadcrumb {
  background: transparent;
  border-bottom: 1px solid #f3e6ee;
}

.pd-breadcrumb .breadcrumb {
  margin: 0;
  padding: 16px 0;
  background: transparent;
  font-size: 13px;
}

.pd-breadcrumb .breadcrumb-item a {
  color: var(--hotel-muted);
  font-weight: 600;
  transition: color .2s ease;
}

.pd-breadcrumb .breadcrumb-item a:hover {
  color: var(--hotel-coral);
}

.pd-breadcrumb .breadcrumb-item.active {
  color: var(--hotel-coral);
  font-weight: 700;
}

/* ---------- Layout chính ---------- */

.pd-main {
  padding: 44px 0 70px;
}

.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* ---------- Gallery ---------- */

.pd-gallery {
  position: sticky;
  top: 110px;
}

.pd-gallery-main {
  position: relative;
  overflow: hidden;
  border: 1px solid #f2e3eb;
  border-radius: 14px;
  background: #fbf7f2;
  box-shadow: 0 14px 40px rgba(72, 32, 53, .1);
}

.pd-gallery-main img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform .6s ease;
}

.pd-gallery-main:hover img {
  transform: scale(1.04);
}

.pd-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 4px;
  background: var(--hotel-coral);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(250, 41, 145, .3);
}

.pd-gallery-note {
  margin-top: 12px;
  color: var(--hotel-muted);
  font-size: 13px;
  text-align: center;
}

.pd-gallery-note i {
  margin-right: 6px;
  color: var(--hotel-coral);
}

/* ---------- Khối thông tin ---------- */

.pd-info .pd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hotel-coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.pd-info .pd-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.pd-title {
  margin: 10px 0 14px;
  color: #202b31;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.pd-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.pd-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f5a623;
  font-size: 14px;
}

.pd-rating span {
  margin-left: 6px;
  color: var(--hotel-muted);
  font-size: 13px;
  font-weight: 600;
}

.pd-tag {
  padding: 5px 11px;
  border: 1px solid #f2d5e3;
  border-radius: 20px;
  background: #fff4f9;
  color: #b0176b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pd-price-box {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding: 18px 20px;
  margin-bottom: 22px;
  border: 1px dashed rgba(250, 41, 145, .35);
  border-radius: 10px;
  background: #fff4f9;
}

.pd-price {
  color: var(--hotel-coral);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.pd-price-unit {
  color: var(--hotel-muted);
  font-size: 14px;
  font-weight: 600;
}

.pd-price-note {
  flex-basis: 100%;
  margin: 4px 0 0;
  color: #8a6d7c;
  font-size: 13px;
}

.pd-desc {
  margin-bottom: 24px;
  color: #58666b;
  font-size: 16px;
  line-height: 1.85;
}

/* Điểm nổi bật */

.pd-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.pd-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #394b52;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.pd-highlights i {
  margin-top: 3px;
  color: var(--hotel-coral);
}

/* Đặt hàng */

.pd-order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #f2e3eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(72, 32, 53, .07);
}

.pd-order-label {
  flex-basis: 100%;
  margin: 0 0 2px;
  color: var(--hotel-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pd-order .quantity-control {
  height: 48px;
}

.pd-order .quantity-control button {
  width: 40px;
  height: 46px;
}

.pd-order .quantity-control input {
  width: 52px;
  height: 46px;
  font-size: 15px;
}

.pd-order .product-order-btn {
  min-height: 48px;
    padding: 13px 22px;
    font-size: 13px;
    border-radius: 6px;
    text-align: center;
}

.pd-order-shopee {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #ee4d2d;
  border-radius: 6px;
  color: #ee4d2d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.pd-order-shopee:hover {
  background: #ee4d2d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(238, 77, 45, .28);
}

/* Hỗ trợ nhanh */

.pd-support {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pd-support-item {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #eef0f1;
  border-radius: 10px;
  background: #fafbfb;
}

.pd-support-item i {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #fff0f7;
  color: var(--hotel-coral);
  font-size: 15px;
}

.pd-support-item small {
  display: block;
  color: var(--hotel-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pd-support-item strong,
.pd-support-item a {
  color: #26363c;
  font-size: 14px;
  font-weight: 750;
}

.pd-support-item a:hover {
  color: var(--hotel-coral);
}

/* ---------- Tabs thông tin chi tiết ---------- */

.pd-tabs {
  margin-top: 56px;
}

.pd-tabs .nav-tabs {
  gap: 25px;
  border-bottom: none;
}

.pd-tabs .nav-link {
  padding: 14px 22px;
  margin-bottom: -2px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #5f6d72;
  font-size: 14px;
  font-weight: 700;
  transition: color .2s ease, border-color .2s ease;
}

.pd-tabs .nav-link:hover {
  color: var(--hotel-coral);
  border-color: transparent;
}

.pd-tabs .nav-link.active {
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--hotel-coral);
  color: var(--hotel-coral);
}

.pd-tabs .tab-content {
  padding: 30px 0 0;
  color: #58666b;
  font-size: 15px;
  line-height: 1.85;
}

.pd-tabs .tab-content h4 {
  margin: 0 0 14px;
  color: #202b31;
  font-size: 19px;
  font-weight: 750;
}

.pd-spec-table {
  width: 100%;
  max-width: 640px;
  border-collapse: collapse;
}

.pd-spec-table th,
.pd-spec-table td {
  padding: 12px 16px;
  border: 1px solid #f0e4ea;
  font-size: 14px;
  vertical-align: top;
}

.pd-spec-table th {
  width: 210px;
  background: #fff8fc;
  color: #394b52;
  font-weight: 700;
  text-align: left;
}

.pd-spec-table td {
  color: #58666b;
}

.pd-tabs .tab-content ul {
  padding-left: 20px;
}

.pd-tabs .tab-content li {
  margin-bottom: 8px;
}

/* ---------- Sản phẩm liên quan ---------- */

.pd-related {
  padding: 70px 0 80px;
  background: #fff7fb;
}

.pd-related .title-header {
  margin-bottom: 30px;
}

/* Card sản phẩm liên quan tái dùng .product của trang chủ */

.pd-related .product {
  height: 100%;
  overflow: hidden;
  border: 1px solid #f2e3eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(72, 32, 53, .08) !important;
  transition: transform .3s ease, box-shadow .3s ease;
}

.pd-related .product:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(15, 52, 64, .16) !important;
}

.pd-related .product-image-container {
  margin: 0;
  overflow: hidden;
  border-radius: 11px 11px 0 0;
  background: #fbf7f2;
}

.pd-related .product-image-container img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  transition: transform .65s ease;
}

.pd-related .product:hover .product-image-container img {
  transform: scale(1.07);
}

.pd-related .product-details {
  padding: 18px 20px 20px;
}

.pd-related .product-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 750;
}

.pd-related .product-title a {
  color: #29373c;
}

.pd-related .product:hover .product-title a {
  color: var(--hotel-coral);
}

.pd-related .product-details .text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  font-size: 11px;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
  .pd-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .pd-gallery {
    position: static;
  }

  .pd-gallery-main img {
    height: 420px;
  }
}

@media (max-width: 767px) {
  .pd-main {
    padding: 28px 0 50px;
  }

  .pd-gallery-main img {
    height: 300px;
  }

  .pd-highlights {
    grid-template-columns: 1fr;
  }

  .pd-order {
    padding: 16px;
  }

  .pd-order .product-order-btn {
    flex: 1 1 100%;
  }

  .pd-order-shopee {
    flex: 1 1 100%;
  }

  .pd-price {
    font-size: 26px;
  }

  .pd-tabs .nav-link {
    padding: 11px 13px;
    font-size: 12px;
  }

  .pd-spec-table th {
    width: 130px;
  }

  .pd-related {
    padding: 50px 0 55px;
  }
}
