/* General Styles */
:root {
  --pink: #ec4899;
  --blue: #3b82f6;
  --green: #10b981;
  --orange: #f59e0b;
  --light-gray: #f9fafb;
  --medium-gray: #d1d5db;
  --dark-gray: #374151;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --border-radius: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--white);
  color: var(--dark-gray);
  margin: 0;
  padding-top: 60px; /* Space for sticky header */
}

/* Header & Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light-gray);
  z-index: 100;
  padding: 0 24px;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  gap: 32px;
}

.main-nav a {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 600;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--pink);
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 24px;
  background-color: #F6F4F2;
}

.hero-logo {
  width: 150px;
  height: 150px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 2.5rem;
  margin: 0;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  margin: 8px 0 32px 0;
}

/* Section Styles */
.booking-flow, .products-preview {
  padding: 64px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
}

/* Cards Container */
.cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Generic Card Styles */
.card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid #e5e7eb;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card h3 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
}

.card .details {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 12px;
}

.card p {
  margin: 0;
  color: #6b7280;
}

.service-card img, .product-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-primary {
  background-color: var(--pink);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #d94682;
  transform: translateY(-2px);
}

/* Booking Flow */
.booking-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group > label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Custom Select */
.custom-select {
  position: relative;
}

.custom-select select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--medium-gray);
  background-color: var(--white);
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.custom-select::after {
  content: '▼';
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 12px;
  pointer-events: none;
}

.custom-select select:hover {
  border-color: var(--blue);
}

/* Calendar */
.calendar-card {
  padding: 16px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calendar-nav-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 1;
  transition: background-color 0.3s;
}

.calendar-nav-btn:hover {
  background-color: var(--light-gray);
}

#month-year {
  font-size: 1.25rem;
  font-weight: 600;
}

.calendar-weekdays, .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.calendar-weekdays div {
  font-weight: 600;
  color: #6b7280;
  padding: 8px 0;
}

.calendar-grid .day {
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
}

.calendar-grid .day:not(.disabled):hover {
  background-color: #eef2ff;
}

.calendar-grid .day.selected {
  background-color: var(--blue);
  color: var(--white);
}

.calendar-grid .day.disabled {
  color: var(--medium-gray);
  cursor: not-allowed;
}

.availability-pill {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.availability-pill.available { background-color: var(--green); }
.availability-pill.limited { background-color: var(--orange); }
.availability-pill.fully-booked { background-color: var(--pink); }

/* Time & Stylist Group */
.time-stylist-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Contact Form */
.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.input-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--medium-gray);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 4px;
  min-height: 1.25em;
}

/* Booking Summary */
.booking-summary-container {
  position: sticky;
  top: 80px; /* 60px header + 20px margin */
}

.booking-summary h3 {
  text-align: center;
  margin-bottom: 24px;
}

#summary-content p {
  margin-bottom: 12px;
}

.summary-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 16px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.btn-confirm {
  width: 100%;
  border-radius: 9999px; /* pill shape */
  background-image: linear-gradient(to right, var(--pink), var(--blue));
  color: var(--white);
  font-weight: 700;
  padding: 16px;
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}


/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* Responsive adjustments for WhatsApp button */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* Footer */
.main-footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

.main-footer p {
  margin: 0.5rem 0;
}

/* Product Price Styles */
.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pink);
  margin: 12px 0;
  text-align: center;
}

/* Loading States */
.spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Loading state for buttons */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Rewards System Styles */
.membership-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.membership-input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.membership-input-group > div {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.membership-input-group input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  font-size: 16px;
  min-width: 200px;
  min-height: 44px;
}

.btn-secondary {
  background-color: var(--blue);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  font-size: 16px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.btn-secondary:hover {
  background-color: #2563eb;
}

.help-text {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 4px 0;
}

.help-text a {
  color: var(--pink);
  text-decoration: none;
}

.help-text a:hover {
  text-decoration: underline;
}

.success-message {
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 4px;
}

.membership-info {
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
}

.member-details h4 {
  margin: 0 0 8px 0;
  color: var(--dark-gray);
}

.member-stats {
  display: flex;
  gap: 16px;
}

.member-level {
  background-color: var(--blue);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.member-points {
  color: var(--pink);
  font-weight: 600;
}

.points-preview {
  background: linear-gradient(135deg, #fef3f2, #f0f9ff);
  border: 2px solid var(--pink);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  text-align: center;
}

.points-earned {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.points-icon {
  font-size: 1.5rem;
}

.points-text {
  color: var(--dark-gray);
  font-size: 1rem;
}

/* Rewards Dashboard Styles */
.rewards-section {
  padding: 64px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.member-login {
  max-width: 400px;
  margin: 0 auto 40px;
  text-align: center;
}

.login-form {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.login-form input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
}

.member-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.member-card {
  text-align: center;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  color: white;
}

.member-header h3 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
}

.membership-badge {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.points-display {
  margin-top: 20px;
}

.points-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.points-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.rewards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.reward-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.3s;
}

.reward-card:hover {
  border-color: var(--pink);
}

.reward-discount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink);
}

.reward-cost {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.reward-description {
  font-size: 0.8rem;
  color: #6b7280;
}

.reward-redeem-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.how-it-works .rewards-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.reward-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: var(--light-gray);
  border-radius: 8px;
}

.rule-icon {
  font-size: 1.5rem;
}

.rule-text {
  font-weight: 500;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.level-card {
  text-align: center;
  background-color: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

.level-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.level-requirement {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.level-multiplier {
  font-weight: 600;
  color: var(--pink);
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

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

.history-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-source {
  font-weight: 600;
}

.history-date {
  font-size: 0.8rem;
  color: #6b7280;
}

.history-points {
  font-weight: 700;
  color: var(--green);
}

.no-rewards, .no-history {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 20px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .membership-input-group > div {
    flex-direction: row;
    align-items: center;
  }
  
  .member-dashboard {
    grid-template-columns: 1fr 1fr;
  }
  
  .member-card {
    grid-column: 1 / -1;
  }
  
  .rewards-container {
    grid-template-columns: 1fr;
  }
  
  .how-it-works .rewards-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .member-dashboard {
    grid-template-columns: 300px 1fr;
  }
  
  .member-card {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  
  .rewards-grid {
    grid-column: 2;
  }
  
  .points-history {
    grid-column: 2;
  }
}

/* Shop Styles */
.shop-section {
  padding: 64px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.shop-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.products-grid {
  width: 100%;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pink);
  margin: 12px 0;
}

.add-to-cart-btn {
  width: 100%;
  margin-top: 12px;
}

/* Cart Styles */
.cart-container {
  position: sticky;
  top: 80px;
}

.cart-summary {
  min-height: 300px;
}

.cart-summary h3 {
  text-align: center;
  margin-bottom: 24px;
}

.empty-cart {
  text-align: center;
  color: #6b7280;
  font-style: italic;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

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

.cart-item-info h4 {
  margin: 0 0 4px 0;
  font-size: 0.9rem;
}

.cart-item-price {
  font-size: 0.8rem;
  color: #6b7280;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-btn {
  background: var(--light-gray);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background: var(--medium-gray);
}

.quantity {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

.remove-btn {
  background: var(--pink);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-btn:hover {
  background: #d94682;
}

.cart-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 16px 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 24px;
}

/* Responsive Design */
@media (min-width: 768px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .time-stylist-group {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .cards-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .booking-container {
    grid-template-columns: 2fr 1fr;
    align-items: flex-start;
  }
  .shop-container {
    grid-template-columns: 2fr 1fr;
    align-items: flex-start;
  }
}
