:root {
  --navy: #0b1f3a;
  --navy-light: #123059;
  --blue: #1e63d6;
  --blue-light: #4f8ef7;
  --green: #16a34a;
  --gray-50: #f7f8fa;
  --gray-100: #eef1f5;
  --gray-200: #dfe4ea;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --text: #16202e;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--gray-50);
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header.site-header {
  background: var(--navy);
  color: white;
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-bar {
  background: var(--navy-light);
  font-size: 13px;
  padding: 6px 0;
  color: #cfe0ff;
}
.top-bar .container { display: flex; justify-content: space-between; }
.top-bar a:hover { color: white; text-decoration: underline; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
}
.brand .sub { font-weight: 400; font-size: 11px; color: #a9c1ea; display: block; margin-top: -2px; }

.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-size: 14.5px; color: #dbe6fb; }
.nav-links a:hover { color: white; }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.cart-link {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08);
  padding: 8px 14px; border-radius: 20px; font-size: 14px;
}
#cart-count {
  background: var(--blue); color: white; border-radius: 999px;
  padding: 1px 8px; font-size: 12px; font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #16305c 60%, var(--blue) 140%);
  color: white; padding: 64px 0 56px;
}
.hero h1 { font-size: 38px; margin: 0 0 14px; max-width: 640px; line-height: 1.2; }
.hero p { font-size: 17px; color: #cfe0ff; max-width: 560px; line-height: 1.55; }
.hero-badges { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-badge {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; display: flex; gap: 8px; align-items: center;
}
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 600;
  font-size: 15px; cursor: pointer; border: none;
}
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: #1a56bd; }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: white; }
.hero .btn-row { margin-top: 30px; display: flex; gap: 14px; }

/* ---------- About / Our Work ---------- */
.about-grid { max-width: 720px; margin-bottom: 26px; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.gallery-grid img {
  width: 100%; height: 220px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--gray-200); display: block; transition: transform .15s;
}
.gallery-grid img:hover { transform: scale(1.02); }
.gallery-grid img { cursor: zoom-in; }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(11, 31, 58, 0.92);
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1100px); max-height: 88vh;
  border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  cursor: default;
}
.lightbox-close {
  position: absolute; top: 18px; right: 28px;
  color: white; font-size: 34px; font-weight: 300; line-height: 1;
  cursor: pointer; user-select: none;
}
.lightbox-close:hover { color: var(--blue-light); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
  color: white; width: 44px; height: 44px; border-radius: 50%;
  font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* ---------- Category grid ---------- */
.section { padding: 52px 0; }
.section h2 { font-size: 24px; margin-bottom: 6px; }
.section .lede { color: var(--gray-500); margin-bottom: 28px; font-size: 15px; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  background: white; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 20px; cursor: pointer; transition: box-shadow .15s, transform .15s;
}
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card .icon { font-size: 26px; margin-bottom: 10px; }
.cat-card h3 { font-size: 15px; margin: 0 0 4px; }
.cat-card p { font-size: 13px; color: var(--gray-500); margin: 0; }

/* ---------- Price match strip ---------- */
.price-strip {
  background: var(--gray-100); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200);
}
.price-strip .container { display: flex; gap: 40px; padding: 26px 24px; align-items: center; }
.price-strip .stat { text-align: center; }
.price-strip .stat b { display: block; font-size: 22px; color: var(--navy); }
.price-strip .stat span { font-size: 12.5px; color: var(--gray-500); }

/* ---------- Toolbar / filters ---------- */
.toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.search-box {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px;
  background: white; border: 1px solid var(--gray-200); border-radius: 8px; padding: 10px 14px;
}
.search-box input { border: none; outline: none; font-size: 14px; width: 100%; }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  border: 1px solid var(--gray-200); background: white; padding: 7px 14px; border-radius: 999px;
  font-size: 13.5px; cursor: pointer; color: var(--gray-700);
}
.chip.active { background: var(--navy); color: white; border-color: var(--navy); }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: white; border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card .thumb {
  height: 160px; background: var(--gray-100); display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: var(--gray-500); overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; background: white; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .brand { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--blue); font-weight: 700; }
.card .name { font-size: 14px; line-height: 1.35; font-weight: 600; min-height: 38px; }
.card .sku { font-size: 12px; color: var(--gray-500); }
.card .price-row { margin-top: auto; padding-top: 8px; }
.card .sell { font-size: 20px; font-weight: 800; color: var(--navy); }
.card .comp { font-size: 12.5px; color: var(--gray-500); text-decoration: line-through; margin-left: 6px; }
.card .save {
  display: inline-block; margin-top: 4px; font-size: 11.5px; color: var(--green); font-weight: 700;
  background: #e9f9ef; padding: 2px 8px; border-radius: 6px;
}
.card .add-btn {
  margin-top: 10px; width: 100%; background: var(--navy); color: white; border: none;
  padding: 9px 0; border-radius: 7px; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.card .add-btn:hover { background: var(--blue); }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: #b9c8e5; padding: 40px 0 26px; margin-top: 40px; font-size: 13.5px; }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
footer .cols { display: flex; gap: 60px; }
footer h4 { color: white; font-size: 13px; margin: 0 0 10px; }
footer a { display: block; margin-bottom: 6px; color: #b9c8e5; }
footer a:hover { color: white; }
.disclaimer { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 26px; padding-top: 18px; font-size: 12px; color: #8ea1c4; }

/* ---------- Cart / modal / admin shared ---------- */
.page-header { padding: 34px 0 10px; }
.page-header h1 { font-size: 26px; margin: 0 0 6px; }
.page-header p { color: var(--gray-500); margin: 0; }

.panel { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 22px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
th { font-size: 12px; text-transform: uppercase; color: var(--gray-500); letter-spacing: .03em; }
input[type=number] { width: 64px; padding: 5px 8px; border: 1px solid var(--gray-200); border-radius: 6px; }
.qty-btn { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--gray-200); background: white; cursor: pointer; }
.remove-link { color: #dc2626; font-size: 13px; cursor: pointer; }

.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.summary-row.total { font-weight: 800; font-size: 17px; border-top: 1px solid var(--gray-200); margin-top: 10px; padding-top: 14px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--gray-500); margin-top: 5px; }
.field input[type=text], .field input[type=email], .field input[type=number].wide, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 14px;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.badge-ok { background: #e9f9ef; color: var(--green); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-floor { background: #fff3e0; color: #b45309; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.empty-state .icon { font-size: 40px; margin-bottom: 12px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .cat-grid, .grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
