/* TasteVintage.Store — 'Archive' Design Aesthetic */
/* Dark void bg, saffron/antique brass accent, warm parchment light mode */

/* Google Fonts loaded via base.html <link> tags */

:root {
  --bg-primary: #08090a;
  --bg-secondary: #0f1011;
  --bg-card: #18191b;
  --text-primary: #f0f0ed;
  --text-secondary: #a0a09a;
  --text-muted: #6a6a66;
  --accent: #c9954a;
  --accent-hover: #d9a85a;
  --accent-dim: #a67d3a;
  --border: #1e2024;
  --border-subtle: rgba(255,255,255,0.06);
  --sold-out: #ff4444;
  --success: #22c55e;
  --toggle-icon: "\2600";
  --nav-blend: transparent;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Light mode — warm parchment tones */
body.light-mode {
  --bg-primary: #f5f2eb;
  --bg-secondary: #ece8df;
  --bg-card: #ffffff;
  --text-primary: #1c1c1a;
  --text-secondary: #7a7a72;
  --text-muted: #a8a8a0;
  --accent: #c9954a;
  --accent-hover: #b8863e;
  --accent-dim: #a67d3a;
  --border: #d4d0c8;
  --border-subtle: rgba(0,0,0,0.08);
  --sold-out: #dc2626;
  --success: #16a34a;
  --toggle-icon: "\25CF";
  --nav-blend: rgba(0,0,0,0.03);
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  transition: background-color 0.2s ease, color 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent);
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--nav-blend);
}

/* Navigation — transparent initially, glass blur on scroll (JS adds .scrolled) */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-nav.scrolled {
  background: rgba(8, 9, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-subtle);
}

body.light-mode .site-nav.scrolled {
  background: rgba(245, 242, 235, 0.85);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cart {
  position: relative;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-cart:hover {
  color: var(--text-primary);
}

.cart-count {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: 50%;
  margin-left: 4px;
  padding: 0 4px;
}

.nav-auth a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 16px;
}

.nav-auth a:hover {
  color: var(--text-primary);
}

/* Authenticated badge — gold pill */
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

/* Main content */
.main-content {
  margin-top: 60px;
  min-height: calc(100vh - 60px);
}

/* Hero section */
.hero {
  padding: 80px 24px 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.hero p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

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

/* Page heading */
.page-heading {
  padding: 40px 24px 20px;
  border-bottom: 1px solid var(--border);
}

.page-heading h1 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Product grid */
.product-grid-section {
  padding: 40px 24px;
}

.product-grid-section h2 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  background: var(--border);
  border: 1px solid var(--border);
}

.product-grid.no-gap {
  gap: 0;
}

/* Product cards — Archive aesthetic */
.product-card {
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.15s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  background: var(--bg-secondary);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

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

.product-card-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--text-muted);
}

.product-card-info {
  padding: 16px 16px 24px;
}

.product-card-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.product-card-title:hover {
  color: var(--accent);
}

.product-card-price {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.product-card-alt-prices {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.product-card-sold-out {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--sold-out);
  margin-left: 8px;
}

.product-card-meta {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Category pills — transparent bg, gold border */
.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--accent);
  border: 1px solid var(--accent);
  background: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.category-pill:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.category-pill.active {
  background: var(--accent);
  color: var(--bg-primary);
}

/* Product detail */
.product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.product-images {
  position: sticky;
  top: 80px;
  align-self: start;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.product-thumbnail {
  width: 64px;
  height: 64px;
  background: var(--bg-secondary);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.15s ease;
  flex-shrink: 0;
}

.product-thumbnail:hover,
.product-thumbnail.active {
  border-color: var(--accent);
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.product-price {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}

/* Price converter */
.price-converter {
  margin-bottom: 24px;
}

.price-primary {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.price-all {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.price-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.price-label {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.product-variant {
  margin-bottom: 24px;
}

.product-variant label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.product-variant select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a09a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.product-variant select:focus {
  outline: none;
  border-color: var(--accent);
}

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

.product-variant select option:disabled {
  color: var(--text-muted);
}

.btn-add-to-cart {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-bottom: 16px;
}

.btn-add-to-cart:hover {
  background: var(--accent-hover);
}

.btn-add-to-cart:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
}

.product-details-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.product-details-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.product-details-list li:first-child {
  border-top: 1px solid var(--border);
}

.product-description {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Cart page */
.cart-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

.cart-page h1 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
}

.cart-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-secondary);
}

.cart-empty p {
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-image {
  width: 100px;
  height: 100px;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-item-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-variant {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

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

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.cart-qty {
  font-size: 14px;
  min-width: 20px;
  text-align: center;
}

.cart-remove {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin-left: 8px;
}

.cart-remove:hover {
  color: var(--sold-out);
}

.cart-summary {
  margin-top: 32px;
  padding: 24px 0;
  border-top: 2px solid var(--border);
  text-align: right;
}

.cart-total-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-total-amount {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin: 4px 0 20px;
}

.btn-checkout {
  display: inline-block;
  padding: 14px 48px;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}

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

/* Checkout page */
.checkout-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 24px;
}

.checkout-page h1 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
}

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

.checkout-form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.checkout-form-group input,
.checkout-form-group textarea,
.checkout-form-group select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  font-size: 14px;
}

.checkout-form-group input:focus,
.checkout-form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.checkout-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkout-summary {
  padding: 20px;
  background: var(--bg-secondary);
  margin-bottom: 24px;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 0;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  font-weight: 700;
}

/* Order confirmation */
.confirmation-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

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

.confirmation-page h1 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.confirmation-page p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Footer — dark bg with gold accent links */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 40px 24px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}

.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination .active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

/* Category section */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  background: var(--border);
  border: 1px solid var(--border);
}

.category-card {
  background: var(--bg-card);
  padding: 48px 32px;
  text-align: center;
  transition: background 0.15s ease;
}

.category-card:hover {
  background: var(--bg-secondary);
}

.category-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.category-card h3 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.category-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.category-link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-images {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Auth pages (Login / Register) ────────────────────── */

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem 1rem;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text-primary);
  text-align: center;
}

.auth-error {
  background: rgba(255, 50, 50, 0.12);
  border: 1px solid rgba(255, 50, 50, 0.35);
  border-radius: 8px;
  color: #ff4444;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  text-align: center;
}

.auth-form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(201, 149, 74, 0.15);
}

.form-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.auth-btn {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 0.5rem;
}

.auth-btn:hover {
  opacity: 0.85;
}

.auth-alt {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-alt a {
  color: var(--accent);
  font-weight: 600;
}

/* Username display in nav */
.nav-username {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  opacity: 0.8;
}

/* =============== PAYMENT UI =============== */

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-method-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-card);
}

.payment-method-card.selected {
  border-color: var(--accent);
  background: var(--bg-card);
}

.payment-method-card .radio-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.payment-method-card.selected .radio-indicator {
  border-color: var(--accent);
  background: var(--accent);
}

.payment-method-card.selected .radio-indicator::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.payment-method-card .pm-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 8px;
  background: var(--bg-card);
  flex-shrink: 0;
}

.payment-method-card .pm-name {
  font-weight: 600;
  font-size: 15px;
}

.payment-method-card .pm-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* QR Payment Page */
.qr-payment-container {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
}

.qr-payment-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-bottom: 20px;
}

.qr-payment-card .qr-placeholder {
  width: 240px;
  height: 240px;
  margin: 20px auto;
  background: #f5f5f5;
  border: 2px dashed #ddd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: #999;
}

.qr-payment-card .pm-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.qr-payment-card .pm-instruction {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.qr-payment-card .pm-amount {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}

.qr-payment-card .pm-order-note {
  font-size: 12px;
  color: #999;
  margin-bottom: 20px;
}

.transaction-form {
  text-align: left;
}

/* Order summary sidebar */
.order-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.order-summary-card h5 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.order-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
}

.order-summary-item .item-name {
  font-size: 13px;
  color: var(--text-primary);
  flex: 1;
  margin-right: 12px;
}

.order-summary-item .item-name small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
}

.order-summary-item .item-price {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.order-summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  font-weight: 700;
}

/* Placeholder QR image style */
.qr-placeholder-img {
  max-width: 240px;
  border-radius: 8px;
}

/* Success checkmark */
.success-checkmark {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 12px;
}

/* =============== DESIGN SYSTEM COMPONENTS =============== */

/* Auth success */
.auth-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  color: var(--success);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  text-align: center;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}
.alert-error {
  background: rgba(255, 51, 51, 0.12);
  border: 1px solid rgba(255, 51, 51, 0.3);
  color: var(--sold-out);
}
.alert-info {
  background: rgba(201, 149, 74, 0.1);
  border: 1px solid rgba(201, 149, 74, 0.25);
  color: var(--accent);
}

/* Status Badges Component */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-pending { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.badge-verifying { background: rgba(13, 202, 240, 0.15); color: #0dcaf0; }
.badge-paid { background: rgba(25, 135, 84, 0.15); color: #22c55e; }
.badge-shipped { background: rgba(13, 110, 253, 0.15); color: #0d6efd; }
.badge-delivered { background: rgba(111, 66, 193, 0.15); color: #6f42c1; }
.badge-cancelled { background: rgba(220, 53, 69, 0.15); color: #dc3545; }

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 3s forwards;
  max-width: 360px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.toast-success { background: var(--bg-card); border-left: 3px solid var(--success); color: var(--text-primary); }
.toast-error { background: var(--bg-card); border-left: 3px solid var(--sold-out); color: var(--text-primary); }
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(-10px); }
}

/* Cart count pulse */
.cart-count.pulse {
  animation: cartPulse 0.3s ease;
}
@keyframes cartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Form Validation */
.form-input:invalid:focus,
.was-validated .form-input:invalid {
  border-color: var(--sold-out);
  box-shadow: 0 0 0 2px rgba(255, 51, 51, 0.15);
}
.form-input:valid:focus,
.was-validated .form-input:valid {
  border-color: var(--success);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  font-size: 12px;
  color: var(--text-muted);
  max-width: 1200px;
  margin: 0 auto;
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .current { color: var(--text-muted); }

/* Stock urgency */
.stock-urgency {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-top: -12px;
  margin-bottom: 16px;
  animation: urgencyPulse 1.5s ease infinite;
}
@keyframes urgencyPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Product list controls */
.product-list-controls {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.product-search-form {
  display: flex;
  gap: 8px;
  flex: 1;
}
.search-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  font-size: 14px;
  transition: border-color 0.2s ease;
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
}
.search-btn {
  padding: 10px 20px;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}
.search-btn:hover { background: var(--accent-hover); }
.search-clear {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
}

.product-filters {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 24px;
  display: flex;
  gap: 12px;
}
.filter-select {
  padding: 8px 12px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  font-size: 13px;
  cursor: pointer;
}
.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Password strength */
.password-strength { margin-top: 8px; }
.password-strength-bar { height: 4px; background: var(--bg-secondary); border-radius: 2px; overflow: hidden; }
.password-strength-fill { height: 100%; width: 0%; transition: width 0.3s ease, background 0.3s ease; border-radius: 2px; }
.password-strength-text { font-size: 11px; color: var(--text-muted); margin-top: 4px; display: block; }

/* Bulk bar & admin utilities */
.bulk-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
}
.bulk-bar .btn-sm {
  padding: 8px 16px;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.admin-search {
  padding: 0 0 16px;
}
.status-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}
.status-btn:hover { border-color: var(--accent); color: var(--accent); }
.status-btn.active { background: var(--accent); color: var(--bg-primary); border-color: var(--accent); }

/* Image preview in admin */
.image-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.preview-thumb { width: 80px; height: 80px; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
