:root {
  --bg: #0f1724;
  --card: #0b1220cc;
  --text: #e6eef8;
  --muted: #98a0b3;
  --accent: linear-gradient(135deg, #ff7a59 0%, #ffb86b 100%);
  --accent-hover: linear-gradient(135deg, #ff8a6e 0%, #ffc580 100%);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.02);
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
  --border: rgba(255, 255, 255, 0.06);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mode clair */
[data-theme="light"] {
  --bg: #f5f7fa;
  --card: rgba(255, 255, 255, 0.9);
  --text: #1a202c;
  --muted: #64748b;
  --glass: rgba(0, 0, 0, 0.02);
  --glass-2: rgba(0, 0, 0, 0.01);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --border: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] body {
  background: radial-gradient(
      1200px 600px at 10% 10%,
      #e8eef5 0%,
      transparent 20%
    ),
    radial-gradient(900px 500px at 90% 90%, #eef2f7 0%, transparent 20%),
    var(--bg);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(
      1200px 600px at 10% 10%,
      #071028 0%,
      transparent 20%
    ),
    radial-gradient(900px 500px at 90% 90%, #081026 0%, transparent 20%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  padding: 32px;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.3s ease;
}

.app {
  max-width: 1100px;
  margin: 0 auto;
  contain: content;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.logo {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(255, 122, 89, 0.4);
}

.logo strong {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: #081020;
  font-weight: 700;
}

.brand-text h1 {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 2px;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  transition: var(--transition);
  font-weight: 500;
}

nav a:hover {
  background: var(--glass);
  color: #fff;
  transform: translateY(-1px);
}

/* Bouton panier dans la navigation */
.cart-toggle {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text);
  font-size: 20px;
}

.cart-toggle:hover {
  background: var(--glass-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

[data-theme="light"] .cart-toggle {
  background: rgba(255, 255, 255, 0.8);
}

.cart-toggle.active {
  background: var(--accent);
  color: #081020;
  transform: rotate(180deg);
}

.cart-toggle.active:hover {
  transform: rotate(180deg) translateY(-2px);
}

.cart-icon {
  transition: var(--transition);
}

.cart-toggle.active .cart-icon {
  transform: scale(1.1);
}

.cart-badge-nav {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #081020;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  margin-bottom: 48px;
  align-items: center;
}

.hero-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  backdrop-filter: blur(10px);
  padding: 32px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

[data-theme="light"] .hero-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.8)
  );
}

.hero h2 {
  font-family: "Playfair Display", serif;
  font-size: 38px;
  margin: 0 0 12px;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 0%, #b8c5d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .hero h2 {
  background: linear-gradient(135deg, #1a202c 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 15px;
}

/* Search Bar */
.search {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.search input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass-2);
  color: var(--text);
  outline: none;
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
}

[data-theme="light"] .search input {
  background: rgba(255, 255, 255, 0.8);
}

.search input:focus {
  border-color: rgba(255, 122, 89, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.search input::placeholder {
  color: var(--muted);
}

.search button {
  padding: 14px 24px;
  border-radius: 12px;
  border: 0;
  background: var(--accent);
  color: #081020;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.search button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 122, 89, 0.3);
}

.search button:active {
  transform: translateY(0);
}

/* Filters */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
}

[data-theme="light"] .chip {
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.chip:hover {
  border-color: rgba(255, 122, 89, 0.3);
  color: var(--text);
  transform: translateY(-1px);
}

.chip.active {
  background: linear-gradient(
    90deg,
    rgba(255, 122, 89, 0.15),
    rgba(255, 184, 107, 0.1)
  );
  border-color: rgba(255, 122, 89, 0.4);
  color: var(--text);
}

[data-theme="light"] .chip:hover {
  color: #1a202c;
}

/* Bouton de changement de thème */
.theme-toggle {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text);
  font-size: 20px;
}

.theme-toggle:hover {
  background: var(--glass-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.8);
}

/* Hero Media */
.hero-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 400px;
}

.hero-media:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.8);
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.hero-media:hover img {
  transform: scale(1.05);
}

/* Grid */
.section-title {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
  contain: content;
}

/* Cards */
.card {
  background: var(--card);
  backdrop-filter: blur(10px);
  padding: 16px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  border: 1px solid var(--border);
  contain: content;
}

[data-theme="light"] .card {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(2, 6, 23, 0.8);
  border-color: rgba(255, 122, 89, 0.2);
}

.card-img-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 180px;
  margin-bottom: 12px;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover img {
  transform: scale(1.1);
}

.card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.favorite-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.favorite-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 122, 89, 0.9);
}

.favorite-btn.active {
  color: #ff4757;
  animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(1.1);
  }
  75% {
    transform: scale(1.2);
  }
}

.card-content {
  padding: 4px 0;
}

.card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.price {
  font-weight: 700;
  font-size: 18px;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 0;
  background: var(--accent);
  color: #081020;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-size: 14px;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 122, 89, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--glass);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: var(--glass-2);
  color: #fff;
  box-shadow: none;
}

/* Cart */
.cart {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 380px;
  max-height: 500px;
  background: linear-gradient(
    180deg,
    rgba(10, 12, 18, 0.95),
    rgba(6, 8, 12, 0.98)
  );
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.9);
  border: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
  transform: translateX(420px) translateY(0);
  opacity: 0;
  visibility: hidden;
}

.cart:not(.hidden) {
  transform: translateX(0) translateY(0);
  opacity: 1;
  visibility: visible;
}

.cart.hidden {
  transform: translateX(420px) translateY(0);
  opacity: 0;
  visibility: hidden;
}

[data-theme="light"] .cart {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(250, 250, 252, 0.98)
  );
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.cart:hover {
  box-shadow: 0 25px 70px rgba(2, 6, 23, 0.95);
}

.cart h4 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-badge {
  background: var(--accent);
  color: #081020;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition);
}

.cart-list {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 4px;
}

.cart-list::-webkit-scrollbar {
  width: 6px;
}

.cart-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.cart-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.cart-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  background: var(--glass-2);
  margin-bottom: 10px;
  transition: var(--transition);
}

.cart-item:hover {
  background: var(--glass);
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.cart-item-price {
  color: var(--muted);
  font-size: 12px;
}

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

.cart-item-total {
  font-weight: 700;
  font-size: 15px;
}

.cart-item-buttons {
  display: flex;
  gap: 6px;
}

.cart-btn {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
  font-size: 12px;
  font-weight: 600;
}

.cart-btn:hover {
  background: var(--glass);
  color: #fff;
  border-color: rgba(255, 122, 89, 0.3);
}

.cart-empty {
  color: var(--muted);
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

.checkout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.checkout-total {
  font-size: 14px;
  color: var(--muted);
}

.checkout-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-top: 4px;
}

[data-theme="light"] .checkout-amount {
  color: #1a202c;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 100px;
  right: 28px;
  background: linear-gradient(
    135deg,
    rgba(10, 12, 18, 0.98),
    rgba(6, 8, 12, 0.98)
  );
  backdrop-filter: blur(20px);
  color: var(--text);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(2, 6, 23, 0.8);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  max-width: 320px;
}

[data-theme="light"] .toast {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(250, 250, 252, 0.98)
  );
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

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

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-success {
  border-left: 3px solid #4ade80;
}

.toast-error {
  border-left: 3px solid #ef4444;
}

.toast-warning {
  border-left: 3px solid #fbbf24;
}

.toast-info {
  border-left: 3px solid #60a5fa;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #081020;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(100px);
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PWA Install Banner */
.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 12, 18, 0.98),
    rgba(6, 8, 12, 0.98)
  );
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 10002;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .pwa-install-banner {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(250, 250, 252, 0.98)
  );
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pwa-install-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.pwa-install-content {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.pwa-install-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.pwa-install-text {
  flex: 1;
  min-width: 0;
}

.pwa-install-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text);
}

[data-theme="light"] .pwa-install-title {
  color: #1a202c;
}

.pwa-install-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.pwa-install-btn {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #081020;
  font-weight: 600;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}

.pwa-install-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 122, 89, 0.3);
}

.pwa-dismiss-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.pwa-dismiss-btn:hover {
  background: var(--glass);
  color: var(--text);
}

@media (max-width: 600px) {
  .pwa-install-content {
    flex-wrap: wrap;
    gap: 12px;
  }

  .pwa-install-icon {
    display: none;
  }

  .pwa-install-text {
    flex: 1 1 100%;
  }

  .pwa-install-btn {
    flex: 1;
  }

  .pwa-dismiss-btn {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .pwa-install-banner {
    padding: 16px 16px 20px;
  }
}

.scroll-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255, 122, 89, 0.4);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  transition: var(--transition);
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 122, 89, 0.3);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 122, 89, 0.9);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 122, 89, 0.9);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Favorites Section */
.favorites-section {
  margin-bottom: 48px;
}

.favorites-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.favorites-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* Footer */
footer {
  margin-top: 60px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
  margin-bottom: 12px;
  font-weight: 600;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger-1 {
  animation-delay: 0.1s;
}
.stagger-2 {
  animation-delay: 0.2s;
}
.stagger-3 {
  animation-delay: 0.3s;
}

/* Loading State */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Reviews Section */
.reviews-container {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  margin-bottom: 48px;
  align-items: start;
}

@media (max-width: 1024px) {
  .reviews-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Review Form - Modern Card Design */
.review-form {
  background: linear-gradient(
    145deg,
    var(--card) 0%,
    rgba(255, 122, 89, 0.05) 100%
  );
  backdrop-filter: blur(20px);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.review-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  border-radius: 24px 24px 0 0;
}

[data-theme="light"] .review-form {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 122, 89, 0.03) 100%
  );
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.review-form:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 30px rgba(255, 122, 89, 0.1);
}

.review-form h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-form h3::before {
  content: "✍️";
  font-size: 28px;
  filter: grayscale(0);
}

.review-form-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass-2);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: rgba(255, 122, 89, 0.3);
  background: var(--glass);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255, 122, 89, 0.6);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 122, 89, 0.1);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .form-group input:hover,
[data-theme="light"] .form-group select:hover,
[data-theme="light"] .form-group textarea:hover {
  border-color: rgba(255, 122, 89, 0.3);
  background: rgba(255, 255, 255, 1);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  border-color: rgba(255, 122, 89, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 122, 89, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2398a0b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 48px;
  cursor: pointer;
}

[data-theme="light"] .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.review-form .btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 15px;
  border-radius: 12px;
  margin-top: 8px;
}

.review-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 122, 89, 0.4);
}

/* Reviews List - Modern Card Design */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
  padding-bottom: 0;
}

/* Carousel Styles */
.reviews-carousel {
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

.reviews-carousel-inner {
  display: flex;
  flex-direction: column;
}

.reviews-carousel-item {
  display: none;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reviews-carousel-item.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.reviews-carousel-item.prev {
  display: block;
  opacity: 0;
  transform: translateX(-50px);
}

.reviews-carousel-inner {
  display: flex;
  flex-direction: column;
}

.reviews-carousel-item {
  display: none;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reviews-carousel-item.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.reviews-carousel-item.prev {
  display: block;
  opacity: 0;
  transform: translateX(-50px);
}

.reviews-carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 16px 24px;
  background: var(--glass);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.reviews-carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 24px;
  font-weight: 600;
}

.reviews-carousel-btn:hover {
  background: var(--accent);
  color: #081020;
  transform: scale(1.1);
}

.reviews-carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.reviews-carousel-dots {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.reviews-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.reviews-carousel-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.reviews-carousel-dot:hover {
  background: rgba(255, 122, 89, 0.6);
}

.reviews-carousel-counter {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  min-width: 50px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 8px;
}

[data-theme="light"] .reviews-carousel-btn {
  background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .reviews-carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

.reviews-list::-webkit-scrollbar {
  width: 6px;
}

.reviews-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.reviews-list::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(255, 122, 89, 0.4),
    rgba(255, 184, 107, 0.4)
  );
  border-radius: 10px;
}

.reviews-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 122, 89, 0.6),
    rgba(255, 184, 107, 0.6)
  );
}

.reviews-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 4px;
}

.reviews-list-header h4 {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviews-count {
  background: linear-gradient(
    135deg,
    rgba(255, 122, 89, 0.15),
    rgba(255, 184, 107, 0.1)
  );
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(255, 122, 89, 0.2);
}

/* Review Item - Beautiful Card Design */
.review-item {
  background: linear-gradient(
    145deg,
    var(--card) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: reviewSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  word-break: break-word;
  overflow-wrap: break-word;
}

.review-item.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes reviewSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.review-item::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 16px;
  font-family: "Playfair Display", serif;
  font-size: 60px;
  color: rgba(255, 122, 89, 0.1);
  line-height: 1;
  pointer-events: none;
}

[data-theme="light"] .review-item {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 122, 89, 0.02) 100%
  );
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.review-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 122, 89, 0.1);
  border-color: rgba(255, 122, 89, 0.3);
}

.review-item:hover .review-avatar {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 122, 89, 0.5);
}

.review-item:hover .review-comment {
  color: rgba(255, 122, 89, 0.9);
}

.review-item.scrolling {
  animation: reviewPulse 2s ease-in-out infinite;
}

@keyframes reviewPulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 4px 30px rgba(255, 122, 89, 0.3);
  }
}

.review-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
  flex-direction: column;
  text-align: center;
}

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

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8a6e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #081020;
  box-shadow: 0 4px 12px rgba(255, 122, 89, 0.3);
  flex-shrink: 0;
}

.review-author-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.review-author {
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
}

.review-rating {
  display: flex;
  gap: 2px;
  font-size: 14px;
}

.review-star {
  color: #ffc107;
  text-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

.review-star.empty {
  color: rgba(255, 255, 255, 0.1);
  text-shadow: none;
}

[data-theme="light"] .review-star.empty {
  color: rgba(0, 0, 0, 0.1);
}

.review-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.review-date {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-date::before {
  content: "🗓️";
  font-size: 12px;
}

.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-comment {
  color: var(--text);
  line-height: 1.8;
  font-size: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  max-width: 100%;
  text-align: center;
}

[data-theme="light"] .review-comment {
  border-top-color: rgba(0, 0, 0, 0.05);
}

/* Empty State */
.reviews-empty {
  text-align: center;
  padding: 60px 30px;
  background: linear-gradient(
    145deg,
    var(--card) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border-radius: 20px;
  border: 1px dashed var(--border);
}

.reviews-empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.reviews-empty h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.reviews-empty p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .reviews-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .review-form {
    padding: 24px;
    border-radius: 20px;
  }

  .review-form h3 {
    font-size: 20px;
  }

  .review-item {
    padding: 20px;
    border-radius: 16px;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-meta {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 4px;
  }

  .reviews-list {
    max-height: 600px;
  }

  .reviews-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Modal/Popup Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal {
  background: linear-gradient(
    145deg,
    var(--card) 0%,
    rgba(10, 12, 18, 0.98) 100%
  );
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  border: 1px solid var(--border);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

[data-theme="light"] .modal {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(250, 250, 252, 0.98) 100%
  );
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

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

.modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}

.modal-icon.success {
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.2),
    rgba(74, 222, 128, 0.1)
  );
  border: 2px solid #4ade80;
}

.modal-icon.error {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.2),
    rgba(239, 68, 68, 0.1)
  );
  border: 2px solid #ef4444;
}

.modal-icon.warning {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.2),
    rgba(251, 191, 36, 0.1)
  );
  border: 2px solid #fbbf24;
}

.modal-icon.info {
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.2),
    rgba(96, 165, 250, 0.1)
  );
  border: 2px solid #60a5fa;
}

.modal-title {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.modal-message {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
  white-space: pre-line;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-btn {
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-btn.primary {
  background: var(--accent);
  color: #081020;
}

.modal-btn.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 122, 89, 0.4);
}

.modal-btn.secondary {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--border);
}

.modal-btn.secondary:hover {
  background: var(--glass-2);
  border-color: rgba(255, 122, 89, 0.3);
}

@media (max-width: 480px) {
  .modal {
    padding: 24px;
    margin: 16px;
  }

  .modal-buttons {
    flex-direction: column;
  }

  .modal-btn {
    width: 100%;
  }
}
