:root {
  --kk-yellow: #f59e0b;
  --kk-yellow-light: #fbbf24;
  --kk-yellow-dark: #d97706;
  --kk-dark: #0f141d;
  --kk-dark2: #181f2c;
  --kk-dark3: #222b3c;
  --kk-border: rgba(255, 255, 255, 0.1);
}

body {
  font-family: 'Roboto', sans-serif;
  color: #2b2f38;
  background-color: #f8fafc;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .brand-text {
  font-family: 'Montserrat', sans-serif;
}

/* Topbar */
.topbar {
  background: var(--kk-dark);
  border-bottom: 2px solid var(--kk-yellow);
}

/* Navbar */
.navbar {
  background: #ffffff;
}
.navbar .nav-link {
  font-weight: 600;
  color: #334155;
  transition: color .2s;
}
.navbar .nav-link:hover, .navbar .nav-link.active {
  color: var(--kk-yellow-dark);
}

/* Hero Slider */
.hero {
  position: relative;
  height: 82vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--kk-dark);
}
.hero-slides, .hero-slide {
  position: absolute;
  inset: 0;
}
.hero-slide {
  opacity: 0;
  transition: opacity .75s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide.active .hero-content {
  animation: heroIn .75s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

.badge-line {
  display: inline-block;
  letter-spacing: 3px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--kk-yellow);
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.08);
  padding: .45rem 1.1rem;
  border-radius: 50rem;
  margin-bottom: 1.2rem;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  transition: .25s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-nav:hover {
  background: var(--kk-yellow);
  color: #000;
  border-color: var(--kk-yellow);
}
.hero-nav.prev { left: 20px; }
.hero-nav.next { right: 20px; }

.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hero-dots button {
  width: 32px;
  height: 5px;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  transition: .3s;
}
.hero-dots button.active {
  background: var(--kk-yellow);
  width: 48px;
}

/* Section Kicker */
.section-kicker {
  color: var(--kk-yellow-dark);
  font-weight: 800;
  letter-spacing: 3px;
  font-size: .8rem;
  display: inline-block;
  margin-bottom: .5rem;
}

/* ==========================================================================
   DYNAMIC CATEGORY CARDS GRID VIEW WITH HORIZONTAL SLIDING PREVIEWS
   ========================================================================== */
.category-grid-card {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 20, 29, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.category-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1.25rem 2.5rem rgba(15, 20, 29, 0.12);
  border-color: var(--kk-yellow);
}

.cat-card-header {
  padding: 1rem 1.25rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Sliding Image Container */
.cat-card-slider-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 240px;
  background: radial-gradient(circle at center, #ffffff 60%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}

.cat-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

.cat-slide-item {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.cat-slide-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.07));
  transition: transform 0.3s ease;
}
.category-grid-card:hover .cat-slide-item img {
  transform: scale(1.06);
}

.card-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.c-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(15, 20, 29, 0.2);
  transition: all 0.25s ease;
}
.c-dot.active {
  background: var(--kk-yellow-dark);
  width: 16px;
  border-radius: 3px;
}

.cat-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cat-card-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.cat-card-specs {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.cat-card-vehicles {
  margin-top: auto;
}

.v-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
  border: 1px solid #e2e8f0;
}

/* Modal Prod Img Box */
.modal-prod-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 220px;
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-prod-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   PRODUCTS PAGE (products.html) STYLING
   ========================================================================== */
.product-card-hd {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 20, 29, 0.04);
  transition: all 0.25s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card-hd:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.85rem 2rem rgba(15, 20, 29, 0.1);
  border-color: var(--kk-yellow);
}
.product-card-hd .prod-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}
.product-card-hd .prod-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.product-card-hd:hover .prod-img-box img {
  transform: scale(1.05);
}

/* Category Filter Pills */
.filter-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 0.5rem 1.1rem;
  border-radius: 50rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-pill:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}
.filter-pill.active {
  background: var(--kk-dark);
  color: var(--kk-yellow);
  border-color: var(--kk-dark);
  box-shadow: 0 4px 12px rgba(15, 20, 29, 0.2);
}

/* Vehicles band */
.vehicles-band {
  background: linear-gradient(rgba(15, 19, 28, 0.94), rgba(15, 19, 28, 0.94));
}
.vcard {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  transition: transform 0.2s;
}
.vcard:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

/* App band */
.app-band {
  background: radial-gradient(1200px 500px at 85% 20%, rgba(245, 158, 11, 0.16), transparent 60%), var(--kk-dark);
}
.app-mockup {
  max-height: 420px;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

/* Footer */
footer {
  background: var(--kk-dark2);
}
footer a:hover {
  color: var(--kk-yellow) !important;
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(rgba(10, 14, 20, 0.88), rgba(10, 14, 20, 0.88)), url('../img/hero-2.jpg') center/cover;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1050;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s;
}
.wa-float:hover {
  transform: scale(1.1);
  color: #fff;
}

.catalogue-preview {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
}

@media (max-width: 768px) {
  .hero { height: auto; min-height: 480px; padding: 4rem 0; }
  .display-4 { font-size: 2.2rem; }
}
