 /* ---------------- Product Page ---------------- */
 .product-wrapper {
   display: flex;
   gap: 3rem;
   margin-bottom: 3rem;
   flex-wrap: wrap;
 }

 /* Image Gallery Styles */
 .media {
   flex: 1;
   min-width: 300px;
   max-width: 500px;
 }

 .main-image-container {
   position: relative;
   border-radius: 12px;
   overflow: hidden;
   box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
   margin-bottom: 1rem;
   transition: transform 0.3s ease;
 }

 .main-image-container:hover {
   transform: translateY(-5px);
 }

 .product-img.main-img {
   width: 100%;
   height: 400px;
   object-fit: contain;
   background: #f8f9fa;
   display: block;
   transition: transform 0.5s ease;
 }

 .main-image-container:hover .product-img.main-img {
   transform: scale(1.05);
 }

 .image-nav {
   position: absolute;
   top: 50%;
   width: 100%;
   display: flex;
   justify-content: space-between;
   padding: 0 1rem;
   transform: translateY(-50%);
   opacity: 0;
   transition: opacity 0.3s ease;
 }

 .main-image-container:hover .image-nav {
   opacity: 1;
 }

 .nav-btn {
   width: 45px;
   height: 45px;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.9);
   border: none;
   color: #333;
   font-size: 1.2rem;
   cursor: pointer;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
   transition: all 0.3s ease;
   display: flex;
   align-items: center;
   justify-content: center;
 }

 .nav-btn:hover {
   background: white;
   transform: scale(1.1);
   box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
 }

 .image-badge {
   position: absolute;
   top: 15px;
   right: 15px;
 }

 .badge {
   background: #ff4757;
   color: white;
   padding: 6px 12px;
   border-radius: 20px;
   font-size: 0.8rem;
   font-weight: 600;
   box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
 }

 /* Thumbnail Images */
 .thumbnail-container {
   display: flex;
   gap: 10px;
   padding: 10px 0;
   overflow-x: auto;
 }

 .thumbnail {
   width: 80px;
   height: 80px;
   border-radius: 8px;
   overflow: hidden;
   cursor: pointer;
   border: 2px solid transparent;
   transition: all 0.3s ease;
   flex-shrink: 0;
   opacity: 0.7;
 }

 .thumbnail:hover {
   transform: translateY(-3px);
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
   opacity: 1;
 }

 .thumbnail.active {
   border-color: #1976d2;
   opacity: 1;
   box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
 }

 .thumbnail img {
   width: 100%;
   height: 100%;
   object-fit: cover;
 }

 /* Product Details */
 .meta {
   flex: 1;
   min-width: 300px;
 }

 .product-title-detail {
   font-size: 2.3rem;
  color: #2d3436;
  margin-bottom: 1rem;
  font-weight: 700;
 }

 .price-section {
   display: flex;
   align-items: center;
   gap: 1.5rem;
   margin-bottom: 1.5rem;
 }

 .price {
   font-size: 2rem;
   color: #1976d2;
   font-weight: 700;
   margin: 0;
 }

 .sold-badge {
   background: #ffeaa7;
   color: #d63031;
   padding: 6px 15px;
   border-radius: 20px;
   font-weight: 600;
   font-size: 0.9rem;
   display: flex;
   align-items: center;
   gap: 5px;
 }

 .stock-section {
   margin-bottom: 1.5rem;
 }

 .stock {
   display: flex;
   align-items: center;
   gap: 8px;
   font-size: 1.1rem;
   font-weight: 600;
   margin-bottom: 8px;
 }

 .stock.in-stock {
   color: #00b894;
 }

 .stock.out-stock {
   color: #d63031;
 }

 .stock-bar {
   height: 8px;
   background: #dfe6e9;
   border-radius: 4px;
   overflow: hidden;
   width: 200px;
 }

 .stock-progress {
   height: 100%;
   background: linear-gradient(90deg, #00b894, #55efc4);
   border-radius: 4px;
   transition: width 0.5s ease;
 }

 .desc {
   font-size: 1.1rem;
   color: #636e72;
   line-height: 1.7;
   margin-bottom: 2rem;
   padding-bottom: 1.5rem;
   border-bottom: 1px solid #dfe6e9;
 }

 /* Quantity Controls */
 .quantity-section {
   margin-bottom: 2rem;
 }

 .quantity-section label {
   display: block;
   margin-bottom: 0.8rem;
   font-weight: 600;
   color: #2d3436;
 }

 .quantity-control {
   display: flex;
   align-items: center;
   width: fit-content;
   border: 2px solid #dfe6e9;
   border-radius: 8px;
   overflow: hidden;
 }

 .qty-btn {
   width: 45px;
   height: 45px;
   background: #f8f9fa;
   border: none;
   font-size: 1.2rem;
   cursor: pointer;
   transition: all 0.3s ease;
   display: flex;
   align-items: center;
   justify-content: center;
 }

 .qty-btn:hover {
   background: #e9ecef;
 }

 #quantity {
   width: 70px;
   height: 45px;
   border: none;
   text-align: center;
   font-size: 1.1rem;
   font-weight: 600;
   color: #2d3436;
   background: white;
 }

 /* Action Buttons */
 .action-buttons {
   display: flex;
   gap: 1rem;
   margin-bottom: 2rem;
   flex-wrap: wrap;
 }

 .btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 10px;
   padding: 1rem 2rem;
   border-radius: 10px;
   text-decoration: none;
   font-size: 1rem;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
   border: none;
   text-transform: uppercase;
   letter-spacing: 0.5px;
 }

 .btn.primary {
   background: linear-gradient(135deg, #1976d2, #0d47a1);
   color: white;
   box-shadow: 0 6px 15px rgba(25, 118, 210, 0.3);
 }

 .btn.primary:hover {
   transform: translateY(-3px);
   box-shadow: 0 10px 20px rgba(25, 118, 210, 0.4);
 }

 .btn.secondary {
   background: linear-gradient(135deg, #00b894, #00a085);
   color: white;
   box-shadow: 0 6px 15px rgba(0, 184, 148, 0.3);
 }

 .btn.secondary:hover {
   transform: translateY(-3px);
   box-shadow: 0 10px 20px rgba(0, 184, 148, 0.4);
 }

 /* Product Meta */
 .product-meta {
   background: #f8f9fa;
   padding: 1.5rem;
   border-radius: 10px;
   border-left: 4px solid #1976d2;
 }

 .meta-item {
   display: flex;
   align-items: center;
   gap: 12px;
   margin-bottom: 12px;
   color: #636e72;
   font-size: 0.95rem;
 }

 .meta-item:last-child {
   margin-bottom: 0;
 }

 .meta-item i {
   color: #1976d2;
   font-size: 1.1rem;
 }

 .ask-link {
   color: #1976d2;
   text-decoration: none;
   font-weight: 600;
   transition: color 0.3s ease;
 }

 .ask-link:hover {
   color: #0d47a1;
   text-decoration: underline;
 }

 /* ---------------- Responsive Design ---------------- */
 @media (max-width: 992px) {
   .product-wrapper {
     flex-direction: column;
     align-items: center;
   }

   .media,
   .meta {
     max-width: 100%;
   }
 }

 @media (max-width: 768px) {
   .product-title {
     font-size: 1.8rem;
   }

   .price {
     font-size: 1.7rem;
   }

   .action-buttons {
     flex-direction: column;
   }

   .btn {
     width: 100%;
     justify-content: center;
   }

   .thumbnail-container {
     justify-content: center;
   }

   .image-nav {
     display: none;
     /* Hide arrows on mobile for cleaner UI */
   }

   .product-img.main-img {
     height: 300px;
   }
 }

 @media (max-width: 480px) {
   .product-title {
     font-size: 1.5rem;
   }

   .price {
     font-size: 1.4rem;
   }

   .price-section {
     flex-direction: column;
     align-items: flex-start;
     gap: 0.8rem;
   }

   .thumbnail {
     width: 60px;
     height: 60px;
   }

   .product-img.main-img {
     height: 250px;
   }
 }

 /***********************************/

 /* ========== REVIEW SECTION ========== */
.reviews {
  max-width: 700px;
  margin: 2.5rem auto;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-title-review {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1976d2;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f0f0f0;
  position: relative;
}

.section-title-review::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #1976d2, #4fc3f7);
  border-radius: 2px;
}

/* Review List */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Review Card */
.review-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #eef2f7;
  position: relative;
  overflow: hidden;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.08);
  border-color: #1976d2;
}

.review-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #1976d2, #4fc3f7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.review-card:hover::before {
  opacity: 1;
}

/* Review Header */
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.review-header strong {
  font-size: 0.95rem;
  color: #2d3436;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Star Display */
.star-display {
  display: flex;
  gap: 2px;
}

.star-display .fas {
  font-size: 0.9rem;
  color: #e0e0e0;
  transition: color 0.3s ease;
}

.star-display .fas.checked {
  color: #ffb300;
  text-shadow: 0 1px 2px rgba(255, 179, 0, 0.2);
}

/* Review Comment */
.review-comment {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #424242;
  margin: 0;
  padding: 0.5rem 0;
  border-top: 1px solid #f0f0f0;
}

/* Review Actions */
.review-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
}

.review-card:hover .review-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Icon Buttons */
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.85rem;
  position: relative;
  background: transparent;
}

.icon-btn:hover {
  transform: translateY(-2px);
}

.icon-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  background: currentColor;
  opacity: 0.1;
  transition: opacity 0.3s ease;
}

.icon-btn.edit {
  color: #1976d2;
}

.icon-btn.edit:hover {
  background: rgba(25, 118, 210, 0.08);
  box-shadow: 0 3px 10px rgba(25, 118, 210, 0.15);
}

.icon-btn.delete {
  color: #e53935;
}

.icon-btn.delete:hover {
  background: rgba(229, 57, 53, 0.08);
  box-shadow: 0 3px 10px rgba(229, 57, 53, 0.15);
}

.icon-btn.submit {
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, #1976d2, #4fc3f7);
  font-size: 1rem;
}

.icon-btn.submit:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 15px rgba(25, 118, 210, 0.25);
}

/* No Reviews Text */
.text-muted {
  text-align: center;
  color: #9e9e9e;
  font-size: 0.9rem;
  padding: 2rem;
  font-style: italic;
}

/* Review Form */
.review-form {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #eef2f7;
  margin-top: 1.5rem;
}

.review-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 0.5rem;
}

/* Star Rating Input */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 1.5rem;
  color: #e0e0e0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.25rem;
  position: relative;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #ffb300;
  transform: scale(1.1);
}

.star-rating input:checked ~ label,
.star-rating input:checked ~ label i {
  color: #ffb300;
}

/* Hover feedback */
.star-rating label::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.star-rating label:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}

/* Review Textarea */
.review-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  resize: vertical;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  min-height: 60px;
  font-family: inherit;
  margin-bottom: 1rem;
}

.review-textarea:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* Form Button Container */
.review-form .icon-btn.submit {
  float: right;
}

/* Login Link */
.login-link {
  color: #1976d2;
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-block;
}

.login-link:hover {
  background: rgba(25, 118, 210, 0.1);
  transform: translateY(-1px);
}

/* Inline Form */
.inline-form {
  display: inline;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  .reviews {
    padding: 1.25rem;
    margin: 2rem auto;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .review-card {
    padding: 1rem;
  }
  
  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .star-rating label {
    font-size: 1.3rem;
  }
  
  .review-actions {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .reviews {
    padding: 1rem;
  }
  
  .review-card {
    padding: 0.875rem;
  }
  
  .review-form {
    padding: 1rem;
  }
  
  .icon-btn {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  
  .icon-btn.submit {
    width: 36px;
    height: 36px;
  }
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-card {
  animation: fadeInUp 0.3s ease forwards;
}

/* Add stagger effect for multiple reviews */
.review-card:nth-child(1) { animation-delay: 0.05s; }
.review-card:nth-child(2) { animation-delay: 0.1s; }
.review-card:nth-child(3) { animation-delay: 0.15s; }
.review-card:nth-child(4) { animation-delay: 0.2s; }
.review-card:nth-child(5) { animation-delay: 0.25s; }