/* NexusPOS Storefront Styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --s-bg:      #FFFFFF;
  --s-surface: #F8F8F8;
  --s-border:  #EBEBEB;
  --s-text:    #111111;
  --s-muted:   #737373;
  --s-accent:  #EA580C;
  --s-accent-d:#C2410C;
  --s-primary: #111111;
  --s-r:       12px;
  --s-r-lg:    18px;
  --s-sh:      0 2px 12px rgba(0,0,0,.07);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--s-bg);
  color: var(--s-text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--s-text); text-decoration: none; }

/* Store nav */
.store-nav {
  background: #fff;
  border-bottom: 1px solid var(--s-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.store-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.store-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--s-text);
  text-decoration: none;
  flex-shrink: 0;
}
.store-nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.store-nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--s-muted);
  transition: color .12s, background .12s;
}
.store-nav-links a:hover { color: var(--s-text); background: var(--s-surface); }
.store-nav-links a.active { color: var(--s-text); font-weight: 600; }
.store-nav-spacer { flex: 1; }
.store-nav-track { display: flex; align-items: center; gap: 10px; }
.track-btn {
  border: 1px solid var(--s-border);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: var(--s-bg);
  color: var(--s-text);
  text-decoration: none;
  transition: background .12s;
}
.track-btn:hover { background: var(--s-surface); }
.cart-btn {
  background: var(--s-text);
  color: #fff;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: opacity .12s;
}
.cart-btn:hover { opacity: .9; color: #fff; }
.cart-count {
  background: var(--s-accent);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  min-width: 16px;
  text-align: center;
}

/* Store container */
.store-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.store-hero {
  background: var(--s-surface);
  border-radius: var(--s-r-lg);
  padding: 48px 40px;
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero-headline {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.hero-sub { font-size: 15px; color: var(--s-muted); line-height: 1.6; margin: 0 0 24px; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--s-accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .12s;
}
.hero-cta:hover { background: var(--s-accent-d); color: #fff; }

/* Section */
.store-section { margin: 40px 0; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.section-link { font-size: 13px; font-weight: 600; color: var(--s-accent); }

/* Brand grid */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.brand-tile {
  border: 1px solid var(--s-border);
  border-radius: var(--s-r);
  background: var(--s-bg);
  padding: 18px 12px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--s-text);
}
.brand-tile:hover {
  border-color: var(--s-text);
  box-shadow: var(--s-sh);
  transform: translateY(-2px);
}
.brand-tile-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--s-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  overflow: hidden;
}
.brand-tile-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-tile-name { font-size: 12px; font-weight: 600; color: var(--s-muted); }

/* Product cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.product-card {
  border: 1px solid var(--s-border);
  border-radius: var(--s-r);
  background: var(--s-bg);
  overflow: hidden;
  transition: box-shadow .15s, transform .1s;
  text-decoration: none;
  color: var(--s-text);
}
.product-card:hover { box-shadow: var(--s-sh); transform: translateY(-2px); }
.product-img {
  aspect-ratio: 1;
  background: var(--s-surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 12px 14px; }
.product-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.product-price { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.product-price-muted { color: var(--s-muted); font-size: 13px; font-weight: 400; }
.product-add-btn {
  width: 100%;
  background: var(--s-text);
  color: #fff;
  border: none;
  border-radius: 0 0 var(--s-r) var(--s-r);
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .12s;
  display: none;
}
.product-card:hover .product-add-btn { display: block; }

/* Repair tracker */
.tracker-card {
  max-width: 500px;
  margin: 40px auto;
  background: var(--s-bg);
  border: 1px solid var(--s-border);
  border-radius: var(--s-r-lg);
  padding: 32px;
  box-shadow: var(--s-sh);
}
.tracker-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 6px; letter-spacing: -.03em; }
.tracker-sub { text-align: center; color: var(--s-muted); font-size: 14px; margin-bottom: 24px; }
.tracker-input {
  width: 100%;
  border: 1.5px solid var(--s-border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: border-color .12s;
}
.tracker-input:focus { outline: none; border-color: var(--s-text); }
.tracker-btn {
  width: 100%;
  background: var(--s-text);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 10px;
  transition: opacity .12s;
}
.tracker-btn:hover { opacity: .85; }

/* Store footer */
.store-footer {
  background: var(--s-surface);
  border-top: 1px solid var(--s-border);
  padding: 32px 0;
  margin-top: 60px;
}
.store-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.store-footer-brand { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.store-footer-links { display: flex; gap: 20px; }
.store-footer-links a { font-size: 13px; color: var(--s-muted); }
.store-footer-links a:hover { color: var(--s-text); }
.store-footer-copy { font-size: 12px; color: var(--s-muted); }

@media (max-width: 768px) {
  .store-hero { grid-template-columns: 1fr; padding: 32px 24px; }
  .hero-headline { font-size: 26px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .store-nav-links { display: none; }
}
