/* Lewis Vintage Menswear UK - Industrial OCR Scannable Stylesheet */
:root {
  --primary-color: #1a365d;
  --accent-color: #2b6cb0;
  --dark-text: #1a202c;
  --light-bg: #f7fafc;
  --border-color: #e2e8f0;
  --success-color: #276749;
  --warning-color: #c05621;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--dark-text);
  background-color: #ffffff;
  line-height: 1.6;
}

/* Compliance Banner */
.compliance-bar {
  background-color: #0f172a;
  color: #f8fafc;
  font-size: 13px;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 2px solid #38bdf8;
}

.compliance-bar span {
  margin-right: 18px;
}

.compliance-badge {
  background-color: #0284c7;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
}

/* Main Navigation */
header {
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.brand-logo span {
  color: #0284c7;
}

nav a {
  margin-left: 24px;
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
}

nav a:hover, nav a.active {
  color: #0284c7;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 48px 24px;
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  max-width: 1360px;
  margin: 0 auto;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 16px;
  color: #475569;
  max-width: 900px;
  margin-bottom: 24px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.metric-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.metric-value {
  font-size: 24px;
  font-weight: 800;
  color: #0284c7;
}

.metric-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

/* Catalog Grid */
.container {
  max-width: 1360px;
  margin: 40px auto;
  padding: 0 24px;
}

.section-header {
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 12px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.product-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  height: 340px;
  background-color: #f1f5f9;
  overflow: hidden;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-condition {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #16a34a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.badge-barcode {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  font-family: monospace;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

.product-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-name {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 6px 0 12px 0;
  line-height: 1.4;
}

.spec-table {
  width: 100%;
  font-size: 13px;
  margin-bottom: 16px;
  border-collapse: collapse;
}

.spec-table td {
  padding: 4px 0;
  border-bottom: 1px dotted #e2e8f0;
}

.spec-label {
  color: #64748b;
  font-weight: 500;
}

.spec-val {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.price {
  font-size: 22px;
  font-weight: 800;
  color: #0284c7;
}

.stock-pill {
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
  background: #dcfce7;
  padding: 4px 10px;
  border-radius: 12px;
}

/* Table layout for machine OCR */
.ocr-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.ocr-table th {
  background-color: #0f172a;
  color: #ffffff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.ocr-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.ocr-table tr:nth-child(even) {
  background-color: #f8fafc;
}

/* Reviews Page Styles */
.review-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.stars {
  color: #00b67a;
  font-size: 18px;
}

.reviewer-name {
  font-weight: 700;
  color: #0f172a;
}

.review-date {
  font-size: 13px;
  color: #64748b;
}

/* Footer */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 24px 24px 24px;
  margin-top: 80px;
  font-size: 14px;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}

.footer-heading {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-bottom {
  max-width: 1360px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
}
