/* ==========================================================================
   WISHLIST — ЧТО ПОДАРИТЬ.
   Dark Luxury Editorial Design System
   Pure CSS (No external UI frameworks)
   ========================================================================== */

:root {
  --bg-canvas: #0a0a0f;
  --bg-surface: #12121a;
  --bg-surface-elevated: #171722;
  --bg-surface-translucent: rgba(18, 18, 26, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-gold: rgba(201, 160, 81, 0.28);
  --border-gold-hover: rgba(201, 160, 81, 0.6);
  
  --gold-primary: #c9a051;
  --gold-light: #e3bd74;
  --gold-dark: #9e7932;
  --gold-glow: rgba(201, 160, 81, 0.15);
  
  --violet-hint: #8b5cf6;
  --violet-glow: rgba(139, 92, 246, 0.12);
  
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-gold: #c9a051;
  
  --status-active-bg: rgba(201, 160, 81, 0.12);
  --status-active-text: #e3bd74;
  --status-reserved-bg: rgba(255, 255, 255, 0.05);
  --status-reserved-text: #71717a;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --font-serif: 'Cormorant Garamond', Garamond, Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --shadow-card: 0 16px 36px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border-subtle);
  --shadow-card-hover: 0 24px 48px -12px rgba(0, 0, 0, 0.85), 0 0 30px -5px var(--gold-glow), 0 0 0 1px var(--border-gold);
  --shadow-modal: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px -10px var(--gold-glow);
  
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 160ms;
  --duration-normal: 260ms;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.07) 0%, transparent 60%),
    radial-gradient(circle at 85% 15%, rgba(201, 160, 81, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 15% 45%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.55;
  font-size: 15px;
  padding-bottom: 6rem;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Top Subtle Brand Bar */
.brand-bar {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-monogram {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-monogram::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-primary);
}

.brand-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.btn-share {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--duration-fast) var(--ease-spring);
}

.btn-share:hover {
  background: rgba(201, 160, 81, 0.15);
  box-shadow: 0 0 12px rgba(201, 160, 81, 0.2);
  color: #fff;
}

.brand-stats {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.brand-stats span {
  color: var(--gold-light);
  font-weight: 600;
}

/* Progress Track */
.progress-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold-light) 100%);
  box-shadow: 0 0 10px var(--gold-primary);
  transition: width 0.6s var(--ease-spring);
}

/* Hero Section */
.hero {
  padding: 3.5rem 0 2.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 0 3.5rem;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.hero-tag::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold-primary);
  opacity: 0.4;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.hero-title span {
  color: var(--gold-primary);
  font-style: italic;
  font-weight: 400;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 42rem;
  text-wrap: balance;
}

/* Controls Bar (Filters & Sorting) */
.controls-panel {
  background: rgba(18, 18, 26, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.125rem 1.25rem;
  margin-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--duration-normal) var(--ease-spring);
}

.controls-panel:focus-within {
  border-color: rgba(201, 160, 81, 0.25);
}

.controls-primary-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 680px) {
  .controls-primary-row {
    flex-direction: row;
    align-items: center;
  }
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 0.875rem;
  min-height: 42px;
  flex-grow: 1;
  transition: all var(--duration-fast);
}

.search-wrapper:focus-within {
  border-color: var(--border-gold);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 14px rgba(201, 160, 81, 0.1);
}

.search-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 0.625rem;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.search-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.search-clear-btn:hover {
  color: var(--text-primary);
}

.controls-secondary-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 900px) {
  .controls-secondary-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Category Filter Tabs */
.categories-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-spring);
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.filter-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.filter-btn.active {
  background: rgba(201, 160, 81, 0.14);
  color: var(--gold-light);
  border-color: rgba(201, 160, 81, 0.35);
  box-shadow: 0 0 15px rgba(201, 160, 81, 0.1);
}

.filter-btn .count {
  font-size: 0.6875rem;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

/* Right-side Controls: Status filter & Sort */
.secondary-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 899px) {
  .secondary-controls {
    justify-content: space-between;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
}

.status-toggle {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}

.status-toggle-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-spring);
  min-height: 32px;
}

.status-toggle-btn:hover {
  color: var(--text-primary);
}

.status-toggle-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Sort Select */
.sort-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sort-select {
  appearance: none;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 2.25rem 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  min-height: 38px;
  transition: all var(--duration-fast) var(--ease-spring);
}

.sort-select:hover, .sort-select:focus {
  border-color: var(--border-gold);
  color: var(--text-primary);
  outline: none;
}

.sort-icon {
  position: absolute;
  right: 0.75rem;
  pointer-events: none;
  color: var(--text-muted);
  width: 14px;
  height: 14px;
}

/* Grid Layout */
.wishlist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  position: relative;
}

@media (min-width: 600px) {
  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 960px) {
  .wishlist-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1320px) {
  .wishlist-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
  }
}

/* Card Component */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: 
    transform var(--duration-normal) var(--ease-spring),
    box-shadow var(--duration-normal) var(--ease-spring),
    border-color var(--duration-normal) var(--ease-spring),
    opacity 0.4s var(--ease-spring),
    filter 0.4s var(--ease-spring);
  position: relative;
  will-change: transform;
  min-width: 0;
  box-sizing: border-box;
  container-type: inline-size;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-gold);
}

/* Reserved State on Card */
.card.is-reserved {
  opacity: 0.58;
  filter: grayscale(20%);
  border-color: rgba(255, 255, 255, 0.05);
}

.card.is-reserved:hover {
  transform: none;
  box-shadow: var(--shadow-card);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Image Slot */
.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0d0d14;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.card-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e3bd74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3Cline x1='11' y1='8' x2='11' y2='14'%3E%3C/line%3E%3Cline x1='8' y1='11' x2='14' y2='11'%3E%3C/line%3E%3C/svg%3E") no-repeat center center;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-spring);
  pointer-events: none;
}

.card:hover .card-image-wrap::after {
  opacity: 0.85;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.6s var(--ease-spring);
}

.card-img.is-loaded {
  opacity: 1;
}

.card:hover:not(.is-reserved) .card-img {
  transform: scale(1.04);
}

/* Fallback image container */
.card-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1b1929 0%, #0d0d14 100%);
  color: var(--gold-primary);
  padding: 1.5rem;
  text-align: center;
}

.card-img-fallback svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.5;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.card-img-fallback span {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Badges on Image Overlay */
.card-badge-top {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  right: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.badge-source {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-status {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--duration-normal) var(--ease-spring);
}

.badge-status.is-active {
  background: rgba(18, 18, 26, 0.85);
  color: var(--gold-light);
  border: 1px solid rgba(201, 160, 81, 0.35);
}

.badge-status.is-active::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 6px var(--gold-primary);
}

.badge-status.is-reserved {
  background: rgba(20, 20, 25, 0.88);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-status.is-my-reservation {
  background: rgba(201, 160, 81, 0.2);
  color: #fde047;
  border: 1px solid rgba(201, 160, 81, 0.55);
  box-shadow: 0 0 10px rgba(201, 160, 81, 0.2);
}

.badge-status.is-my-reservation::before {
  content: '★';
  font-size: 0.625rem;
  color: var(--gold-light);
}

/* Card Body */
.card-content {
  padding: 1.125rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  box-sizing: border-box;
}

.card-category {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.375rem;
}

.card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.85rem;
}

.card-desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* Price Section */
.card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1.125rem;
}

.card-price-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.card-price-value {
  font-family: var(--font-sans);
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.card-price-value.is-priceless {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--gold-light);
  font-style: italic;
  font-family: var(--font-serif);
}

/* Card Action Buttons */
.card-actions {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.card-actions > * {
  min-width: 0;
}

.btn {
  appearance: none;
  border: none;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.625rem 0.625rem;
  min-height: 44px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-spring);
  box-sizing: border-box;
  text-align: center;
}

.btn svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
}

/* Secondary Button (Смотреть) */
.btn-secondary {
  flex: 0 0 auto;
  max-width: 48%;
  padding: 0.625rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.16);
}

/* Primary Button (Забронировать) */
.btn-primary {
  flex: 1 1 0;
  min-width: 0;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  color: #0a0a0f;
  box-shadow: 0 4px 14px rgba(201, 160, 81, 0.25);
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ebd193 0%, var(--gold-light) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201, 160, 81, 0.35);
}

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

/* Disabled Button (Уже забрали) */
.btn-disabled {
  flex: 1 1 0;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text-muted) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
  pointer-events: none;
}

/* Stacking for cards that are under 270px container width */
@container (max-width: 270px) {
  .card-actions {
    flex-direction: column;
    gap: 0.375rem;
  }
  .card-actions .btn-secondary,
  .card-actions .btn-primary,
  .card-actions .btn-disabled {
    width: 100%;
    max-width: 100%;
    flex: none;
  }
}

/* Status Stamp on Reserved items */
.reserved-stamp-bar {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Skeleton Loading State */
.skeleton-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.02) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite linear;
}

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

.skeleton-img {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.skeleton-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skeleton-line {
  height: 12px;
  border-radius: 4px;
}

/* Feedback States: Empty & Error */
.state-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3.5rem 1.5rem;
  text-align: center;
  max-width: 520px;
  margin: 2rem auto 4rem;
  box-shadow: var(--shadow-card);
}

.state-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201, 160, 81, 0.1);
  color: var(--gold-primary);
}

.state-icon.error {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.state-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.state-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Modal Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-spring), visibility var(--duration-normal);
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #13131c;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-modal);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: 
    transform 0.3s var(--ease-spring),
    opacity 0.25s var(--ease-spring);
  position: relative;
}

.modal-backdrop.is-open .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-title-wrap h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
}

.modal-title-wrap p {
  font-size: 0.8125rem;
  color: var(--gold-light);
  margin-top: 0.25rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* Modal Gift Preview */
.modal-gift-preview {
  margin: 1.25rem 1.5rem 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-preview-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #1c1c28;
  flex-shrink: 0;
}

.modal-preview-info {
  flex-grow: 1;
  min-width: 0;
}

.modal-preview-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-preview-price {
  font-size: 0.875rem;
  color: var(--gold-primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 0.15rem;
}

/* Modal Form */
.modal-form {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.form-label .req {
  color: var(--gold-light);
}

.form-input, .form-textarea {
  appearance: none;
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: all var(--duration-fast) var(--ease-spring);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 16px rgba(201, 160, 81, 0.15);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

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

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: calc(100vw - 3rem);
}

@media (max-width: 600px) {
  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}

.toast {
  pointer-events: auto;
  background: rgba(19, 19, 28, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.125rem;
  color: var(--text-primary);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(201, 160, 81, 0.12);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 280px;
  animation: toastSlideUp 0.3s var(--ease-spring);
  transition: opacity 0.25s, transform 0.25s;
}

.toast.is-hiding {
  opacity: 0;
  transform: translateY(12px) scale(0.95);
}

.toast-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gold-light);
}

.toast.is-error {
  border-color: rgba(239, 68, 68, 0.4);
}
.toast.is-error .toast-icon {
  color: #f87171;
}

.toast-body {
  flex-grow: 1;
}

.toast-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

.toast-msg {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}

.toast-close:hover {
  color: var(--text-primary);
}

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

/* Celebration Animation Effect for successful reservation */
@keyframes reservedCardFlash {
  0% {
    box-shadow: 0 0 0 2px var(--gold-light), 0 0 35px var(--gold-primary);
  }
  100% {
    box-shadow: var(--shadow-card);
  }
}

.card.just-reserved {
  animation: reservedCardFlash 1.2s ease-out;
}

/* Lightbox Photo Quick-View Modal */
.lightbox-card {
  background: #11111a;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-modal);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform 0.3s var(--ease-spring), opacity 0.25s var(--ease-spring);
  position: relative;
}

.modal-backdrop.is-open .lightbox-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.lightbox-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--duration-fast);
}

.lightbox-close-btn:hover {
  background: rgba(201, 160, 81, 0.25);
  border-color: var(--gold-light);
  transform: scale(1.05);
}

.lightbox-image-wrap {
  width: 100%;
  max-height: 55vh;
  background: #08080c;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lightbox-img {
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
  display: block;
}

.lightbox-footer {
  padding: 1.35rem 1.5rem;
  background: #13131c;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
}

@media (min-width: 600px) {
  .lightbox-footer {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.lightbox-info {
  flex: 1;
  min-width: 0;
}

.lightbox-category {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  margin-bottom: 0.25rem;
}

.lightbox-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.lightbox-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 600px) {
  .lightbox-actions {
    flex-direction: column;
    align-items: flex-end;
    padding-top: 0;
    border-top: none;
  }
}

.lightbox-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Footer */
.page-footer {
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.page-footer p {
  margin-bottom: 0.5rem;
}

.page-footer .gold-accent {
  color: var(--gold-primary);
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Диапазон цены (новая / б/у) ===== */
.price-range {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: baseline;
}
.card-price-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.price-new {
  color: var(--text-primary);
  font-weight: 700;
}
.price-used {
  color: var(--text-muted);
  font-weight: 500;
}
.price-sep {
  color: var(--text-faint, #555);
}
.no-price {
  color: var(--text-muted);
}
.modal-preview-price.price-range,
.lightbox-price.price-range {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}
