/* Full Updated CSS for products_details.css */

.product-detail {
  padding: 50px 0;
  background: #f9f9f9;
}

.container {
  max-width: 1200px;
  margin: auto;
}

.detail-wrapper {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.screenshots-wrapper {
  position: relative;
  flex: 1 1 50%;
  overflow: hidden;
}

.screenshots {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 10px;
}

.screenshots img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
  border: 2px solid transparent;
}

.screenshots img.active {
  border: 2px solid #0b5ed7;
}

.preview-img {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  margin: 30px 0 10px;
  border-radius: 10px;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  background: #eee;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.arrow.left {
  left: 0;
}
.arrow.right {
  right: 0;
}

.info {
  flex: 1 1 40%;
}

.main-img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.price-box {
  font-size: 20px;
  margin-bottom: 10px;
}

.old-price {
  text-decoration: line-through;
  color: #888;
  margin-left: 10px;
}

.status {
  margin-bottom: 10px;
  font-weight: bold;
  color: green;
}

.meta {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px;
}

.meta li {
  margin-bottom: 5px;
}

.cart-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-form input[type="number"],
.cart-form select {
  padding: 8px;
  font-size: 16px;
}

.total {
  font-weight: bold;
  margin-top: 10px;
}

.cart-btn {
  background: #0b5ed7;
  color: white;
  padding: 12px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.tab-section {
  margin-top: 40px;
}

.tabs {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 15px;
  border-bottom: 2px solid #ddd;
}

.tabs li {
  padding: 10px 15px;
  cursor: pointer;
}

.tabs li.active {
  border-bottom: 2px solid #0b5ed7;
  font-weight: bold;
}

.tab-content {
  padding: 20px 0;
  display: none;
}

.tab-content:first-of-type {
  display: block;
}

.demo-box {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.demo-row {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.demo-card {
  flex: 1 1 48%;
  background: #f7f7f7;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.demo-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
}

.demo-btn {
  display: inline-block;
  background: #53c2ef;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}

.demo-instructions {
  background: #fafafa;
  border-top: 1px solid #ddd;
  padding: 20px;
  font-size: 16px;
  border-radius: 0 0 8px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.instruction-box {
  flex: 1 1 48%;
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
  border: 1px solid #eee;
}

.instruction-box strong {
  display: inline-block;
  width: 120px;
}

.demo-instructions h4 {
  width: 100%;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 17px;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 5px;
}

/* Ask a Question */
.ask-form {
  margin-top: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #eee;
  max-width: 600px;
}
.ask-form input,
.ask-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
}
.ask-form button {
  background: #e62727;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  font-size: 15px;
}

/* Review Bars */
.review-bars {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 300px;
}
.review-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bar {
  flex: 1;
  height: 10px;
  background: #eee;
  border-radius: 5px;
  position: relative;
}
.bar-fill {
  height: 100%;
  background: #d92d2d;
  border-radius: 5px;
  position: absolute;
  top: 0;
  left: 0;
}
.review-list {
  margin-top: 20px;
}
.review-item {
  background: #fff;
  border: 1px solid #eee;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 6px;
}
.review-item .rating {
  color: #e62727;
  margin-bottom: 5px;
}
.review-item .date {
  color: #777;
  font-size: 13px;
}

.review-form {
  margin-top: 30px;
}
.review-form textarea,
.review-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.review-form button {
  background: #0b5ed7;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}
.preview-img {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  margin: 30px 0 10px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: 0.3s ease-in-out;
}
