.pd-page {
  padding: 1.25rem 0 3rem;
}

.pd-breadcrumb {
  margin-bottom: 1.25rem;
}

.pd-breadcrumb .breadcrumb {
  margin: 0;
  background: transparent;
  padding: 0;
  font-size: 0.85rem;
}

.pd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.pd-gallery {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 1.1rem;
  padding: 1rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.pd-gallery__main {
  position: relative;
  border-radius: 0.9rem;
  overflow: hidden;
  background: linear-gradient(160deg, #f8fafc 0%, #eef2f7 100%);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
}

.pd-gallery__nav {
  position: absolute;
  inset-inline: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.pd-gallery__nav button {
  pointer-events: auto;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pd-gallery__thumbs {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.pd-gallery__thumb {
  flex: 0 0 4.2rem;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 0.7rem;
  border: 2px solid transparent;
  background: #f8fafc;
  padding: 0.2rem;
  cursor: pointer;
  overflow: hidden;
}

.pd-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pd-gallery__thumb.is-active {
  border-color: #0d6efd;
  background: #eff6ff;
}

.pd-buybox {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 1.1rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.pd-buybox__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.pd-buybox__cat {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0d6efd;
  text-decoration: none;
}

.pd-buybox__stock {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.pd-buybox__stock.is-ok {
  background: #ecfdf5;
  color: #047857;
}

.pd-buybox__stock.is-out {
  background: #fef2f2;
  color: #b91c1c;
}

.pd-buybox__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #64748b;
}

.pd-buybox__rating i {
  font-size: 0.9rem;
}

.pd-buybox__title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.55;
  color: #0f172a;
  margin: 0 0 0.85rem;
}

.pd-buybox__desc {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 1.1rem;
  max-height: 5.4em;
  overflow: hidden;
  position: relative;
}

.pd-buybox__desc.is-open {
  max-height: none;
}

.pd-buybox__more {
  border: 0;
  background: none;
  color: #0d6efd;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0;
  margin: -0.4rem 0 1.1rem;
}

.pd-option {
  margin-bottom: 1.15rem;
}

.pd-option__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: #334155;
}

.pd-option__label span {
  font-weight: 600;
  color: #64748b;
}

.pd-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pd-color {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 0 0 2px #fff;
}

.pd-color.is-active {
  border-color: #0d6efd;
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px rgba(13, 110, 253, 0.2);
}

.pd-color:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pd-chip {
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #334155;
  border-radius: 0.7rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pd-chip:hover {
  border-color: #93c5fd;
}

.pd-chip.is-active {
  border-color: #0d6efd;
  background: #eff6ff;
  color: #1d4ed8;
}

.pd-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pd-warranty {
  display: grid;
  gap: 0.5rem;
}

.pd-warranty__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  background: #fff;
  text-align: right;
}

.pd-warranty__item.is-active {
  border-color: #0d6efd;
  background: #f8fbff;
}

.pd-warranty__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pd-warranty__main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pd-warranty__icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.6rem;
  background: #eff6ff;
  color: #0d6efd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pd-warranty__title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.pd-warranty__sub {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0.1rem 0 0;
}

.pd-warranty__price {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0d6efd;
  white-space: nowrap;
}

.pd-price {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 0.9rem;
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
}

.pd-price__label {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.pd-price__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
}

.pd-price__current {
  font-size: 1.55rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
}

.pd-price__old {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 0.95rem;
}

.pd-price__badge {
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.pd-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.pd-qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.8rem;
  overflow: hidden;
  background: #fff;
}

.pd-qty button {
  width: 2.4rem;
  height: 2.6rem;
  border: 0;
  background: #f8fafc;
  color: #334155;
  font-size: 1.1rem;
  font-weight: 700;
}

.pd-qty input {
  width: 2.8rem;
  height: 2.6rem;
  border: 0;
  text-align: center;
  font-weight: 800;
  color: #0f172a;
  background: #fff;
}

.pd-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 0.8rem;
  background: #0d6efd;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0 1rem;
  min-height: 2.6rem;
}

.pd-add:hover {
  background: #0b5ed7;
  color: #fff;
}

.pd-add:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.pd-perks {
  display: grid;
  gap: 0.45rem;
}

.pd-perk {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: #475569;
  padding: 0.55rem 0.65rem;
  border-radius: 0.7rem;
  background: #f8fafc;
}

.pd-perk i {
  color: #0d6efd;
  margin-top: 0.1rem;
}

.pd-tabs {
  margin-top: 2rem;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.pd-tabs__nav {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid #eef2f7;
  padding: 0.55rem;
  background: #f8fafc;
  overflow-x: auto;
}

.pd-tabs__btn {
  border: 0;
  background: transparent;
  color: #64748b;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  border-radius: 0.7rem;
  white-space: nowrap;
}

.pd-tabs__btn.is-active {
  background: #fff;
  color: #0d6efd;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.pd-tabs__panel {
  display: none;
  padding: 1.25rem 1.4rem 1.5rem;
  color: #475569;
  line-height: 1.9;
  font-size: 0.95rem;
}

.pd-tabs__panel.is-active {
  display: block;
}

.pd-specs {
  display: grid;
  gap: 0.45rem;
}

.pd-spec {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.7rem;
  background: #f8fafc;
}

.pd-spec__key {
  font-weight: 800;
  color: #334155;
  font-size: 0.85rem;
}

.pd-spec__val {
  color: #64748b;
  font-size: 0.9rem;
}

.pd-reviews-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.pd-reviews-score {
  text-align: center;
  min-width: 110px;
}

.pd-reviews-score__num {
  font-size: 2.4rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.pd-review-item {
  border-top: 1px solid #eef2f7;
  padding: 1rem 0;
}

.pd-review-item:first-child {
  border-top: 0;
  padding-top: 0;
}

@media (max-width: 991.98px) {
  .pd-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .pd-gallery {
    position: static;
  }

  .pd-buybox__title {
    font-size: 1.15rem;
  }

  .pd-actions {
    grid-template-columns: 1fr;
  }

  .pd-qty {
    width: 100%;
    justify-content: space-between;
  }

  .pd-qty input {
    flex: 1;
  }

  .pd-spec {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
