@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --font-primary: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Brand Colors */
  --color-primary: #f59e0b;
  --color-primary-hover: #d97706;
  --color-primary-dark: #b45309;
  --color-primary-light: #fef3c7;
  --color-secondary: #ea580c;
  --color-secondary-hover: #c2410c;
  --color-accent: #10b981;
  --color-accent-hover: #059669;

  /* Neutrals */
  --color-bg-light: #fafaf9;
  --color-surface: #ffffff;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #f1f5f9;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-primary: 0 10px 25px -5px rgba(245, 158, 11, 0.35);
  --shadow-secondary: 0 10px 25px -5px rgba(234, 88, 12, 0.35);
}

/* Global Reset & Base Styles */
html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  letter-spacing: -0.02em;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Alpine x-cloak helper */
[x-cloak] {
  display: none !important;
}

/* Centered Auth Layout Helper (Ensures flawless centering on mobile, tablet & desktop) */
.auth-viewport-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

@media (min-height: 800px) {
  .auth-viewport-wrap {
    padding: 3rem 1.5rem;
  }
}

/* Custom Utility Classes */
.map-frame {
  border: 0;
  width: 100%;
  height: 340px;
  border-radius: 1.25rem;
}

.modal-hidden {
  display: none;
}

.modal-shown {
  display: block;
}

/* Glassmorphism & Card Treatments */
.glass-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Premium Card Hover Effects */
.premium-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

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

/* Premium Buttons */
.premium-btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.875rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.premium-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.45);
  color: #ffffff;
}

.premium-btn-secondary {
  background: #ffffff;
  color: #ea580c;
  border: 1px solid #fed7aa;
  font-weight: 600;
  border-radius: 0.875rem;
  transition: all 0.25s ease;
}

.premium-btn-secondary:hover {
  background: #fff7ed;
  border-color: #f97316;
  transform: translateY(-2px);
}

.premium-btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.875rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.premium-btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
  color: #ffffff;
}

/* Off-canvas Mobile Menu */
#mobileMenu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 9999;
}

#mobileMenu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Hero Carousel Slides */
.hero-slide {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Wishlist / Like Button */
.like-btn {
  color: #94a3b8;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.like-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

.like-btn.liked {
  color: #ffffff !important;
  background: #ef4444 !important;
  border-color: #ef4444 !important;
}

.like-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

.like-btn i {
  pointer-events: none;
}

/* Product Card Styling */
.product-card {
  font-family: var(--font-body);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -6px rgba(0, 0, 0, 0.09);
}

.product-card img {
  transition: transform 0.35s ease;
}

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

/* Pulse animation for badges */
@keyframes softPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

.badge-pulse {
  animation: softPulse 2.5s infinite ease-in-out;
}

/* Rating Stars */
.rating-stars {
  letter-spacing: 2px;
  line-height: 1;
}

/* Modern DataTables Styling */
.dataTables_wrapper {
  font-family: var(--font-body);
  padding: 0.5rem 0;
}

.dataTables_wrapper .dataTables_length select {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.5rem 2rem 0.5rem 1rem;
  font-size: 0.875rem;
  outline: none;
  background-color: #ffffff;
  color: #334155;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dataTables_wrapper .dataTables_length select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  outline: none;
  background-color: #ffffff;
  color: #334155;
  min-width: 240px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  border: none !important;
}

table.dataTable thead th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.05em !important;
  padding: 0.875rem 1.25rem !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

table.dataTable tbody td {
  padding: 1rem 1.25rem !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

table.dataTable tbody tr:hover td {
  background-color: #fffbeb !important;
}

.dataTables_wrapper .dataTables_paginate {
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  padding-top: 1rem !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 0.5rem !important;
  padding: 0.375rem 0.875rem !important;
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  background: #f8fafc !important;
}

.dataTables_wrapper .dataTables_info {
  font-size: 0.8125rem !important;
  color: #64748b !important;
  padding-top: 1rem !important;
}
