:root {
  --ink: #17202a;
  --muted: #627084;
  --line: #d9e1ea;
  --paper: #ffffff;
  --soft: #f4f7fa;
  --soft-2: #edf2f6;
  --brand: #133a5e;
  --brand-2: #f2b544;
  --brand-3: #0f6b5f;
  --danger: #9f1239;
  --success: #166534;
  --shadow: 0 20px 50px rgba(23, 32, 42, 0.12);
  --radius: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.utility-bar {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  gap: 20px;
  align-items: center;
}
.brand-mark { display: flex; align-items: center; gap: 12px; min-width: 250px; }
.brand-mark strong { display: block; line-height: 1.1; font-size: 1.05rem; letter-spacing: .01em; }
.brand-mark small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), #236ba5);
  box-shadow: 0 10px 24px rgba(19, 58, 94, .25);
}
.search-bar {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 8px;
  background: var(--soft);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.search-bar select,
.search-bar input {
  border: 0;
  background: transparent;
  padding: 10px 12px;
  min-width: 0;
  outline: none;
}
.search-bar select { border-right: 1px solid var(--line); }
.search-bar button {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  padding: 10px 18px;
  font-weight: 700;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { color: var(--brand); font-weight: 800; white-space: nowrap; }
.cart-trigger {
  border: 1px solid var(--ink);
  background: var(--paper);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}
.cart-trigger span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--brand-2);
}
.main-nav {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 12px;
  display: flex;
  gap: 22px;
  align-items: center;
  font-weight: 800;
  font-size: .93rem;
}
.main-nav > a,
.nav-dropdown > a { padding: 8px 0; }
.nav-dropdown { position: relative; }
.mega-menu {
  position: absolute;
  top: 100%;
  left: -18px;
  width: min(980px, 90vw);
  max-height: 70vh;
  overflow: auto;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.mega-menu.slim { width: min(620px, 90vw); grid-template-columns: repeat(2, 1fr); }
.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu { display: grid; }
.mega-menu a { padding: 12px; border-radius: 12px; background: var(--soft); }
.mega-menu a:hover { background: var(--soft-2); }
.mega-menu strong { display: block; font-size: .92rem; }
.mega-menu small { display: block; color: var(--muted); font-weight: 500; margin-top: 3px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: var(--paper);
  color: var(--brand);
  font-weight: 850;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(23,32,42,.1); }
.button.primary { background: var(--brand); color: white; }
.button.secondary { background: var(--brand-2); border-color: var(--brand-2); color: #2d1e03; }
.button.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.button.compact { min-height: 38px; padding: 8px 14px; font-size: .92rem; }
.button.full { width: 100%; }

.hero-slider { position: relative; min-height: 610px; overflow: hidden; background: #101f2d; }
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 560px);
  gap: 40px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 70px 24px 90px;
  color: white;
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}
.hero-slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.hero-slide h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: .95; letter-spacing: -.055em; margin: 0 0 18px; max-width: 800px; }
.hero-slide p { max-width: 680px; color: rgba(255,255,255,.82); font-size: 1.12rem; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-2) !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-visual {
  min-height: 380px;
  border-radius: 34px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, #41657e, #0f2638);
}
.hero-visual::before,
.product-image::before,
.category-card::before,
.service-image::before,
.product-media::before,
.promo-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0)), radial-gradient(circle at 70% 30%, rgba(242,181,68,.35), transparent 34%);
}
.hero-visual::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 150px;
  right: 45px;
  bottom: 70px;
  border-radius: 28px 28px 16px 16px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.hero-visual span {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 2;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--brand);
  font-weight: 900;
}
.hero-parts { background: linear-gradient(135deg, #a5622d, #273f5c); }
.hero-service { background: linear-gradient(135deg, #0f6b5f, #122238); }
.slider-controls {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.slider-controls button {
  width: 38px;
  height: 8px;
  overflow: hidden;
  text-indent: -100px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
}
.slider-controls button.active { background: var(--brand-2); }

.section-wrap { max-width: 1320px; margin: 0 auto; padding: 72px 24px; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 24px; }
.section-heading h2, .promo-band h2, .about-strip h2, .page-hero h1, .service-detail-hero h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.04em; }
.section-heading a { font-weight: 900; color: var(--brand); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card {
  min-height: 190px;
  padding: 22px;
  border-radius: var(--radius);
  background: #20394f;
  color: white;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.category-card strong { position: relative; z-index: 2; font-size: 1.15rem; line-height: 1.1; }
.category-card small { position: relative; z-index: 2; color: rgba(255,255,255,.76); margin-top: 8px; }
.cat-awning, .prod-awning, .svc-awning { background: linear-gradient(135deg, #8a4c29, #223f5e); }
.cat-axle, .prod-brake { background: linear-gradient(135deg, #374151, #111827); }
.cat-hardware, .prod-ramp { background: linear-gradient(135deg, #315f80, #213547); }
.cat-electrical, .prod-light { background: linear-gradient(135deg, #ad7d14, #27364a); }
.cat-gas, .prod-gas { background: linear-gradient(135deg, #1d6d52, #1f2937); }
.cat-vents, .prod-hatch { background: linear-gradient(135deg, #5c6f7f, #1a2d3f); }
.cat-hws { background: linear-gradient(135deg, #a43d3d, #243b53); }
.cat-plumbing, .prod-pump, .prod-filler { background: linear-gradient(135deg, #0f6b8f, #20374f); }
.cat-toilet, .prod-seal { background: linear-gradient(135deg, #4b6580, #1f2937); }
.cat-towing, .prod-mirror { background: linear-gradient(135deg, #2d3748, #0f172a); }
.cat-audio, .prod-tv { background: linear-gradient(135deg, #6d4eb2, #20314a); }
.cat-secondhand, .prod-knob { background: linear-gradient(135deg, #85613c, #333f4f); }
.svc-service, .hero-workshop { background: linear-gradient(135deg, #133a5e, #0f6b5f); }
.svc-repair { background: linear-gradient(135deg, #7c2d12, #172554); }
.svc-insurance { background: linear-gradient(135deg, #1e3a8a, #0f172a); }
.svc-reno { background: linear-gradient(135deg, #854d0e, #134e4a); }

.promo-band {
  max-width: 1320px;
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 32px;
  padding: 24px;
  border-radius: 32px;
  background: var(--soft);
  align-items: center;
}
.promo-image { min-height: 360px; border-radius: 26px; position: relative; overflow: hidden; }
.promo-band p { color: var(--muted); font-size: 1.05rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  box-shadow: 0 8px 30px rgba(23,32,42,.06);
  display: flex;
  flex-direction: column;
}
.product-image { min-height: 210px; position: relative; display: block; overflow: hidden; }
.stock-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--brand);
  font-size: .78rem;
  font-weight: 900;
}
.product-info { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-title { font-weight: 900; font-size: 1rem; line-height: 1.2; }
.product-info p, .product-info small { color: var(--muted); margin: 0; }
.price-row { display: flex; gap: 9px; align-items: baseline; margin-top: auto; }
.price-row strong { font-size: 1.1rem; }
.price-row span { color: var(--muted); text-decoration: line-through; }
.price-row.large strong { font-size: 2rem; }

.about-strip {
  max-width: 1320px;
  margin: 10px auto 72px;
  padding: 44px;
  border-radius: 32px;
  background: var(--brand);
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.about-strip p { color: rgba(255,255,255,.78); font-size: 1.05rem; }

.page-layout { max-width: 1320px; margin: 0 auto; padding: 36px 24px 72px; display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
.filter-sidebar {
  align-self: start;
  position: sticky;
  top: 138px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--soft);
}
.filter-sidebar h2 { margin: 0 0 14px; font-size: 1rem; }
.filter-link { display: block; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 800; }
.filter-link.active, .filter-link:hover { background: white; color: var(--brand); }
.catalog-area .product-grid { grid-template-columns: repeat(3, 1fr); }
.page-hero {
  padding: 72px 24px;
  max-width: 1320px;
  margin: 0 auto;
}
.page-hero.small { padding-top: 46px; padding-bottom: 36px; }
.page-hero p { max-width: 780px; color: var(--muted); font-size: 1.08rem; }
.page-hero.service-hero {
  margin-top: 30px;
  border-radius: 34px;
  background: var(--soft);
}
.search-note { color: var(--muted); margin: 0 0 18px; }

.product-page { max-width: 1320px; margin: 0 auto; padding: 30px 24px 72px; }
.breadcrumb { color: var(--muted); margin-bottom: 20px; font-size: .92rem; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: start; }
.product-media { min-height: 560px; border-radius: 32px; position: relative; overflow: hidden; }
.product-copy { padding: 24px 0; }
.product-copy h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); letter-spacing: -.05em; line-height: .95; margin: 0 0 20px; }
.product-copy p { color: var(--muted); font-size: 1.07rem; }
.feature-list { padding: 0; margin: 22px 0; list-style: none; display: grid; gap: 10px; }
.feature-list li { padding-left: 26px; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-2); }
.quantity-row { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.quantity-row input { width: 90px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.muted { color: var(--muted); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; box-shadow: 0 8px 30px rgba(23,32,42,.06); }
.service-image { min-height: 190px; position: relative; }
.service-image.big { min-height: 440px; border-radius: 30px; }
.service-card > div:last-child { padding: 20px; }
.service-card h2 { margin: 0 0 10px; line-height: 1.05; }
.service-card p { color: var(--muted); }
.deposit-line { color: var(--ink) !important; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: steps; }
.steps li { counter-increment: steps; padding: 18px 18px 18px 62px; border: 1px solid var(--line); border-radius: 16px; position: relative; }
.steps li::before { content: counter(steps); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: white; font-weight: 900; }
.steps strong, .steps span { display: block; }
.steps span { color: var(--muted); }
.service-detail-hero { max-width: 1320px; margin: 30px auto 0; padding: 24px; display: grid; grid-template-columns: 1fr .85fr; gap: 32px; align-items: center; }
.included-card, .form-card { border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 22px; box-shadow: 0 8px 30px rgba(23,32,42,.05); }

.booking-page, .checkout-page, .thank-you-page, .admin-page { max-width: 1320px; margin: 0 auto; padding: 0 24px 72px; }
.booking-form { display: grid; gap: 20px; }
.form-card h2, .form-card h3 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/*.form-grid.two { grid-template-columns: repeat(2, 1fr); }*/
label { display: grid; gap: 7px; font-weight: 800; color: var(--ink); }
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(19,58,94,.08); }
textarea { resize: vertical; }
.booking-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  background: var(--soft);
  border-radius: var(--radius);
}
.booking-actions p { margin: 4px 0 0; }

.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.checkout-form { display: grid; gap: 20px; }
.order-summary { position: sticky; top: 138px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--soft); display: grid; gap: 16px; }
.summary-lines { display: grid; gap: 12px; }
.summary-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px; border-radius: 12px; background: white; }
.summary-line strong, .summary-line small { display: block; }
.summary-line small { color: var(--muted); }
.summary-totals { display: grid; gap: 10px; }
.summary-totals div { display: flex; justify-content: space-between; }
.summary-totals .grand-total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 1.2rem; }
.paypal-container { min-height: 120px; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 12px 0; }
.or-divider::before, .or-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.hosted-fields-form { display: grid; gap: 14px; }
.hosted-field-block { display: grid; gap: 8px; width: 100% }
.card-field {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: white;
}
.billing-block { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.result-message { margin-top: 14px; border-radius: 12px; padding: 12px 14px; background: var(--soft); color: var(--muted); }
.result-message:empty { display: none; }
.result-message.success { background: #ecfdf3; color: var(--success); }
.result-message.danger { background: #fff1f2; color: var(--danger); }
.alert { margin-top: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.alert.info { background: #eff6ff; color: #1e3a8a; }
.alert.danger { background: #fff1f2; color: var(--danger); }
.page-hero.success { background: #ecfdf3; border-radius: 30px; margin-top: 30px; }
.summary-item-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.summary-item-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }

.cart-drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; background: rgba(15,23,42,0); transition: background .2s ease; }
.cart-drawer.open { pointer-events: auto; background: rgba(15,23,42,.38); }
.cart-panel { position: absolute; right: 0; top: 0; width: min(430px, 100vw); height: 100%; background: white; padding: 24px; box-shadow: var(--shadow); transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column; gap: 18px; }
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-heading { display: flex; align-items: center; justify-content: space-between; }
.cart-heading h2 { margin: 0; }
.cart-heading button { border: 0; background: var(--soft); width: 40px; height: 40px; border-radius: 50%; font-size: 1.4rem; }
.cart-lines { flex: 1; overflow: auto; display: grid; gap: 12px; align-content: start; }
.empty-state { color: var(--muted); display: grid; place-items: center; text-align: center; min-height: 160px; }
.cart-line { display: flex; gap: 12px; justify-content: space-between; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.cart-line small { display: block; color: var(--muted); }
.cart-line button { border: 0; background: transparent; color: var(--danger); font-weight: 800; }
.cart-summary { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 12px; }
.cart-summary div { display: flex; justify-content: space-between; }
.cart-summary small { color: var(--muted); }

.site-footer { background: #101f2d; color: white; margin-top: 40px; padding: 56px 24px 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.site-footer h3 { margin-top: 0; }
.site-footer a, .site-footer p, .site-footer span { color: rgba(255,255,255,.76); }
.site-footer section { display: grid; align-content: start; gap: 8px; }
.newsletter { display: flex; gap: 8px; }
.newsletter input { min-width: 0; }
.newsletter button { border: 0; border-radius: 12px; background: var(--brand-2); padding: 10px 14px; font-weight: 900; }
.payment-list { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-list span { border: 1px solid rgba(255,255,255,.18); padding: 7px 10px; border-radius: 999px; }
.footer-bottom { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.62); }

.admin-table-section { margin: 24px 0; }
.table-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 16px; }
.admin-table { border-collapse: collapse; width: max-content; min-width: 100%; font-size: .82rem; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; max-width: 280px; }
.admin-table th { background: var(--soft); text-align: left; position: sticky; top: 0; }

@media (max-width: 1100px) {
  .utility-bar { grid-template-columns: 1fr; }
  .brand-mark { min-width: 0; }
  .main-nav { overflow-x: auto; }
  .hero-slide { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; }
  .category-grid, .product-grid, .catalog-area .product-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .page-layout, .product-detail, .service-detail-hero, .two-column, .promo-band, .about-strip, .checkout-grid { grid-template-columns: 1fr; }
  .filter-sidebar, .order-summary { position: static; }
  .site-footer { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .search-bar { grid-template-columns: 1fr; border-radius: 18px; }
  .search-bar select { border-right: 0; border-bottom: 1px solid var(--line); }
  .header-actions { justify-content: space-between; }
  .hero-slider { min-height: 720px; }
  .hero-slide h1 { font-size: 2.65rem; }
  .category-grid, .product-grid, .catalog-area .product-grid, .service-grid, .form-grid, .form-grid.two { grid-template-columns: 1fr; }
  .booking-actions { flex-direction: column; align-items: stretch; }
  .site-footer { grid-template-columns: 1fr; }
  .section-wrap, .page-hero, .booking-page, .checkout-page, .thank-you-page, .admin-page { padding-left: 16px; padding-right: 16px; }
}
