/* ============================================
   ABUXAY.UZ - Component Styles
   ============================================ */

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 28px;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-surface);
}

.btn-primary:hover {
  background: #2d3748;
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #ffffff;
  font-weight: 700;
}

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

.btn-gold:active {
  transform: translateY(0) scale(0.97);
}

.btn-dark {
  background: var(--bg-dark);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-dark:hover {
  background: var(--bg-elevated);
  border-color: var(--border-medium);
}

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

.btn-outline:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(37, 99, 235, 0.05);
}

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

.btn-outline-gold:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.btn-danger {
  background: rgba(231, 76, 60, 0.15);
  color: var(--error);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
  background: rgba(231, 76, 60, 0.25);
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--text-base);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

/* Button Ripple Effect */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-surface);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: var(--z-header);
  transition: all var(--transition-base);
}

.header.scrolled {
  background: var(--bg-surface);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
}

.header-inner {
  max-width: var(--max-content-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.header-logo:hover {
  opacity: 0.8;
}

.header-logo svg {
  width: 36px;
  height: 36px;
  color: var(--text-primary);
}

.header-logo-text {
  font-family: var(--font-primary);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-nav-link {
  padding: 8px 16px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.header-nav-link:hover,
.header-nav-link.active {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.05);
}

.header-nav-link.active {
  color: var(--text-primary);
  font-weight: 700;
}

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

.header-search-btn,
.header-cart-btn,
.header-profile-btn,
.mobile-menu-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.header-search-btn:hover,
.header-cart-btn:hover,
.header-profile-btn:hover,
.mobile-menu-btn:hover {
  color: var(--gold-primary);
  background: rgba(0, 0, 0, 0.05);
}

.header-cart-btn svg,
.header-search-btn svg,
.header-profile-btn svg,
.mobile-menu-btn svg {
  width: 22px;
  height: 22px;
}

.uzum-header {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.uzum-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.uzum-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.uzum-header-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.uzum-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-darkest);
  border-radius: 12px;
  padding: 10px 14px;
  gap: 10px;
  cursor: pointer;
}

.search-placeholder {
  flex: 1;
  font-size: 14px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-search, .icon-camera {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.uzum-wishlist-btn {
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  background: var(--gold-primary);
  color: var(--bg-darkest);
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(231, 76, 60, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
}

.mobile-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); z-index: 1000; display: none; opacity: 0; transition: opacity 0.3s;
}
.mobile-menu-overlay.show { display: block; opacity: 1; }

.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: 85%; max-width: 320px; background: var(--bg-surface); z-index: 1001; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; box-shadow: -5px 0 25px rgba(0,0,0,0.1); padding: 0; border: none;
}
.mobile-menu.show { transform: translateX(0); }

.mobile-menu-header {
  display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 8px;
}
.mobile-menu-group {
  padding: 8px 16px; margin-bottom: 8px;
}
.mobile-menu-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); font-weight: 700; padding: 0 8px; margin-bottom: 8px;
}
.mobile-menu-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 15px; font-weight: 500; color: var(--text-secondary); border-radius: 12px; cursor: pointer; transition: background 0.2s; margin-bottom: 2px; border: none;
}
.mobile-menu-link:hover, .mobile-menu-link.active {
  background: var(--bg-elevated); color: var(--gold-primary);
}
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 54px;
  background: #ffffff;
  border-top: 1px solid #eee;
  z-index: 998;
  justify-content: space-around;
  align-items: center;
  padding: 4px 0;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
}
.bottom-nav-item {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #8e9a97;
  text-decoration: none;
  width: 100%;
  height: 100%;
  position: relative;
  transition: color 0.2s;
}
.bottom-nav-item svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 20px;
  visibility: visible !important;
  opacity: 1 !important;
}
.bottom-nav-item span {
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-primary);
}
.bottom-nav-item.active {
  color: var(--gold-primary) !important;
}
.bottom-nav-item.active span {
  font-weight: 700 !important;
  color: var(--gold-primary) !important;
}
.bottom-nav-item.active svg {
  stroke: var(--gold-primary) !important;
  fill: rgba(234, 179, 8, 0.1) !important;
}
.bottom-nav-item:hover {
  color: inherit;
}
.bottom-nav-item:active {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-search-btn, .header-cart-btn, .header-profile-btn { display: none !important; }
  .mobile-menu-btn { display: flex; }
  .header-logo-text { display: none; }
  body { padding-bottom: 54px; }
  #main-content { min-height: calc(100vh - 120px); }
  .bottom-nav { display: flex !important; }
}

/* ============ SEARCH OVERLAY ============ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: var(--z-modal);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 16px 0;
}

.search-overlay.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.search-container {
  width: 100%;
  max-width: 600px;
  animation: fadeInDown 0.3s ease;
  position: sticky;
  top: 12px;
  z-index: 100;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 2px solid var(--gold-primary, #d4af37);
  border-radius: 30px;
  padding: 6px 12px 6px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.search-input-wrapper svg.search-icon,
.search-input-wrapper > svg {
  width: 22px;
  height: 22px;
  color: var(--gold-primary, #113f36);
  flex-shrink: 0;
}

.search-input-wrapper input {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #111111;
  font-family: var(--font-primary);
  font-size: 16px;
  padding: 6px 0;
}

.search-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  border: none;
  background: #f0f0f5;
  color: #555555;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 4px;
  transition: all 0.2s ease;
}

.search-close-btn:active {
  background: #e0e0eb;
  transform: scale(0.95);
}

.search-input-wrapper input::-webkit-search-cancel-button,
.search-input-wrapper input::-webkit-clear-button,
.search-input-wrapper input::-ms-clear {
  display: none;
  -webkit-appearance: none;
  appearance: none;
}

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

.search-results {
  margin-top: var(--space-4);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--border-subtle);
}

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

.search-result-item:hover {
  background: rgba(37, 99, 235, 0.05);
}

.search-result-img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.search-result-info h4 {
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

.search-result-info span {
  font-size: var(--text-xs);
  color: var(--gold-primary);
}

/* ============ WELCOME PAGE ============ */
.welcome-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  background: radial-gradient(ellipse at top, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
              radial-gradient(ellipse at bottom, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
              var(--bg-darkest);
  position: relative;
  overflow: hidden;
}

.welcome-page::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.03) 0%, transparent 40%),
              radial-gradient(circle at 70% 60%, rgba(37, 99, 235, 0.02) 0%, transparent 40%);
  animation: gradientShift 15s ease infinite;
  background-size: 200% 200%;
}

.welcome-content {
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.welcome-logo {
  margin-bottom: var(--space-6);
  animation: fadeInDown 0.8s ease;
}

.welcome-logo svg {
  width: 100px;
  height: 100px;
  color: var(--gold-primary);
  margin: 0 auto;
  filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.3));
}

.welcome-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-8);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.welcome-title span {
  color: var(--gold-primary);
}

.welcome-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.welcome-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-slow);
}

.welcome-img:hover {
  transform: scale(1.03);
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  animation: fadeInUp 0.8s ease 0.6s both;
}

.welcome-actions .btn {
  width: 100%;
  padding: 16px;
  font-size: var(--text-base);
}

/* ============ AUTH PAGE ============ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  background: radial-gradient(ellipse at top, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
              var(--bg-darkest);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  animation: fadeInScale 0.5s ease;
}

.auth-logo {
  text-align: center;
  margin-bottom: var(--space-8);
  display: flex;
  justify-content: center;
}

.auth-logo svg {
  width: 80px;
  height: 80px;
  color: var(--gold-primary);
  margin: 0 auto;
  filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.2));
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--border-subtle);
}

.auth-tab {
  flex: 1;
  padding: var(--space-4) var(--space-4);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.auth-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background var(--transition-fast);
}

.auth-tab:hover {
  color: var(--text-secondary);
}

.auth-tab.active {
  color: var(--text-primary);
}

.auth-tab.active::after {
  background: var(--gold-primary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.auth-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.auth-social-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 24px;
}

.auth-social-btn:hover {
  border-color: var(--gold-primary);
  background: rgba(37, 99, 235, 0.05);
  transform: translateY(-2px);
}

/* ============ FORMS ============ */
.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: color var(--transition-fast);
  pointer-events: none;
}

.form-group:focus-within .form-icon {
  color: var(--gold-primary);
}

.form-icon svg {
  width: 20px;
  height: 20px;
}

.form-toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-fast);
}

.form-toggle-password:hover {
  color: var(--text-secondary);
}

.form-toggle-password svg {
  width: 20px;
  height: 20px;
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-input-simple {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input-simple:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
  outline: none;
  resize: vertical;
  min-height: 80px;
}

.form-textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L2 6h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* ============ PRODUCT CARDS ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-5);
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all var(--transition-slow);
  cursor: pointer;
  position: relative;
}

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

.product-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-card-img-wrapper {
  overflow: hidden;
  position: relative;
}

.product-card-wishlist {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2;
}

.product-card-wishlist:hover,
.product-card-wishlist.liked {
  color: var(--error);
  background: rgba(231, 76, 60, 0.2);
}

.product-card-wishlist svg {
  width: 18px;
  height: 18px;
}

.product-card-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 4px 10px;
  background: var(--gold-primary);
  color: var(--bg-darkest);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  z-index: 2;
}

.product-card-info {
  padding: var(--space-4);
}

.product-card-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-category {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.product-card-price-current {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--gold-primary);
}

.product-card-price-old {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-decoration: line-through;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
}



/* ============ CATALOG PAGE ============ */
.catalog-page {
  padding-top: 0;
  min-height: 100vh;
}

.catalog-layout {
  display: flex;
  gap: var(--space-8);
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.catalog-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
  height: fit-content;
}

.catalog-sidebar-title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.catalog-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: var(--space-1);
}

.catalog-category:hover,
.catalog-category.active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--gold-primary);
}

.catalog-category.active {
  font-weight: 600;
}

.catalog-category svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.catalog-category:hover svg {
  transform: translateX(2px);
}

.catalog-main {
  flex: 1;
  min-width: 0;
  padding-bottom: var(--space-16);
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.catalog-title {
  font-size: var(--text-xl);
  font-weight: 700;
}

.catalog-count {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-left: var(--space-2);
  font-weight: 400;
}

.catalog-filters {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

@media (max-width: 1024px) {
  .catalog-sidebar {
    display: none;
  }
}

/* Mobile Category Pills */
.catalog-pills {
  display: none;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  -webkit-overflow-scrolling: touch;
}

.catalog-pills::-webkit-scrollbar {
  display: none;
}

.catalog-pill {
  flex-shrink: 0;
  padding: 8px 18px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.catalog-pill:hover,
.catalog-pill.active {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--border-gold);
  color: var(--gold-primary);
}

@media (max-width: 1024px) {
  .catalog-pills { display: flex; }
}

/* ============ PRODUCT DETAIL ============ */
.product-detail {
  padding-top: var(--space-8);
  padding-bottom: var(--space-16);
}

.product-detail-inner {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

.product-detail-gallery {
  position: sticky;
  top: calc(var(--header-height) + var(--space-8));
  height: fit-content;
}

.product-detail-main-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.product-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.product-detail-breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.product-detail-breadcrumb a:hover {
  color: var(--gold-primary);
}

.product-detail-name {
  font-size: var(--text-2xl);
  font-weight: 700;
}

.product-detail-category {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-detail-price-block {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
}

.product-detail-price {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--gold-primary);
}

.product-detail-price-old {
  font-size: var(--text-lg);
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-detail-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.8;
}

.product-detail-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.product-detail-actions .btn {
  flex: 1;
}

.product-detail-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

.product-detail-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.product-detail-feature svg {
  width: 20px;
  height: 20px;
  color: var(--gold-primary);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .product-detail-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .product-detail-gallery {
    position: static;
  }
}

/* ============ CART PAGE ============ */
.cart-page {
  padding-top: calc(var(--header-height) + var(--space-8));
  min-height: 100vh;
  padding-bottom: var(--space-16);
}

.cart-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.cart-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-8);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.cart-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  animation: fadeInUp 0.4s ease;
}

.cart-item-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cart-item-name {
  font-size: var(--text-base);
  font-weight: 600;
}

.cart-item-price {
  font-size: var(--text-base);
  color: var(--gold-primary);
  font-weight: 700;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.cart-qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}

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

.cart-qty-num {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-2);
  transition: color var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--error);
}

.cart-item-remove svg {
  width: 20px;
  height: 20px;
}

.cart-summary {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: var(--space-6);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.cart-summary-row.total {
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-4);
  margin-top: var(--space-2);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.cart-summary-row.total span:last-child {
  color: var(--gold-primary);
}

.cart-empty {
  text-align: center;
  padding: var(--space-16) 0;
}

.cart-empty svg {
  width: 80px;
  height: 80px;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.cart-empty h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.cart-empty p {
  color: var(--text-tertiary);
  margin-bottom: var(--space-6);
}

@media (max-width: 640px) {
  .cart-item {
    flex-direction: column;
  }
  .cart-item-img {
    width: 100%;
    height: 200px;
  }
}

/* ============ CHECKOUT FORM ============ */
.checkout-form {
  margin-top: var(--space-6);
  padding: var(--space-6);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.checkout-form h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
}

.checkout-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 640px) {
  .checkout-row {
    grid-template-columns: 1fr;
  }
}

/* ============ PROFILE PAGE ============ */
.profile-page {
  padding-top: calc(var(--header-height) + var(--space-8));
  min-height: 100vh;
  padding-bottom: var(--space-16);
}

.profile-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-8);
  animation: fadeInUp 0.5s ease;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--bg-darkest);
  flex-shrink: 0;
}

.profile-info h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-1);
}

.profile-info p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.profile-section {
  margin-bottom: var(--space-8);
}

.profile-section-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.profile-orders {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.profile-order-card {
  padding: var(--space-5);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.profile-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.profile-order-id {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-primary);
}

.profile-order-date {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.order-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 12px;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.order-status.pending {
  background: rgba(243, 156, 18, 0.15);
  color: var(--warning);
}
.order-status.pending::before {
  content: "⏳";
  margin-right: 4px;
}

.order-status.confirmed {
  background: rgba(52, 152, 219, 0.15);
  color: var(--info);
}
.order-status.confirmed::before {
  content: "👍";
  margin-right: 4px;
}

.order-status.pickup {
  background: rgba(155, 89, 182, 0.15);
  color: #9b59b6;
}
.order-status.pickup::before {
  content: "📍";
  margin-right: 4px;
}

.order-status.delivered {
  background: rgba(46, 204, 113, 0.15);
  color: var(--success);
}
.order-status.delivered::before {
  content: "✅";
  margin-right: 4px;
}

.order-status.cancelled {
  background: rgba(231, 76, 60, 0.15);
  color: var(--error);
}
.order-status.cancelled::before {
  content: "❌";
  margin-right: 4px;
}

.profile-order-items {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding: var(--space-2) 0;
}

.profile-order-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.profile-order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
}

.profile-order-total span:last-child {
  font-weight: 700;
  color: var(--gold-primary);
}

/* ============ MODAL / POPUP ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.05);
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2;
}

.modal-close:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--text-primary);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

/* Congratulations Modal */
.congrats-modal {
  text-align: center;
  padding: var(--space-10) var(--space-8);
}

.congrats-modal h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.congrats-modal p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

.promo-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-8);
  background: rgba(37, 99, 235, 0.08);
  border: 2px dashed var(--gold-primary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}

.promo-box-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.promo-box-code {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--gold-primary);
  letter-spacing: 0.05em;
}

.congrats-gift {
  font-size: 48px;
  margin-bottom: var(--space-4);
}

/* ============ EMPTY STATE ============ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-6);
  text-align: center;
}

.empty-state svg {
  width: 80px;
  height: 80px;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.empty-state p {
  color: var(--text-tertiary);
  max-width: 400px;
  margin-bottom: var(--space-6);
}

/* ============ LOADING ============ */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--gold-primary);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

/* ============ FOOTER SOCIALS ============ */
.footer-social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.uzum-header {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.uzum-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.uzum-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.uzum-header-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.uzum-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-darkest);
  border-radius: 12px;
  padding: 10px 14px;
  gap: 10px;
  cursor: pointer;
}

.search-placeholder {
  flex: 1;
  font-size: 14px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-search, .icon-camera {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.uzum-wishlist-btn {
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* =========================================
   UZUM HOMEPAGE STYLES
   ========================================= */
.uzum-quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 8px;
  padding: 16px 8px;
  background: transparent;
  margin-bottom: 8px;
}

.uzum-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
}

.uzum-cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.uzum-cat-item:active .uzum-cat-icon {
  transform: scale(0.95);
}

.uzum-cat-item span {
  font-size: 11px;
  line-height: 1.2;
  color: var(--text-primary);
  font-weight: 500;
}

.uzum-flash-sale {
  background: #8b5cf6; /* Uzum Purple */
  border-radius: 0;
  margin: 16px 0;
  padding: 20px 0 36px 0;
  color: white;
}

.uzum-flash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  margin-bottom: 16px;
}

.uzum-flash-header h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.uzum-flash-header span {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.uzum-flash-grid {
  display: flex !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 12px;
}

.uzum-flash-grid::-webkit-scrollbar {
  display: none;
}

.uzum-flash-grid .product-card {
  flex: 0 0 148px;
  scroll-snap-align: start;
  border-radius: 16px;
}

.uzum-flash-grid .product-card-info {
  padding: 8px !important;
}

.uzum-flash-grid .product-card-name {
  font-size: 11px !important;
  margin-bottom: 4px !important;
  line-height: 1.3;
}

.uzum-flash-grid .product-card-price-current {
  font-size: 13px !important;
}

.uzum-flash-grid .product-card-price-old {
  font-size: 10px !important;
}

.uzum-flash-grid .btn {
  padding: 6px !important;
  font-size: 11px !important;
}

@media (max-width: 600px) {
  .uzum-quick-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px 4px;
    padding: 12px 8px;
  }
  .uzum-cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  .uzum-cat-icon span {
    font-size: 26px !important;
  }
  .uzum-cat-item span {
    font-size: 11px;
  }
}

@media (min-width: 1024px) {
  .auth-page {
    min-height: calc(100vh - 70px);
    background: transparent;
  }
}

