/* static/css/product_detail.css */

.product-detail {
  padding: 64px 0;
   padding-top: 120px; /* مهم إذا navbar fixed */
  background: #050607;
}

.product-detail__back {
  margin-bottom: 18px;
}

.product-detail__back-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.product-detail__back-link:hover {
  color: rgba(255,255,255,0.85);
}

.product-detail__top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 992px) {
  .product-detail__top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.product-detail__title {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin: 0 0 14px 0;
}

.product-detail__overview {
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 14px 0;
}

.product-detail__description {
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 22px;
}

.product-detail__btn {
  display: inline-block;
  background: #d8b76a;
  color: #111;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.product-detail__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.product-detail__media-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 14px;
}

.product-detail__img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.product-detail__divider {
  margin: 48px 0;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.product-detail__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 992px) {
  .product-detail__grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 18px;
}

.product-card__title {
  color: #fff;
  font-weight: 800;
  margin: 0 0 14px 0;
}

.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-list__item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.product-list__item:last-child {
  border-bottom: none;
}

.product-list__icon {
  color: #d8b76a;
  font-weight: 900;
  line-height: 1.4;
}

.product-list__text {
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.product-empty {
  color: rgba(255,255,255,0.55);
  padding: 8px 0;
}

.specs__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.specs__row:last-child {
  border-bottom: none;
}

.specs__key {
  color: rgba(255,255,255,0.55);
}

.specs__val {
  color: rgba(255,255,255,0.75);
  text-align: right;
}

.product-accordion__item {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
}

.product-accordion__btn {
  background: rgba(255,255,255,0.03);
  color: #fff;
  font-weight: 700;
  box-shadow: none;
}

.product-accordion__btn:focus {
  box-shadow: none;
}

.product-accordion__body {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  background: rgba(255,255,255,0.02);
}

.product-detail__section-title {
  color: #fff;
  font-weight: 800;
  margin: 0 0 18px 0;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 992px) {
  .product-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-gallery__box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 10px;
}

.product-gallery__img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}
.product-detail__back-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

.product-detail__back-link:hover{
  background: rgba(255,255,255,0.06);
  color: #fff;
}
