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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
  color: #333;
}

/* Fixed Header */
.fixed-header {
    position: fixed;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 1000;
    transition: top 0.3s ease-in-out; /* Smooth animation */
  }

  .fixed-header.show {
    top: 0; /* Show header when scrolled */
  }

.fixed-header .header-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.booking-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  /* margin-top: 170px; */
  margin: 70px auto;
  gap: 20px;
}

/* Services Section */
.services-section {
  flex: 2;
}

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


.skeleton {
    background-color: #e5e7eb;
    border-radius: 20px;
    animation: pulse 1.7s infinite ease-in-out;
}
.skeleton {
    background-color: #ffffff;
    border-radius: 20px;
    animation: pulse 1.7s infinite ease-in-out;
}

/* Header */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.icon-btn {
  border: 1px solid #eee;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  border-radius: 25%;
  font-size: 1.5rem;
  height: 40px;
  width: 40px;
}

.breadcrumb {
  font-size: 1rem;
  color: #afafaf;
  flex: 1;
  text-align: left;
}
.page-title{
  margin-top: 10px;
  margin-bottom: 40px;
}

/* Categories */
.categories-wrapper {
  display: flex;
  align-items: center;
  position: sticky;
  inset-block-start: 70px;
  top:60px;
  gap: 5px;
  max-width: 760px;  /* adjust this width as needed */
  margin-bottom: 20px;
  padding: 10px 0;
  transition: all 0.1s ease-in-out;
  z-index: 998;
  background-color: #fff;
}

/* Categories Scrollable Row */
.categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-behavior:auto;
  -ms-overflow-style: none;  /* hide scrollbar IE/Edge */
  flex: 1;
}

.leftfade{
  position: absolute;
  pointer-events: none;
  inline-size: 64px;
  block-size: 40px;
  opacity: 1;
  z-index: 1;
  background: linear-gradient(to left, rgba(0, 0, 0, 0), #fff);
}

.rightfade{
  position: absolute;
  pointer-events: none;
  right: 72px;
  inline-size: 64px;
  block-size: 40px;
  opacity: 1;
  z-index: 1;
  background: linear-gradient(to right, rgba(0, 0, 0, 0), #fff);
}

.categories::-webkit-scrollbar {
  display: none; /* hide scrollbar chrome */
}

.categories .tab {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background: #f1f1f1;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.categories .tab.active {
  background: #000;
  color: #fff;
}

.text-black{
  color: #000;
  font-weight: 500;
}

/* Scroll Buttons */
.scroll-btn {
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 6px 10px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.scroll-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.service-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  transition: background 0.2s;
}

.service-card:hover {
  background: #fafafa;
}

.service-card h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.service-card p {
  font-size: 0.9rem;
  color: #555;
}

.service-card .price {
  font-weight: bold;
  color: #000;
}

.add-btn {
  border: none;
  background: #f3f3f3;
  display: flex;
  font-size: 1.2rem;
  padding: 10px;
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}

.remove-btn {
  border: none;
  background: #f3f3f3;
  color: red;
  content: '×';
  display: flex;
  font-size: 1rem;
  padding: 10px;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}
/* Summary Section */
.summary-section {
  background: white;
  position: sticky;
  top: 80px;
  flex: 1;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  height: fit-content;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}
.cursor-pointer{
  cursor: pointer;
}

.salon-info {
  display: flex;
  gap: 10px;
  /* margin-bottom: 20px; */
}

.salon-info img {
  border-radius: 8px;
}

.salon-info h3 {
  font-size: 1rem;
}

.selected-services {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  min-height: 60px;
}

.total {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  font-size: 1rem;
  font-weight: bold;
}

/* --- existing styles kept above --- */

/* Responsive Layout */
@media (max-width: 992px) {
  .rightfade{
    right: 72px;
  }
  .scroll-btn {
    display: none;
  }

  .booking-container {
    flex-direction: column;
    padding: 10px;
  }

  .services-section {
    flex: 1;
    width: 100%;
  }

  .summary-section {
    flex: 1;
    width: 100%;
    margin-top: 20px;
  }

  .categories-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .scroll-btn {
    display: '';
  }
  .rightfade{
    right: 5px;
  }
  .header-bar {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
  }

  .breadcrumb {
    font-size: 0.8rem;
    text-align: left;
    flex: unset;
  }

  .service-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    background: #f4faff;
  }

  .add-btn {
    align-self: flex-end;
  }

  .salon-info {
    flex-direction: row;
    align-items: flex-start;
  }

  .salon-info img {
    width: 100%;
    max-width: 150px;
    height: auto;
  }
}

