/* ===========================
   CollectStore — site.css
=========================== */

:root {
  --cs-yellow: #ffc107;
  --cs-dark: #111318;
  --cs-dark2: #1a1d24;
  --cs-card: #1e2229;
  --cs-border: rgba(255,255,255,0.08);
  --cs-text-muted: #8b929a;
}

body {
  background-color: var(--cs-dark);
  color: #dee2e6;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---- Navbar ---- */
.navbar { box-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.brand-icon { font-size: 1.4rem; color: var(--cs-yellow); }
.avatar-sm {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #ffc107, #e67e22);
  color: #000; font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; text-transform: uppercase;
}

/* ---- Hero ---- */
.hero-section { background-color: var(--cs-dark2); min-height: 70vh; }
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(255,193,7,0.06) 0%, transparent 70%);
}
.min-vh-50 { min-height: 50vh; }
.stat-mini { padding: 0.5rem; background: rgba(255,255,255,0.03); border-radius: 10px; border: 1px solid var(--cs-border); }

/* Hero floating cards */
.hero-visual { position: relative; width: 340px; height: 340px; }
.floating-cards { position: relative; width: 100%; height: 100%; }
.hero-card {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,193,7,0.2);
  width: 140px; height: 140px;
  transition: transform 0.3s;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card:nth-child(1) { top: 0; left: 50px; transform: rotate(-6deg); }
.hero-card:nth-child(2) { top: 80px; left: 140px; transform: rotate(4deg); z-index: 2; }
.hero-card:nth-child(3) { top: 160px; left: 20px; transform: rotate(2deg); }
.hero-card:hover { transform: rotate(0deg) scale(1.05) !important; z-index: 10; }

/* ---- Category Cards ---- */
.category-card {
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.category-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* Helper for opacity on color */
.category-card { background: rgba(var(--cat-rgb), 0.08) !important; }

/* ---- Product Cards ---- */
.product-card {
  background: var(--cs-card);
  border: 1px solid var(--cs-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  border-color: rgba(255,193,7,0.3);
}
.product-card-img-wrap {
  position: relative;
  padding-top: 100%;
  background: #252830;
  overflow: hidden;
}
.product-card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .product-card-img { transform: scale(1.05); }
.product-card-body { padding: 0.9rem; flex-grow: 1; display: flex; flex-direction: column; }
.product-card-title {
  font-size: 0.875rem; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4;
}
.out-of-stock-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex; align-items: center; justify-content: center;
}
.out-of-stock-overlay span { color: #fff; font-weight: 700; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; }

.add-to-cart-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  transition: transform 0.15s;
}
.add-to-cart-btn:active { transform: scale(0.9); }
.bg-orange { background-color: #fd7e14 !important; }

/* ---- Filter Sidebar ---- */
.filter-card { background: var(--cs-card); border: 1px solid var(--cs-border); border-radius: 12px; padding: 1rem; }
.filter-item {
  display: block; padding: 0.45rem 0.75rem;
  border-radius: 8px; color: var(--cs-text-muted);
  font-size: 0.85rem; text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}
.filter-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.filter-item.active { background: rgba(255,193,7,0.1); color: var(--cs-yellow); border-left-color: var(--cs-yellow); }

/* ---- Product Detail ---- */
.product-detail-img-wrap { background: #1e2229; aspect-ratio: 1; }
.product-detail-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.price-box { background: rgba(255,193,7,0.05); border: 1px solid rgba(255,193,7,0.2); }

/* ---- Auth ---- */
.auth-page { min-height: calc(100vh - 200px); }
.auth-card {
  background: var(--cs-card);
  border: 1px solid var(--cs-border);
  border-radius: 20px; padding: 2.5rem;
  width: 100%; max-width: 420px;
}
.auth-logo { font-size: 3rem; color: var(--cs-yellow); }

/* ---- Cart ---- */
.cart-item { transition: background 0.15s; }
.cart-item:hover { background: rgba(255,255,255,0.02); }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, rgba(255,193,7,0.08), rgba(230,126,34,0.05));
  border: 1px solid rgba(255,193,7,0.2);
}

/* ---- Section header ---- */
.section-header { border-left: 3px solid var(--cs-yellow); padding-left: 1rem; }

/* ---- Toast ---- */
#toast-msg { min-width: 220px; }

/* ---- Breadcrumb ---- */
.breadcrumb-item + .breadcrumb-item::before { color: #6c757d; }

/* ---- Success animation ---- */
.checkmark-circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(46,204,113,0.1); border: 2px solid #2ecc71;
  display: inline-flex; align-items: center; justify-content: center;
  animation: popIn 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---- Bootstrap overrides ---- */
.form-control:focus, .form-select:focus { border-color: var(--cs-yellow) !important; box-shadow: 0 0 0 2px rgba(255,193,7,0.2) !important; }
.btn-warning { color: #000; }
.btn-warning:hover { color: #000; background-color: #ffca2c; }
.page-link { background-color: var(--cs-card); border-color: var(--cs-border); color: #dee2e6; }
.page-item.active .page-link { background-color: var(--cs-yellow); border-color: var(--cs-yellow); color: #000; }
.page-link:hover { background-color: rgba(255,255,255,0.08); color: #fff; }
.dropdown-item:hover { background-color: rgba(255,255,255,0.06); }
.dropdown-item.active { background-color: rgba(255,193,7,0.15); color: var(--cs-yellow); }
.table > :not(caption) > * > * { background-color: transparent; }

/* Category color helpers (inline style via Razor) */
