:root {
  --navy:   #0d3349;
  --ocean:  #0a7ea4;
  --teal:   #00bcd4;
  --sky:    #e0f7fc;
  --sand:   #fdfaf5;
  --coral:  #e8622a;
  --white:  #ffffff;
  --gray:   #555;
  --light:  #f0fbff;
  --border: #c8e8f2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--sand);
  color: #1a1a1a;
}

/* ── TOP BAR ── */
.topbar {
  background: var(--ocean);
  color: #e0f4fb;
  font-size: 0.82rem;
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.topbar a { color: #fff; text-decoration: none; }

/* ── HEADER ── */
header {
  background: var(--white);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 3px solid var(--teal);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.logo-area { display: flex; align-items: center; gap: 16px; }
.logo-icon {
  width: 64px; height: 64px;
  background: var(--sky);
  border-radius: 50%;
  border: 2px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.logo-text h1 { color: var(--navy); font-size: 1.55rem; letter-spacing: 0.5px; line-height: 1.1; }
.logo-text p  { color: var(--ocean); font-size: 0.85rem; font-style: italic; margin-top: 2px; }
.header-logos { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.header-logos img { height: 38px; object-fit: contain; opacity: 0.85; }
.header-logos img:hover { opacity: 1; }

/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
nav a {
  color: var(--navy);
  text-decoration: none;
  padding: 13px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  display: block;
}
nav a:hover, nav a.active { color: var(--ocean); border-bottom-color: var(--teal); }

/* ── HERO SLIDESHOW ── */
.hero { position: relative; height: 317px; overflow: hidden; background: var(--sky); }
.hero-slides { display: flex; height: 100%; transition: transform 0.7s ease; }
.hero-slide {
  min-width: 100%; height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-caption {
  position: absolute; bottom: 48px; left: 0; right: 0;
  text-align: center; z-index: 2; color: var(--white);
}
.hero-caption h2 { font-size: 2.2rem; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.hero-caption p  { font-size: 1.05rem; margin-top: 8px; color: #d0f0fb; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.hero-caption .btn {
  display: inline-block; margin-top: 16px;
  background: var(--coral); color: var(--white);
  padding: 11px 28px; border-radius: 4px;
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  transition: background 0.2s;
}
.hero-caption .btn:hover { background: #c04e20; }
.hero-dots {
  position: absolute; bottom: 14px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 3;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.45); cursor: pointer;
  border: none; transition: background 0.2s;
}
.hero-dot.active { background: var(--teal); }

/* ── SECTIONS ── */
section { padding: 56px 32px; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 {
  font-size: 1.75rem; color: var(--navy);
  position: relative; display: inline-block; padding-bottom: 10px;
}
.section-title h2::after {
  content: ''; position: absolute; bottom: 0; left: 25%; right: 25%;
  height: 3px; background: var(--teal); border-radius: 2px;
}
.section-title p { color: var(--gray); margin-top: 10px; }

/* ── SERVICES ── */
.services { background: var(--sky); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; max-width: 1100px; margin: 0 auto;
}
.service-card {
  background: var(--white); border-radius: 8px;
  padding: 28px 22px; text-align: center;
  border-top: 4px solid var(--teal);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.service-card .icon { font-size: 2.2rem; margin-bottom: 12px; }
.service-card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { color: var(--gray); font-size: 0.88rem; line-height: 1.55; }

/* ── PARTS ── */
.parts { background: var(--white); }
.parts-header-row {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto 28px; flex-wrap: wrap; gap: 12px;
}
.tab-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  padding: 8px 18px; border-radius: 20px;
  border: 2px solid var(--ocean); background: transparent;
  color: var(--ocean); font-weight: 600; font-size: 0.85rem;
  cursor: pointer; transition: all 0.2s;
}
.tab.active, .tab:hover { background: var(--ocean); color: var(--white); }
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px; max-width: 1100px; margin: 0 auto;
}
.part-card {
  background: var(--white); border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s;
}
.part-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.13); }
.part-img {
  width: 100%; height: 180px; overflow: hidden;
  background: var(--sky);
  display: flex; align-items: center; justify-content: center;
}
.part-img img { width: 100%; height: 100%; object-fit: cover; }
.part-img .no-img { font-size: 3rem; color: var(--ocean); }
.part-body { padding: 14px; }
.part-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--teal); letter-spacing: 0.5px; margin-bottom: 4px; }
.part-body h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 6px; }
.part-price { font-size: 1.15rem; font-weight: 700; color: var(--coral); margin-bottom: 10px; }
.btn-contact {
  display: block; text-align: center;
  background: var(--ocean); color: var(--white);
  padding: 9px; border-radius: 4px;
  text-decoration: none; font-size: 0.85rem; font-weight: 600;
  transition: background 0.2s;
}
.btn-contact:hover { background: var(--navy); }
.no-parts { text-align: center; color: var(--gray); padding: 40px; grid-column: 1/-1; }

/* ── PAYMENT BANNER ── */
.payment-banner {
  background: var(--light);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  padding: 20px 32px;
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.payment-banner .pay-label { font-size: 0.88rem; color: var(--ocean); font-weight: 700; }
.pay-option {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 16px;
  font-size: 0.88rem; color: #333;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.pay-option .ico { font-size: 1.3rem; }

/* ── FAQ ── */
.faq { background: var(--sky); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-q {
  font-weight: 700; color: var(--navy); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.95rem; gap: 12px;
}
.faq-q .arrow { color: var(--teal); font-size: 1.1rem; transition: transform 0.2s; }
.faq-q.open .arrow { transform: rotate(90deg); }
.faq-a {
  color: var(--gray); font-size: 0.9rem; line-height: 1.65;
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
}
.faq-a.open { max-height: 200px; padding-top: 10px; }

/* ── CONTACT ── */
.contact { background: var(--white); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; max-width: 960px; margin: 0 auto;
}
.contact-info h3 { color: var(--navy); margin-bottom: 16px; font-size: 1.1rem; }
.contact-info p { color: var(--gray); font-size: 0.9rem; line-height: 1.9; }
.contact-info a { color: var(--ocean); }
.stripe-qr { width: 140px; border-radius: 8px; border: 4px solid var(--sky); box-shadow: 0 2px 10px rgba(0,0,0,0.12); margin-top: 16px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 10px 12px; margin-bottom: 12px;
  border: 1px solid var(--border); border-radius: 4px;
  font-size: 0.9rem; font-family: inherit; background: var(--white);
  color: #1a1a1a;
}
.contact-form textarea { height: 110px; resize: vertical; }
.btn-submit {
  background: var(--coral); color: var(--white); border: none;
  padding: 12px 28px; border-radius: 4px; font-size: 0.95rem;
  font-weight: 700; cursor: pointer; width: 100%;
  transition: background 0.2s;
}
.btn-submit:hover { background: #c04e20; }
.form-msg { padding: 10px 14px; border-radius: 4px; margin-bottom: 14px; font-size: 0.9rem; }
.form-msg.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-msg.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── MAP STRIP ── */
.map-strip {
  background: var(--ocean); padding: 10px 32px;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  flex-wrap: wrap; color: #e0f4fb; font-size: 0.85rem;
}
.map-strip a { color: #fff; }

/* ── FOOTER ── */
footer {
  background: var(--navy); color: #8ab4c8;
  text-align: center; padding: 20px 32px;
  font-size: 0.8rem; line-height: 1.8;
}
footer a { color: var(--teal); text-decoration: none; }

/* ── BACK TO TOP ── */
.back-top {
  position: fixed; bottom: 98px; right: 30px;
  width: 42px; height: 42px;
  background: var(--ocean); color: var(--white);
  border: none; border-radius: 50%; font-size: 1.2rem;
  cursor: pointer; box-shadow: 0 3px 12px rgba(0,0,0,0.2);
  display: none; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s; z-index: 98;
}
.back-top:hover { background: var(--navy); transform: translateY(-2px); }
.back-top.visible { display: flex; }

/* ── CHATBOT ── */
.chat-bubble {
  position: fixed; bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: var(--coral); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  cursor: pointer; z-index: 100; transition: transform 0.2s;
}
.chat-bubble:hover { transform: scale(1.1); }
.chat-window {
  position: fixed; bottom: 100px; right: 28px; width: 320px;
  background: var(--white); border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  overflow: hidden; display: none; flex-direction: column; z-index: 99;
}
.chat-window.open { display: flex; }
.chat-header {
  background: var(--ocean); color: var(--white);
  padding: 14px 16px; display: flex; align-items: center; gap: 10px;
}
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.chat-header-text h4 { font-size: 0.9rem; }
.chat-header-text p  { font-size: 0.75rem; color: #cceeff; }
.chat-messages {
  padding: 14px; height: 220px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  background: #f0f8fb;
}
.msg { max-width: 85%; padding: 9px 13px; border-radius: 12px; font-size: 0.84rem; line-height: 1.5; }
.msg.bot  { background: var(--white); color: #222; align-self: flex-start; border-bottom-left-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.msg.user { background: var(--ocean); color: var(--white); align-self: flex-end; border-bottom-right-radius: 3px; }
.chat-input-row { display: flex; border-top: 1px solid var(--border); background: var(--white); }
.chat-input-row input {
  flex: 1; border: none; padding: 12px;
  font-size: 0.85rem; outline: none; font-family: inherit;
}
.chat-send { background: var(--teal); border: none; color: var(--white); padding: 0 16px; cursor: pointer; font-size: 1.1rem; }
.chat-typing { font-size: 0.78rem; color: var(--gray); font-style: italic; }

/* ── ADMIN ── */
.admin-wrap { max-width: 680px; margin: 60px auto; padding: 0 24px; }
.admin-card {
  background: var(--white); border-radius: 10px;
  padding: 36px; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-top: 4px solid var(--teal);
}
.admin-card h2 { color: var(--navy); margin-bottom: 24px; font-size: 1.3rem; }
.admin-card label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 5px; margin-top: 14px; }
.admin-card input,
.admin-card select,
.admin-card textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 4px; font-size: 0.9rem; font-family: inherit; color: #1a1a1a;
}
.admin-card textarea { height: 90px; resize: vertical; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.cat-btn {
  padding: 18px 10px; border: 2px solid var(--border);
  border-radius: 8px; background: var(--white);
  color: var(--navy); font-weight: 700; font-size: 0.9rem;
  cursor: pointer; text-align: center; transition: all 0.2s;
  text-decoration: none; display: block;
}
.cat-btn:hover, .cat-btn.active { background: var(--ocean); color: var(--white); border-color: var(--ocean); }
.cat-icon { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.btn-primary {
  background: var(--ocean); color: var(--white); border: none;
  padding: 12px 28px; border-radius: 4px; font-size: 0.95rem;
  font-weight: 700; cursor: pointer; margin-top: 20px;
  transition: background 0.2s; width: 100%;
}
.btn-primary:hover { background: var(--navy); }
.btn-danger {
  background: #dc3545; color: var(--white); border: none;
  padding: 6px 12px; border-radius: 4px; font-size: 0.8rem;
  cursor: pointer; transition: background 0.2s;
}
.btn-danger:hover { background: #a71d2a; }
.listing-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.listing-thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.listing-info { flex: 1; }
.listing-info h4 { color: var(--navy); font-size: 0.9rem; margin-bottom: 4px; }
.listing-info .price { color: var(--coral); font-weight: 700; font-size: 0.95rem; }
.listing-info .cat-tag { font-size: 0.72rem; color: var(--teal); font-weight: 700; text-transform: uppercase; }
.admin-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.admin-nav a { color: var(--ocean); text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.admin-nav a:hover { color: var(--navy); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  header { padding: 12px 16px; }
  section { padding: 40px 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  nav a { padding: 10px 14px; font-size: 0.82rem; }
  .hero { height: 280px; }
  .hero-caption h2 { font-size: 1.4rem; }
}
/* ── DUAL IMAGE ── */
.part-img-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 180px;
}
.part-img-duo img {
  width: 100%; height: 100%; object-fit: cover;
}
.part-img-duo img:first-child {
  border-right: 2px solid var(--white);
}