/* Pulse Mobile UK - Commercial Refurbished Mobile E-Commerce Theme */
:root {
  --primary: #312e81;
  --primary-dark: #1e1b4b;
  --accent: #4f46e5;
  --tag: #4338ca;
  --dark: #0f172a;
  --slate: #334155;
  --light-gray: #f8fafc;
  --border: #cbd5e1;
  --border-strong: #0f172a;
  --gold: #d97706;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
  background-color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Top Announcement Strip */
.top-bar {
  background: var(--primary-dark);
  color: #f8fafc;
  font-size: 12px;
  padding: 8px 16px;
  border-bottom: 2px solid var(--accent);
}
.top-bar .inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Navbar */
header {
  background: #ffffff;
  border-bottom: 2px solid var(--border-strong);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}
.brand-logo .logo-icon {
  background: var(--primary);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
  border: 2px solid var(--primary-dark);
}
.brand-logo .uk-tag {
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--primary);
  color: #ffffff;
}

.cart-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.cart-count {
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* Main Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* Machine Audit Banner */
.audit-banner {
  background: #f8fafc;
  border: 2px solid #0f172a;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.audit-banner .sub-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.audit-banner h1 {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.3;
}
.audit-banner p {
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 14px;
}
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  padding-top: 12px;
  border-top: 1px dashed #94a3b8;
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 13px;
  border: 2px solid #0f172a;
  background: #fff;
}
.data-table thead tr {
  background: var(--primary-dark);
  color: #ffffff;
}
.data-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 800;
  letter-spacing: 0.3px;
  border: 1px solid #1e293b;
}
.data-table td {
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  color: #1e293b;
}
.data-table tbody tr:nth-child(even) {
  background: #f8fafc;
}
.data-table tbody tr:hover {
  background: #f1f5f9;
}

.tag-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 11px;
}
.tag-green {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}
.tag-blue {
  background: #e0e7ff;
  color: var(--primary);
  border: 1px solid #a5b4fc;
}

/* KPI Row */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: #ffffff;
  border: 2px solid #0f172a;
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 2px 2px 0px #0f172a;
}
.kpi-label {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.kpi-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.kpi-sub {
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
}

/* Visual Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.product-card {
  border: 2px solid #0f172a;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #e2e8f0;
}
.product-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}
.product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
}
.product-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.3;
}
.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.price-main {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary-dark);
}
.price-tag-was {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 6px;
}
.btn-buy {
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}
.btn-buy:hover {
  background: var(--primary-dark);
}

/* Keywords Box */
.keywords-index-box {
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 11px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Footer */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 24px 20px;
  font-size: 12px;
  text-align: center;
  border-top: 3px solid var(--accent);
  line-height: 1.6;
}

/* Live Toast */
.live-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #ffffff;
  border: 2px solid #0f172a;
  box-shadow: 4px 4px 0px #0f172a;
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  z-index: 999;
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
