/* ═══════════════════════════════════════
   Components - Buttons, Cards, etc.
   ═══════════════════════════════════════ */

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  z-index: -1;
}

.btn:hover::before { transform: translateX(0); }

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }

/* ═══ Section Headers ═══ */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(0,75,173,0.1));
  color: var(--primary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* ═══ Glass Card ═══ */
.glass-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* FAQ Accordion */
.glass-card.faq-item:hover {
  transform: none;
}

.glass-card.faq-item .faq-answer {
  display: none;
}

.glass-card.faq-item.open .faq-answer {
  display: block;
  animation: faqFadeIn 0.25s ease;
}

.glass-card.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,102,204,0.12);
}

.glass-card.faq-item .faq-btn i {
  transition: transform 0.3s ease;
}

.glass-card.faq-item.open .faq-btn i {
  transform: rotate(180deg);
}

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

/* ═══ Product Card ═══ */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
  border: 1px solid var(--gray-100);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.product-card .product-image {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, #f0f8ff, #e8f4fd);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}

.product-card .product-image img {
  max-height: 180px;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--danger);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.product-badge.new {
  background: var(--success);
}

.product-wishlist {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  color: var(--gray-400);
  font-size: 0.9rem;
}

.product-wishlist:hover, .product-wishlist.active {
  color: var(--danger);
  transform: scale(1.1);
}

.product-info {
  padding: 16px;
}

.product-brand {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 6px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 8px 0;
}

.product-rating .stars {
  color: #fbbf24;
  font-size: 0.8rem;
}

.product-rating .count {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 8px;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  min-width: 0;
  flex: 1;
}

.product-price .old-price {
  font-size: 0.85rem;
  color: var(--gray-400);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 6px;
}

.product-price .currency {
  font-size: 0.8rem;
  font-weight: 500;
}

.btn-add-cart {
  width: 38px;
  height: 38px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-bounce);
  font-size: 0.9rem;
}

.btn-add-cart:hover {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: var(--shadow-glow);
}

/* ═══ Service Card ═══ */
.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(0,75,173,0.1));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  color: var(--primary);
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: var(--white);
  transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ═══ Testimonial Card ═══ */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  position: relative;
}

.testimonial-card .quote-icon {
  font-size: 2rem;
  color: var(--primary-light);
  opacity: 0.3;
  position: absolute;
  top: 16px;
  left: 20px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-author h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ═══ Brand Card ═══ */
.brand-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.brand-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.brand-card span {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gray-400);
  transition: color var(--transition-normal);
}

.brand-card:hover span {
  color: var(--primary);
}

/* ═══ Stats Counter ═══ */
.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ═══ Form Elements ═══ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  background: var(--white);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.form-control::placeholder {
  color: var(--gray-400);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ═══ Toast / Notification ═══ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
  border-right: 4px solid var(--success);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ═══ Countdown Timer ═══ */
.countdown {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.countdown-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  min-width: 70px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.countdown-item .number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1;
}

.countdown-item .label {
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ═══ Loading Skeleton ═══ */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══ Modals ═══ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 { font-size: 1.1rem; font-weight: 700; }

.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

/* ═══ Booking Date Picker ═══ */
.date-picker-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.date-picker-scroll::-webkit-scrollbar { height: 4px; }
.date-picker-scroll::-webkit-scrollbar-track { background: var(--gray-100); border-radius: 4px; }
.date-picker-scroll::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }

.date-pick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 72px;
  padding: 12px 8px;
  border: 2px solid var(--gray-200);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  scroll-snap-align: start;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.date-pick-card:hover {
  border-color: var(--primary);
  background: #f0f7ff;
  transform: translateY(-2px);
}
.date-pick-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), #0056b3);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,123,255,0.35);
  transform: translateY(-3px);
}
.dp-day {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.75;
  white-space: nowrap;
}
.dp-num {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}
.dp-month {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.75;
}
.date-pick-card.selected .dp-day,
.date-pick-card.selected .dp-month { opacity: 0.85; }

/* ═══ Booking Time Slots ═══ */
.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 500px) {
  .time-slots-grid { grid-template-columns: repeat(2, 1fr); }
}

.time-slot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 8px;
  border: 2px solid var(--gray-200);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Cairo', sans-serif;
}
.time-slot-card i {
  font-size: 1.5rem;
  color: var(--primary);
  transition: color 0.2s;
}
.time-slot-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-800);
}
.time-slot-hours {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 600;
}
.time-slot-card:hover {
  border-color: var(--primary);
  background: #f0f7ff;
  transform: translateY(-2px);
}
.time-slot-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), #0056b3);
  box-shadow: 0 4px 14px rgba(0,123,255,0.35);
  transform: translateY(-3px);
}
.time-slot-card.selected i,
.time-slot-card.selected .time-slot-label,
.time-slot-card.selected .time-slot-hours {
  color: #fff;
}
