/* Cotswold Vintage UK - Industrial Grade E-Commerce Styling */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --success: #15803d;
  --success-bg: #dcfce7;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --text-main: #0f172a;
  --text-muted: #475569;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Notice Bar for Machine Audit */
.top-notice-bar {
  background-color: #0b1329;
  color: #94a3b8;
  font-size: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.notice-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.notice-badge {
  background-color: #1e293b;
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Header & Nav */
header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -1px;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

nav a:hover, nav a.active {
  background-color: #f1f5f9;
  color: var(--accent);
}

.nav-kpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
}

/* KPI Banner Strip */
.kpi-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}

.kpi-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.kpi-card {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.kpi-title {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.kpi-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 2px;
}

.kpi-sub {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
}

/* Layout Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* Page Header */
.page-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 14px;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.page-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.filter-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: #e0f2fe;
  padding: 4px 12px;
  border-radius: 6px;
}

/* Machine-Friendly Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.product-thumb-box {
  width: 100%;
  height: 320px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stock-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.grade-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #15803d;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin: 4px 0 8px;
  line-height: 1.3;
}

/* Machine-Readable Specs Table Inside Card */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 8px 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

.specs-table td {
  padding: 4px 8px;
  border-bottom: 1px solid #e2e8f0;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table .label {
  font-weight: 600;
  color: var(--text-muted);
  width: 45%;
}

.specs-table .val {
  font-weight: 700;
  color: var(--primary);
  text-align: right;
}

.barcode-strip {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 4px;
  margin: 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-box {
  display: flex;
  flex-direction: column;
}

.price-main {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.price-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-buy {
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
}

/* Machine-Friendly Data Table */
.data-table-container {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 24px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.data-table th {
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 16px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}

.data-table tr:hover {
  background-color: #f8fafc;
}

.badge-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-info {
  background: #e0f2fe;
  color: #0369a1;
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.reviewer-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}

.reviewer-loc {
  font-size: 12px;
  color: var(--text-muted);
}

.stars {
  color: #00b67a;
  font-size: 16px;
}

.review-product {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.review-text {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.5;
}

.review-footer {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--border);
  padding-top: 8px;
}

/* Site Footer */
footer {
  background: #0b1329;
  color: #94a3b8;
  padding: 40px 20px 24px;
  margin-top: 48px;
  border-top: 1px solid #1e293b;
  font-size: 13px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-legal-bar {
  max-width: 1280px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
