/* ===============================
GLOBAL RESET
=============================== */

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

body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: #020617;
color: #e5e7eb;
line-height: 1.6;
}


/* ===============================
LAYOUT
=============================== */

.container {
width: min(1180px, calc(100% - 2rem));
margin: 0 auto;
}

.page-shell {
padding: 2rem 0 3rem;
}


/* ===============================
HEADER / NAVBAR
=============================== */

.site-header {
border-bottom: 1px solid #1f2937;
background: rgba(2,6,23,0.92);
backdrop-filter: blur(8px);
}

.header-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 1.25rem 0;
}

.site-title {
color: #f8fafc;
text-decoration: none;
font-size: 1.9rem;
font-weight: 800;
letter-spacing: -0.02em;
}

.site-subtitle {
font-size: 0.9rem;
color: #94a3b8;
margin-top: 0.3rem;
}

.site-nav {
display: flex;
gap: 1rem;
}

.site-nav a {
color: #94a3b8;
text-decoration: none;
font-weight: 600;
}

.site-nav a:hover,
.site-nav a.active {
color: #ffffff;
}


/* ===============================
HERO PANEL
=============================== */

.hero-panel {
display: flex;
justify-content: space-between;
gap: 1.5rem;
background: linear-gradient(180deg,#0f172a 0%,#111827 100%);
border: 1px solid #1f2937;
border-radius: 18px;
padding: 1.5rem;
margin-bottom: 1.5rem;
}

.hero-panel h1 {
font-size: 2rem;
margin-bottom: 0.5rem;
}

.hero-copy {
color: #94a3b8;
max-width: 600px;
}

.eyebrow {
text-transform: uppercase;
letter-spacing: 0.08em;
font-size: 0.75rem;
color: #60a5fa;
font-weight: 700;
margin-bottom: 0.4rem;
}

.hero-stats {
display: flex;
gap: 1rem;
}

.stat-card {
background: #020617;
border: 1px solid #1f2937;
border-radius: 12px;
padding: 1rem;
min-width: 130px;
}

.stat-label {
display: block;
font-size: 0.8rem;
color: #94a3b8;
margin-bottom: 0.3rem;
}

.stat-card strong {
font-size: 1.3rem;
}


/* ===============================
SEARCH TOOLBAR
=============================== */

.toolbar {
margin-bottom: 1.5rem;
}

.search-form {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}

.search-form input {
flex: 1;
min-width: 250px;
background: #020617;
border: 1px solid #334155;
border-radius: 10px;
padding: 0.7rem;
color: #ffffff;
}

.search-form button {
background: #2563eb;
border: none;
border-radius: 10px;
padding: 0.7rem 1rem;
font-weight: 700;
color: white;
cursor: pointer;
}

.search-form button:hover {
background: #1d4ed8;
}


/* ===============================
PRODUCT GRID
=============================== */

.catalog-grid {
display: grid;
grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
gap: 1rem;
}

.product-card {
background: linear-gradient(180deg,#020617 0%,#0f172a 100%);
border: 1px solid #1f2937;
border-radius: 16px;
padding: 1rem;
transition: 0.15s;
}

.product-card:hover {
transform: translateY(-3px);
border-color: #334155;
}

.product-top {
display: flex;
justify-content: space-between;
margin-bottom: 0.8rem;
}

.category-badge {
background: rgba(59,130,246,0.15);
color: #93c5fd;
border-radius: 999px;
padding: 0.3rem 0.7rem;
font-size: 0.75rem;
font-weight: 700;
}

.source-pill {
background: rgba(148,163,184,0.15);
color: #cbd5e1;
border-radius: 999px;
padding: 0.3rem 0.7rem;
font-size: 0.75rem;
font-weight: 700;
}

.product-title {
font-size: 1.1rem;
margin-bottom: 0.5rem;
}

.product-brand {
color: #94a3b8;
font-size: 0.9rem;
margin-bottom: 0.8rem;
}

.product-actions {
margin-top: auto;
}


/* ===============================
BUTTONS
=============================== */

.btn-secondary {
display: inline-block;
padding: 0.6rem 0.9rem;
background: #111827;
border: 1px solid #334155;
border-radius: 8px;
color: #e5e7eb;
text-decoration: none;
font-weight: 600;
}

.btn-secondary:hover {
border-color: #475569;
}


/* ===============================
PAGINATION
=============================== */

.pagination-bar {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 1.8rem;
flex-wrap: wrap;
gap: 1rem;
}

.pagination-actions {
display: flex;
gap: 0.7rem;
align-items: center;
}

.btn-page {
background: #111827;
border: 1px solid #334155;
padding: 0.5rem 0.9rem;
border-radius: 8px;
color: #e5e7eb;
text-decoration: none;
}

.btn-page.disabled {
opacity: 0.4;
pointer-events: none;
}

.page-indicator {
font-weight: 600;
color: #cbd5e1;
}

.pagination-meta {
color: #94a3b8;
}


/* ===============================
EMPTY STATE
=============================== */

.empty-state {
background: #020617;
border: 1px solid #1f2937;
border-radius: 16px;
padding: 2rem;
text-align: center;
}

.empty-state h2 {
margin-bottom: 0.5rem;
}

.empty-state p {
color: #94a3b8;
}


/* ===============================
PRODUCT DETAIL PAGE
=============================== */

.product-details {
display: grid;
grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
gap: 1rem;
margin-top: 2rem;
}

.detail-card {
background: #020617;
border: 1px solid #1f2937;
border-radius: 16px;
padding: 1.5rem;
}

.detail-card h3 {
margin-bottom: 0.6rem;
color: #f8fafc;
}

.detail-card p {
color: #94a3b8;
}


/* ===============================
RESPONSIVE
=============================== */

@media (max-width: 850px) {

.header-row,
.hero-panel,
.pagination-bar {
flex-direction: column;
align-items: flex-start;
}

.hero-stats {
width: 100%;
}

.stat-card {
flex: 1 1 140px;
}

}

.product-secondary {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.4;
}

.detail-card-wide {
  grid-column: span 2;
}

@media (max-width: 850px) {
  .detail-card-wide {
    grid-column: span 1;
  }
}
