/* ===== Spiritual Surplus - Main Stylesheet ===== */
/* Dark theme: Deep Void #0A0A0F, Gold #C9A84C accents */

:root {
  --bg-primary: #0A0A0F;
  --bg-secondary: #12121A;
  --bg-card: #161620;
  --bg-glass: rgba(22, 22, 32, 0.85);
  --gold: #C9A84C;
  --gold-light: #DFC46A;
  --gold-dark: #A88830;
  --text-primary: #E8E4D8;
  --text-secondary: #9A9280;
  --text-muted: #6A6458;
  --border: #22202A;
  --border-gold: rgba(201, 168, 76, 0.3);
  --danger: #C84C4C;
  --success: #4CAF50;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== Bloomberg-Style Price Ticker ===== */
#price-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: #0D0D15;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  z-index: 9999;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}

.ticker-arrow {
  color: var(--success);
  font-size: 0.65rem;
  margin-right: 4px;
}

.ticker-name {
  color: var(--gold);
  font-weight: 600;
}

.ticker-our-price {
  color: var(--gold-light);
  font-weight: 700;
}

.ticker-amazon {
  color: var(--danger);
}

.ticker-save {
  color: var(--success);
  font-weight: 700;
}

/* ===== Smart Pricing Badges ===== */
.price-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  pointer-events: auto;
  transition: var(--transition);
}

.price-badge.badge-beat {
  background: rgba(76, 175, 80, 0.9);
  color: #fff;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.price-badge.badge-amazon {
  background: rgba(255, 193, 7, 0.9);
  color: #1a1a1a;
  border: 1px solid rgba(255, 193, 7, 0.3);
  cursor: pointer;
}

.price-badge.badge-amazon:hover {
  background: rgba(255, 193, 7, 1);
  transform: scale(1.05);
}

.price-badge.badge-best {
  background: rgba(201, 168, 76, 0.9);
  color: #0A0A0F;
  border: 1px solid rgba(201, 168, 76, 0.3);
}

/* ===== Navigation ===== */
.nav-bar {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-bar .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-bar .logo span { color: var(--text-primary); }

.nav-links { display: flex; gap: 0.25rem; list-style: none; }

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}

.cart-toggle {
  background: none;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-toggle:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--gold);
}

.cart-count {
  background: var(--gold);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.05) 0%, transparent 60%),
              radial-gradient(ellipse at 50% 100%, rgba(201, 168, 76, 0.03) 0%, transparent 50%);
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 2px;
  font-weight: 800;
}

.hero .tagline {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero .btn-primary {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 1rem 3rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero .btn-primary:hover {
  background: var(--gold);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.2);
}

/* ===== Sections ===== */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* ===== Feature Grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: var(--transition);
}

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

.feature-card:hover::before { opacity: 1; }

.feature-card h3 {
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== Stat Section ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0.5rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

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

/* ===== Page Header ===== */
.page-header {
  padding: 6rem 2rem 3rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.04) 0%, transparent 60%);
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Content Page ===== */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.content-page h2 {
  color: var(--gold);
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}

.content-page p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* ===== Contact Form ===== */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
}

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

.form-group label {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.15);
}

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

.btn-submit {
  background: var(--gold);
  color: var(--bg-primary);
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.btn-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* ===== Mobile ===== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-bar { padding: 0 1rem; }
  
  .mobile-menu-toggle { display: block; }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
  
  .nav-links.open { display: flex; }
  
  .hero h1 { font-size: 2.2rem; }
  .hero .tagline { font-size: 1.1rem; }
  .hero .subtitle { font-size: 1rem; }
  
  .section { padding: 3rem 1rem; }
  
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding: 2rem 1rem; }
  
  .page-header h1 { font-size: 2rem; }
}

/* ===== Shop / Product Browser Styles ===== */

.shop-layout {
  display: flex;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem 3rem;
}

.shop-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  height: fit-content;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.sidebar-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.sidebar-section h3 {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

.price-filters {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.price-filter-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.4rem 0.5rem;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: var(--transition);
}

.price-filter-btn:hover { color: var(--gold); background: rgba(201, 168, 76, 0.05); }
.price-filter-btn.active { color: var(--gold); background: rgba(201, 168, 76, 0.1); font-weight: 600; }

.category-filters {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: 300px;
  overflow-y: auto;
}

.category-filters::-webkit-scrollbar { width: 4px; }
.category-filters::-webkit-scrollbar-track { background: transparent; }
.category-filters::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.cat-filter-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.35rem 0.5rem;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.82rem;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cat-filter-btn:hover { color: var(--gold); background: rgba(201, 168, 76, 0.05); }
.cat-filter-btn.active { color: var(--gold); background: rgba(201, 168, 76, 0.1); font-weight: 600; }

.cat-filter-btn .cat-count {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.reset-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
  width: 100%;
  margin-top: 0.5rem;
}

.reset-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.shop-main {
  flex: 1;
  min-width: 0;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.shop-search {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.shop-search input {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.shop-search input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.1);
}

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

.shop-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.shop-controls select {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
}

.shop-controls select:focus {
  outline: none;
  border-color: var(--gold);
}

.shop-count {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

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

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

.product-card-img {
  width: 100%;
  height: 200px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: var(--transition);
}

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

.product-card-img .no-img {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.product-card-body {
  padding: 1rem;
}

.product-card-body .product-name {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-height: 2.2em;
}

.product-card-body .product-dept {
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.product-card-body .product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
}

.product-card .add-cart-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(201, 168, 76, 0.9);
  color: var(--bg-primary);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card:hover .add-cart-btn {
  opacity: 1;
}

.add-cart-btn:hover {
  background: var(--gold);
  transform: scale(1.1);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
}

.pagination button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pagination button.active-pg {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
  font-weight: 600;
}

.pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Product Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

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

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1;
}

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

.modal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.modal-image {
  width: 100%;
  min-height: 300px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: contain;
  cursor: zoom-in;
  transition: var(--transition);
}

.modal-image img.zoomed {
  transform: scale(1.5);
  cursor: zoom-out;
}

.modal-info .product-dept {
  color: var(--gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.modal-info h2 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.modal-info .modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}

.modal-info .modal-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.modal-info .modal-desc p {
  margin-bottom: 0.5rem;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.qty-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.qty-value {
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}

.btn-add-cart {
  width: 100%;
  background: var(--gold);
  color: var(--bg-primary);
  border: none;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* ===== Cart Drawer ===== */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 3000;
  display: none;
}

.cart-overlay.open { display: block; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 3001;
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,0.4);
}

.cart-drawer.open { right: 0; }

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-drawer-header h3 {
  color: var(--gold);
  font-size: 1.1rem;
}

.cart-drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-track { background: transparent; }
.cart-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.cart-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 3rem 0;
  font-size: 0.9rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.cart-item-img {
  width: 50px;
  height: 50px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.cart-item-name {
  font-size: 0.82rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

.cart-item-qty-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.cart-item-remove {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem;
}

.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cart-total-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cart-total-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}

.btn-checkout {
  width: 100%;
  background: var(--gold);
  color: var(--bg-primary);
  border: none;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 1px;
}

.btn-checkout:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.cart-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--gold);
  color: var(--bg-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transform: translateY(1rem);
  transition: var(--transition);
  pointer-events: none;
}

.cart-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Chat Widget ===== */
.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 5000;
  transition: var(--transition);
}

.chat-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  color: var(--bg-primary);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.4);
}

.chat-box {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: 360px;
  max-width: calc(100vw - 2rem);
  height: 500px;
  max-height: calc(100vh - 8rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  z-index: 5001;
  overflow: hidden;
}

.chat-box.open { display: flex; }

.chat-header {
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  color: var(--gold);
  font-size: 0.95rem;
}

.chat-header-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-msg {
  max-width: 85%;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.chat-msg.bot {
  background: var(--bg-secondary);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold-light);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
}

.chat-input-area input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.chat-input-area input:focus {
  outline: none;
  border-color: var(--gold);
}

.chat-send-btn {
  background: var(--gold);
  color: var(--bg-primary);
  border: none;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

.chat-send-btn:hover { background: var(--gold-light); }

.chat-registration {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.chat-registration h4 {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.reg-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem 0.7rem;
  color: var(--text-primary);
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.reg-input:focus {
  outline: none;
  border-color: var(--gold);
}

.reg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.reg-btn {
  width: 100%;
  background: var(--gold);
  color: var(--bg-primary);
  border: none;
  padding: 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}

.reg-btn:hover { background: var(--gold-light); }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3A3850; }
