/* imports */
@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

/* Reset Settings */
:root {
  /* color */
  --primary-color: #e6fae7;
  --secondary-color: #f4f4f4;
  --third-color: #f1f1f1;
  --accent-color: #4caf50;
  --text-color: #333;
  --light-text: #666;
  --border-color: #ddd;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;

  /* font */
  --primary-font: "Roboto", sans-serif;
  --secondary-font: "Lora", serif;
  --third-font: "Poppins", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  color: var(--text-color);
}

::-webkit-scrollbar {
  width: 8px;
  background-color: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 10px;
}

body {
  background-color: white;
  font-family: var(--primary-font);
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

/* Loading Animation */
#loader {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(76, 175, 80, 0.2);
  border-top: 5px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Shop Section & Search */
.shop {
  display: flex;
  justify-content: start;
  align-items: center;
  background-color: var(--third-color);
  height: 80px;
  padding: 0 5%;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Filter Button */
#filterBtn {
  background-color: white;
  color: var(--text-color);
  border: none;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

#filterBtn:hover {
  background-color: var(--accent-color);
  color: white;
}

#searchBar {
  background: #fff;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 28px;
  width: 70%;
  /* max-width: 800px; */
  transition: var(--transition);
  border: 2px solid transparent;
  box-shadow: var(--shadow);
}

#searchBar:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.4);
}

.search-input {
  font-size: 16px;
  font-family: var(--third-font);
  color: var(--text-color);
  outline: none;
  border: none;
  background: transparent;
  width: 100%;
}

.search-input::placeholder {
  color: var(--light-text);
}

.search-item-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0;
}

.search-item-image {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f1f1;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
}

.search-item-details {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-item-type {
  flex: 0 0 auto;
  margin-left: 16px;
  align-self: center;
}

@media (max-width: 600px) {
  .search-item-content {
    gap: 0;
  }
  .search-item-image {
    width: 32px;
    height: 32px;
    margin-right: 10px;
  }
  .search-item-type {
    margin-left: 8px;
  }
}

.search-results div:hover {
  background: var(--primary-color);
}

/* Overlay */
#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  backdrop-filter: blur(2px);
}

/* Sidebar */
#categorySidebar {
  width: 300px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: -320px;
  background-color: white;
  padding: 30px 20px;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
  transition: 0.3s ease-in-out;
  z-index: 1000;
  overflow-y: auto;
}

#categorySidebar nav {
  margin-top: 20px;
}

#categorySidebar nav h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 25px;
  position: relative;
}

#categorySidebar nav h3:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
}

.navlist {
  list-style: none;
  width: 100%;
}

.navlist li {
  margin: 15px 0;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  padding-bottom: 15px;
  transition: var(--transition);
}

.navlist li a {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 8px 10px;
  border-left: 3px solid transparent;
  transition: all 0.3s;
}

.navlist li a:hover {
  color: var(--accent-color);
  border-left: 3px solid var(--accent-color);
  padding-left: 15px;
}

/* Close Button */
#closeSidebar {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  transition: var(--transition);
}

#closeSidebar:hover {
  color: #f44336;
}

/* BANNER ALIGNMENT */
.header-container,
.highhead-container {
  position: relative;
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 10px 0;
  overflow: hidden;
}

.header-container img,
.highhead-container img {
  width: 90%;
  /* max-width: 1400px; */
  height: auto;
  /* max-height: 500px; */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.5s ease;
}

.header-container:hover img,
.highhead-container:hover img {
  transform: scale(1.02);
}

.header-content {
  position: absolute;
  left: 10%;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
}

.header-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  margin-bottom: 10px;
  line-height: 1.2;
}

/* HIGHLIGHTED HEADER TEXT ALIGNMENT */
.highhead-content {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
}

.highhead-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  margin-bottom: 10px;
  line-height: 1.2;
}

/* CATEGORY PRODUCT ALIGNMENT  */
.category-container {
  padding: 20px 5%;
}

.category-container h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
  color: var(--accent-color);
}

.category-container h2:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
}

.subcategory-container {
  display: flex;
  overflow-x: auto;
  gap: 25px;
  padding: 10px 0;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  -ms-overflow-style: none;
}

.subcategory-container::-webkit-scrollbar {
  height: 6px;
}

.subcategory-container::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 10px;
}

/* Individual Product Cards */
.subcategory-item {
  background: white;
  padding: 15px 15px 5px 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
  min-width: 220px;
  max-width: 280px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.subcategory-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.subcategory-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.subcategory-item:hover .subcategory-img {
  transform: scale(1.05);
}

.subcategory-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
  color: var(--text-color);
}

.subcategory-description {
  font-size: 0.9rem;
  color: var(--light-text);

  line-height: 1.5;
}

/* FAQ's Section  */

.faq {
  width: 100%;
}

.faq h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--accent-color);
  position: relative;
  display: inline-block;
}

.faq h2:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  background: white;
  padding: 15px 20px;
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.faq-question:after {
  content: "\25B6"; /* Unicode for right-pointing triangle */
  font-size: 1.2rem;
  color: var(--accent-color);
  transition: transform 0.3s;
  margin-left: 10px;
}

/* Rotate arrow when open */
.faq-question.active:after,
.faq-question[aria-expanded="true"]:after {
  transform: rotate(90deg);
}

.faq-question:hover {
  background-color: #f5f5f5;
}

.faq-answer {
  display: none;
  padding: 15px 20px;
  background: #fff;
  border-top: 1px solid #eaeaea;
  line-height: 1.6;
}

.faq-answer.active {
  display: block;
}

@media (max-width: 820px) {
  .header-container img,
  .highhead-container img {
    width: 95%;
    height: auto;
  }
}
@media (max-width: 480px) {
  .header-container,
  .highhead-container {
    margin-bottom: 10px;
  }
  .header-content h2,
  .highhead-content h2 {
    font-size: 1.3rem;
  }

  .header-container img,
  .highhead-container img {
    width: 95%;
    height: auto;
  }

  .subcategory-item {
    min-width: 175px;
  }

  .subcategory-img {
    height: 150px;
  }

  .subcategory-title {
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  .header-container img,
  .highhead-container img {
    width: 95%;
    height: auto;
  }

  .subcategory-img {
    height: 120px;
  }

  .subcategory-item {
    min-width: 150px;
  }
  .subcategory-container {
    gap: 20px;
  }
}

.container {
  max-width: 95%;
  margin: 0 auto;
  padding: 2rem;
}

h2 {
  color: #212529;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 1.8rem;
  padding-bottom: 0.5rem;
}

/* Rating summary section */
.rating-summary {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  margin-bottom: 2rem;
}

.rating-layout {
  display: flex;
  align-items: flex-start;
}

.average-score {
  text-align: center;
  padding-right: 2rem;
  border-right: 1px solid #e9ecef;
  min-width: 180px;
  margin-right: 2rem;
}

.average-rating {
  font-size: 3.5rem;
  font-weight: bold;
  color: #212529;
  line-height: 1.2;
}

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

.rating-label {
  font-size: 1.2rem;
  color: #6c757d;
  margin: 0.5rem 0;
  font-weight: 500;
}

.total-reviews {
  color: #6c757d;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Enhanced review carousel */
.review-carousel {
  position: relative;
  overflow: hidden;
  flex-grow: 1;
  width: calc(100% - 220px);
}

.carousel-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0 1.5rem 0;
  scrollbar-width: none;
  gap: 1rem;
}
.review-slide {
  min-width: 280px;
  max-width: 320px;
  flex: 0 0 auto;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--accent-color);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.navigation-buttons {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.nav-button {
  background-color: #343a40;
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.nav-button:hover {
  background-color: #4dabf7;
  transform: scale(1.05);
}

/* Form container */
#reviewForm {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Star rating styling */
.stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.stars input {
  display: none;
}

.stars label {
  font-size: 2rem;
  color: #dee2e6;
  cursor: pointer;
  transition: color 0.2s ease;
  margin: 0 0.1rem;
}

.stars label:hover,
.stars label:hover ~ label,
.stars input:checked ~ label {
  color: #ffc107;
}

/* Text area styling */
textarea {
  width: 90%;
  min-height: 150px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  resize: vertical;
  font-size: 1rem;
  transition: all 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: #4dabf7;
  box-shadow: 0 0 8px rgba(77, 171, 247, 0.2);
}

textarea::placeholder {
  color: #adb5bd;
}

/* Submit button styling */
button[type="submit"] {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

button[type="submit"]:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Individual review styling inside carousel */
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.review-rating {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: flex;
}

.review-date {
  color: #6c757d;
  font-size: 0.85rem;
}

/* Modified: Review content with line breaks and fixed height */
.review-content {
  color: #495057;
  line-height: 1.7;
  margin-bottom: 1rem;
  max-height: 100px;
  overflow-y: auto;
  font-size: 0.95rem;
  word-wrap: break-word;
  white-space: pre-line; /* This will honor BR tags and line breaks */
}

.action-button {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-block;
  margin-top: 0.5rem;
  transition: color 0.2s;
}

.action-button:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}

/* Modal popup for full review */
.review-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.review-modal.show {
  opacity: 1;
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  width: 90%;
  position: relative;
  transform: translateY(-50px);
  opacity: 0;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.review-modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.close-modal {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #4dabf7;
}

.modal-review-content {
  color: #495057;
  line-height: 1.7;
  margin: 1rem 0;
  font-size: 1rem;
  white-space: pre-line; /* This will honor BR tags and line breaks */
}

.modal-stars {
  color: #ffc107;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.modal-date {
  color: #6c757d;
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: right;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .rating-layout {
    flex-direction: column;
  }

  .average-score {
    margin-right: 0;
    margin-bottom: 2rem;
    padding-right: 0;
    padding-bottom: 1.5rem;
    border-right: none;
    border-bottom: 1px solid #e9ecef;
    width: 100%;
    text-align: center;
  }

  .review-carousel {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .rating-summary {
    padding: 1.5rem;
  }

  .average-rating {
    font-size: 3rem;
  }

  .stars-display {
    font-size: 1.5rem;
  }

  .review-slide {
    min-width: 85%;
    max-width: 85%;
  }

  #reviewForm {
    padding: 1.5rem;
    margin: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .stars label {
    font-size: 1.8rem;
  }

  .navigation-buttons {
    justify-content: center;
  }

  .modal-content {
    margin: 20% auto;
    width: 95%;
  }
}

@media (max-width: 480px) {
  .review-slide {
    min-width: 95%;
    max-width: 95%;
    padding: 1.2rem;
  }

  .rating-summary {
    padding: 1.2rem;
  }

  .average-rating {
    font-size: 2.5rem;
  }
}
.dropdown {
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 20px;
  overflow: hidden;
}

.dropdown-header {
  background-color: #e6fae7;
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.dropdown-content {
  display: none;
  padding: 15px;
  border-top: 1px solid #ddd;
}
/* CSS for the custom alert */
.custom-alert {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.alert-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 20px;
  display: flex;
  align-items: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.alert-icon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #4caf50;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  margin-right: 15px;
}

.alert-message {
  flex: 1;
  font-size: 16px;
  color: #333;
}

.alert-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
}

.alert-close:hover {
  color: #333;
}
/* CSS for the custom error alert */
.custom-alert {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.alert-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 20px;
  display: flex;
  align-items: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  animation: shakeAlert 0.5s ease-out;
}

@keyframes shakeAlert {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-10px);
  }
  40% {
    transform: translateX(10px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(5px);
  }
  100% {
    transform: translateX(0);
  }
}

.alert-icon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  margin-right: 15px;
}

.error-alert .alert-icon {
  background-color: #f44336;
}

.alert-message {
  flex: 1;
  font-size: 16px;
  color: #333;
}

.alert-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
}

.alert-close:hover {
  color: #333;
}

/* Testimonial Section */

.testimonials-section {
  max-width: 91.5%;
  margin: 10px auto;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-subtitle {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  margin: 0 auto;
  border-radius: 2px;
}

.testimonials-container {
  display: flex;
  gap: 30px;
  overflow: hidden;
  margin-bottom: 40px;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 20px);
  min-width: calc(33.333% - 20px);
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.profile-img-container {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;

  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
  flex-shrink: 0;
}

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

.client-info {
  margin-left: 15px;
}

.client-name {
  font-weight: 600;
  font-size: 18px;
  color: #1e293b;
  margin-bottom: 4px;
}

.client-position {
  color: #64748b;
  font-size: 14px;
  font-weight: 400;
}

.testimonial-text {
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-rating {
  color: #fbbf24;
  font-size: 16px;
}

.testimonials-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.control-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #18f3b1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.control-btn:hover {
  background-color: #18f3b1;
  color: #ffffff;
  border-color: #18f3b1;
}

.navigation {
  display: flex;
  gap: 8px;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-dot.active {
  background-color: #18f3b1;
  transform: scale(1.2);
}

@media (max-width: 992px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 15px);
    min-width: calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .testimonials-section {
    margin: 20px auto;
  }

  .section-title {
    font-size: 30px;
  }

  .testimonial-card {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .testimonials-header {
    margin-bottom: 40px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  .section-title {
    font-size: 26px;
  }

  .testimonial-card {
    padding: 25px;
  }

  .profile-img-container {
    width: 60px;
    height: 60px;
  }
}
/* Add these styles to the end of your existing CSS */

/* Testimonial card animations and hover effects */
.testimonial-card {
  --index: 0;
  border-bottom: 4px solid transparent;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card:nth-child(1) {
  --index: 0;
}
.testimonial-card:nth-child(2) {
  --index: 1;
}
.testimonial-card:nth-child(3) {
  --index: 2;
}

.testimonial-card:hover {
  border-bottom: 4px solid #18f3b1;
}

/* Improved quote styling */
.testimonial-text {
  position: relative;
  padding: 0 5px;
  z-index: 1;
}

/* Improved controls */
.testimonials-controls {
  margin-top: 40px;
}

.control-btn {
  position: relative;
  overflow: hidden;
}

.control-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.control-btn:active::after {
  width: 80px;
  height: 80px;
}

/* Improved navigation dots */
.nav-dot {
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background-color: var(--accent-color);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s;
  z-index: -1;
}

.nav-dot:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.nav-dot.active {
  background-color: var(--accent-color);
  transform: scale(1.2);
}

/* Add print styles */
@media print {
  .testimonials-controls {
    display: none;
  }

  .testimonial-card {
    box-shadow: none;
    border: 1px solid #e2e8f0;
    break-inside: avoid;
  }

  .testimonials-container {
    display: block;
  }

  .testimonial-card {
    width: 100%;
    margin-bottom: 20px;
  }
}

/* Add smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Improve focus styles for accessibility */
:focus {
  outline: 2px solid #18f3b1;
  outline-offset: 2px;
}

.nav-dot:focus {
  box-shadow: 0 0 0 3px rgba(11, 255, 157, 0.947);
}

/* Add custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c7d2fe;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #18f3b1;
}

/* --- Unified, Enhanced Search Bar & Dropdown Styles --- */
.search-container {
  position: relative;
  width: 100%;

  margin: 0 50px;
}

#searchBar {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 32px;
  font-size: 1rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}

#searchBar:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.12);
  outline: none;
}

.search-results {
  position: absolute;
  width: 100%;
  top: 110%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(76, 175, 80, 0.1);
  z-index: 99;
  max-height: 420px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.18s, transform 0.18s;
}

.search-results[style*="display: block"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.search-section-header {
  padding: 10px 18px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #4caf50;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  letter-spacing: 1px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  transition: background 0.18s, border-left 0.18s;
  border-left: 3px solid transparent;
  position: relative;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item.selected,
.search-result-item.hover,
.search-result-item:active {
  background: #e6fae7;
  border-left: 3px solid #4caf50;
}

.search-item-image {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f1f1;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-item-details {
  flex: 1;
  min-width: 0;
}

.search-item-title {
  font-weight: 600;
  color: #222;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-item-subtitle {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-item-price {
  font-size: 13px;
  font-weight: 600;
  color: #059669;
  margin-top: 2px;
}

.search-item-type {
  font-size: 10px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  background: #e6fae7;
  color: #388e3c;
}

.category-item .search-item-type {
  background: #dbeafe;
  color: #1d4ed8;
}

.product-item .search-item-type {
  background: #d1fae5;
  color: #065f46;
}

.search-no-results {
  padding: 30px 18px;
  text-align: center;
  color: #6b7280;
  font-size: 15px;
  font-style: italic;
}

/* Custom Scrollbar for Search Results */
.search-results::-webkit-scrollbar {
  width: 4px;
}
.search-results::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}
.search-results::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .search-container {
    max-width: 100vw;
    padding: 0 2vw;
    margin: 0;
  }
  #searchBar {
    font-size: 1rem;
    padding: 12px 10px;
    border-radius: 20px;
  }
  .search-results {
    max-width: 100vw;
    left: 0;
    right: 0;
    border-radius: 10px;
    min-width: 0;
    padding: 0;
  }
  .search-result-item {
    padding: 10px 6px;
    gap: 0;
  }
  .search-item-content {
    gap: 0;
    flex-wrap: wrap;
  }
  .search-item-image {
    width: 28px;
    height: 28px;
    margin-right: 8px;
    border-radius: 5px;
  }
  .search-item-details {
    min-width: 0;
  }
  .search-item-title {
    font-size: 12px;
  }
  .search-item-subtitle {
    font-size: 10px;
  }
  .search-item-type {
    font-size: 8.5px;
    padding: 2px 5px;
    margin-left: 4px;
    border-radius: 8px;
  }
}

@media (max-width: 400px) {
  .search-result-item {
    padding: 8px 2px;
  }
  .search-item-image {
    width: 22px;
    height: 22px;
    margin-right: 4px;
  }
  .search-item-title {
    font-size: 10.5px;
  }
  .search-item-type {
    font-size: 7.5px;
    padding: 1.5px 4px;
  }
}

/* Product Card Shadow Loading Animation */
.product-card-skeleton {
  background: #f6f7f8;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-card-skeleton::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.skeleton-image {
  width: 100%;
  height: 200px;
  background: #e1e5e9;
  border-radius: 8px 8px 0 0;
}

.skeleton-content {
  padding: 16px;
}

.skeleton-badge {
  width: 60px;
  height: 20px;
  background: #e1e5e9;
  border-radius: 10px;
  margin-bottom: 12px;
}

.skeleton-title {
  width: 80%;
  height: 20px;
  background: #e1e5e9;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-price {
  width: 40%;
  height: 18px;
  background: #e1e5e9;
  border-radius: 4px;
  margin-bottom: 12px;
}

.skeleton-description {
  width: 100%;
  height: 14px;
  background: #e1e5e9;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-description:nth-child(2) {
  width: 70%;
}

.skeleton-button {
  width: 100%;
  height: 40px;
  background: #e1e5e9;
  border-radius: 6px;
  margin-top: 12px;
}

/* Grid layout for skeleton cards */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Responsive skeleton grid */
@media (max-width: 768px) {
  .skeleton-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .skeleton-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .skeleton-image {
    height: 150px;
  }

  .skeleton-content {
    padding: 12px;
  }
}

/* Enhanced shimmer effect */
.product-card-skeleton.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Skeleton for different card types */
.skeleton-fabric-card .skeleton-image {
  background: linear-gradient(90deg, #e1e5e9 25%, #f0f2f5 50%, #e1e5e9 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.skeleton-pattern-card .skeleton-image {
  background: linear-gradient(90deg, #e8f5e8 25%, #f0f8f0 50%, #e8f5e8 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.skeleton-garment-card .skeleton-image {
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Subcategory Skeleton Loading */
.subcategory-skeleton {
  background: #f6f7f8;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  max-width: 250px;
}

.subcategory-skeleton::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

.subcategory-skeleton-image {
  width: 100%;
  height: 150px;
  background: #e1e5e9;
  border-radius: 12px 12px 0 0;
}

.subcategory-skeleton-title {
  width: 80%;
  height: 20px;
  background: #e1e5e9;
  border-radius: 4px;
  margin: 12px auto;
}

/* Subcategory skeleton grid */
.subcategory-skeleton-grid {
  display: flex;
  gap: 15px;
  padding: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.subcategory-skeleton-grid::-webkit-scrollbar {
  display: none;
}

/* Responsive subcategory skeleton */
@media (max-width: 768px) {
  .subcategory-skeleton {
    min-width: 180px;
    max-width: 220px;
  }

  .subcategory-skeleton-image {
    height: 120px;
  }
}

@media (max-width: 480px) {
  .subcategory-skeleton {
    min-width: 160px;
    max-width: 200px;
  }

  .subcategory-skeleton-image {
    height: 100px;
  }

  .subcategory-skeleton-title {
    height: 16px;
    margin: 10px auto;
  }
}

/* Category-specific skeleton colors */
.skeleton-fabric-card .subcategory-skeleton-image {
  background: linear-gradient(90deg, #e8f5e8 25%, #f0f8f0 50%, #e8f5e8 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.skeleton-pattern-card .subcategory-skeleton-image {
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.skeleton-garment-card .subcategory-skeleton-image {
  background: linear-gradient(90deg, #e1e5e9 25%, #f0f2f5 50%, #e1e5e9 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Banner Skeleton Loading */
.banner-skeleton {
  background: #f6f7f8;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-skeleton::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

.banner-skeleton-image {
  width: 100%;
  height: 100%;
  background: #e1e5e9;
  border-radius: 12px;
  position: relative;
}

.banner-skeleton-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 80%;
}

.banner-skeleton-title {
  width: 60%;
  height: 32px;
  background: #e1e5e9;
  border-radius: 6px;
  margin: 0 auto 16px;
}

.banner-skeleton-subtitle {
  width: 40%;
  height: 20px;
  background: #e1e5e9;
  border-radius: 4px;
  margin: 0 auto;
}

/* Header banner skeleton */
.header-skeleton {
  background: linear-gradient(135deg, #e8f5e8 25%, #f0f8f0 50%, #e8f5e8 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Highlighted banner skeleton */
.highlighted-skeleton {
  background: linear-gradient(135deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Responsive banner skeleton */
@media (max-width: 768px) {
  .banner-skeleton {
    height: 150px;
    margin: 15px 0;
  }

  .banner-skeleton-title {
    height: 28px;
    width: 70%;
  }

  .banner-skeleton-subtitle {
    height: 18px;
    width: 50%;
  }
}

@media (max-width: 480px) {
  .banner-skeleton {
    height: 120px;
    margin: 10px 0;
  }

  .banner-skeleton-title {
    height: 24px;
    width: 80%;
  }

  .banner-skeleton-subtitle {
    height: 16px;
    width: 60%;
  }
}

/* Banner skeleton with overlay effect */
.banner-skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  animation: shimmer 2.5s infinite;
}

.name-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #4caf50;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 24px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
