.service-wrapper {
  margin-bottom: -33px;
  justify-content: center;
}
.service-promo-single-item {
  margin-bottom: 33px;
  text-align: center;
}
.service-promo-single-item .image {
  width: 77px;
  overflow: hidden;
  margin: 0 auto;
}
.service-promo-single-item .image img {
  width: 100%;
  height: auto;

  margin-bottom: 27px;
}
.service-promo-single-item .content .title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}
.service-list-single {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}
.service-list-single {
  flex-direction: row;
}
.service-list-single:hover > .service-list-img-link > img:nth-child(2) {
  opacity: 1;
}
.service-list-img-link {
  position: relative;
  width: 100%;
}
.service-list-img-link {
  width: auto;
}
.service-list-img-link img {
  transition: all 0.5s ease;
}
.service-list-img-link img:nth-child(2) {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.service-list-content {
  margin-left: 0px;
  margin-top: 30px;
  width: 100%;
}
.service-list-content {
  margin-top: 0;
  margin-left: 30px;
  width: auto;
}
.service-list-link a {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: black;
}
.service-list-price {
  display: block;
  font-size: 20px;
  margin-top: 8px;
  margin-bottom: 13px;
  color: black;
}
.service-list-price del {
  padding-right: 10px;
  color: #777;
}
.table_page table tbody tr td.service-price {
  min-width: 130px;
  color: #333;
  font-size: 16px;
  font-weight: 500;
}
.modal-add-cart-service-title {
  margin-top: 25px;
}
.modal-add-cart-service-title {
  margin-top: 0px;
}
.modal-add-cart-service-title,
.modal-add-cart-service-price {
  display: block;
  font-weight: 500;
}
.service-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.service-category {
  padding: 10px 20px;
  margin: 10px;
}
.service-category.active {
  background-color: #d8b48b;
}
.service-list {
  display: grid;
  gap: 20px;
  padding: 0 15px;
}
.service-list {
  grid-template-columns: repeat(2, 1fr);
}
.service-list {
  grid-template-columns: repeat(4, 1fr);
}
.service-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  /* Adjust the spacing between items as needed */
}
.service-content {
  margin-top: 10px;
}
.service-title {
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.service-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #888;
  margin-bottom: 10px;
}
.service-list {
  grid-template-columns: 1fr;
}
.sub-service-categories {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: scroll;
  overflow-y: hidden;
  width: 100%;
  padding-bottom: 20px;
  margin-bottom: 20px;
  scroll-behavior: smooth;
  position: relative;

  /* Force scrollbar to always be visible */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #888 #f1f1f1; /* Firefox - thumb and track colors */
}
.sub-service-categories::-webkit-scrollbar {
  height: 12px; /* Make scrollbar visible */
  width: 12px;
}
.sub-service-categories::-webkit-scrollbar-track {
  background: #f1f1f1; /* Light gray track */
  border-radius: 6px;
}
.sub-service-categories::-webkit-scrollbar-thumb {
  background: #888; /* Dark gray thumb */
  border-radius: 6px;
  border: 2px solid #f1f1f1; /* Creates padding effect */
}
.sub-service-categories::-webkit-scrollbar-thumb:hover {
  background: #555; /* Darker on hover */
}
.sub-service-categories::after {
  content: "";
  flex: 0 0 1px; /* Minimal dummy element */
  min-width: 1px;
}
.sub-service-categories > * {
  flex: 0 0 auto; /* Prevent flex items from shrinking */
  min-width: max-content; /* Ensure items don't compress */
}
.sub-service-categories {
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: auto; /* Slightly thicker on mobile */
}
.sub-service-categories::-webkit-scrollbar {
  height: 8px; /* Thinner on mobile */
}
.sub-service-categories {
  padding-bottom: 15px;
  margin-bottom: 15px;
}
.sub-service-categories::-webkit-scrollbar {
  height: 6px; /* Even thinner on very small screens */
}

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Poppins:wght@300;400;600;700&display=swap");

:root {
  --primary-gold: #c69c6d;
  --secondary-gold: #a67c52;
  --dark-brown: #2c1810;
  --light-bg: #fafaf5;
  --text-main: #3d3d3d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--light-bg);
  color: var(--text-main);
  line-height: 1.6;
}

.font-heading {
  font-family: "Lora", serif;
}

/* Category Navigation */
#serviceCategories {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem;
  justify-content: center;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.service-category {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid var(--primary-gold);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--primary-gold);
  font-size: 0.95rem;
}

.service-category:hover {
  background: var(--secondary-gold);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(192, 138, 54, 0.3);
}

.service-category.active {
  background: var(--primary-gold);
  color: white;
  border-color: var(--primary-gold);
  box-shadow: 0 4px 12px rgba(198, 156, 109, 0.4);
}

/* Service List Container */
#serviceList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Product Item Card */
.product-item {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(192, 138, 54, 0.2);
}

.product-image {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: auto;
}

/* .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
} */

.product-item:hover .product-image img {
  /* transform: scale(0.9); */
  /* zoom out */
  /* zoom: 0.7;
  transform: scale(0.7); */
  /* transform: scale(0.9); */
  /* transform-origin: bottom; */
  /* transition: transform 0.5s ease; */
}

.image-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* Product Content */
.product-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.product-title {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-brown);
  margin: 0;
  line-height: 1.4;
}

.product-title a {
  color: inherit;
  text-decoration: none;
}

.product-price {
  color: var(--primary-gold);
  font-size: 1.3rem;
  font-weight: 700;
}

.product-price del {
  color: #999;
  font-size: 1rem;
  margin-right: 0.5rem;
}

.product-duration {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* Product Actions */
.product-action {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  align-items: center;
  flex-wrap: wrap;
}

.add-to-cart {
  flex: 1;
  min-width: 120px;
  background-color: var(--primary-gold) !important;
  color: white !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 25px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  text-align: center;
  transition: all 0.3s ease !important;
  border: none;
  font-size: 0.95rem;
}

.add-to-cart:hover {
  background-color: var(--secondary-gold) !important;
  color: var(--dark-brown) !important;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(192, 138, 54, 0.3);
}

.info-btn {
  padding: 0.75rem 1.25rem;
  background: white;
  border: 2px solid var(--primary-gold);
  color: var(--primary-gold);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.info-btn:hover {
  background: var(--primary-gold);
  color: white;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cart-modal-content {
  position: relative;
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 20px;
  max-width: 600px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

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

.cart-modal {
  background: white;
  border-radius: 20px;
}

.modal-header {
  background: var(--primary-gold);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.close-btn,
.close {
  color: white;
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  background: none;
  border: none;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover,
.close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
}

.item-details {
  display: flex;
  gap: 1.5rem;
  align-items: start;
}

.item-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 15px;
  flex-shrink: 0;
}

.item-name {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-brown);
  margin: 0;
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.item-price {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

.cart-modal-actions {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid #eee;
}

.cart-modal-btn-primary {
  flex: 1;
  background: var(--primary-gold);
  color: white;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.cart-modal-btn-primary:hover {
  background: var(--secondary-gold);
  color: var(--dark-brown);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(192, 138, 54, 0.3);
}

.cart-modal-btn-secondary {
  flex: 1;
  background: white;
  color: var(--primary-gold);
  padding: 1rem 1.5rem;
  border: 2px solid var(--primary-gold);
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.cart-modal-btn-secondary:hover {
  background: var(--primary-gold);
  color: white;
}

.close-btn-secondary {
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--primary-gold);
  border: 2px solid var(--primary-gold);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.close-btn-secondary:hover {
  background: var(--primary-gold);
  color: white;
}

.infos-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.service-details-header {
  margin: -2rem -2rem 1.5rem -2rem;
  border-radius: 20px 20px 0 0;
}

/* Category Single Items (for hardcoded HTML) */
.category-single-item {
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-single-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(192, 138, 54, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  #serviceCategories {
    padding: 1rem;
    gap: 0.5rem;
  }

  .service-category {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  #serviceList {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
  }

  .product-image {
    height: 200px;
  }

  .cart-modal-content {
    margin: 10% 1rem;
    max-width: calc(100% - 2rem);
  }

  .item-details {
    flex-direction: column;
  }

  .item-image {
    width: 100%;
    height: 180px;
  }

  .cart-modal-actions {
    flex-direction: column;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .infos-actions {
    flex-direction: column;
  }

  .infos-actions a {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #serviceList {
    grid-template-columns: 1fr;
  }

  .product-content {
    padding: 1rem;
  }

  .product-title {
    font-size: 1.1rem;
  }
}

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-gold);
}

.page-banner {
  background-color: var(--primary-gold);
  /* color: var(--dark-brown); */
  height: 80vh;
}
.page-banner > * {
  /* margin-top: 8rem; */
  /* position: absolute; */
  /* bottom: 8rem; */
  margin-top: 12rem;
  /* center the content */
  /* left: 0; */
  /* right: 0; */
  /* transform: translateX(-50%); */
  /* width: 100%; */
}
.page-banner img {
  /* position the image at the bottom of the page banner */
  background-position: center;
}

.product-image {
  /* position to the bottom so we give more space to the top of the image */
  /* margin-bottom: 10rem; */
  background-position: top;
  inline-size: 400px;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: bottom;
}

.product-image {
  width: 100%; /* Adjust to your needs */
  height: 400px; /* The height you want the "crop" to be */
  overflow: hidden; /* Ensures nothing leaks out */
  /* border: 2px solid #333; */
}

.product-image img {
  width: 100%;
  height: 100%;

  /* 1. 'cover' ensures the image fills the area without stretching */
  object-fit: cover;

  /* 2. 'bottom' keeps the bottom/center in view and crops the top */
  object-position: top;
  /* aspect-ratio: 9/16; */
  aspect-ratio: 240/361;
}
