.reviews {
  padding: 6rem 2rem;
  background: white;
  text-align: center;
}

.reviews-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.reviews h2 {
  font-size: 2.5rem;
  color: #5c4033;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
}

.add-review-btn {
  padding: 0.75rem 1.5rem;
  background-color: #5c4033;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-review-btn:hover {
  background-color: #3e2723;
  transform: translateY(-2px);
}

.add-review-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.review-eligibility-note {
  margin: -1.5rem auto 2rem;
  color: #7d695b;
  font-size: 0.95rem;
  max-width: 700px;
}

.review-form-container {
  max-width: 600px;
  margin: 0 auto 3rem;
  background: #faf8f5;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #e8dcd2;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #5c4033;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem 1rem;
  border: 1px solid #e8dcd2;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #3a3a3a;
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #a0826d;
  box-shadow: 0 0 0 3px rgba(160, 130, 109, 0.1);
}

.submit-review-btn {
  padding: 0.875rem 2rem;
  background-color: #5c4033;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.submit-review-btn:hover {
  background-color: #3e2723;
  transform: translateY(-2px);
}

/* Base Review Item Styles */
.review-item {
  background: #faf8f5;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8e0d8;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
}

.review-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #a0826d;
  transform: translateY(-4px);
}

.review-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  color: #a0826d;
  font-size: 1.1rem;
}

.star-filled { color: #a0826d; }
.star-empty { color: #e8dcd2; }

.review-item p {
  font-style: normal;
  margin-bottom: 1.5rem;
  color: #3a3a3a;
  line-height: 1.7;
  font-size: 0.95rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5c4033;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.review-item h4 {
  text-align: left;
  font-weight: 600;
  color: #5c4033;
  font-size: 1rem;
  margin: 0;
}

.review-meta {
  text-align: left;
  font-size: 0.85rem;
  color: #9b9690;
}

/* Featured & Carousel Layouts */
.review-list {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-reviews-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important; /* Forces exactly 4 columns */
  gap: 15px !important;
  margin-bottom: 50px !important;
  width: 100% !important;
  text-align: left !important;
}

.review-item.featured {
  background: #fff !important;
  border-radius: 12px !important;
  border: 1px solid #e8e0d8 !important;
  padding: 20px !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

/* Reviews Carousel Wrapper - Moved Below */
.reviews-carousel-wrapper {
  margin-top: 50px;
  padding: 40px 20px;
  background: #faf8f5;
  border-radius: 20px;
  border: 1px solid #eee2d8;
  position: relative;
  max-width: 800px; /* Center and make it "one review" width */
  margin-left: auto;
  margin-right: auto;
}

.carousel-title {
  font-size: 1.8rem;
  color: #5c4033;
  margin-bottom: 2.5rem;
  font-weight: 700;
}

.reviews-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.review-item.carousel-slide {
  flex: 0 0 100% !important; /* Show ONLY ONE review at a time below */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: transform 0.5s ease-in-out !important;
}

/* Review Menu & Dropdown */
.review-menu-wrap {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
}

.review-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #d9c8bb;
  background: white;
  color: #5c4033;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.review-menu-trigger:hover { background: #f3ece6; }

.review-menu-dropdown {
  position: absolute;
  top: 2.4rem;
  right: 0;
  min-width: 140px;
  background: white;
  border: 1px solid #e6d7ca;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.review-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: none;
  color: #5c4033;
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
}

.review-menu-item:hover { background: #f5eee8; }
.review-menu-item.delete { color: #8f3a2f; }

/* Owned Reviews List */
.owned-review-list {
  margin-top: 1.5rem;
  border-top: 1px solid #e8dcd2;
  padding-top: 1rem;
  text-align: left;
}

.owned-review-list h3 {
  margin: 0 0 0.8rem;
  color: #5c4033;
  font-size: 1rem;
}

.owned-review-item {
  background: white;
  border: 1px solid #eadfd4;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.7rem;
  position: relative;
}

.owned-review-content { padding-right: 2.8rem; }
.owned-review-content strong { display: block; color: #5c4033; margin-bottom: 0.3rem; }
.owned-review-content p { margin: 0; color: #3f3a35; line-height: 1.6; font-size: 0.92rem; }

/* Carousel Controls */
.carousel-controls {
  position: static; /* Let the arrows position absolutely relative to the wrapper */
}

.carousel-prev, .carousel-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  border: 1px solid #5c4033 !important;
  background: white !important;
  color: #5c4033 !important;
  font-size: 1.2rem !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  z-index: 100 !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

.carousel-prev { left: -25px !important; } /* Half hanging out for a modern look */
.carousel-next { right: -25px !important; }

@media (max-width: 900px) {
  .carousel-prev { left: 0; }
  .carousel-next { right: 0; }
}

.carousel-prev:hover, .carousel-next:hover {
  background: #5c4033;
  color: white;
}

.carousel-pagination { 
  display: flex; 
  gap: 0.75rem; 
  justify-content: center;
  margin-top: 20px;
}

.pagination-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8c7ba;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-dot.active {
  background: #5c4033;
  transform: scale(1.3);
}

/* Media Queries */
@media (max-width: 1000px) {
  .featured-reviews-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 900px) {
  .featured-reviews-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .carousel-prev { left: 0 !important; }
  .carousel-next { right: 0 !important; }
}

@media (max-width: 600px) {
  .featured-reviews-grid { grid-template-columns: 1fr !important; }
}

