:root {
  /* Темная цветовая палитра */
  --bg-primary: #1a1a1a;
  --bg-secondary: #0f0f0f;
  --bg-tertiary: #262626;
  --bg-card: #1f1f1f;
  --bg-hover: #2a2a2a;

  --text-primary: #f8f9fa;
  --text-secondary: #adb5bd;
  --text-muted: #6c757d;

  --accent-primary: #4f91e3;
  --accent-secondary: #51aeec;
  --accent-hover: #1871e3;

  --border-color: #374151;
  --border-light: #4b5563;

  --success: #34d399;
  --error: #f87171;
  --warning: #fbbf24;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-pg: 24px 24px 14px 24px;

  --transition-fast: 0.15s;
  --transition-base: 0.3s;
  --transition-slow: 0.5s;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.brand-banner {
  width: 100%;
  max-height: 130px;
  padding: 1% 10% 1% 10%;
  /*padding: var(--spacing-sm) var(--spacing-xs);*/
  background: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  /*border-bottom: 1px solid var(--border-light);*/
  transition: all var(--transition-base);
}

/* ========== BOTTOM NAVIGATION ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-sm) 0 calc(var(--spacing-sm) + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--spacing-sm);
  text-decoration: none;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  border-radius: var(--radius-md);
  min-width: 60px;
  position: relative;
  cursor: pointer;
}

.profile-nav-item {
  cursor: pointer;
}

.nav-item svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  transition: all var(--transition-base);
}

.nav-item span {
  font-size: 11px;
  font-weight: 500;
}

.nav-item.active {
  color: var(--accent-primary);
}

.nav-item.active svg {
  stroke: var(--accent-primary);
  fill: var(--accent-primary);
  fill-opacity: 0.1;
}

.nav-item:hover {
  background: var(--bg-hover);
  transform: translateY(-2px);
}

.nav-item:active {
  transform: translateY(0);
}

.profile-nav-item:hover {
  background: var(--bg-hover);
  transform: translateY(-2px);
}

.profile-nav-item:active {
  transform: translateY(0);
}

.profile-nav-item:hover .profile-avatar-btn {
  transform: scale(1.05);
}

.profile-nav-item:active .profile-avatar-btn {
  transform: scale(0.95);
}

.profile-nav-item span {
  font-weight: 500;
  transition: font-weight var(--transition-fast);
}

.profile-nav-item:hover span {
  font-weight: 500;
}

.nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--error);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
  border: 2px solid var(--bg-primary);
}

/* ========== PROFILE AVATAR BUTTON ========== */
.profile-avatar-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.profile-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-btn:hover {
  border-color: var(--accent-primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.profile-avatar-btn:active {
  transform: scale(0.95);
}

.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  font-weight: 700;
  font-size: 12px;
}

/* ========== PROFILE MENU ========== */
.profile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: none;
  animation: fadeIn var(--transition-base);
}

.profile-menu.active {
  display: block;
}

.profile-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.profile-menu-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-xl);
  animation: slideUp var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 80vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.profile-menu-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  border: 3px solid var(--accent-primary);
  overflow: hidden;
  background: var(--bg-tertiary);
}

.profile-menu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-menu-info {
  flex: 1;
}

.profile-menu-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-menu-username {
  font-size: 14px;
  color: var(--text-secondary);
}

.profile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.profile-menu-action {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.profile-menu-action:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.profile-menu-action:active {
  transform: translateX(2px) scale(0.98);
}

.profile-menu-action svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-primary);
  fill: none;
}

.profile-menu-action-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
}

.profile-menu-action-arrow {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
}

/* ========== BURGER MENU ========== */
.burger-menu-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-base);
  padding: 0;
  flex-shrink: 0;
}

.burger-menu-btn:hover {
  background: var(--bg-hover);
  transform: scale(1.05);
}

.burger-menu-btn:active {
  transform: scale(0.95);
}

.burger-menu-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

.burger-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: none;
  animation: fadeIn var(--transition-base);
}

.burger-menu.active {
  display: block;
}

.burger-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.burger-menu-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-xl);
  animation: slideInLeft var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.burger-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.burger-menu-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.burger-menu-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-base);
  padding: 0;
}

.burger-menu-close:hover {
  background: var(--bg-hover);
  transform: scale(1.1);
}

.burger-menu-close:active {
  transform: scale(0.95);
}

.burger-menu-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.burger-menu-items {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-md);
  gap: var(--spacing-sm);
  flex: 1;
}

.burger-menu-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-base);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
}

.burger-menu-item:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.burger-menu-item:active {
  transform: translateX(2px) scale(0.98);
}

.burger-menu-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-primary);
  fill: none;
  flex-shrink: 0;
}

.burger-menu-item span {
  flex: 1;
}

/* ========== HEADER ========== */
.header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.header h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
  text-align: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.cart-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.cart-icon:hover {
  background: var(--bg-hover);
  transform: scale(1.05);
}

.cart-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--error);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
  border: 2px solid var(--bg-primary);
}

/* ========== MAIN CONTENT ========== */
.main-content {
  padding: var(--spacing-md);
  padding-bottom: calc(140px + var(--spacing-md)); /* Увеличено для footer-info (60px) + bottom-nav (80px) */
  min-height: 100vh;
}

/* ========== PAGE CONTENT (для текстовых страниц) ========== */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg) 0;
}

.page-text {
  line-height: 1.8;
  color: var(--text-primary);
  font-size: 15px;
}

.page-text p {
  margin: 0 0 var(--spacing-md) 0;
}

.page-text p:last-child {
  margin-bottom: 0;
}

.page-text h1,
.page-text h2,
.page-text h3 {
  color: var(--text-primary);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

.page-text h1 {
  font-size: 24px;
}

.page-text h2 {
  font-size: 20px;
}

.page-text h3 {
  font-size: 18px;
}

.page-text ul,
.page-text ol {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
}

.page-text li {
  margin: var(--spacing-sm) 0;
}

.page-text a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.page-text a:hover {
  text-decoration: none;
}

.page-text strong {
  font-weight: 600;
  color: var(--text-primary);
}

.page-text em {
  font-style: italic;
}

/* ========== PRIVACY CONSENT MODAL ========== */
.privacy-consent-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  display: none;
  animation: fadeIn var(--transition-base);
}

.privacy-consent-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-consent-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.privacy-consent-content {
  position: relative;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.privacy-consent-header {
  margin-bottom: var(--spacing-md);
}

.privacy-consent-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.privacy-consent-body {
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
  color: var(--text-primary);
  font-size: 14px;
}

.privacy-consent-body p {
  margin: 0 0 var(--spacing-md) 0;
}

.privacy-consent-body ul {
  margin: var(--spacing-sm) 0 var(--spacing-md) var(--spacing-lg);
  padding-left: var(--spacing-md);
}

.privacy-consent-body li {
  margin: var(--spacing-xs) 0;
}

.privacy-consent-body a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.privacy-consent-body a:hover {
  text-decoration: none;
}

.privacy-consent-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-direction: column;
}

.privacy-consent-btn {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: inherit;
}

.privacy-consent-btn-accept {
  background: var(--accent-primary);
  color: white;
}

.privacy-consent-btn-accept:hover {
  background: var(--accent-primary);
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.privacy-consent-btn-accept:active {
  transform: translateY(0);
}


/* ========== SEARCH ========== */
.search-container {
  margin-top: var(--spacing-md);
  display: flex;
  justify-content: center; /* выравнивает по горизонтали */
  align-items: center;   /* выравнивает по вертикали, если нужно */
}

.search-input {
  max-width: 300px;
  padding: 12px var(--spacing-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-base);
}

.search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: var(--bg-primary);
}

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

/* ========== CATEGORIES ========== */
.categories-wrapper {
  margin-left: calc(-1 * var(--spacing-md));
  margin-right: calc(-1 * var(--spacing-md));
  margin-bottom: var(--spacing-md);
  position: relative;
  width: calc(100% + 2 * var(--spacing-md));
}

.categories {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) var(--bg-secondary);
  padding: var(--spacing-sm) var(--spacing-md);
}

.categories::-webkit-scrollbar {
  height: 4px;
}

.categories::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.categories::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: var(--radius-full);
}

.category-card {
  min-width: 100px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-card.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.category-card.active .category-name {
  color: white;
  font-weight: 700;
}

.category-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ========== ITEMS GRID ========== */
.items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.4s ease-out backwards;
}

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

.item-card:nth-child(1) { animation-delay: 0.05s; }
.item-card:nth-child(2) { animation-delay: 0.1s; }
.item-card:nth-child(3) { animation-delay: 0.15s; }
.item-card:nth-child(4) { animation-delay: 0.2s; }

.item-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.item-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--bg-secondary);
  display: block;
}

.item-info {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  flex-grow: 1;
}

.item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  min-height: 40px;
  overflow: hidden;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.item-price {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.price-old {
  text-decoration: line-through;
  font-size: 12px;
  color: var(--text-muted);
}

.price-new {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-primary);
}

.item-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: auto;
}

.item-card-btn {
  flex: 1;
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition-base);
  font-family: inherit;
}

.item-card-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.item-card-btn:active {
  transform: translateY(0) scale(0.95);
}

.item-card-btn.disabled,
.item-card-btn:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

.item-card-btn.disabled:hover,
.item-card-btn:disabled:hover {
  background: #ccc;
  transform: none;
}

.favorite-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
}

.favorite-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
  fill: none;
  transition: all var(--transition-base);
}

.favorite-btn:hover {
  border-color: var(--accent-primary);
  background: var(--bg-hover);
}

.favorite-btn.active svg {
  stroke: var(--error);
  fill: var(--error);
}

/* ========== ITEM DETAIL ========== */
.item-detail {
  display: none;
  padding: 0;
  background: var(--bg-secondary);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.item-detail.active {
  display: block;
}

.back-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: var(--spacing-sm);
  border-radius: 10px;
  margin-bottom: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-base);
  width: 100%;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  position: relative;
  z-index: 10;
  opacity: 0.8;
}

.back-btn.sticky {
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: var(--bg-primary);
}


.back-btn:hover {
  background: var(--bg-hover);
  opacity: 1;
}

.back-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.image-slider {
  width: 100%;
  max-width: 100%;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.slider-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.slider-images {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.slider-images::-webkit-scrollbar {
  display: none;
}

.slider-image {
  min-width: 100%;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--bg-secondary);
  scroll-snap-align: start;
  display: block;
  flex-shrink: 0;
}

.item-detail-image {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--bg-secondary);
  display: block;
}

.slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: var(--spacing-md);
  background: var(--bg-secondary);
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  cursor: pointer;
  transition: all var(--transition-base);
}

.slider-dot.active {
  background: var(--accent-primary);
  width: 24px;
}

.item-detail-info {
  padding: var(--spacing-lg) var(--spacing-md);
  background: var(--bg-primary);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.item-detail-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  text-align: center;
}

.item-detail-description {
  font-size: 14px;
  margin-bottom: var(--spacing-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
}

.detail-actions-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.quantity-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  flex: 1;
}

.quantity-btn {
  background: var(--bg-primary);
  color: var(--accent-primary);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.quantity-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity-value {
  font-size: 16px;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
  color: var(--text-primary);
}

.favorite-btn-detail {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.favorite-btn-detail svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-secondary);
  fill: none;
  transition: all var(--transition-base);
}

.favorite-btn-detail:hover {
  border-color: var(--accent-primary);
  background: var(--bg-hover);
}

.favorite-btn-detail.active svg {
  stroke: var(--error);
  fill: var(--error);
}

.add-to-cart-btn-inline {
  flex: 1;
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: inherit;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-to-cart-btn-inline:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.add-to-cart-btn-inline:active {
  transform: translateY(0) scale(0.98);
}

.add-to-cart-btn-inline.disabled,
.add-to-cart-btn-inline:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

.add-to-cart-btn-inline.disabled:hover,
.add-to-cart-btn-inline:disabled:hover {
  background: #ccc;
  transform: none;
  box-shadow: none;
}

/* ========== CART PAGE ========== */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.cart-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.cart-item:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.cart-item-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

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

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-price {
  font-size: 14px;
  color: var(--accent-primary);
  font-weight: 600;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

.cart-qty-btn {
  background: var(--bg-secondary);
  color: var(--accent-primary);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.cart-qty-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
}

.cart-qty-btn:active {
  transform: scale(0.95);
}

.cart-qty-value {
  font-size: 16px;
  font-weight: 600;
  min-width: 30px;
  text-align: center;
  color: var(--text-primary);
}

.cart-remove-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  border-radius: var(--radius-sm);
}

.cart-remove-btn:hover {
  color: var(--error);
  transform: scale(1.2);
}

.cart-total {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.cart-total-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.cart-total-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-primary);
}

.checkout-btn {
  width: 100%;
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: inherit;
}

.checkout-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.checkout-btn:active {
  transform: translateY(0) scale(0.98);
}

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

/* ========== ORDERS PAGE ========== */
.orders-container {
  padding: var(--spacing-md);
  padding-bottom: calc(80px + var(--spacing-md));
}

.order-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.order-item:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.order-id {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.order-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-primary);
}

.order-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--spacing-md);
  font-size: 13px;
  color: var(--text-secondary);
}

.order-items-preview {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.order-item-preview {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-sm);
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

.order-item-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  flex-shrink: 0;
}

.order-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-item-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
}

.order-item-qty {
  font-size: 12px;
  color: var(--text-secondary);
}

.order-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-primary);
}

.empty-orders {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 16px;
}

/* ========== FAVORITES PAGE ========== */
.favorites-container {
  padding: var(--spacing-md);
  padding-bottom: calc(80px + var(--spacing-md));
}

.empty-favorites {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 16px;
}

/* ========== PROFILE PAGE ========== */
.profile-container {
  padding: var(--spacing-md);
  padding-bottom: calc(80px + var(--spacing-md));
}

.profile-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-xl) 0;
}

.profile-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  border: 4px solid var(--accent-primary);
  margin: 0 auto var(--spacing-md);
  overflow: hidden;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-username {
  font-size: 16px;
  color: var(--text-secondary);
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.profile-action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.profile-action-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.profile-action-card:active {
  transform: translateX(2px) scale(0.98);
}

.profile-action-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-action-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
  fill: none;
}

.profile-action-content {
  flex: 1;
}

.profile-action-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-action-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.profile-action-arrow {
  width: 24px;
  height: 24px;
  stroke: var(--text-secondary);
  flex-shrink: 0;
}

/* ========== LOADING & ERROR ========== */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  position: relative;
}

.loading::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
  margin-left: 12px;
}

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

.error {
  text-align: center;
  padding: 60px 20px;
  color: var(--error);
  font-size: 14px;
}

/* ========== SEARCH MODAL ========== */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  display: none;
  animation: fadeIn var(--transition-base);
}

.search-modal.active {
  display: block;
}

.search-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.search-modal-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  animation: slideDown var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 10;
}

.search-modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.search-modal-close {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.search-modal-close:hover {
  background: var(--bg-hover);
  transform: rotate(90deg);
}

.search-modal-close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.search-modal-body {
  flex: 1;
  padding: var(--spacing-md);
  overflow-y: auto;
}

.search-results {
  margin-top: var(--spacing-md);
}

/* ========== TOAST NOTIFICATIONS ========== */
.toast-container {
  position: fixed;
  top: var(--spacing-md);
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
  max-width: 90%;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  pointer-events: auto;
  cursor: auto;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-20px) scale(0.9);
  transition: all var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 100%;
  border-left: 4px solid var(--accent-primary);
  display: flex;
  align-items: center;
}

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

.toast-success {
  border-left-color: var(--success);
}

.toast-error {
  border-left-color: var(--error);
}

.toast-info {
  border-left-color: var(--accent-primary);
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-pg) 0;
  width: 100%;
  grid-column: 1 / -1;
  margin-top: var(--spacing-md);
}

.pagination-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px var(--spacing-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all var(--transition-base);
  font-family: inherit;
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pagination-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.95);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-secondary);
}

.pagination-info {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0 var(--spacing-sm);
}

/* ========== CHECKOUT PAGE ========== */
.checkout-container {
  padding: var(--spacing-md);
  padding-bottom: calc(80px + var(--spacing-md));
}

.checkout-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.summary-header {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border-light);
}

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

.summary-item .item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.summary-item .item-qty {
  font-size: 13px;
  color: var(--text-secondary);
}

.summary-item .item-price {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.checkout-total {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.total-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-primary);
}

.discount-amount {
  color: var(--success);
  font-weight: 600;
}

.total-final {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-md) 0 0;
  margin-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.final-amount {
  font-size: 20px;
  color: var(--accent-primary);
}

.checkout-form-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.form-header {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.payment-option {
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.payment-option:hover {
  border-color: var(--accent-primary);
  background: var(--bg-hover);
}

.payment-option input[type="radio"] {
  margin-right: var(--spacing-md);
  width: 18px;
  height: 18px;
  accent-color: var(--accent-primary);
  flex-shrink: 0;
}

.payment-option span {
  flex: 1;
}

.checkout-submit-btn {
  width: 100%;
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: inherit;
  margin-top: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  position: relative;
}

.checkout-submit-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.checkout-submit-btn.loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
  margin-left: 0;
  flex-shrink: 0;
}

.checkout-submit-btn:hover:not(.loading) {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.checkout-submit-btn:active:not(.loading) {
  transform: translateY(0) scale(0.98);
}

/* ========== RESPONSIVE ========== */
@media (min-width: 769px) {
  .items-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
  }

  .slider-image,
  .item-detail-image {
    max-height: 500px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }

  .main-content,
  .cart-items,
  .orders-container,
  .favorites-container,
  .profile-container {
    max-width: 1200px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

  .category-card {
    min-width: 80px;
    padding: var(--spacing-sm);
  }

  .category-name {
    font-size: 11px;
  }
}
/* ========== FOOTER INFO (над bottom-nav) ========== */
.footer-info {
  position: fixed;
  bottom: 70px; /* Высота bottom-nav */
  left: 0;
  right: 0;
  padding: var(--spacing-sm) var(--spacing-md);
  z-index: 999;
}

.dev-link {
  margin-top: 0;
  text-align: center;
  font-size: 9px;
  color: var(--loft-text-secondary);
  text-decoration: none !important;
  transition: color var(--transition-fast);
  padding: var(--spacing-xs) 0;
}

.dev-link:hover {
  color: var(--accent-hover);
}

.copyright {
  margin-top: var(--spacing-sm);
}

.copyright-text {
  font-size: 9px;
  color: var(--loft-text-secondary);
  text-align: center;
  line-height: 1.6;
  padding: var(--spacing-xs) 0;
}

.copyright-text div {
  margin-bottom: 0;
}

.copyright-text div:last-child {
  margin-bottom: 0;
}

/* ========== STOCK MESSAGE ========== */
.stock-message {
  color: var(--error);
  font-size: 0.95em;
  margin: 10px 0;
  font-weight: 500;
}

.stock-message.small {
  font-size: 0.9em;
  margin-top: 5px;
}

/* ========== LOYALTY DISCOUNT NOTICE ========== */
.loyalty-discount-notice {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: #fffdf3;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--warning);
}

/* ========== VARIANTS SELECTOR ========== */
.variants-selector {
  margin: 15px 0;
}

.variants-selector .form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
}

.variants-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.variant-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition-base);
}

.variant-btn:hover:not(:disabled) {
  border-color: var(--accent-primary);
  background: var(--bg-hover);
}

.variant-btn.selected {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.variant-btn.disabled {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  cursor: not-allowed;
  border-color: var(--border-light);
}

/* ========== TOAST NOTIFICATION ========== */
.toast-content {
  display: flex;
  align-items: center;
}

.toast-icon {
  width: 20px;
  height: 20px;
  margin-right: var(--spacing-sm);
  flex-shrink: 0;
}