/* Crown Card Vault UK - Premium TCG Style */
:root {
  --primary: #0f172a;
  --accent: #d97706;
  --accent-light: #fef3c7;
  --gold: #b45309;
  --success: #059669;
  --surface: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --psa-red: #dc2626;
  --bgs-gold: #ca8a04;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
body { background: #fdfefe; color: var(--text-main); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

/* Announcement Bar */
.announcement-bar { background: #0b1120; color: #f8fafc; font-size: 12px; padding: 8px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.announcement-bar .inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.badge-gold { background: #d97706; color: #fff; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-right: 8px; font-size: 11px; text-transform: uppercase; }
.announcement-links { display: flex; gap: 18px; }
.announcement-links a { color: #cbd5e1; transition: color 0.2s; }
.announcement-links a:hover { color: #fff; }

/* Navbar */
header { background: #ffffff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.navbar { max-width: 1280px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo-vault { background: linear-gradient(135deg, #b45309, #d97706); color: #fff; width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; box-shadow: 0 2px 4px rgba(217,119,6,0.25); }
.uk-tag { background: #e0e7ff; color: #3730a3; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 4px; vertical-align: middle; margin-left: 4px; }

.search-box { flex: 1; max-width: 420px; position: relative; }
.search-box input { width: 100%; padding: 9px 14px 9px 38px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: #f8fafc; outline: none; transition: border-color 0.2s; }
.search-box input:focus { border-color: var(--accent); background: #fff; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--text-muted); }

.nav-links { display: flex; gap: 22px; font-size: 14px; font-weight: 600; color: #334155; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.cart-btn { display: flex; align-items: center; gap: 8px; background: #f1f5f9; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.cart-btn:hover { background: #e2e8f0; }
.cart-count { background: #d97706; color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: 11px; display: flex; align-items: center; justify-content: center; }

/* Breadcrumb & Section Header */
.section { max-width: 1280px; margin: 0 auto; padding: 28px 24px 60px; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb span { margin: 0 6px; }
.breadcrumb strong { color: var(--text-main); }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.section-title h1 { font-size: 26px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.section-title p { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* Filter & Grid Layout */
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.filter-panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; height: fit-content; }
.filter-group { margin-bottom: 24px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary); margin-bottom: 12px; }
.filter-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #475569; margin-bottom: 8px; cursor: pointer; }
.filter-item input { accent-color: var(--accent); }

/* Card Grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; position: relative; }
.card-item:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -6px rgba(0,0,0,0.08); }

.card-thumb-wrap { background: #f8fafc; padding: 24px 16px; display: flex; align-items: center; justify-content: center; position: relative; min-height: 290px; }
.card-thumb-wrap img { max-height: 250px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15)); transition: transform 0.3s; }
.card-item:hover .card-thumb-wrap img { transform: scale(1.04); }

.slab-badge { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-psa10 { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.badge-psa9 { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.badge-bgs { background: #fef08a; color: #854d0e; border: 1px solid #fde047; }
.badge-raw { background: #e0e7ff; color: #3730a3; border: 1px solid #c7d2fe; }

.stock-tag { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: rgba(15,23,42,0.75); color: #fff; }

.card-details { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card-set-meta { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; }
.card-title { font-size: 15px; font-weight: 800; color: var(--primary); margin-bottom: 8px; line-height: 1.35; }
.card-subtext { font-size: 12px; color: #64748b; margin-bottom: 12px; }

.card-meta-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid #f1f5f9; }
.card-price { font-size: 19px; font-weight: 900; color: var(--primary); }
.card-price span { font-size: 12px; color: var(--text-muted); font-weight: normal; margin-left: 2px; }
.btn-buy { background: var(--primary); color: #fff; border: none; padding: 8px 16px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.btn-buy:hover { background: var(--accent); }

/* Live Order Toast */
.order-toast { position: fixed; bottom: 24px; left: 24px; background: #ffffff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.12); display: flex; align-items: center; gap: 12px; z-index: 1000; animation: slideUp 0.4s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.order-toast-avatar { background: #0f172a; color: #fff; width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.order-toast-content strong { display: block; font-size: 12px; color: #0f172a; }
.order-toast-content span { font-size: 11px; color: #64748b; }

/* Footer */
footer { background: #0b1120; color: #94a3b8; padding: 50px 24px 30px; margin-top: 60px; font-size: 13px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.company-legal-info { background: rgba(255,255,255,0.05); padding: 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); font-size: 12px; line-height: 1.6; }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
