.prodDetail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/*new*/
.conProductInfo {
  margin: 20px;
}
/* Img Prod */
.prodInfo {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 20px;
}
.prodimgDisplay img {
  width: 300px;
}

.prodimgDisplay {
  display: flex;
  justify-content: center;
  align-items: center;
}
.prodimgDisplay,
.prodimgChoice {
  cursor: pointer;
}
.prodimgChoice img {
  max-width: 90px;
  width: 100%;
  height: auto;
}
.prodimgChoice {
  display: flex;
  justify-content: center;
}
.shares {
  display: flex;
  background-color: aliceblue;
  padding: 5px;
  border-radius: 50px;
  margin-top: 5px;
  justify-content: space-around;
}
.shareLike {
  display: flex;
  gap: 5px;
}

/* Prod INfo */

.prodimgInfo {
  flex: 1;
}
.prodimgInfo h2 {
  font-size: 1.9rem;
}
.rate-sold {
  display: flex;
  gap: 20px;
  margin: 10px 20px;
}
#pricy {
  font-size: 2rem;
  margin: 30px 0px 10px 20px;
}
.discount {
  background-color: gray;
  width: 100%;
  padding: 5px 10px;
  border-radius: 20px;
  color: white;
}
.row {
  display: flex;
  gap: 20px;
  padding: 8px 0;
  margin-left: 20px;
}
.buy-cart {
  display: flex;
  justify-content: space-evenly;
  gap: 20px;
  padding: 0px 20px;
  margin-top: 20px;
}
.buy-cart button {
  font-size: 1.2rem;
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}
#buy-now {
  border: 2px solid #f7b100;
  background-color: transparent;
  color: #f7b100;
  font-weight: 500;
}
#add-cart {
  background-color: #f7b100;
  border: none;
  color: white;
  font-weight: 500;
}
.label {
  font-weight: bold;
  width: 30%;
}
.colors,
.size {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-option {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  border: 1px solid #000;
  transition: all 0.3s ease;
  display: inline-block; 
}
.color-option:hover {
  opacity: 90%;
}
.color-option.selected {
  border: 2px solid #000;
  transform: scale(1.2);
}
.size button {
  padding: 3px 20px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background-color: #333;
  border: 2px solid #333;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block; 
}
.size button.selected {
  border: 2px solid #000;
  transform: scale(1.2);
}

.size button:hover {
  background-color: #ff5722;
  border-color: #ff5722;
}

.quantity {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
}

.quantity button {
  background-color: white;
  border: none;
  padding: 6px 12px;
  font-size: 18px;
  cursor: pointer;
}

.quantity input {
  width: 40px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 16px;
}

.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/* Product Rating and Description */
.prodDescription {
  flex: 1;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

  padding: 20px;
}
.descrip {
  font-weight: bold;
  font-size: 18px;
  background-color: bisque;
  padding: 10px 20px;
  border-radius: 10px;
}
#descrip {
  margin: 20px;
}

/* rating */
.comments-area {
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);

}
.rating-box {
  display: flex;
  width: 100%;
  gap: 2rem;
  padding: 2rem;

}

.left .average {
  font-size: 3rem;
  font-weight: bold;
}

.left .average span {
  font-size: 1.5rem;
  color: #aaa;
}

.left .stars {
  color: #ffc107;
  font-size: 2rem;
  margin: 0.5rem 0;
}

.total-ratings {
  color: #555;
  font-size: 0.9rem;
}

.right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #444;
  position: relative;
}

.bar-label {
  width: 3rem;
  color: #ffc107;
}

.bar-bg {
  flex: 1;
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background-color: #ffc107;
  border-radius: 5px;
  position: absolute;
  top: 0;
  left: 0;
}

.bar-count {
  width: 2rem;
  text-align: right;
}
/* REVIEW */
.review-section {
  width: 100%;
  margin: auto;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.review-header {
  float: right;
  align-items: center;
  margin-bottom: 1.5rem;
}

.review-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.sort {
  font-size: 0.9rem;
  color: #555;
  cursor: pointer;
}

.review {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 1rem;

}

.profile-icon {
  font-size: 2rem;
  color: #888;
  display: flex;
  gap: 10px;
}
.profile-icon p {
  font-size: 1.3rem;
}

.review-body {
  flex: 1;
  margin-top: -10px;
}

.stars {
  color: #f5c518;
  font-size: 1rem;
}

.review-meta {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.3rem;
}

.review-text {
  margin-top: 0.8rem;
  line-height: 1.5;
}
/* Similar Products */
.similarProd {
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 20px;
}
/* product similar */
.product-list {
  padding: 0;
  margin: 0;
  
  
}
/* Product*/

.products {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  scroll-behavior: smooth;
  padding: 0 20px;
  -webkit-overflow-scrolling: touch; /* for smooth iOS scroll */
}

.products a {
  text-decoration: none;
  color: black;
}

.product-card {
  background: white;
  padding: 15px;
  width: 100%; /* Fixed width for consistent scroll */
  min-width: 180px;
  max-width: 220px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  scroll-snap-align: start;
  flex-shrink: 0;
  scroll-snap-align: start;
}

@media (max-width: 600px) {
  .product-card {
    width: 150px;
    min-width: 200px;
  }
}
.product-card:hover {
  transform: scale(1.05);
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: fill;
  border-radius: 5px;
  margin-bottom: 3px;
}
.product-name {
  font-weight: bold;
  font-size: 16px;
  min-height: 30px;
  display: flex;
  align-items: left;
  justify-content: left;
  text-align: left;
  margin-top: 10px;
}
.price {
  align-items: left;
  justify-content: left;
  text-align: left;
  color: #a85a00;
  font-weight: bold;
  margin-bottom: 2px;
}
.rating {
  align-items: left;
  justify-content: left;
  text-align: left;
  color: #c64d0c;
  font-size: 13px;
}
.rating i {
  margin-right: 2px;
}