/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #fff;
  color: #333;
  max-width: 500px;
  margin: auto;
  border: 1px solid #ddd;
  padding-bottom: 70px; /* jagah buttons ke liye */
}

/* Search Bar */
.search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #cfebfe;
  padding: 10px;
}

.search-bar input {
  width: 81%;
  padding: 12px;
  border-radius: 9px;
  border: 1px solid #58abfa;
}

.search-bar .cart,
.search-bar .back {
  font-size: 20px;
  cursor: pointer;
}

/* Product Gallery */
.product-gallery {
  display: flex;
  padding: 10px;
  gap: 10px;
}

.main-image {
  flex: 1;
}

.main-image img {
  width: 100%;
  aspect-ratio: 647/832;   /* 1:1 ratio */
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* Thumbnails (scrolling right side) */
.thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 400px;   /* adjust as per need */
  padding-right: 4px;
}

/* Hide scrollbar */
.thumbs::-webkit-scrollbar {
  display: none;
}
.thumbs {
  -ms-overflow-style: none;  /* IE/Edge */
  scrollbar-width: none;     /* Firefox */
}

.thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: 0.2s;
}

.thumbs img:hover {
  border-color: green;
}


/* Rating */
.rating {
  padding: 10px;
  font-size: 14px;
  color: green;
}

/* Colors */
.colors {
  padding: 10px;
}

.color-options {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.color-item {
  text-align: center;
}

.color-item img {
  width: 70px;
  height: 94px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.color-item span {
  font-size: 12px;
  display: block;
  margin-top: 3px;
}

.color-item.out img {
  opacity: 0.4;
}

.color-item.out span {
  color: red;
}

.color-item.active span {
  color: green;
}

/* Storage Options */
.storage {
  padding: 10px;
}

.storage-options {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.storage-btn {
  border: 1px solid #ddd;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  background: #f9f9f9;
}

.storage-btn.active {
  border-color: green;
  color: green;
  font-weight: bold;
}

/* Product Details */
.details {
  padding: 10px;
}

.details h2 {
  font-size: 18px;
  margin-bottom: 5px;
}

.details p {
  font-size: 14px;
  color: #555;
}

/* Price */
.price {
  padding: 10px;
  background: #ffffff;
}

.offer {
  color: purple;
  font-size: 14px;
}

.discount {
  color: green;
  font-weight: bold;
}

.price h3 {
  margin-top: 5px;
}

/* Buttons (Fixed) */
.buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 500px;
  margin: auto;
  display: flex;
  justify-content: space-around;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 10px;
}

.cart-btn, .buy-btn {
  border: none;
  padding: 12px 20px;
  border-radius: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-btn {
  background: #f1f1f1;
}

.buy-btn {
  background: #ffcc00;
  font-weight: bold;
}
.photo {
                width: 100%;
            }

.reviews {
      padding: 15px;
      background: #fff;
      max-width: 700px;
      margin: 20px auto;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    .review-card {
      border-bottom: 1px solid #eee;
      padding: 15px 0;
    }

    .review-header {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 14px;
      font-weight: bold;
      margin-bottom: 4px;
    }

    .stars {
      color: green;
      font-size: 14px;
    }

    .rating {
      color: green;
    }

    .review-sub {
      font-size: 12px;
      color: #777;
      margin-bottom: 6px;
    }

    .review-text {
      font-size: 14px;
      margin-bottom: 8px;
    }

    .review-images {
      display: flex;
      gap: 8px;
      margin-bottom: 8px;
    }

    .review-images img {
      width: 70px;
      height: 70px;
      object-fit: cover;
      border-radius: 6px;
      cursor: pointer;
      border: 1px solid #ddd;
      transition: transform 0.2s;
    }

    .review-images img:hover {
      transform: scale(1.05);
    }

    .review-footer {
      font-size: 12px;
      color: #555;
    }

    .user {
      display: block;
      margin-bottom: 6px;
      font-weight: bold;
    }

    .actions {
      display: flex;
      gap: 10px;
      margin-bottom: 6px;
    }

    .helpful-btn, .reply-btn {
      border: 1px solid #ddd;
      background: transparent;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 12px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 4px;
      transition: 0.2s;
    }

    .helpful-btn.active {
      background: rgba(0, 128, 0, 0.1);
      border-color: green;
      color: green;
    }

    .verified {
      font-size: 12px;
      color: #666;
    }

    /* Fullscreen Image Modal */
    .img-modal {
      display: none;
      position: fixed;
      z-index: 1000;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.8);
      justify-content: center;
      align-items: center;
    }

    .img-modal img {
      max-width: 90%;
      max-height: 90%;
      border-radius: 8px;
    }