/* =========================================================
   전동카트 라인업(선택) 페이지
   - Figma: 대동모빌리티 홈페이지 리뉴얼 (node 4475-5442 / 4671-4221)
   - 데스크탑 + 모바일(<=768px) 반응형
   ========================================================= */

.cart_lineup {
  padding-top: calc(6.25rem + 24px); /* 고정 헤더(100px) 회피 + 여백 */
  padding-bottom: 160px;
  background: #fff;
}

/* ----- 상단 카테고리 탭 (sticky) ----- */
.cart_tabs_wrap {
  position: sticky;
  top: 6.25rem; /* 헤더 높이 */
  z-index: 10;
  background: #fff;
}

.cart_tabs {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 32px 0;
}

.cart_tab {
  flex: 0 0 auto;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 4px solid transparent;
  background: transparent;
  color: #999;
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(16px, 1.84vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cart_tab:hover {
  color: #555;
}

.cart_tab.is_active {
  color: #000;
  border-bottom-color: #000;
}

/* ----- 섹션 묶음 ----- */
.cart_sections {
  display: flex;
  flex-direction: column;
  gap: 160px;
  margin-top: 120px;
}

.cart_section {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.cart_section.is_hidden {
  display: none;
}

.cart_section_tit {
  color: #000;
  font-size: clamp(24px, 3.16vw, 48px);
  font-weight: 700;
  line-height: 1.34;
}

/* ----- 카드 그리드 ----- */
.cart_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.cart_card {
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex: 0 1 calc(50% - 20px);
  max-width: calc(50% - 20px);
  color: inherit;
  text-decoration: none;
}

.cart_card_thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 740 / 493;
  border-radius: 30px;
  background: #f5f5f5;
  overflow: hidden;
}

.cart_card_thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 7% 6%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.45s ease;
}

.cart_card:hover .cart_card_thumb img {
  transform: scale(1.045);
}

.cart_card_info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart_card_tag {
  color: var(--red, #ef4023);
  font-size: clamp(14px, 1.3vw, 20px);
  font-weight: 700;
  line-height: 1.4;
}

.cart_card_name {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart_card_title {
  color: #000;
  font-size: clamp(24px, 3.16vw, 48px);
  font-weight: 700;
  line-height: 1.25;
}

.cart_card_model {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #000;
  font-size: clamp(18px, 2.1vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}

.cart_card_badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-size: clamp(12px, 1.3vw, 20px);
  font-weight: 700;
  line-height: 1.2;
}

/* ----- 다목적 운반차: 하위 타입 그룹 ----- */
.cart_subgroups {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.cart_subgroup {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.cart_subtit {
  color: #000;
  font-size: clamp(20px, 2.63vw, 40px);
  font-weight: 700;
  line-height: 1.2;
}

/* =========================================================
   모바일 (<=768px)
   ========================================================= */
@media all and (max-width: 768px) {
  .cart_lineup {
    padding-top: calc(60px + 16px); /* 모바일 헤더(60px) + 여백 */
    padding-bottom: 100px;
  }

  .cart_tabs_wrap {
    top: 60px;
  }

  .cart_tabs {
    gap: 24px;
    padding: 16px 0;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .cart_tabs::-webkit-scrollbar {
    display: none;
  }

  .cart_tab {
    padding-bottom: 6px;
    border-bottom-width: 2px;
  }

  .cart_sections {
    gap: 60px;
    margin-top: 48px;
  }

  .cart_section {
    gap: 40px;
  }

  .cart_grid {
    gap: 40px;
  }

  .cart_card {
    flex-basis: 100%;
    max-width: 100%;
    gap: 20px;
  }

  .cart_card_thumb {
    border-radius: 13px;
  }

  .cart_card_info {
    gap: 10px;
  }

  .cart_card_name {
    gap: 6px;
  }

  .cart_card_model {
    gap: 8px;
  }

  .cart_card_badge {
    padding: 3px 6px;
  }

  .cart_subgroups {
    gap: 40px;
  }

  .cart_subgroup {
    gap: 20px;
  }
}
