:root {
  --blue: #1a9ed4;
  --dark: #222;
  --mid: #555;
  --light: #888;
  --border: #e8e8e8;
  --bg: #f8f8f8;
}
#product-details-section {
  padding: 30px 0;
}

#product-details-section .product-title{
    font-size: 24px;
    font-weight: 600;
}

html {
  scroll-behavior: smooth;
}

.main-img-wrap {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s;
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  color: var(--mid);
  transition: all 0.2s;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.slider-arrow:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.slider-arrow.prev {
  left: 12px;
}
.slider-arrow.next {
  right: 12px;
}

/* Zoom icon */
.zoom-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  color: var(--mid);
  z-index: 5;
  transition: all 0.2s;
}
.zoom-icon:hover {
  background: var(--blue);
  color: #fff;
}

/* Thumbnails */
.thumbnails-wrap {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.thumb-item {
  width: 70px;
  height: 70px;
  border: 2px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.thumb-item.active {
  border-color: var(--blue);
}
.thumb-item:hover {
  border-color: var(--blue);
}

/* ── Product Info ────────────────────────────────────────── */
.product-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.2;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.stars {
  color: #f4a100;
  font-size: 15px;
}
.stars .empty {
  color: #ddd;
}
.review-count {
  font-size: 13px;
  color: var(--light);
}

.product-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

.product-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  /* margin-bottom: 14px; */
  letter-spacing: 0.5px;
}

.product-desc {
  font-size: 14px;
  color: #000;
  line-height: 1.7;
  margin-bottom: 14px;
  font-weight: bold;
}

.meta-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
}
.meta-label {
  color: var(--light);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 600;
  white-space: nowrap;
}
.meta-value {
  color: var(--dark);
  font-weight: 700;
}

/* ── Quantity + Add to Cart ──────────────────────────────── */
.cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  height: 46px;
}
.qty-btn {
  width: 36px;
  height: 46px;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 16px;
  color: var(--mid);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover {
  background: var(--blue);
  color: #fff;
}
.qty-input {
  width: 60px;
  height: 46px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  outline: none;
}
/* Hide number input arrows */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.qty-input[type="number"] {
  -moz-appearance: textfield;
}

.add-to-cart-btn {
  height: 46px;
  padding: 0 28px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  white-space: nowrap;
}
.add-to-cart-btn:hover {
  background: #1585b5;
}

/* ── Add to Wishlist ─────────────────────────────────────── */
.wishlist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 4px;
}
.wishlist-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid);
  padding: 0;
  transition: color 0.2s;
}
.wishlist-btn i {
  font-size: 15px;
  color: var(--light);
  transition: color 0.2s;
}
.wishlist-btn:hover {
  color: #e53935;
}
.wishlist-btn:hover i {
  color: #e53935;
}
.wishlist-btn.active {
  color: #e53935;
}
.wishlist-btn.active i {
  color: #e53935;
}

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.show {
  display: flex;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
}

/* ── Product Tabs ────────────────────────────────────────── */
.product-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid var(--border);
}

.tab-item {
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--light);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.tab-item::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s;
}

.tab-item:hover {
  color: var(--dark);
}

.tab-item.active {
  color: var(--dark);
}

.tab-item.active::after {
  background: var(--dark);
}

.tab-divider {
  border: none;
  margin: 0 0 24px 0;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-desc-text {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.8;
  padding: 10px 0;
}

/* Specification Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table tr {
  border-bottom: 1px solid var(--border);
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table td {
  font-size: 16px;
  padding: 14px 20px;
  background: #f9f9f9;
}

.spec-table tr:nth-child(even) td {
  background: #fff;
}

.spec-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--mid);
  width: 40%;
}

.spec-value {
  color: var(--mid);
}

.add-review-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 16px;
}

.review-form-wrap {
  background: #f5f5f5;
  border-radius: 3px;
  padding: 24px;
}

.review-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

/* Interactive star rating */
.star-rating {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.star-rating i {
  font-size: 20px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.15s;
}
.star-rating i.active,
.star-rating i:hover {
  color: #f4a100;
}

/* Inputs */
.review-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--dark);
  background: #fff;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}
.review-input:focus {
  border-color: var(--blue);
}

/* Submit button */
.review-submit-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 10px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.review-submit-btn:hover {
  background: #1585b5;
}

/* ── Bottom 4-Column Lists ───────────────────────────────── */
.bottom-section-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.bottom-section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--blue);
}

.bottom-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: opacity 0.2s;
}
.bottom-mini-card:last-child {
  border-bottom: none;
}
.bottom-mini-card:hover {
  opacity: 0.8;
}

.bottom-mini-img {
  width: 70px;
  height: 70px;
  min-width: 70px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bottom-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bottom-mini-info {
  flex: 1;
  min-width: 0;
}

.bottom-mini-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bottom-mini-cond {
  font-size: 14px;
  color: var(--light);
  margin-bottom: 3px;
}
.bottom-mini-stars {
  color: #f4a100;
  font-size: 14px;
  margin-bottom: 3px;
}
.bottom-mini-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.review-header {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.review-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
}

/* Profile Image Styles */
.profile-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
}

/* Review Content Box */
.review-box {
  background-color: #fcfcfc;
  border: 1px solid #f0f0f0;
  padding: 15px 25px;
  flex-grow: 1;
  margin-left: 25px;
  position: relative;
}

/* The Triangle/Caret effect */
.review-box::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #fcfcfc;
  z-index: 2;
}
/* Border for the triangle */
.review-box::after {
  content: "";
  position: absolute;
  left: -11px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 11px solid #f0f0f0;
  z-index: 1;
}

.reviewer-name {
  font-weight: bold;
  color: #555;
}
.review-date {
  color: #999;
  font-weight: normal;
  font-size: 0.9rem;
}
.review-text {
  color: #777;
  margin-top: 5px;
}

/* Star Colors */
.stars-container i {
  color: #ddd;
  font-size: 14px;
}
.stars-container i.star-filled {
  color: #f4a100;
}

.view-more:hover {
  text-decoration: underline;
}

.info-pill {
  background: #2563eb;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 15px;
  color: #ffffff;
  display: inline-block;
  margin: 5px 8px 5px 0;
  font-weight: bold;
}

#product-information-tab-container {
  scroll-margin-top: 90px;
}

/* ========================================= Media Query ===================================== */
@media (max-width: 991px) {
  .product-title {
    font-size: 22px;
  }
  .product-price {
    font-size: 22px;
  }
  .thumb-item {
    width: 58px;
    height: 58px;
  }
}
@media (max-width: 767px) {
  .product-title {
    font-size: 20px;
  }
  .cart-row {
    gap: 8px;
  }
  .add-to-cart-btn {
    padding: 0 18px;
    font-size: 12px;
  }
  .thumbnails-wrap {
    gap: 6px;
  }
  .thumb-item {
    width: 52px;
    height: 52px;
  }
}
@media (max-width: 480px) {
  .add-to-cart-btn {
    width: 100%;
    justify-content: center;
  }
  .cart-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .qty-wrap {
    width: 100%;
  }
  .qty-input {
    flex: 1;
  }
}

@media (max-width: 576px) {
  .tab-item {
    padding: 10px 14px;
    font-size: 10px;
    letter-spacing: 1px;
  }
  .spec-label {
    width: 50%;
  }
}

@media (max-width: 576px) {
  .review-form-wrap {
    padding: 16px;
  }
  .review-count-title {
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .bottom-mini-img {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }
  .bottom-mini-name {
    font-size: 12px;
  }
  .bottom-mini-price {
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .review-box::before,
  .review-box::after {
    display: none;
  }
  .review-box {
    margin-left: 10px;
  }
  .profile-img {
    width: 50px;
    height: 50px;
  }
}
