/* ============================================================
   SHACMAN Trucks – Global Stylesheet
   ============================================================ */

:root {
  --main: #005DA2;
  --dark: #0b0d10;
  --soft: #f5f6f8;
}

body {
  font-family: Arial, sans-serif;
  background: #fff;
  color: #222;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: rgba(10, 12, 16, .95);
  backdrop-filter: blur(10px);
}

.navbar-brand img {
  filter: brightness(1.2);
}

.nav-link {
  color: #fff !important;
  font-weight: 500;
  margin-left: 15px;
}

.nav-link:hover {
  color: var(--main) !important;
}

/* Navbar search */
.truck-search {
  position: relative;
  width: 200px;
  transition: width .25s ease;
}

.truck-search:focus-within {
  width: 280px;
}

.truck-search input {
  width: 100%;
  height: 38px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  padding: 0 16px 0 46px;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: background .2s, border-color .2s;
}

.truck-search input::placeholder {
  color: rgba(255,255,255,.5);
}

.truck-search i,
.search-submit-btn {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.65);
}

.search-submit-btn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
}

.truck-search input:focus {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.45);
  box-shadow: none;
}

@media (max-width: 991px) {
  .truck-search,
  .truck-search:focus-within {
    width: 100%;
    margin: 10px 0;
  }
  .truck-search input {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.25);
    color: #fff;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-main {
  background: var(--main);
  color: #fff;
  border: 0;
  padding: 14px 28px;
  border-radius: 0;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-main:hover {
  background: #00477D;
  color: #fff;
}

.btn-outline-light {
  border-radius: 0;
  padding: 14px 28px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  font-weight: 900;
  text-transform: uppercase;
}

.section-title span {
  color: var(--main);
}

.text-primary-blue {
  color: var(--main) !important;
}

/* ============================================================
   HERO – VIDEO (homepage)
   ============================================================ */
.hero-video {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.45));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-video h1 {
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.hero-video h1 span {
  color: var(--main);
}

.hero-video p {
  max-width: 620px;
  font-size: 20px;
  color: #ddd;
}

/* Video play/pause button */
.video-btn {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 3;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.video-btn:hover {
  background: var(--main);
}

/* ============================================================
   HERO – STATIC (trucks / detail pages)
   ============================================================ */
.products-hero,
.detail-hero {
  background:
    linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.45)),
    url('/assets/images/productheaderjpg.jpg?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: #fff;
  padding: 150px 0 90px;
}

.products-hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 900;
  text-transform: uppercase;
}

.products-hero h1 span,
.detail-hero h1 span {
  color: var(--main);
}

.detail-hero {
  padding: 150px 0 80px;
}

.detail-hero h1 {
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 900;
  text-transform: uppercase;
}

.badge-series {
  background: var(--main);
  color: #fff;
  padding: 8px 14px;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 15px;
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.category-card {
  border: 0;
  overflow: hidden;
  transition: .35s ease;
  height: 100%;
  border-radius: 10px;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(0,0,0,.15);
}

.category-card img {
  height: 280px;
  width: 100%;
  object-fit: cover;
}

.category-card .card-body {
  background: var(--dark);
  color: #fff;
}

.category-card h5 {
  font-weight: 700;
}

.category-card p {
  color: #ccc;
}

/* ============================================================
   TRUCK CARDS (homepage slider)
   ============================================================ */
.truck-card {
  border: 0;
  overflow: hidden;
  transition: .35s ease;
  height: 100%;
  background: #fff;
  box-shadow: 0 15px 40px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
}

.truck-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.truck-card img {
  height: 260px;
  width: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .5s ease;
}

.truck-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.truck-card .badge {
  background: var(--main);
  border-radius: 0;
}

/* ============================================================
   TRUCK SLIDER (homepage)
   ============================================================ */
.truck-slider-wrapper {
  overflow: hidden;
}

.truck-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.truck-slider::-webkit-scrollbar {
  display: none;
}

.truck-slide {
  flex: 0 0 calc(25% - 18px);
}

.truck-slider-btn {
  width: 46px;
  height: 46px;
  border: 0;
  background: var(--dark);
  color: #fff;
  font-size: 20px;
  transition: .3s;
}

.truck-slider-btn:hover {
  background: var(--main);
}

@media (max-width: 991px) {
  .truck-slide { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 575px) {
  .truck-slide { flex: 0 0 100%; }
}

/* ============================================================
   SERVICES SECTION (split layout)
   ============================================================ */
.svc-split-section {
  background: #dde3ee;
  padding: 90px 0;
}

.svc-heading {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 900;
  color: #111;
  line-height: 1.15;
  margin-bottom: 14px;
}

.svc-subtitle {
  color: #555;
  font-size: 16px;
  margin-bottom: 10px;
}

.svc-card {
  background: #fff;
  border-radius: 12px;
  border-left: 4px solid var(--main);
  padding: 26px 22px;
  height: 100%;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  transition: box-shadow .25s, transform .25s;
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,93,162,.13);
}

.svc-card h6 {
  color: var(--main);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.svc-card p {
  color: #555;
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.svc-side-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.14);
}

/* ============================================================
   WHY CHOOSE US SECTION
   ============================================================ */
.why-section {
  background: #dde3ee;
  padding: 0 0 90px;
}

.why-heading {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  color: #111;
  letter-spacing: 1px;
}

.why-subhead {
  color: #666;
  font-size: 17px;
  margin-top: 10px;
}

.why-box {
  padding: 20px 0;
}

.why-item {
  padding: 40px 30px;
}

.why-icon {
  font-size: 56px;
  color: var(--main);
  margin-bottom: 28px;
  display: block;
}

.why-title {
  font-weight: 800;
  font-size: 19px;
  color: #111;
  margin-bottom: 14px;
}

.why-desc {
  color: #666;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}

@media (max-width: 991px) {
  .why-item-border { border-right: none; border-bottom: 1px solid #c5d2e4; }
  .why-item { padding: 35px 24px; }
  .svc-side-img { height: 260px; }
}

/* Legacy dark-section kept for other uses */
.dark-section {
  background: var(--dark);
  color: #fff;
}

.service-card {
  background: #15191f;
  padding: 35px;
  color: #fff;
  border-left: 4px solid var(--main);
  height: 100%;
}

.service-card i {
  font-size: 42px;
  color: var(--main);
  margin-bottom: 20px;
  display: block;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta {
  background:
    linear-gradient(rgba(0,93,162,.9), rgba(0,93,162,.9)),
    url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: #fff;
}

/* ============================================================
   CONTACT LINKS
   ============================================================ */
.contact-link {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: .3s;
}

.contact-link:hover {
  color: var(--main);
  text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #050608;
  color: #aaa;
}

footer h5 {
  color: #fff;
}

.footer-link {
  display: block;
  color: #aaa;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-link:hover {
  color: var(--main);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: all .8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   TRUCKS LISTING PAGE – Filter Panel
   ============================================================ */
.filter-box {
  background: #fff;
  border: 1px solid #e1e8f0;
  padding: 26px;
  box-shadow: 0 12px 35px rgba(0,0,0,.08);
  border-radius: 18px;
  max-height: 760px;
  overflow-y: auto;
}

.filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.filter-head h5 {
  font-size: 26px;
  font-weight: 900;
  margin: 0;
  color: #111;
}

.reset-link {
  border: 0;
  background: none;
  color: var(--main);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.filter-title {
  color: #8995a8;
  font-weight: 900;
  margin: 28px 0 16px;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .8px;
}

.filter-toggle {
  width: 100%;
  border: 0;
  background: #f7f8fa;
  padding: 14px 16px;
  font-weight: 900;
  color: #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}

@media (min-width: 992px) {
  .filter-toggle {
    background: transparent;
    padding: 0;
    color: #8995a8;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin: 28px 0 16px;
    cursor: default;
  }
  .filter-toggle i { display: none; }
  .filter-box { max-height: none; }
}

.check-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 700;
  color: #263244;
}

.check-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--main);
}

.series-grid,
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.series-option input { display: none; }

.series-option span {
  display: block;
  text-align: center;
  border: 1px solid #dfe6ef;
  border-radius: 10px;
  padding: 13px 8px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  background: #f9fafc;
  transition: .25s;
}

.series-option span:hover,
.series-option input:checked + span {
  border-color: var(--main);
  color: var(--main);
  background: #fff;
  box-shadow: 0 0 0 1px var(--main);
}

.filter-select {
  height: 48px;
  border-radius: 10px;
  border: 1px solid #dfe6ef;
  font-size: 15px;
  padding: 0 14px;
  font-weight: 600;
  width: 100%;
}

.power-range {
  width: 100%;
  accent-color: var(--main);
}

.power-labels {
  display: flex;
  justify-content: space-between;
  color: #66748a;
  font-size: 14px;
  font-weight: 800;
  margin-top: 12px;
}

/* Mobile search + filter toggle */
.mobile-top-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-box {
  flex: 1;
  position: relative;
}

.search-box input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 0 45px 0 40px;
  font-size: 15px;
  background: #f5f6f8;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

#clearSearch {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: #eee;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 0;
  background: var(--main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(0,93,162,.25);
}

/* Truck cards on listing page */
.col-lg-9 .row.g-4 > [class*="col-"] {
  display: flex;
}

.col-lg-9 .truck-card {
  width: 100%;
  min-height: 100%;
}

.truck-body {
  padding: 28px 22px;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 335px;
}
.truck-title { text-align: center; font-weight: 900; font-size: 25px; margin: 0; }
.truck-type  {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #666;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.specs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 25px;
  min-height: 74px;
}

.spec { text-align: center; color: #777; font-size: 14px; }
.spec i { color: var(--main); margin-right: 6px; }
.spec strong { display: block; color: #222; font-size: 18px; margin-top: 5px; }

.card-btn {
  background: var(--main);
  color: #fff;
  border: 0;
  padding: 13px;
  margin-top: auto;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: block;
}

.card-btn:hover {
  background: #00477D;
  color: #fff;
}

.no-results {
  text-align: center;
  padding: 50px;
  color: #777;
  font-weight: 800;
}

/* ── Trucks pagination ───────────────────────────────────── */
.pagination .page-link {
  color: var(--main);
  border-color: #dee2e6;
  min-width: 38px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  transition: background .2s, color .2s;
}
.pagination .page-link:hover {
  background: var(--main);
  border-color: var(--main);
  color: #fff;
}
.pagination .page-item.active .page-link {
  background: var(--main);
  border-color: var(--main);
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  color: #adb5bd;
}

/* ============================================================
   AVAILABILITY BADGE (Available / Pre-Order)
   ============================================================ */
.avail-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 20px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.avail-stock {
  background: #d1f5e0;
  color: #1a7a3c;
}

.avail-preorder {
  background: #fff3cd;
  color: #8a6000;
}

.avail-outofstock {
  background: #fde8e8;
  color: #c0392b;
}

/* ============================================================
   TRUCK DETAIL PAGE
   ============================================================ */
.main-card {
  background: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.1);
  padding: 30px;
}

.gallery-main {
  position: relative;
  overflow: hidden;
  background: #000;
}

.gallery-main img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  transition: .4s ease;
}

.gallery-main:hover img {
  transform: scale(1.04);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(0,0,0,.6);
  color: #fff;
  z-index: 5;
  font-size: 18px;
}

.gallery-arrow:hover { background: var(--main); }
.gallery-prev { left: 15px; }
.gallery-next { right: 15px; }

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.thumb-row img {
  height: 90px;
  width: 100%;
  object-fit: cover;
  cursor: pointer;
  border: 3px solid transparent;
  transition: .25s;
}

.thumb-row img.active,
.thumb-row img:hover {
  border-color: var(--main);
}

/* Action box */
.action-box {
  background: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.1);
  padding: 25px;
}

.action-box h5 { font-weight: 900; }

.action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
  font-weight: 700;
  margin-top: 14px;
}

.action-item i { color: var(--main); }

.whatsapp-btn {
  background: #25D366;
  color: #fff;
  border: 0;
  padding: 14px;
  font-weight: 800;
  text-decoration: none;
  display: block;
  text-align: center;
  margin-top: 12px;
}

.whatsapp-btn:hover { background: #1cad54; color: #fff; }

.pdf-btn {
  background: #111;
  color: #fff;
  border: 0;
  padding: 14px;
  font-weight: 800;
  text-decoration: none;
  display: block;
  text-align: center;
  margin-top: 12px;
}

.pdf-btn:hover { background: var(--main); color: #fff; }

/* Spec grid */
.spec-box {
  background: #fff;
  padding: 35px;
  box-shadow: 0 18px 45px rgba(0,0,0,.08);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.spec-item {
  border: 1px solid #eee;
  padding: 22px;
  background: #fff;
}

.spec-item i { color: var(--main); font-size: 26px; }

.spec-item small {
  display: block;
  color: #777;
  margin-top: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

.spec-item strong { display: block; font-size: 17px; margin-top: 5px; }

/* Inquiry box */
.inquiry-box {
  background: #fff;
  padding: 35px;
  box-shadow: 0 18px 45px rgba(0,0,0,.08);
}

.inquiry-box .form-control,
.inquiry-box .form-select {
  border-radius: 0;
  min-height: 48px;
}

/* Related trucks */
.related-card {
  background: #fff;
  box-shadow: 0 15px 40px rgba(0,0,0,.1);
  overflow: hidden;
  transition: .35s ease;
}

.related-card:hover { transform: translateY(-8px); }

.related-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: .45s ease;
}

.related-card:hover img { transform: scale(1.05); }

.related-body { padding: 22px; }

.related-body span {
  background: var(--main);
  color: #fff;
  padding: 5px 10px;
  font-weight: 800;
  font-size: 13px;
}

.related-body h5 { margin-top: 15px; font-weight: 900; }
.related-body p  { color: #666; }

/* Sticky action box on desktop */
@media (min-width: 992px) {
  .action-box {
    position: sticky;
    top: 110px;
    height: auto;
  }
}

@media (max-width: 991px) {
  .gallery-main img { height: 330px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-box { max-height: none; margin-bottom: 30px; }
}

@media (max-width: 575px) {
  .thumb-row { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-video { min-height: 90vh; padding-top: 90px; }
}
