/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

:root {
  --orange:     #e8682a;
  --orange-lt:  #fdf0e8;
  --orange-mid: #f5a96e;
  --dark:       #1a1a1a;
  --mid:        #4a4a4a;
  --light:      #f7f4f0;
  --border:     #e8ddd4;
  --white:      #ffffff;
  --radius:     12px;
  --shadow:     0 4px 20px rgba(0,0,0,0.08);
}

body {
  font-family: 'Barlow', sans-serif;
  background: var(--light);
  color: var(--dark);
  min-height: 100vh;
}

/* ── Home Link ── */
.home-link {
  padding: 15px 30px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.home-link a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-link a:hover {
  color: var(--dark);
}

/* ── Series Nav ── */
.series-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 25px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  justify-content: center;
  width: 100%;
  margin-right: 0;
}

.series-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.series-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.series-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(232,104,42,0.35);
}

/* ── Main Panel ── */
.main-panel {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 10px 15px;
  max-width: 100%;
  margin: 0;
  align-items: flex-start;
  padding-top: 60px;
  justify-content: space-between;
}

/* ── Featured Section ── */
.featured-section {
  flex: 1;
  margin-top: 80px;
  padding-right: 20px;
}

/* ── Right Content ── */
.right-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 780px;
  flex-shrink: 0;
}

/* ── Featured Text ── */
.featured-text {
  text-align: left;
  padding: 25px 20px;
  background: linear-gradient(135deg, var(--white) 0%, var(--orange-lt) 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: static;
  top: 16px;
  border-left: 4px solid var(--orange);
}

.featured-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.featured-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}

.featured-description {
  font-size: 13px;
  line-height: 1.8;
  color: var(--mid);
}

/* ── Feature Highlights ── */
.feature-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
}

.highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-left: 4px solid var(--orange);
  transition: background 0.2s;
}

.highlight-card:hover {
  background: var(--orange-lt);
}

.highlight-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-lt);
  border-radius: 10px;
}

.highlight-content h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.highlight-content p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--mid);
  margin: 0;
}

/* ── Captain Facts ── */
.captain-facts {
  margin-top: -20px;
  padding: 30px 40px;
  background: var(--white);
  border-radius: 0 !important;
  box-shadow: none;
  border-left: 4px solid var(--orange);
  width: 100%;
  box-sizing: border-box;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.facts-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.facts-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.facts-description {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mid);
  margin-bottom: 25px;
}

.facts-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
}

.fact-item {
  text-align: center;
  padding: 20px 15px;
  background: var(--orange-lt);
  border-radius: 0;
  transition: background 0.2s;
  flex: 1;
  min-width: 120px;
  max-width: calc(25% - 12px);
}

.fact-item:hover {
  background: var(--orange-mid);
}

.fact-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 5px;
  line-height: 1;
}

.fact-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.tractor-img-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 18px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.tractor-main-img {
  width: 100%;
  max-width: 360px;
  max-height: 320px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tractor-main-img:hover {
  transform: scale(1.03);
}

/* ── Tractor Meta ── */
.tractor-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 0.4px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tractor-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tag-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  background: var(--orange-lt);
  color: var(--orange);
  border-radius: 50px;
  border: 1px solid var(--orange-mid);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tag-series {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--mid);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.dot {
  color: var(--border);
  font-weight: 700;
}

.color-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cdot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid rgba(0,0,0,0.12);
  transition: transform 0.15s;
}

.cdot:hover { transform: scale(1.3); }

.tractor-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mid);
  max-width: 480px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Action Buttons ── */
.action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-outline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-lt);
}

.btn-outline.accent {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-outline.accent:hover {
  background: var(--orange);
  color: var(--white);
}

/* ── Preview Row ── */
.preview-row {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: flex-start;
}

/* ── Preview Section ── */
.preview-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

/* ── Right Sidebar ── */
.right-sidebar {
  width: 240px;
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 0;
}

/* ── Thumbnail Aside ── */
.thumb-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 540px;
  max-height: 540px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 8px 10px 0;
  margin-top: 10px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) var(--light);
}

/* Custom Scrollbar for Thumbnail List */
.thumb-list::-webkit-scrollbar {
  width: 6px;
}

.thumb-list::-webkit-scrollbar-track {
  background: var(--light);
  border-radius: 10px;
}

.thumb-list::-webkit-scrollbar-thumb {
  background: var(--orange-mid);
  border-radius: 10px;
  min-height: 30px;
}

.thumb-list::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
}

.thumb-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thumb-card:hover {
  border-color: var(--orange-mid);
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(232,104,42,0.15);
}

.thumb-card.selected {
  border-color: var(--orange);
  box-shadow: 0 4px 20px rgba(232,104,42,0.25);
}

.thumb-img-wrap {
  position: relative;
  background: var(--orange-lt);
  padding: 14px 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.thumb-img {
  width: 100%;
  max-width: 130px;
  height: 90px;
  object-fit: contain;
  display: block;
}

.check-icon {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-footer {
  padding: 10px 12px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

.thumb-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.2px;
}

.thumb-drive {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── Responsive ── */
@media (max-width: 820px) {
  .main-panel {
    flex-direction: column;
    padding: 20px;
    padding-top: 80px;
  }

  .featured-section {
    width: 100%;
    margin-bottom: 20px;
    margin-top: 20px;
  }

  .featured-text {
    position: relative;
    top: 0;
  }

  .right-content {
    width: 100%;
  }

  .preview-row {
    flex-direction: column;
  }

  .preview-section {
    margin-bottom: 24px;
  }

  .series-nav {
    padding: 12px 18px;
    gap: 8px;
    width: 100%;
    margin-right: 0;
  }

  .series-btn {
    font-size: 12px;
    padding: 6px 16px;
  }

  .right-sidebar {
    width: 100%;
  }

  .thumb-list {
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
    max-height: none;
    overflow-y: visible;
    margin-top: 20px;
  }

  .thumb-card {
    width: calc(33.33% - 7px);
    min-width: 120px;
  }

  .featured-title {
    font-size: 26px;
  }

  .featured-subtitle {
    font-size: 18px;
  }

  .featured-description {
    font-size: 13px;
  }

  .highlight-card {
    padding: 12px 14px;
  }

  .highlight-icon {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .highlight-content h4 {
    font-size: 15px;
  }

  .highlight-content p {
    font-size: 12px;
  }

  .captain-facts {
    padding: 20px 15px;
    margin-top: 60px;
  }

  .facts-title {
    font-size: 20px;
  }

  .facts-subtitle {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .facts-description {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .facts-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .fact-item {
    min-width: calc(50% - 6px);
    max-width: calc(50% - 6px);
  }

  .fact-item {
    padding: 15px 10px;
  }

  .fact-number {
    font-size: 24px;
  }

  .fact-label {
    font-size: 11px;
  }
}

@media (max-width: 600px) {
  .series-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 15px;
    gap: 6px;
    width: 100%;
    margin-right: 0;
  }

  .series-btn {
    font-size: 11px;
    padding: 5px 14px;
  }

  .right-sidebar {
    width: 100%;
  }

  .thumb-list {
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
    max-height: none;
    overflow-y: visible;
    margin-top: 20px;
  }

  .thumb-card {
    width: calc(50% - 5px);
    min-width: 100px;
  }
}

/* Footer: defined in styles.css (avoid overriding padding/grid when both sheets load). */

/* ── Implements Section ── */
.implements-section {
  padding: 40px 15px 20px;
  width: 100%;
  box-sizing: border-box;
}

.section-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.section-subheading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 25px;
}

.impl-panel {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 10px 15px;
  max-width: 100%;
  margin: 0;
  align-items: stretch;
  justify-content: space-between;
}

.impl-featured {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.impl-featured .featured-text {
  flex-shrink: 0;
}

.impl-implements-highlights {
  margin-top: 20px;
  flex: 1;
  min-height: 0;
}

.impl-inline-link {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 104, 42, 0.4);
}

.impl-inline-link:hover {
  color: var(--dark);
  border-bottom-color: var(--dark);
}

.impl-right-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 780px;
  flex-shrink: 0;
}

.impl-preview-area {
  width: 100%;
}

/* ── Implement Category Nav ── */
.impl-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 18px 25px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  justify-content: flex-start;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) var(--light);
}

.impl-nav::-webkit-scrollbar {
  height: 6px;
}

.impl-nav::-webkit-scrollbar-track {
  background: var(--light);
  border-radius: 10px;
}

.impl-nav::-webkit-scrollbar-thumb {
  background: var(--orange-mid);
  border-radius: 10px;
}

.impl-nav::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
}

.impl-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.impl-btn:hover {
  border-color: var(--orange-mid);
  color: var(--orange);
}

.impl-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(232,104,42,0.35);
}

/* ── Implement Preview Row (preview + right column like tractors) ── */
.impl-preview-row {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: flex-start;
}

.impl-preview-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.impl-img-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 18px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.impl-main-img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  display: block;
}

.impl-meta {
  padding: 12px 0 0;
}

.impl-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.impl-category-badge {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-lt);
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.impl-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mid);
  margin-bottom: 15px;
}

.impl-action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Implement sidebar: fixed-width column + vertical carousel ── */
.impl-sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.impl-carousel.impl-carousel-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  height: 100%;
  min-height: 520px;
  max-height: 720px;
}

.impl-carousel-column .impl-carousel-btn {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  border: 2px solid var(--orange-mid);
  background: var(--white);
  color: var(--orange);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
}

.impl-carousel-column .impl-carousel-btn:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.impl-carousel-column .impl-carousel-btn:active {
  transform: scale(0.98);
}

.impl-thumb-list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  max-height: 600px;
  padding: 8px 6px 8px 2px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) var(--light);
  -webkit-overflow-scrolling: touch;
}

.impl-thumb-list::-webkit-scrollbar {
  width: 6px;
}

.impl-thumb-list::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 10px;
}

.impl-thumb-list::-webkit-scrollbar-track {
  background: var(--light);
  border-radius: 10px;
}

.impl-thumb-card {
  flex: 0 0 auto;
  width: 100%;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.impl-thumb-card:hover {
  border-color: var(--orange-mid);
  box-shadow: 0 6px 24px rgba(232,104,42,0.15);
}

.impl-thumb-card.selected {
  border-color: var(--orange);
  box-shadow: 0 4px 20px rgba(232,104,42,0.25);
}

.impl-thumb-img-wrap {
  position: relative;
  background: var(--orange-lt);
  padding: 16px 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.impl-thumb-img {
  width: 100%;
  max-width: 210px;
  height: 108px;
  object-fit: contain;
  display: block;
}

.impl-thumb-footer {
  padding: 12px 12px 14px;
  border-top: 1px solid var(--border);
  min-height: 54px;
  display: flex;
  align-items: center;
}

.impl-thumb-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.2px;
  line-height: 1.25;
}

/* ── Implements Responsive ── */
@media (max-width: 820px) {
  .impl-panel {
    flex-direction: column;
    padding: 20px;
  }

  .impl-featured {
    width: 100%;
    margin-bottom: 20px;
  }

  .impl-right-content {
    width: 100%;
  }

  .impl-preview-row {
    flex-direction: column;
  }

  .impl-sidebar {
    width: 100%;
    max-width: 100%;
  }

  .impl-carousel.impl-carousel-column {
    min-height: 0;
    max-height: none;
    flex-direction: column;
  }

  .impl-thumb-list {
    max-height: 420px;
    flex: 1;
    min-height: 200px;
  }

  .impl-carousel-column .impl-carousel-btn {
    height: 40px;
    font-size: 16px;
  }

  .impl-nav {
    padding: 12px 18px;
    gap: 8px;
  }

  .impl-btn {
    font-size: 12px;
    padding: 6px 16px;
  }
}

@media (max-width: 600px) {
  .impl-thumb-list {
    max-height: 360px;
  }

  .impl-carousel-column .impl-carousel-btn {
    height: 38px;
    font-size: 15px;
  }
}

/* ── Mega Menu Navigation ── */
.mega-menu {
  display: flex;
  flex-direction: row;
  background-color: #426392;
  color: #ffffff;
  padding: 32px 40px 0;
  gap: 30px;
  font-family: 'Segoe UI', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.mega-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mega-section .section-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-transform: none;
  letter-spacing: 0.3px;
}

.mega-section .col-heading {
  color: #e05c20;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.mega-columns {
  display: flex;
  flex-direction: row;
  gap: 40px;
}

.mega-col {
  min-width: 140px;
}

.mega-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mega-col ul li a {
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.2s;
}

.mega-col ul li a:hover {
  color: #e05c20;
}

.mega-divider {
  width: 1px;
  background-color: rgba(255,255,255,0.2);
  align-self: stretch;
  margin: 0 10px;
}

@media (max-width: 900px) {
  .mega-menu {
    flex-direction: column;
    padding: 24px 20px;
    gap: 24px;
  }

  .mega-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }

  .mega-columns {
    flex-wrap: wrap;
    gap: 20px;
  }

  .mega-col {
    min-width: 120px;
  }
}

@media (max-width: 600px) {
  .mega-menu {
    padding: 20px 16px;
    gap: 20px;
  }

  .mega-columns {
    flex-direction: column;
    gap: 16px;
  }

  .mega-col {
    min-width: 100%;
  }
}

/* ── Tractor Detail Page ── */
.detail-hero {
  margin-top: 10px;
  position: relative;
  height: 650px;
  max-width: 1672px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.detail-hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
}

.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}

.detail-hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px;
}

.detail-hero-series {
  background: rgba(255,255,255,0.2);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.detail-hero-overlay h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.detail-hero-overlay p {
  font-size: 20px;
  opacity: 0.9;
}

/* Overview */
.detail-overview {
  padding: 70px 20px;
}

.detail-overview-grid {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.detail-main-img {
  flex: 1.2;
}

.detail-view-img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.detail-view-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.detail-thumb {
  cursor: pointer;
  border: 2px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: border-color 0.2s;
  flex: 1;
  min-width: 0;
  max-width: 120px;
}

.detail-thumb.active {
  border-color: #e63b2e;
}

.detail-thumb img {
  width: 100%;
  height: 70px;
  object-fit: cover;
}

.detail-thumb span {
  display: block;
  font-size: 11px;
  padding: 4px 0;
  background: #f8f8f8;
  font-weight: 500;
}

/* Info Panel */
.detail-info-panel {
  flex: 1;
}

.detail-series-badge {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.detail-info-panel h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 6px;
}

.detail-tagline {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 14px;
}

.detail-desc {
  font-size: 15px;
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 20px;
}

.detail-quick-specs {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.detail-qs-item {
  text-align: center;
  background: #f4f4f4;
  border-radius: 12px;
  padding: 12px 16px;
  flex: 1;
}

.detail-qs-val {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-color);
}

.detail-qs-label {
  display: block;
  font-size: 12px;
  color: var(--light-text);
  font-weight: 500;
}

.detail-colors {
  margin-bottom: 16px;
}

.detail-color-label {
  font-size: 14px;
  color: var(--text-color);
  font-weight: 500;
  margin-right: 10px;
}

.detail-color-dot {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin: 0 4px;
  border: 2px solid #ddd;
  vertical-align: middle;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.detail-color-dot.active {
  border-color: #333;
  transform: scale(1);
}

.detail-color-dot:hover {
  transform: scale(1.15);
}

.detail-price {
  margin-bottom: 20px;
}

.detail-price-label {
  font-size: 14px;
  color: var(--light-text);
  margin-right: 8px;
}

.detail-price-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-color);
}

.detail-cta {
  display: flex;
  gap: 12px;
}

.detail-btn-primary {
  padding: 12px 28px;
  background: var(--primary-color);
  color: white;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.detail-btn-primary:hover {
  transform: scale(1.05);
  background: var(--secondary-color);
}

.detail-btn-secondary {
  padding: 12px 28px;
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s;
}

.detail-btn-secondary:hover {
  transform: scale(1.05);
  background: rgba(29,53,87,0.05);
}

.detail-btn-brochure {
  padding: 12px 28px;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.detail-btn-brochure:hover {
  transform: scale(1.05);
  background: #e05a00;
}

/* Specs Section - New Design */
.specs-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  padding: 60px 80px;
  background: #ffffff;
  font-family: 'Segoe UI', sans-serif;
}

.specs-image {
  flex: 0 0 360px;
}

.specs-image img {
  width: 100%;
  object-fit: contain;
}

.specs-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.specs-subtitle {
  color: #e05c20;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.specs-title {
  font-size: 36px;
  font-weight: 800;
  color: #111111;
  margin: 0;
}

.specs-tabs {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid #e05c20;
  background: transparent;
  color: #e05c20;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab-btn:hover,
.tab-btn.active {
  background: #e05c20;
  color: #ffffff;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.spec-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  border: 1.5px solid #e8e8e8;
  border-radius: 16px;
  background: #ffffff;
}

.spec-label {
  font-size: 13px;
  color: #888888;
  font-weight: 400;
}

.spec-value {
  font-size: 18px;
  font-weight: 700;
  color: #111111;
}

@media (max-width: 900px) {
  .specs-section {
    flex-direction: column;
    padding: 40px 20px;
  }
  .specs-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }
  .specs-title {
    font-size: 26px;
  }
}

/* Related Models */
.detail-related {
  padding: 60px 20px;
  text-align: center;
  position: relative;
}

.detail-related-grid {
  display: flex;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
  margin-top: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0 20px;
}

.detail-related-grid::-webkit-scrollbar {
  height: 6px;
}
.detail-related-grid::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}
.detail-related-grid::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.detail-related-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border: 1.5px solid #e8e8e8;
  border-radius: 16px;
  padding: 20px 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.detail-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.detail-related-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 12px;
}

.detail-related-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}

.detail-related-card span {
  font-size: 13px;
  color: #888;
}

.related-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.related-carousel-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.related-carousel-nav button:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-lt);
}

@media (max-width: 600px) {
  .detail-related-card {
    flex: 0 0 220px;
  }
}

/* Dimension */
.detail-dimension {
  padding: 70px 20px;
  text-align: center;
}

.detail-dimension-img {
  max-width: 800px;
  margin: 0 auto;
}

.detail-dimension-img img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Features */
.detail-features {
  padding: 70px 20px;
  background: #f7f7f7;
}

.detail-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.detail-feature-card {
  background: white;
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.detail-feature-card:hover {
  transform: translateY(-4px);
}

.detail-feature-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.detail-feature-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.detail-feature-card p {
  font-size: 13px;
  color: var(--light-text);
  line-height: 1.6;
}

/* Gallery */
.detail-gallery {
  padding: 70px 20px;
}

.detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.detail-gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.2s;
}

.detail-gallery-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.detail-gallery-item:hover {
  transform: scale(1.03);
}

.detail-gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.detail-gallery-item span {
  display: block;
  padding: 8px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  background: #f9f9f9;
  color: var(--text-color);
}

/* CTA Section */
.detail-cta-section {
  padding: 70px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: white;
}

.detail-cta-section h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
}

.detail-cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 24px;
}

.detail-cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.detail-cta-section .detail-btn-primary {
  background: white;
  color: var(--primary-color);
}

.detail-cta-section .detail-btn-secondary {
  color: white;
  border-color: white;
}

.detail-cta-section .detail-btn-brochure {
  background: var(--orange);
  color: white;
  border: none;
}

/* Detail Responsive */
@media (max-width: 900px) {
  .detail-hero {
    height: 450px;
  }
  .detail-overview-grid {
    flex-direction: column;
  }

  .detail-view-img {
    height: 300px;
  }

  .detail-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .detail-hero {
    height: auto;
    aspect-ratio: 1672 / 941;
    min-height: 250px;
  }
  .detail-hero-bg img {
    object-fit: contain;
    filter: brightness(0.8);
  }
  .detail-hero-overlay h1 {
    font-size: 24px;
  }
  .detail-hero-overlay p {
    font-size: 14px;
  }
  .detail-hero-series {
    font-size: 11px;
    padding: 4px 12px;
  }

  .detail-view-img {
    height: 220px;
  }

  .detail-hero-overlay h1 {
    font-size: 32px;
  }

  .detail-hero-overlay p {
    font-size: 15px;
  }

  .detail-section-title {
    font-size: 28px;
  }

  .detail-quick-specs {
    flex-wrap: wrap;
  }

  .detail-qs-item {
    flex: 0 0 calc(50% - 8px);
  }

  .detail-features-grid {
    grid-template-columns: 1fr;
  }

  .detail-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ── Lightbox ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  color: #fff;
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.2s;
}
.lightbox-close:hover {
  color: var(--orange);
}
.detail-gallery-item {
  cursor: pointer;
  transition: transform 0.2s;
}
.detail-gallery-item:hover {
  transform: scale(1.03);
}
