/* ==========================================================================
   Anticue - Luxury Pre-Owned Collectibles Marketplace
   Design System: Crisp Pure White & Deep Obsidian Black with Burnished Gold Accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Color Palette - Crisp Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfdfe;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --bg-input: #ffffff;
  
  /* Burnished Rich Gold - High Contrast on White */
  --gold-primary: #996515;
  --gold-light: #b38728;
  --gold-dark: #784e0e;
  --gold-gradient: linear-gradient(135deg, #b38728 0%, #996515 100%);
  --gold-glow: rgba(153, 101, 21, 0.15);
  
  /* Text Colors - Deep Black / Dark Charcoal */
  --text-main: #0f172a;
  --text-dark: #000000;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  --border-subtle: #e2e8f0;
  --border-card: #e5e7eb;
  --border-gold: rgba(153, 101, 21, 0.35);
  --border-gold-hover: rgba(153, 101, 21, 0.8);
  
  --accent-green: #059669;
  --accent-red: #dc2626;
  --accent-blue: #2563eb;
  
  /* Typography */
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.09);
  --shadow-gold: 0 6px 20px rgba(153, 101, 21, 0.15);
  
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base */
body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-dark);
}

p {
  color: var(--text-muted);
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-dark);
}

/* Ensure all text classes are crisp dark text */
.text-white, .text-light {
  color: #0f172a !important;
}

.text-warning {
  color: var(--gold-primary) !important;
}

.bg-dark {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

.border-secondary {
  border-color: #e2e8f0 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.navbar-luxury {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.brand-logo {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo i {
  color: var(--gold-primary);
  font-size: 1.4rem;
}

.nav-link-custom {
  color: #334155;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link-custom:hover, .nav-link-custom.active {
  color: var(--gold-primary);
  background-color: #f1f5f9;
}

/* Category Secondary Bar */
.category-subnav {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.55rem 0;
  overflow-x: auto;
  white-space: nowrap;
}

.category-subnav::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 0.5rem;
  transition: var(--transition);
}

.cat-pill:hover, .cat-pill.active {
  color: var(--gold-primary);
  background: #fffdf7;
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn-gold {
  background: var(--gold-gradient);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #a67c1e 0%, #7d500a 100%);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(153, 101, 21, 0.28);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-primary) !important;
  border: 1.5px solid var(--gold-primary);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-outline-gold:hover {
  background: var(--gold-primary);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-whatsapp {
  background-color: #15803d;
  color: #ffffff !important;
  font-weight: 600;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.btn-whatsapp:hover {
  background-color: #166534;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-call {
  background-color: #1d4ed8;
  color: #ffffff !important;
  font-weight: 600;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.btn-call:hover {
  background-color: #1e40af;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at 50% 15%, rgba(153, 101, 21, 0.05) 0%, rgba(255, 255, 255, 0) 70%), #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.18;
  color: #000000;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #475569;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* Search Box Card */
.hero-search-box {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-lg);
  max-width: 960px;
  margin: 0 auto;
}

.form-control-luxury, .form-select-luxury {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.form-control-luxury:focus, .form-select-luxury:focus {
  background-color: #ffffff;
  border-color: var(--gold-primary);
  color: #0f172a;
  box-shadow: 0 0 0 3px var(--gold-glow);
  outline: none;
}

.form-control-luxury::placeholder {
  color: #94a3b8;
}

/* Cards System */
.card {
  background-color: #ffffff !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
}

.card-header {
  background-color: #f8fafc !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  color: #0f172a !important;
}

/* ==========================================================================
   Product Cards
   ========================================================================== */
.product-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  box-shadow: var(--shadow-sm);
}

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

.card-img-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.badge-condition {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--gold-dark);
  border: 1px solid var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

.badge-video {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #dc2626;
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.badge-sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.badge-sold-text {
  border: 2px solid var(--accent-red);
  color: var(--accent-red) !important;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 0.4rem 1.5rem;
  transform: rotate(-10deg);
  border-radius: var(--radius-sm);
  background: #fff;
}

.wishlist-btn-card {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #cbd5e1;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 3;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.wishlist-btn-card:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
  background: #fff;
}

.wishlist-btn-card.active {
  color: var(--accent-red);
  background: #fee2e2;
  border-color: var(--accent-red);
}

.product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.product-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7rem;
}

.product-card-title a {
  color: #0f172a;
}

.product-card-title a:hover {
  color: var(--gold-primary);
}

.product-card-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 0.6rem;
  font-family: var(--font-serif);
}

.product-card-meta {
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   Category Cards Showcase
   ========================================================================== */
.cat-card-showcase {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  display: block;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.cat-card-showcase:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow: var(--shadow-gold);
}

.cat-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fdfaf3;
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
  transition: var(--transition);
}

.cat-card-showcase:hover .cat-icon-wrap {
  background: var(--gold-gradient);
  color: #ffffff;
  transform: scale(1.06);
}

.cat-card-title {
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.cat-card-count {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ==========================================================================
   Faceted Filter Sidebar
   ========================================================================== */
.filter-sidebar {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-title {
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f172a;
  margin-bottom: 0.85rem;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  color: #334155;
  font-weight: 500;
  cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.custom-checkbox input[type="checkbox"]:checked {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
}

.custom-checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

.custom-checkbox:hover {
  color: #000000;
}

/* ==========================================================================
   Product Detail Page
   ========================================================================== */
.gallery-main-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  background: #f8fafc;
  box-shadow: var(--shadow-md);
}

.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.gallery-thumb-item {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-md);
  border: 2px solid #e2e8f0;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb-item.active, .gallery-thumb-item:hover {
  border-color: var(--gold-primary);
}

.specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
}

.specs-table tr:nth-child(even) {
  background: #f8fafc;
}

.specs-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  color: #0f172a;
}

.specs-table td:first-child {
  width: 35%;
  font-weight: 700;
  color: #475569;
  border-right: 1px solid var(--border-subtle);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.seller-profile-card {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Dashboard Tables & Stats
   ========================================================================== */
.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: #fdfaf3;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.stat-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: #000000;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-luxury {
  width: 100%;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-luxury th {
  background: #f8fafc;
  padding: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  border-bottom: 1px solid var(--border-subtle);
}

.table-luxury td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  color: #0f172a;
}

.table-luxury tr:last-child td {
  border-bottom: none;
}

/* Modals */
.modal-content {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid #e2e8f0 !important;
}

.modal-footer {
  border-top: 1px solid #e2e8f0 !important;
}

/* Dropdown menus */
.dropdown-menu {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: var(--shadow-md) !important;
}

.dropdown-item {
  color: #1e293b !important;
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: #f1f5f9 !important;
  color: var(--gold-primary) !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-luxury {
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  color: #475569;
  font-size: 0.9rem;
}

.footer-title {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #475569;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #e2e8f0;
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: 0.82rem;
  color: #64748b;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-section {
    padding: 3rem 0 2rem;
  }
}

/* ==========================================================================
   Admin & Seller Console Theme (Pure White & Obsidian Black)
   ========================================================================== */
.admin-sidebar, .seller-sidebar {
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
}

.admin-topbar, .seller-topbar {
  background: #ffffff !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.admin-nav-item, .seller-nav-item {
  color: #334155 !important;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  border-left: 3px solid transparent;
  text-decoration: none;
}

.admin-nav-item:hover, .seller-nav-item:hover {
  color: var(--gold-primary) !important;
  background: #fdfaf3 !important;
  border-left-color: var(--gold-primary) !important;
}

.admin-nav-item.active, .seller-nav-item.active {
  color: var(--gold-dark) !important;
  background: #fff8eb !important;
  border-left-color: var(--gold-primary) !important;
  font-weight: 700;
}

.admin-main-content, .seller-main-content {
  background: #f8fafc !important;
}

/* ==========================================================================
   AI Vision Auto-Fill Assistant & Scanner Styling
   ========================================================================== */
.ai-scanner-card {
  background: linear-gradient(145deg, #ffffff 0%, #fdfaf3 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(153, 101, 21, 0.08);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.ai-scanner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

.ai-scanner-dropzone {
  border: 2px dashed rgba(153, 101, 21, 0.4);
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 2.2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.ai-scanner-dropzone:hover, .ai-scanner-dropzone.dragover {
  border-color: var(--gold-primary);
  background: #fffbf2;
  box-shadow: 0 6px 20px rgba(153, 101, 21, 0.12);
  transform: translateY(-2px);
}

.ai-scanner-preview-wrapper {
  position: relative;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border: 2px solid var(--border-gold);
  background: #0f172a;
}

.ai-scanner-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ai-scan-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #eab308, #ffffff, #eab308, transparent);
  box-shadow: 0 0 15px 3px rgba(234, 179, 8, 0.8), 0 0 30px 6px rgba(234, 179, 8, 0.4);
  animation: laserScan 2s ease-in-out infinite alternate;
  z-index: 10;
}

.ai-scan-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(234, 179, 8, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 179, 8, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 5;
  animation: gridPulse 2.5s ease-in-out infinite;
}

@keyframes laserScan {
  0% { top: 2%; opacity: 0.8; }
  50% { opacity: 1; }
  100% { top: 98%; opacity: 0.8; }
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

@keyframes aiFieldPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(179, 135, 40, 0.6);
    border-color: #b38728;
    background-color: #fffdf5;
  }
  50% {
    box-shadow: 0 0 0 6px rgba(179, 135, 40, 0.2);
    border-color: #996515;
    background-color: #fffcf0;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(179, 135, 40, 0);
    border-color: #e2e8f0;
    background-color: #ffffff;
  }
}

.ai-autofilled-pulse {
  animation: aiFieldPulse 2.2s cubic-bezier(0.16, 1, 0.3, 1) 2;
}

.ai-autofill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  text-transform: uppercase;
}

.sample-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.sample-item-chip:hover {
  border-color: var(--gold-primary);
  color: var(--gold-dark);
  background: #fdfaf3;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(153, 101, 21, 0.12);
}

.ai-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: #1e293b;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}

/* Price Strategy Selectors */
.price-strategy-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.price-strategy-card {
  flex: 1 1 140px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.price-strategy-card:hover {
  border-color: var(--gold-primary);
  background: #fffdf8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(153, 101, 21, 0.08);
}

.price-strategy-card.active {
  border-color: var(--gold-primary);
  background: #fff9ed;
  box-shadow: 0 0 0 2px rgba(153, 101, 21, 0.2);
}

.price-strategy-card .strat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  display: block;
}

.price-strategy-card .strat-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  font-family: var(--font-serif);
}

.price-strategy-card.strat-lowest {
  border-color: #f59e0b;
  background: #fffbeb;
}

.price-strategy-card.strat-lowest .strat-label {
  color: #b45309;
}

.price-strategy-card.strat-lowest .strat-price {
  color: #b45309;
}

/* Background Removal Segmented Toggle */
.bg-remover-switch-container {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  max-width: 100%;
  flex-wrap: wrap;
}

.bg-remover-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.bg-remover-btn.active {
  background: #ffffff;
  color: var(--gold-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.price-guidance-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.price-guidance-pill.pill-lowest {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.price-guidance-pill.pill-lowest:hover {
  background: #fde68a;
  transform: translateY(-1px);
}

.price-guidance-pill.pill-rec {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.price-guidance-pill.pill-rec:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

/* ==========================================================================
   Comprehensive All-Device Screen & Layout Responsiveness
   Breakpoints:
   - Mobile Portrait / Mini Phones: <= 480px (320px - 480px)
   - Mobile Landscape / Phablets:   481px - 767px
   - Tablets / Small Laptops:       768px - 991px
   - Laptops & Desktops:           992px - 1199px
   - Large Displays / 4K:           >= 1200px
   ========================================================================== */

/* Prevent horizontal viewport overflow on all devices */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

/* Fluid Typography */
h1, .hero-title {
  font-size: clamp(1.75rem, 4vw + 1rem, 3.25rem);
}

h2 {
  font-size: clamp(1.4rem, 2.5vw + 0.5rem, 2.25rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw + 0.3rem, 1.75rem);
}

/* Touch targets and clickable accessibility */
@media (pointer: coarse) {
  .btn, .nav-link-custom, .cat-pill, .dropdown-item, .custom-checkbox {
    min-height: 40px;
  }
}

/* Mobile & Small Tablets (< 992px) */
@media (max-width: 991.98px) {
  /* Navbar & Brand */
  .navbar-luxury {
    padding: 0.65rem 0;
  }
  
  .brand-logo {
    font-size: 1.35rem;
  }

  .navbar-collapse {
    background: #ffffff;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 0.75rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
  }

  /* Category Subnav Touch Scroll */
  .category-subnav {
    padding: 0.45rem 0;
    -webkit-overflow-scrolling: touch;
  }

  .cat-pill {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    margin-right: 0.35rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 2.5rem 0 2rem;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 1.75rem;
  }

  .hero-search-box {
    padding: 1rem;
  }

  /* Product Detail */
  .gallery-main-img {
    aspect-ratio: 4 / 3;
  }

  .gallery-thumb-item {
    width: 68px;
    height: 52px;
  }

  /* Seller & Admin Sidebar Mobile Offcanvas Drawer */
  .seller-sidebar, .admin-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 280px !important;
    max-width: 85vw !important;
    z-index: 1060 !important;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15) !important;
  }

  .seller-sidebar.show, .admin-sidebar.show {
    transform: translateX(0) !important;
  }

  .seller-sidebar-backdrop, .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .seller-sidebar-backdrop.show, .admin-sidebar-backdrop.show {
    opacity: 1;
    pointer-events: auto;
  }

  .seller-main-content, .admin-main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .seller-topbar, .admin-topbar {
    padding: 0.75rem 1rem !important;
  }
}

/* Small Screens (< 768px) */
@media (max-width: 767.98px) {
  /* Filter Sidebar on Category & Search */
  .filter-sidebar {
    position: static !important;
    top: auto !important;
    margin-bottom: 1.5rem;
    padding: 1rem;
  }

  /* Product Card Body */
  .product-card-body {
    padding: 1rem;
  }

  .product-card-title {
    font-size: 0.95rem;
    height: 2.5rem;
  }

  .product-card-price {
    font-size: 1.18rem;
  }

  /* Specs Table Mobile */
  .specs-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }

  .specs-table td:first-child {
    width: 42%;
    font-size: 0.82rem;
  }

  /* AI Scanner Card */
  .ai-scanner-card {
    padding: 1rem !important;
  }

  .ai-scanner-dropzone {
    padding: 1.5rem 1rem;
  }

  .price-strategy-card {
    flex: 1 1 calc(50% - 0.5rem);
    padding: 0.55rem 0.65rem;
  }

  .price-strategy-card .strat-price {
    font-size: 1.05rem;
  }

  /* Footer */
  .footer-luxury {
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
  }

  .footer-bottom {
    text-align: center;
    margin-top: 2rem;
  }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-logo {
    font-size: 1.2rem;
    letter-spacing: 0.04em;
  }

  .btn-gold, .btn-outline-gold, .btn-whatsapp, .btn-call {
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
  }

  .price-strategy-card {
    flex: 1 1 100%;
  }

  .bg-remover-switch-container {
    width: 100%;
    justify-content: center;
  }

  .bg-remover-btn {
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
    flex: 1 1 auto;
    justify-content: center;
  }

  .sample-item-chip {
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
  }

  .cat-card-showcase {
    padding: 1rem 0.75rem;
  }

  .cat-icon-wrap {
    width: 50px;
    height: 50px;
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
  }

  .cat-card-title {
    font-size: 0.92rem;
  }

  .stat-card {
    padding: 1rem;
    gap: 0.85rem;
  }

  .stat-val {
    font-size: 1.4rem;
  }

  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
}

/* Responsive Table Wrapper */
.table-responsive {
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
}

.table-responsive::-webkit-scrollbar {
  height: 5px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

/* ==========================================================================
   Camera Live Viewfinder & Capture Styling
   ========================================================================== */
.camera-grid-overlay {
  position: absolute;
  inset: 20px;
  border: 2px dashed rgba(212, 175, 55, 0.5);
  border-radius: var(--radius-md);
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.3);
}

.camera-grid-overlay::before, .camera-grid-overlay::after {
  content: '';
  position: absolute;
  background: #eab308;
}

.camera-grid-overlay::before {
  top: 50%;
  left: 20%;
  right: 20%;
  height: 1px;
  opacity: 0.35;
}

.camera-grid-overlay::after {
  left: 50%;
  top: 20%;
  bottom: 20%;
  width: 1px;
  opacity: 0.35;
}

.camera-shutter-flash {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0.8;
  animation: flashEffect 0.3s ease-out forwards;
  z-index: 20;
}

@keyframes flashEffect {
  0% { opacity: 0.85; }
  100% { opacity: 0; }
}

/* ==========================================================================
   Predictive Live Search Dropdown Styling
   ========================================================================== */
.header-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 1050;
  max-height: 480px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.search-dropdown-section {
  padding: 0.4rem 0.75rem 0.25rem;
}

.search-dropdown-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  color: #1e293b;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.search-suggest-item:hover,
.search-suggest-item.active {
  background: #f8fafc;
  color: var(--gold-dark);
}

.search-suggest-thumb {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.search-suggest-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #fdfaf3;
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.search-suggest-content {
  flex: 1;
  min-width: 0;
}

.search-suggest-title {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
}

.search-suggest-subtitle {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-suggest-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-dark);
  font-family: var(--font-serif);
  flex-shrink: 0;
}

.search-view-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem;
  margin: 0.25rem 0.5rem 0;
  border-top: 1px solid #f1f5f9;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.search-view-all-btn:hover {
  background: #fdfaf3;
  color: var(--gold-dark);
}





