/* ============================================================
   BHAGWATI TOOLS — SEARCH & NAVIGATION OVERRIDES
   Industrial Luxury Theme
   Replaces: css/search-navigation.css
   Depends on: design-system.css, components-new.css
   ============================================================ */

/* ============================================================
   SECTION QUICK-NAV (in-page anchor jumps, brand pages)
   ============================================================ */

.ds-quick-nav {
  position:      sticky;
  top:           var(--ds-nav-height);
  z-index:       var(--ds-z-sticky);
  background:    var(--ds-color-carbon);
  border-bottom: 1px solid var(--ds-color-carbon-light);
  overflow-x:    auto;
  overflow-y:    hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ds-quick-nav::-webkit-scrollbar { display: none; }

.ds-quick-nav__inner {
  display:     flex;
  align-items: stretch;
  gap:         0;
  min-width:   max-content;
  padding:     0 var(--ds-space-6);
}

.ds-quick-nav__item {
  display:       flex;
  align-items:   center;
  height:        2.75rem;
  padding:       0 var(--ds-space-5);
  font-family:   var(--ds-font-primary);
  font-size:     var(--ds-text-body-sm);
  font-weight:   var(--ds-weight-medium);
  color:         var(--ds-color-steel);
  text-decoration:none;
  white-space:   nowrap;
  position:      relative;
  transition:    color var(--ds-transition-fast);
}

.ds-quick-nav__item::after {
  content:    '';
  position:   absolute;
  bottom:     0;
  left:       var(--ds-space-5);
  right:      var(--ds-space-5);
  height:     2px;
  background: var(--ds-color-red);
  transform:  scaleX(0);
  transition: transform var(--ds-transition-fast);
}

.ds-quick-nav__item:hover {
  color: var(--ds-color-steel-bright);
}

.ds-quick-nav__item:hover::after,
.ds-quick-nav__item.ds-quick-nav__item--active::after {
  transform: scaleX(1);
}

.ds-quick-nav__item.ds-quick-nav__item--active {
  color: var(--ds-color-steel-bright);
}

/* Mobile: compact label */
@media (max-width: 767px) {
  .ds-quick-nav {
    top: var(--ds-nav-height-mobile);
  }

  .ds-quick-nav__item {
    font-size: var(--ds-text-caption);
    padding:   0 var(--ds-space-4);
  }
}

/* ============================================================
   BRAND HERO SECTION
   ============================================================ */

.ds-brand-hero {
  position:   relative;
  min-height: 28rem;
  display:    flex;
  align-items:flex-end;
  overflow:   hidden;
  background: var(--ds-color-carbon);
  margin-top: var(--ds-nav-height);
}

.ds-brand-hero__bg {
  position:   absolute;
  inset:      0;
  object-fit: cover;
  width:      100%;
  height:     100%;
  opacity:    0.35;
  transition: transform 300ms var(--ds-ease-standard);
}

/* Gradient overlay */
.ds-brand-hero::after {
  content:    '';
  position:   absolute;
  inset:      0;
  background: linear-gradient(
    to top,
    var(--ds-color-obsidian) 0%,
    rgba(10,10,10,0.70) 50%,
    rgba(10,10,10,0.20) 100%
  );
  pointer-events: none;
}

.ds-brand-hero__content {
  position:       relative;
  z-index:        1;
  padding:        var(--ds-space-16) var(--ds-space-8);
  width:          100%;
  max-width:      var(--ds-container-max);
  margin:         0 auto;
}

.ds-brand-hero__logo {
  max-height: 3rem;
  max-width:  10rem;
  object-fit: contain;
  margin-bottom: var(--ds-space-4);
  filter:     drop-shadow(0 4px 12px rgba(0,0,0,0.60));
}

.ds-brand-hero__title {
  font-family:   var(--ds-font-primary);
  font-size:     var(--ds-text-h1);
  font-weight:   var(--ds-weight-extrabold);
  color:         var(--ds-color-white);
  line-height:   var(--ds-leading-tight);
  letter-spacing:var(--ds-tracking-snug);
  margin:        0 0 var(--ds-space-4);
}

.ds-brand-hero__subtitle {
  font-family: var(--ds-font-primary);
  font-size:   var(--ds-text-body-lg);
  color:       var(--ds-color-steel-light);
  max-width:   40rem;
  line-height: var(--ds-leading-relaxed);
  margin:      0 0 var(--ds-space-8);
}

.ds-brand-hero__actions {
  display:   flex;
  gap:       var(--ds-space-4);
  flex-wrap: wrap;
}

/* Stats row in brand hero */
.ds-brand-hero__stats {
  display:   flex;
  gap:       var(--ds-space-12);
  flex-wrap: wrap;
  margin-top:var(--ds-space-10);
  padding-top:var(--ds-space-8);
  border-top: 1px solid rgba(255,255,255,0.10);
}

.ds-brand-hero__stat-num {
  font-family:   var(--ds-font-primary);
  font-size:     var(--ds-text-h2);
  font-weight:   var(--ds-weight-extrabold);
  color:         var(--ds-color-white);
  line-height:   1;
  display:       block;
  margin-bottom: var(--ds-space-1);
}

.ds-brand-hero__stat-label {
  font-family:    var(--ds-font-primary);
  font-size:      var(--ds-text-caption);
  font-weight:    var(--ds-weight-bold);
  letter-spacing: var(--ds-tracking-widest);
  text-transform: uppercase;
  color:          var(--ds-color-steel);
  display:        block;
}

@media (max-width: 768px) {
  .ds-brand-hero {
    min-height: 20rem;
    margin-top: var(--ds-nav-height-mobile);
  }

  .ds-brand-hero__content {
    padding: var(--ds-space-10) var(--ds-space-4);
  }

  .ds-brand-hero__title {
    font-size: var(--ds-text-h2);
  }

  .ds-brand-hero__stats {
    gap: var(--ds-space-8);
  }
}

/* ============================================================
   CATEGORY SECTION HEADER (within brand pages)
   ============================================================ */

.ds-category-header {
  display:       flex;
  align-items:   center;
  justify-content:space-between;
  gap:           var(--ds-space-6);
  flex-wrap:     wrap;
  margin-bottom: var(--ds-space-8);
  padding:       var(--ds-space-6) var(--ds-space-7);
  background:    var(--ds-color-carbon);
  border-left:   4px solid var(--ds-color-red);
  border-radius: 0 var(--ds-radius-sm) var(--ds-radius-sm) 0;
}

.ds-category-header__text { flex: 1; min-width: 0; }

.ds-category-header__eyebrow {
  font-family:    var(--ds-font-primary);
  font-size:      var(--ds-text-h6);
  font-weight:    var(--ds-weight-bold);
  letter-spacing: var(--ds-tracking-widest);
  text-transform: uppercase;
  color:          var(--ds-color-red);
  display:        block;
  margin-bottom:  var(--ds-space-2);
}

.ds-category-header__title {
  font-family:   var(--ds-font-primary);
  font-size:     var(--ds-text-h3);
  font-weight:   var(--ds-weight-bold);
  color:         var(--ds-color-steel-bright);
  margin:        0 0 var(--ds-space-2);
  line-height:   var(--ds-leading-snug);
}

.ds-category-header__desc {
  font-family: var(--ds-font-primary);
  font-size:   var(--ds-text-body);
  color:       var(--ds-color-steel);
  margin:      0;
  line-height: var(--ds-leading-relaxed);
}

@media (max-width: 768px) {
  .ds-category-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ds-category-header .ds-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   SERIES NAVIGATION (prev / next)
   ============================================================ */

.ds-series-nav {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  gap:             var(--ds-space-4);
  margin-top:      var(--ds-space-8);
  padding-top:     var(--ds-space-6);
  border-top:      1px solid var(--ds-color-carbon-light);
}

.ds-series-nav__link {
  display:       flex;
  align-items:   center;
  gap:           var(--ds-space-2);
  font-family:   var(--ds-font-primary);
  font-size:     var(--ds-text-body-sm);
  font-weight:   var(--ds-weight-semibold);
  color:         var(--ds-color-steel);
  text-decoration:none;
  transition:    color var(--ds-transition-fast), gap var(--ds-transition-fast);
}

.ds-series-nav__link:hover {
  color: var(--ds-color-red);
}

.ds-series-nav__link--prev:hover { gap: var(--ds-space-3); }
.ds-series-nav__link--next:hover { gap: var(--ds-space-3); }

.ds-series-nav__link i {
  color:     var(--ds-color-red);
  font-size: 0.75rem;
}

/* ============================================================
   CATALOGUE GALLERY (KODA exception template)
   ============================================================ */

.ds-catalogue-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  gap:                   var(--ds-space-6);
}

.ds-catalogue-page {
  background:    var(--ds-color-carbon);
  border:        1px solid var(--ds-color-carbon-light);
  border-radius: var(--ds-radius-sm);
  overflow:      hidden;
  cursor:        zoom-in;
  transition:
    transform     var(--ds-duration-base) var(--ds-ease-spring),
    box-shadow    var(--ds-duration-base) var(--ds-ease-standard),
    border-color  var(--ds-duration-base) var(--ds-ease-standard);
}

.ds-catalogue-page:hover {
  transform:    translateY(-4px);
  box-shadow:   var(--ds-shadow-2);
  border-color: rgba(211,47,47,0.30);
}

.ds-catalogue-page img {
  width:      100%;
  height:     auto;
  display:    block;
  transition: transform var(--ds-duration-slow) var(--ds-ease-standard);
}

.ds-catalogue-page:hover img {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .ds-catalogue-grid {
    grid-template-columns: 1fr;
    gap: var(--ds-space-4);
  }
}
