.bcy-product-detail {
  --bcy-detail-blue: #2878ff;
  --bcy-detail-deep: #14233c;
  --bcy-detail-line: #dce5f1;
  --bcy-detail-soft: #f5f8fc;
}

.bcy-product-detail > h2 {
  margin-bottom: 10px;
  color: #111827;
  font-weight: 700;
  text-align: center;
}

.bcy-product-detail > .desc {
  margin-bottom: 28px;
  color: #637087;
  text-align: center;
}

.bcy-product-detail > .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--bcy-detail-line);
}

.bcy-product-detail > .nav-tabs > li {
  float: none;
  margin: 0;
}

.bcy-product-detail > .nav-tabs > li > a {
  min-width: 108px;
  margin: 0;
  padding: 14px 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #30394a;
  font-size: 17px;
  text-align: center;
}

.bcy-product-detail > .nav-tabs > li.active > a,
.bcy-product-detail > .nav-tabs > li.active > a:focus,
.bcy-product-detail > .nav-tabs > li.active > a:hover,
.bcy-product-detail > .nav-tabs > li > a:hover {
  border: 0;
  border-bottom: 2px solid var(--bcy-detail-blue);
  background: transparent;
  color: var(--bcy-detail-blue);
}

.bcy-detail-group {
  padding-top: 26px;
}

.bcy-detail-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4px 22px;
  border-bottom: 1px solid var(--bcy-detail-line);
}

.bcy-detail-group__head h3 {
  margin: 0 0 7px;
  color: var(--bcy-detail-deep);
  font-size: 25px;
  font-weight: 700;
}

.bcy-detail-group__head p {
  margin: 0;
  color: #637087;
  font-size: 15px;
}

.bcy-detail-group__head .btn {
  min-width: 146px;
  flex: 0 0 auto;
}

.bcy-detail-group__notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 20px 0 0;
  padding: 18px 20px;
  border: 1px solid #e7edf6;
  border-radius: 8px;
  background: linear-gradient(135deg, #f7faff 0%, #fbfdff 100%);
}

.bcy-detail-group__notes p {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  margin: 0;
  color: #44516a;
  line-height: 1.8;
}

.bcy-detail-group__notes b {
  color: var(--bcy-detail-blue);
  font-weight: 500;
}

.bcy-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.bcy-detail-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 410px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(25, 65, 120, 0.08);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.bcy-detail-card:hover {
  transform: translateY(-4px);
  border-color: #9fc0ff;
  box-shadow: 0 16px 36px rgba(25, 65, 120, 0.14);
}

.bcy-detail-card__badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 6px 12px;
  border-radius: 0 9px 0 10px;
  background: #ff6a00;
  color: #fff;
  font-size: 12px;
}

.bcy-detail-card > header {
  min-height: 118px;
  padding: 24px 22px 18px;
  border-bottom: 1px solid #e8eef6;
  background: linear-gradient(145deg, #fff 0%, #f7faff 100%);
}

.bcy-detail-card__status {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--bcy-detail-blue);
  font-size: 12px;
}

.bcy-detail-card h4 {
  margin: 0;
  color: #182237;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.bcy-detail-card dl {
  margin: 0;
  padding: 20px 22px 8px;
}

.bcy-detail-card dl > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #e8edf5;
}

.bcy-detail-card dt {
  color: #728097;
  font-weight: 400;
}

.bcy-detail-card dd {
  margin: 0;
  color: #27344d;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.bcy-detail-card footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 18px 22px 22px;
}

.bcy-detail-card__price {
  min-width: 0;
  color: #37445b;
  white-space: nowrap;
}

.bcy-detail-card__price b {
  color: #2673f6;
  font-size: 27px;
  font-weight: 500;
}

.bcy-detail-card__price span {
  font-size: 13px;
}

.bcy-detail-card footer .btn {
  flex: 0 0 auto;
  padding-right: 13px;
  padding-left: 13px;
}

@media (max-width: 1199px) {
  .bcy-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .bcy-product-detail > .nav-tabs {
    justify-content: flex-start;
    gap: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .bcy-product-detail > .nav-tabs > li > a {
    min-width: auto;
    padding: 12px 14px;
    font-size: 15px;
    white-space: nowrap;
  }

  .bcy-detail-group__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .bcy-detail-group__head .btn {
    width: 100%;
  }

  .bcy-detail-group__notes,
  .bcy-detail-grid {
    grid-template-columns: 1fr;
  }

  .bcy-detail-group__notes p {
    grid-template-columns: 68px 1fr;
  }

  .bcy-detail-card {
    min-height: 380px;
  }
}

