/* =========================================================
   PRODUCT PAGE
   ========================================================= */

.product-single {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 48px;
  align-items: start;
}

/* ---------- Gallery ---------- */
.product-gallery__main {
  display: block;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  background: #f6f6f6;
  aspect-ratio: 3 / 4;
}

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

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.product-gallery__thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #f6f6f6;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

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

.product-gallery__thumb.is-active,
.product-gallery__thumb:hover {
  border-color: #08c;
}

/* ---------- Info panel ---------- */
.product-single__cat {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #999;
}

.product-single__cat a {
  color: #08c;
  text-decoration: none;
}

.product-single__title {
  margin: 6px 0 12px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: #222529;
}

/* rating */
.product-single__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.star-rating {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 16px;
  overflow: hidden;
  line-height: 1;
  font-size: 16px;
  font-family: "Font Awesome 5 Free", Arial, sans-serif;
}

.star-rating::before {
  content: "★★★★★";
  color: #ddd;
  letter-spacing: 2px;
}

.star-rating span {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #f2b01e;
}

.star-rating span::before {
  content: "★★★★★";
  letter-spacing: 2px;
}

.product-single__reviews {
  font-size: 13px;
  color: #888;
}

/* price */
.product-single__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 26px;
  font-weight: 700;
  color: #222529;
}

.product-single__price del {
  color: #aaa;
  font-weight: 400;
  font-size: 18px;
}

.product-single__price ins {
  text-decoration: none;
}

.product-single__badge {
  display: inline-block;
  padding: 3px 8px;
  background: #da5555;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 3px;
  align-self: center;
}

/* description */
.product-single__desc {
  font-size: 14px;
  line-height: 1.65;
  color: #555;
  margin: 0 0 22px;
}

/* actions */
.product-single__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.product-single__download,
.product-single__addcart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}

.product-single__download {
  background: #08c;
  color: #fff;
  border: 1px solid #08c;
}

.product-single__download:hover {
  background: #006fa6;
  border-color: #006fa6;
}

.product-single__addcart {
  background: #fff;
  color: #08c;
  border: 1px solid #08c;
}

.product-single__addcart:hover {
  background: #08c;
  color: #fff;
}

/* meta list */
.product-single__meta {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #555;
}

.product-single__meta li {
  padding: 6px 0;
}

.product-single__meta strong {
  color: #222529;
  margin-right: 6px;
}

.product-single__meta a {
  color: #08c;
  text-decoration: none;
}

.product-single__meta a:hover {
  text-decoration: underline;
}

/* =========================================================
   CATEGORY BLOCK
   ========================================================= */
.product-category-block {
  margin-bottom: 48px;
}

.product-category-block__title,
.related-products__title {
  font-size: 20px;
  font-weight: 700;
  color: #222529;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.product-category-block__card {
  background: #f8fbff;
  border: 1px solid #e2eefa;
  border-radius: 10px;
  overflow: hidden;
}

.product-category-block__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: background .2s;
}

.product-category-block__link:hover {
  background: #eef6fe;
}

.product-category-block__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  color: #08c;
  border: 1px solid #d5e7f7;
}

.product-category-block__body {
  flex: 1 1 auto;
  min-width: 0;
}

.product-category-block__body h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #222529;
}

.product-category-block__body p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.product-category-block__count {
  flex: 0 0 auto;
  padding: 6px 12px;
  background: #08c;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 991px) {
  .product-single {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }
  .product-single__title {
    font-size: 22px;
  }
  .product-single__price {
    font-size: 22px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .product-single {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
  }
  .product-single__title {
    font-size: 20px;
  }
  .product-single__price {
    font-size: 20px;
  }
  .product-single__actions {
    flex-direction: column;
  }
  .product-single__download,
  .product-single__addcart {
    justify-content: center;
  }
  .product-category-block__link {
    flex-wrap: wrap;
    padding: 16px;
  }
  .product-category-block__count {
    margin-left: 64px;
  }
  .product-category-block {
    margin-bottom: 32px;
  }
  .related-products__title {
    font-size: 18px;
  }
}

/* Very small phones */
@media (max-width: 420px) {
  .product-gallery__thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
  .product-category-block__count {
    margin-left: 0;
  }
}


/* =========================================================
   PRODUCT REVIEWS
   ========================================================= */
.product-reviews {
  margin-bottom: 48px;
}

.product-reviews__title {
  font-size: 20px;
  font-weight: 700;
  color: #222529;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.product-reviews__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 20px;
  background: #fafbfc;
  border: 1px dashed #d9e2ec;
  border-radius: 10px;
}

.product-reviews__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eef6fe;
  color: #08c;
  margin-bottom: 14px;
}

.product-reviews__empty-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #222529;
}

.product-reviews__empty-text {
  margin: 0 0 18px;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.55;
  color: #666;
}

.product-reviews__empty-btn {
  display: inline-block;
  padding: 10px 22px;
  background: #08c;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.product-reviews__empty-btn:hover {
  background: #006fa6;
}

/* Mobile */
@media (max-width: 767px) {
  .product-reviews {
    margin-bottom: 32px;
  }
  .product-reviews__empty {
    padding: 28px 16px;
  }
  .product-reviews__empty-text {
    font-size: 13px;
  }
}