:root {
  --black: #1a1a1a;
  --header: #222222;
  --text: #222222;
  --muted: #5b5b5b;
  --line: #e6e6e6;
  --bg: #ffffff;
  --cyan: #7ea8d8;
  --cyan-dark: #5b8ec4;
  --header-logo: 64px;
  --max: 1200px;
  --pad: clamp(20px, 3vw, 40px);
  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--black); text-decoration: none; }
a:hover { color: var(--cyan-dark); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

.site-header {
  background: var(--header);
  overflow: visible;
}
.brand { flex-shrink: 0; }
.brand img {
  height: var(--header-logo);
  width: auto;
  object-fit: contain;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: #fff; }
.site-nav a.is-active {
  border-bottom-color: #fff;
}
.cart-link { position: relative; display: inline-flex; align-items: center; color: #fff; }
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--cyan);
  color: #000;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 32px;
  height: 24px;
  padding: 0;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 1px;
  background: #fff;
  margin: 7px 0;
}

.hero-banner,
.photo-band {
  position: relative;
  overflow: hidden;
}
.hero-banner > img,
.photo-band > img {
  width: 100%;
  height: min(520px, 48vh);
  max-height: 520px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.photo-band > img { height: min(420px, 40vh); max-height: 420px; }
.hero-mark {
  position: absolute;
  left: 42%;
  top: 58%;
  transform: translate(-50%, -50%);
  width: min(180px, 16vw);
  pointer-events: none;
}
.hero-mark.badge { width: min(180px, 26vw); top: 50%; }
.hero-mark img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.section { padding: 72px var(--pad); }
.wrap { max-width: 1200px; margin: 0 auto; }
.wrap.narrow { max-width: 720px; }
.section-title,
.page-heading {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin: 0 0 40px;
  letter-spacing: -0.02em;
}
.page-heading { text-align: left; margin-bottom: 16px; }
.lead { color: var(--muted); font-size: 17px; margin-top: 0; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.service-photo {
  margin-bottom: 18px;
  overflow: hidden;
  background: #f5f5f5;
}
.service-photo img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  object-position: top center;
}
.service-card { text-align: center; }
.service-card h3 {
  font-size: 20px;
  margin: 0 0 10px;
}
.service-card p { margin: 0; color: var(--text); }
.section-cta { text-align: center; margin-top: 48px; }

.btn {
  display: inline-block;
  background: #1a1a1a;
  color: #fff !important;
  border: 0;
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.btn:hover { background: #333; }

.brand-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.brand-row img {
  max-height: 110px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.page-hero {
  min-height: 220px;
  max-height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.page-hero-inner {
  position: relative;
  padding: 64px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) 1.4fr;
  gap: 48px;
  align-items: start;
}
.about-heading {
  font-size: clamp(36px, 5vw, 52px);
  margin: 0;
  font-weight: 600;
}
.about-copy p { margin: 0; }
.contact-cta { padding-top: 32px; padding-bottom: 32px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-intro .page-heading { margin-bottom: 16px; }
.contact-intro { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form input,
.contact-form textarea,
.shop-search input,
.qty-form input,
.add-form input[type="number"] {
  font-family: var(--font);
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  width: 100%;
}
.req { color: var(--muted); font-weight: 400; font-size: 12px; }
.form-success { background: #e8f7ee; border: 1px solid #b7e0c2; padding: 12px 14px; }
.form-error { background: #fdecec; border: 1px solid #f0b4b4; padding: 12px 14px; }

.site-footer {
  background: #fff;
  padding: 40px var(--pad) 56px;
  text-align: left;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-name { font-weight: 600; color: var(--black); margin: 0 0 8px; }
.site-footer p { margin: 0 0 12px; color: var(--muted); }
.site-footer a { color: var(--text); }

.preview-banner {
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 8px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card h2 { font-size: 18px; margin: 6px 0; }
.product-brand { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.product-photo { background: #f4f4f4; min-height: 180px; display: flex; align-items: center; justify-content: center; }
.product-photo img { max-height: 180px; width: auto; margin: 0 auto; object-fit: contain; }
.product-photo.large img { max-height: 360px; }
.product-price { font-weight: 600; }
.product-price.large { font-size: 28px; }
.product-price.large span { font-size: 14px; font-weight: 400; color: var(--muted); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.sku { color: var(--muted); font-size: 13px; }
.specs { padding-left: 18px; }
.shop-search { display: flex; gap: 8px; margin: 0 0 32px; }
.shop-search input { max-width: 360px; }
.add-form { display: flex; gap: 12px; align-items: end; }
.add-form label { font-weight: 600; }
.add-form input { width: 80px; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.cart-total { font-size: 20px; font-weight: 700; }
.qty-form { display: flex; gap: 6px; }
.qty-form input { width: 70px; }
.linkish { background: none; border: 0; color: var(--muted); cursor: pointer; font-family: var(--font); }
.checkout-lines { padding-left: 18px; }

.admin-body { background: #f3f5f7; }
.admin-header {
  background: #111;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-header a, .admin-header button { color: #fff; background: none; border: 0; font-family: var(--font); cursor: pointer; font-size: 14px; }
.admin-header nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.admin-header .brand img { height: 40px; background: #fff; }
.admin-main { max-width: 1240px; margin: 32px auto; background: #fff; padding: 32px; }
.admin-main h1 { margin-top: 0; }
.settings-form fieldset { border: 1px solid var(--line); margin: 0 0 20px; padding: 16px 18px; }
.settings-form legend { font-weight: 700; padding: 0 6px; }
.settings-form label { display: block; margin: 10px 0; font-weight: 600; font-size: 14px; }
.settings-form input[type="text"],
.settings-form input[type="email"] { width: 100%; padding: 8px 10px; font-family: var(--font); border: 1px solid #ccc; margin-top: 4px; }
.check { font-weight: 500 !important; display: flex !important; gap: 8px; align-items: center; }
.hint { font-size: 13px; color: var(--muted); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.products-table input.narrow { width: 96px; padding: 6px 8px; font-family: var(--font); border: 1px solid #ccc; }
.products-table input,
.products-table select,
.add-product-form input,
.add-product-form select { padding: 6px 8px; font-family: var(--font); border: 1px solid #ccc; font-size: 14px; }
.products-table input.sku { width: 110px; }
.products-table input.brand { width: 110px; }
.products-table input.wide { width: 100%; min-width: 160px; }
.add-product { border: 1px solid var(--line); padding: 16px 18px; margin: 0 0 24px; }
.add-product h2 { margin: 0 0 12px; font-size: 16px; }
.add-product-form { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; }
.add-product-form label { font-weight: 600; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.add-product-form .check { flex-direction: row; align-items: center; font-weight: 500; }
.linkish.danger { color: #a40000; }
.csv-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  padding: 16px 18px;
  margin: 0 0 24px;
}
.csv-panel h2 { margin: 0 0 8px; font-size: 16px; }
.csv-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.csv-import { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn.secondary { background: #fff; color: var(--black) !important; border: 1px solid #ccc; }
.btn.secondary:hover { background: #f3f5f7; }
.form-warning { background: #fff6e5; border: 1px solid #f0d9a6; padding: 12px 14px; }
.form-errors { color: #a40000; padding-left: 18px; }
.inquiry { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 16px; }
.inquiry h2 { font-size: 18px; margin: 0 0 6px; }
.login-body { min-height: 100vh; display: grid; place-items: center; }
.login-card { background: #fff; padding: 36px; width: min(420px, 92vw); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.login-logo { height: 64px; width: auto; margin-bottom: 16px; }

@media (min-width: 1400px) {
  .hero-banner img { height: 480px; }
  .photo-band img { height: 380px; }
  .service-photo img { height: 280px; }
}
@media (max-width: 900px) {
  :root { --header-logo: 52px; }
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header);
    flex-direction: column;
    padding: 16px var(--pad) 24px;
    z-index: 20;
  }
  .site-header { position: relative; }
  .site-nav.is-open { display: flex; }
  .service-grid,
  .product-grid,
  .about-grid,
  .product-detail,
  .contact-grid,
  .brand-row { grid-template-columns: 1fr 1fr; }
  .name-row { grid-template-columns: 1fr; }
  .contact-intro { border-bottom: 0; }
}
@media (max-width: 640px) {
  :root { --header-logo: 44px; }
  .service-grid,
  .product-grid,
  .about-grid,
  .product-detail,
  .brand-row { grid-template-columns: 1fr; }
  .section { padding: 48px var(--pad); }
}
