@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  --brand-blue: #0090D9;
  --brand-red: #E60012;
  --text-primary: #111827;
  /* 회색-900 */
  --text-secondary: #6b7280;
  /* 회색-500 */
  --bg-dark: #1c1c1c;
  --border-light: #f3f4f6;
  /* 회색-100 */
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'IBM Plex Sans KR', sans-serif;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  background: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease-in-out;
}

/* 컨테이너 */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2.5rem;
    /* 데스크탑 여백 */
  }
}

/* --- 상단 유틸리티 네비게이션 --- */
.top-nav {
  background-color: #f5f5f5;
  border-bottom: 1px solid #eaeaea;
  padding: 0.5rem 0;
}

.top-nav-inner {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  align-items: center;
  font-size: 11px;
  font-weight: 400;
  color: #666;
}

.top-nav a:hover {
  color: var(--brand-blue);
  text-decoration: underline;
}

.top-nav .divider {
  color: #ccc;
  font-size: 10px;
}


/* --- 메인 헤더 --- */
.main-header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  /* 구분을 위한 부드러운 그림자 (선택 사항) */
}

.main-header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

@media (min-width: 1024px) {
  .main-header-inner {
    justify-content: flex-start;
    gap: 6rem;
  }
}

.logo {
  display: flex;
  align-items: center;
}

.logo-text {
  height: 28px;
  /* 로고 크기 감소 (56px의 50%) */
  width: auto;
  transform: translateY(-2px);
  /* 요청에 따라 약간 위로 이동 */
}

/* --- 햄버거 버튼 --- */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .hamburger-btn { display: none; }
}

/* --- 오버레이 --- */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  /* nav 패널(80% / max 320px)을 제외한 왼쪽 영역만 덮음 */
  right: min(80vw, 320px);
  background: rgba(0,0,0,0.4);
  z-index: 299;
}
.nav-overlay.overlay-on {
  display: block;
}
@media (min-width: 1024px) {
  .nav-overlay { display: none !important; }
}

/* --- 네비게이션 메뉴 --- */
.nav-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  max-width: 320px;
  background: #fff;
  flex-direction: column;
  gap: 0;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  z-index: 300;
  overflow-y: auto;
  padding-top: 1rem;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.nav-menu.nav-open {
  display: flex;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
    position: static;
    width: auto;
    max-width: none;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 2.5rem;
    background: none;
    box-shadow: none;
    padding-top: 0;
    overflow-y: visible;
    white-space: nowrap;
  }
}

/* 데스크탑 전용 밑줄 효과 */
@media (min-width: 1024px) {
  .nav-menu a {
    position: relative;
    padding-bottom: 0.25rem;
    transition: color 0.2s;
  }
  .nav-menu a:hover { color: var(--brand-blue); }
  .nav-menu a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--brand-blue);
    transition: width 0.3s;
  }
  .nav-menu a:hover::after { width: 100%; }
}

/* --- 드롭다운 메뉴 (데스크탑) --- */
.menu-item.has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.menu-item.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  min-width: 220px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-radius: 4px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  border: 1px solid #eaeaea;
}

.menu-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: 100%;
}

.nav-menu .dropdown-menu a {
  padding: 0.85rem 1.5rem;
  font-size: 15px;
  font-weight: 400;
  color: #444;
  width: 100%;
  text-align: center;
  transition: background-color 0.2s, color 0.2s;
}

.nav-menu .dropdown-menu a::after { display: none; }

.nav-menu .dropdown-menu a:hover {
  background-color: #f8f9fa;
  color: var(--brand-blue);
}

/* --- 드롭다운 메뉴 (모바일 오버라이드) --- */
@media (max-width: 1023px) {
  .menu-item.has-dropdown {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    border-bottom: 1px solid #f0f0f0;
  }

  .menu-item.has-dropdown::after { display: none; }

  .menu-item.has-dropdown > a.menu-top-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    font-size: 15px;
    font-weight: 600;
    color: #222;
  }

  .menu-arrow {
    font-size: 18px;
    line-height: 1;
    color: #aaa;
    transition: transform 0.25s ease;
    display: inline-block;
  }

  .menu-item.submenu-open .menu-arrow {
    transform: rotate(90deg);
    color: var(--brand-blue);
  }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    display: none;
    background: #f5f7fa;
    width: 100%;
    min-width: 0;
  }

  .menu-item.has-dropdown:hover .dropdown-menu { display: none; }

  .menu-item.has-dropdown.submenu-open .dropdown-menu { display: flex !important; }

  .nav-menu .dropdown-menu a {
    padding: 0.75rem 1.75rem;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    color: #555;
    border-bottom: 1px solid #ebebeb;
  }

  .nav-menu .dropdown-menu a:last-child { border-bottom: none; }

  .nav-menu .dropdown-menu a:hover {
    background-color: #eaf4fb;
    color: var(--brand-blue);
  }
}

/* 모바일에서 .menu-top-link의 데스크탑 밑줄 효과 제거 */
@media (max-width: 1023px) {
  .nav-menu a::after { display: none; }
}


/* --- 메인 배너 섹션 --- */
.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 560px;
}

@media (min-width: 768px) {
  .hero-section { height: 700px; }
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/main_top_bg.png');
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem 10rem 1rem;
  /* 텍스트를 위로 살짝 올리기 위해 상하 패딩 조정 */
}

.hero-subtitle {
  color: #00b4ff;
  /* 브랜드 파란색에서 더 밝은 파란색으로 변경 */
  font-size: 2.5rem;
  /* 크기 증가 (2.25rem에서 변경) */
  font-weight: 300;
  /* 이미지 패턴에 맞춰 얇은 폰트로 원상 복구 */
  font-family: 'Arial Narrow', 'Roboto', 'Helvetica Neue', sans-serif;
  /* 좁은 돋움계열 폰트 추가 */
  letter-spacing: 0.05em;
  /* 글자 간격을 넓히기 위해 자간 증가 */
  margin: 0;
  /* 다음 줄과 간격을 좁히기 위해 하단 마진 0으로 축소 */
  text-transform: uppercase;
}

.hero-number {
  font-family: 'Times New Roman', Times, serif;
  /* 이미지에 맞춰 1에 명조계열 폰트 적용 */
  font-weight: normal;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 4.25rem;
    /* 데스크탑에서 폰트 크기 증가 (3.75rem에서 변경) */
    transform: scaleX(0.95);
    /* 폰트를 가로로 넓게 만들기 위해 0.85에서 증가 */
    display: inline-block;
  }
}

.hero-title {
  color: var(--brand-red);
  font-size: 2.5rem;
  /* 2rem에서 증가 */
  line-height: 1;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.025em;
  /* 자간 좁게 */
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 64px;
    /* 54px에서 증가 */
  }
}

.hero-desc {
  color: #fff;
  font-size: 1rem;
  /* 0.875rem에서 증가 */
  font-weight: 300;
  letter-spacing: 0.025em;
  /* 자간 넓게 */
  margin: 0;
}

@media (min-width: 768px) {
  .hero-desc {
    font-size: 1.25rem;
    /* 1rem에서 증가 */
  }
}

.hero-divider {
  width: 2px;
  height: 5rem;
  /* 3rem에서 증가 */
  background-color: var(--brand-blue);
  margin: 2rem auto 0 auto;
  /* 상단 마진 8 */
}

/* --- 검색 바 컨테이너 --- */
.search-wrapper {
  position: absolute;
  bottom: 5.5rem;
  /* 검색 바를 더 높이 올리기 위해 대폭 증가 */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 72rem;
  z-index: 30;
  padding: 0 1rem;
}

.search-box {
  background-color: #2a2a2a;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border-radius: 2px;
}

@media (min-width: 1024px) {
  .search-box {
    flex-direction: row;
    align-items: stretch;
  }
}

/* 왼쪽 파란색 "SEARCH FOR CARS" 블록 — 좌측 상단 사선 컷팅 */
.search-btn-left {
  background-color: var(--brand-blue);
  color: #fff;
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 200px;
  flex-shrink: 0;
  margin: 0;
}

@media (min-width: 1024px) {
  .search-btn-left {
    /* 좌측 상단 사선 컷팅 */
    clip-path: polygon(25px 0, 100% 0, 100% 100%, 0 100%, 0 25px);
    padding: 0 2.5rem 0 3.5rem;
    /* 컷팅된 부분을 보완하기 위한 좌측 패딩 추가 */
    min-width: 230px;
  }
}

.search-text-desktop {
  display: none;
  white-space: nowrap;
  position: relative;
  z-index: 10;
}

.search-text-mobile {
  display: inline;
  white-space: nowrap;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .search-text-desktop {
    display: inline;
  }

  .search-text-mobile {
    display: none;
  }
}

/* 중간: 3개의 드롭다운 필터 */
.search-filters {
  flex-grow: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
  background-color: transparent;
  padding: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .search-filters {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1.125rem 1rem;
  }
}

.filter-group {
  position: relative;
  background-color: #fff;
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
}

.filter-select {
  background: transparent;
  color: #444;
  border: none;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  width: 100%;
  appearance: none;
  outline: none;
  border-radius: 0;
}

.filter-icon {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  color: #999;
  pointer-events: none;
}

.filter-icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* 우측: 검색 버튼 + 검색어 입력 */
.search-action-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.375rem;
  width: 100%;
  background-color: transparent;
  padding: 1rem;
}

@media (min-width: 1024px) {
  .search-action-column {
    width: auto;
    min-width: 10rem;
    flex-shrink: 0;
    padding: 1.125rem 1.25rem 0.75rem 0.5rem;
  }
}

.search-action-btn {
  background-color: var(--brand-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 0.625rem 2rem;
  border: none;
  border-radius: 5px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s;
  letter-spacing: 0.05em;
}

.search-action-btn:hover {
  background-color: rgba(0, 144, 217, 0.9);
}

.search-keyword {
  display: flex;
  align-items: center;
  padding: 0.25rem 0 0.25rem 0;
  background-color: transparent;
  border-bottom: 2px solid var(--brand-blue);
  width: 100%;
}

.search-keyword input {
  background-color: transparent;
  border: none;
  color: #ccc;
  font-size: 13px;
  font-weight: 400;
  width: 100%;
  padding: 0;
  outline: none;
  text-align: right;
}

.search-keyword input::placeholder {
  color: #999;
}


/* --- 신규 입고 차량 섹션 --- */
.section {
  padding: 4rem 0;
  /* 상하 패딩 16 */
  background-color: #fff;
}

.section[data-purpose="new-arrivals"] {
  background-image: url('../images/main_right_bg.png');
  background-repeat: no-repeat;
  background-position: calc(100% + 750px) -400px;
  /* 우측으로 더 이동하고 위로 150px 올림 */
  background-size: 55% auto;
  /* 크기 약간 더 증가 */
  position: relative;
  overflow: hidden;
  /* 배경 이미지로 인한 가로 스크롤 방지 */
}

.section-title {
  text-align: center;
  font-size: 2.75rem;
  /* 약 44px */
  font-weight: 300;
  /* 얇은 폰트 */
  font-family: 'Arial Narrow', 'Roboto', 'Helvetica Neue', sans-serif;
  /* 메인 배너 폰트와 일치시킴 */
  color: #222;
  /* ARRIVALS에 대한 진한 색상 */
  margin: 0 0 2rem 0;
  /* 하단 마진 8 */
  letter-spacing: 0.01em;
  /* 자간 세부 조정 */
}

.section-title span {
  color: #00b4ff;
  /* NEW에 밝은 파란색 적용 */
  font-weight: 300;
  /* 얇은 굵기 유지 */
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  /* 간격 약간 넓힘 */
  margin-bottom: 3rem;
  /* 하단 마진 12 */
  font-size: 1.375rem;
  /* 탭 폰트 크기 증가 (약 22px) */
  font-weight: 300;
  /* 굵기 더 얇게 수정 */
  font-family: 'Arial Narrow', 'Roboto', 'Helvetica Neue', sans-serif;
  color: #666;
  /* 텍스트 밀도를 줄이기 위해 밝은 색상 적용 */
  letter-spacing: 0;
  border-bottom: none;
  /* 시안에 맞추기 위해 하단 테두리 제거 */
  padding-bottom: 0;
}

.tabs-item {
  padding-bottom: 0;
}

.tabs-item:hover {
  color: #00b4ff;
}

.tab-active {
  color: #00b4ff;
  /* 활성화 상태일 때 밝은 파란색 */
  border-bottom: none;
  /* 새로운 디자인에 맞춰 활성화 시 밑줄 제거 */
}

.slider-wrapper {
  position: relative;
}

.slider-wrapper a {
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: var(--brand-blue);
  color: #fff;
  padding: 0.75rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.slider-btn:hover {
  background-color: rgba(0, 144, 217, 0.8);
}

.slider-btn.left  { left: -60px; }
.slider-btn.right { right: -60px; }

/* 모바일: 버튼을 안쪽으로 */
@media (max-width: 1023px) {
  .slider-wrapper { overflow: hidden; }
  .slider-btn.left  { left: 4px; }
  .slider-btn.right { right: 4px; }
  .slider-btn { padding: 0.5rem; opacity: 0.85; }
}

.slider-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* 모바일: 카드 1장씩 표시 */
@media (max-width: 767px) {
  .car-item {
    min-width: 100% !important;
    width: 100% !important;
  }
}

/* 태블릿: 카드 2장 */
@media (min-width: 768px) and (max-width: 1023px) {
  .car-item {
    min-width: 50% !important;
    width: 50% !important;
  }
}

.car-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  /* 간격 4 */
}

@media (min-width: 768px) {
  .car-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .car-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.car-item {
  border: 1px solid #e5e7eb;
  /* 회색 200 */
  padding: 0.25rem;
  /* 패딩 1 */
  background-color: #fff;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.car-item:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 호버시 큰 그림자 */

.car-image {
  height: 12rem;
  /* 높이 48 */
  background-color: #f3f4f6;
  /* 회색-100 */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-info {
  padding: 1.5rem 0.5rem;
  /* 상하 패딩 6, 좌우 패딩 2 */
  text-align: center;
}

.car-info h3 {
  font-size: 16px;
  /* 14px에서 증가 */
  font-weight: 700;
  color: #333;
  /* 좀 더 진한 회색 */
  line-height: 1.3;
  margin: 0 0 1rem 0;
  /* 하단 마진 증가 */
  text-transform: uppercase;
  font-family: 'Arial Narrow', 'Roboto', 'Helvetica Neue', sans-serif;
}

.car-info p {
  color: #e60000;
  /* 시안에 맞춰 빨간색을 조정 */
  font-weight: 700;
  font-size: 1.375rem;
  /* 1.125rem(약 22px)에서 증가 */
  font-family: 'Arial Narrow', 'Roboto', 'Helvetica Neue', sans-serif;
  margin: 0;
}

.bs-info .bs-title a {
  text-decoration: none;
  color: inherit;
}

.bs-info .bs-title a:hover {
  color: var(--brand-blue);
  text-decoration: underline;
}


/* --- 부품 및 악세서리 섹션 --- */
.accessories-section {
  padding: 4rem 0;
  color: #fff;
  position: relative;
}

.accessories-bg-wrapper {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url('../images/main_acc_bg.png');
  background-size: cover; /* 이미지가 영역을 꽉 채우도록 변경 */
  background-position: center; /* 이미지를 중앙에 배치 */
  background-repeat: no-repeat; /* 이미지 반복 방지 */
  z-index: 0;
}

.accessories-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.accessories-title {
  font-size: 2.75rem;
  font-weight: 300;
  font-family: 'Arial Narrow', 'Roboto', 'Helvetica Neue', sans-serif;
  margin: 0 0 2rem 0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  /* 자간 세부 조정 */
}

.accessories-title span {
  font-weight: 300;
  color: #00b4ff;
}

.accessories-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  /* 간격 약간 넓힘 */
  margin-bottom: 3rem;
  font-size: 1.375rem;
  font-weight: 300;
  font-family: 'Arial Narrow', 'Roboto', 'Helvetica Neue', sans-serif;
  letter-spacing: 0;
  padding-bottom: 0;
  justify-content: center;
}

.accessories-tabs a {
  color: #fff;
  padding-bottom: 0;
  transition: color 0.2s;
}

.accessories-tabs a:hover {
  color: #00b4ff;
}

.accessories-tabs .tab-active {
  color: #00b4ff;
  border-bottom: none;
}

.accessories-slider {
  max-width: 72rem;
  margin: 0 auto;
  position: relative;
}

.accessories-slider .slider-btn.left  { left: -80px; }
.accessories-slider .slider-btn.right { right: -80px; }

@media (max-width: 1023px) {
  .accessories-slider {
    overflow: hidden;
  }
  .accessories-slider .slider-btn.left  { left: 4px; }
  .accessories-slider .slider-btn.right { right: 4px; }
}

.accessory-card {
  background-color: #fff;
  color: #000;
  padding: 0.25rem;
  /* 패딩 1 */
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}

.accessory-card:hover {
  transform: scale(1.02);
}

.accessory-image {
  height: 10rem;
  /* 높이 40 */
  background-color: #f3f4f6;
  overflow: hidden;
  margin-bottom: 0.5rem;
  /* 하단 마진 2 */
}

.accessory-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.accessory-info {
  padding: 1rem 0;
  /* 상하 패딩 4 */
}

.accessory-info h3 {
  font-size: 14px;
  /* 10px에서 증가 */
  font-weight: 700;
  color: #1f2937;
  /* 회색 800 */
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
}

.accessory-info p {
  color: var(--brand-red);
  font-weight: 700;
  margin: 0;
}


/* --- 서비스 영역 --- */
.services-section {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 300px;
}

@media (min-width: 1024px) {
  .services-section {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.service-box {
  padding: 3.5rem 2rem;
  /* 상하 패딩 늘림, 좌우 패딩 줄임 */
  color: #fff;
  position: relative;
  overflow: hidden;
}

.service-box:hover .service-icon-img {
  transform: scale(1.1);
}

.service-box-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.service-subtitle {
  font-size: 0.875rem;
  /* 텍스트 크기 상향 조정 */
  font-weight: 400;
  /* 너무 굵지 않게 */
  margin: 0 0 0.25rem 0;
}

.service-title-lg {
  font-size: 3rem;
  /* 텍스트 크게/매우 크게 */
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  /* 하단 마진 6 */
  letter-spacing: -0.05em;
  /* 자간 매우 좁게 */
  text-transform: uppercase;
}

.service-desc {
  font-size: 0.75rem;
  margin: 0 0 2rem 0;
  /* 하단 마진 8 */
}

.service-action-btn {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 0.75rem 2rem;
  /* 상하 패딩 3, 좌우 패딩 8 */
  text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s;
  align-self: flex-start; /* flex 모드에서 왼쪽 정렬 유지 */
}

/* 서비스 상자 스타일 변수 */
.service-shipping {
  background-color: #1a1c25;
  background-image: url('../images/main_grid_bg1.png');
  background-repeat: no-repeat;
  background-position: left bottom; /* 이미지를 왼쪽 아래에 배치 */
  background-size: auto 100%; /* 원본 비율 유지하며 높이에 맞춤 */
  padding-left: 20rem; /* 글씨가 텍스트와 안 겹치도록 왼쪽 공간 충분히 확보 */
}

/* 1024px 이상에서는 충분히 여유 공간 추가 */
@media (min-width: 1024px) {
  .service-shipping {
    padding-left: 20rem;
  }
}

.service-btn-orange {
  background-color: #E35E25;
  color: #fff;
  border-radius: 4px; /* 버튼 모서리를 둥글게 */
  padding: 0.5rem 1.5rem; /* 버튼 패딩 조정 */
}

.service-btn-orange:hover {
  background-color: #c44e1d;
}

.service-guide {
  background-color: #1a7cd9; /* 첨부 이미지에 가까운 파란색으로 소폭 변경 */
}

/* Purchase Guide 개별 타이포그래피 조정 */
.service-guide .service-title-lg {
  font-size: 1.75rem; /* 약 28px */
  margin: 0 0 0.5rem 0; /* 아래로 간격 줄임 */
  letter-spacing: -0.02em;
}

.service-guide .service-desc {
  font-size: 0.8125rem; /* 약 13px */
  margin: 0 0 2rem 0;
  opacity: 0.9;
}

.service-btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  border-radius: 4px; /* 버튼 모서리를 둥글게 */
  padding: 0.5rem 1.75rem; /* 버튼 패딩 조정 */
  background-color: transparent;
}

.service-btn-outline:hover {
  background-color: #fff;
  color: var(--brand-blue);
}

.service-intro {
  background-color: #00a1df; /* 파란색을 이미지와 조금 더 비슷하게 조정 */
}

/* Introducing 개별 타이포그래피 조정 */
.service-intro .service-title-lg {
  font-size: 1.75rem; /* 약 28px */
  margin: 0 0 0.5rem 0; /* 아래로 간격 줄임 */
  letter-spacing: -0.02em;
}

.service-intro .service-desc {
  font-size: 0.8125rem; /* 약 13px */
  margin: 0 0 2rem 0;
  opacity: 0.9;
}

.service-btn-outline-intro {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  border-radius: 4px; /* 버튼 모서리를 둥글게 */
  padding: 0.5rem 1.75rem; /* 버튼 패딩 조정 */
  background-color: transparent;
}

.service-btn-outline-intro:hover {
  background-color: #fff;
  color: #00a6f4;
}

/* 서비스 장식 요소 */
.service-icon-img {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 16rem;
  height: auto;
  opacity: 0.9;
  transition: transform 0.7s;
}

/* Shipping (main_grid_bg2.png) 을 위한 스페셜 포지션 */
.service-shipping .service-icon-img {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: auto;
  height: 90%;
  opacity: 1; /* 투명도 없이 선명하게 */
  object-fit: contain;
}

/* Purchase Guide (main_grid_bg3.png) 스페셜 포지션 */
.service-guide .service-icon-img {
  position: absolute;
  right: -5%; /* 바퀴가 우측으로 살짝 잘리게 배치 */
  bottom: -15%; /* 하단도 살짝 잘리게 */
  width: auto;
  height: 60%; /* 크기 조절 */
  opacity: 1;
  object-fit: contain;
}

/* Introducing (main_grid_bg4.png) 스페셜 포지션 */
.service-intro .service-car-img {
  position: absolute;
  right: -5%;
  bottom: -15%;
  width: auto;
  height: 60%;
  opacity: 1;
  object-fit: contain;
}



/* --- 하단 메인 푸터 --- */
.main-footer {
  background-color: #fff;
  padding: 3rem 1rem;
  /* 상하 패딩 12, 좌우 패딩 4 */
  border-top: 1px solid var(--border-light);
}

@media (min-width: 1024px) {
  .main-footer {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  /* 간격 12 */
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2.2fr 1fr 1.2fr 1fr 1fr;
  }
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  /* 텍스트 크게 */
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--brand-blue);
}

.footer-logo span {
  color: #000;
  margin-left: 0.25rem;
}

.footer-logo img {
  height: 1.25rem;
  margin-left: 0.5rem;
}

/* 높이 5 */

.footer-contact {
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}

.footer-contact p {
  margin: 0 0 0.25rem 0;
}

.footer-contact strong {
  font-weight: 700;
  color: #111;
  margin-right: 0.25rem;
}

.footer-nav-col h4 {
  font-weight: 700;
  color: #333;
  font-size: 16px;
  margin: 0 0 1rem 0;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: #777;
}

.footer-nav-list li {
  margin-bottom: 0.5rem;
}

.footer-nav-list a {
  transition: color 0.15s;
}

.footer-nav-list a:hover {
  color: var(--brand-blue);
}

.footer-nav-list a.uppercase {
  text-transform: uppercase;
}

.footer-bottom {
  max-width: 1280px;
  margin: 3rem auto 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #eaeaea;
  text-align: left;
}

@media (min-width: 768px) {
  .footer-bottom {
    text-align: left;
  }
}

.footer-bottom p {
  font-size: 10px;
  color: var(--footer-gray);
  margin: 0;
}
/* ==========================================================================
   SUB PAGE: PURCHASE GUIDE
   ========================================================================== */

/* --- 서브페이지 배너 --- */
.sub-hero-section {
  background-color: #222;
  color: #fff;
  padding: 4rem 1rem 3rem;
  text-align: center;
  position: relative;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/main_top_bg.png');
  background-size: cover;
  background-position: center;
}

.sub-hero-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin: 0;
  letter-spacing: 0.05em;
  font-family: 'Arial Narrow', 'Roboto', 'Helvetica Neue', sans-serif;
  text-transform: uppercase;
}

.sub-hero-divider {
  width: 40px;
  height: 3px;
  background-color: var(--brand-blue);
  margin: 1.5rem auto;
}

.breadcrumbs {
  font-size: 0.875rem;
  color: #ccc;
  margin-top: 1rem;
}

.breadcrumbs a {
  color: #fff;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .current {
  color: var(--brand-blue);
  font-weight: 500;
}

/* --- 서브페이지 메인 영역 --- */
.sub-page-main {
  padding: 4rem 0 6rem;
  background-color: #fcfcfc;
}

.guide-section {
  margin-bottom: 4rem;
}

.guide-section-title {
  font-size: 1.875rem;
  font-weight: 500;
  color: #111;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eaeaea;
}

/* 1. 구매 절차 둥근 박스 스타일 */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

.step-header {
  margin-bottom: 1.25rem;
}

.step-num {
  display: inline-block;
  background-color: var(--brand-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  margin: 0;
}

.step-body p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.step-body p:last-child {
  margin-bottom: 0;
}

/* 2 & 3. 일반 안내 박스 */
.guide-content-box {
  background-color: #fff;
  border-left: 4px solid var(--brand-blue);
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.guide-content-box p {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin: 0 0 1.25rem 0;
}

.guide-content-box p:last-child {
  margin-bottom: 0;
}

.guide-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 4px;
}

.guide-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #333;
}

.guide-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-blue);
  font-weight: bold;
}

/* 4. 문제 발생 시 알림 박스 (강조) */
.alert-box {
  background-color: #fff5f5;
  border: 1px solid #ffd8d8;
  padding: 2.5rem;
  border-radius: 8px;
  text-align: center;
}

.alert-box h3 {
  color: var(--brand-red);
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
}

.alert-box p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
  max-width: 800px;
  margin: 0 auto;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   SUB PAGE: INTRODUCING OURSELVES
   ========================================================================== */

.about-intro-section {
  padding: 2rem 0;
}

.about-title-main {
  font-size: 2.25rem;
  font-weight: 300;
  color: #111;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.05em;
  font-family: 'Arial Narrow', 'Roboto', 'Helvetica Neue', sans-serif;
}

.about-subtitle {
  font-size: 1.125rem;
  color: var(--brand-blue);
  font-weight: 500;
  margin: 0 0 2rem 0;
}

.about-intro-text {
  max-width: 800px;
  margin: 0 auto;
}

.about-intro-text p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  margin: 0 0 1rem 0;
}

/* 핵심 가치 카드 UI */
.about-features-section {
  margin-bottom: 5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: #fff;
  border: 1px solid #eaeaea;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  transition: background-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.feature-card:hover::before {
  background-color: var(--brand-blue);
}

.highlight-card {
  background-color: #f8fbff;
  border-color: #cbe3f5;
}

.highlight-card::before {
  background-color: var(--brand-blue);
}

.feature-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #f0f7ff;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.highlight-card .feature-icon-wrapper {
  background-color: var(--brand-blue);
}

.feature-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.highlight-card .feature-number {
  color: #fff;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 1rem 0;
}

.feature-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* 연락처 및 회사 위치 세션 */
.about-contact-section {
  background-color: #fff;
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.location-box {
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 6px;
}

.location-header {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.location-header::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--brand-blue);
  border-radius: 50%;
  margin-right: 0.75rem;
}

.location-address {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.location-contact p {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 0.5rem 0;
}

.location-contact a {
  color: var(--brand-blue);
}

.location-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-link {
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  background-color: #eef2f6;
  color: #444;
  border-radius: 20px;
  transition: all 0.2s;
}

.social-link:hover {
  background-color: var(--brand-blue);
  color: #fff;
}

/* ==========================================================================
   SUB PAGE: STOCK LISTING V2 (SENA AUTO LAYOUT)
   ========================================================================== */

/* Main Layout Container */
.stock-layout-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 992px) {
  .stock-layout-container {
    flex-direction: row;
  }
}

/* Sidebar Styling */
.stock-sidebar {
  width: 100%;
}

@media (min-width: 992px) {
  .stock-sidebar {
    width: 250px;
    flex-shrink: 0;
  }
}

.sidebar-box {
  border: 1px solid #ddd;
  padding: 1rem;
  background-color: #fafafa;
}

.form-group {
  margin-bottom: 0.75rem;
}

.sidebar-label {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.25rem;
}

.sidebar-select, .sidebar-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 0.85rem;
  color: #333;
  outline: none;
}

.year-inputs {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.year-inputs .half {
  width: 45%;
}

.year-inputs .dash {
  font-size: 0.85rem;
  color: #555;
}

.btn-sidebar-search {
  width: 100%;
  padding: 0.6rem;
  background-color: var(--brand-blue); /* Match CAR KOREA Theme */
  color: #fff;
  border: none;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background-color 0.2s;
}

.btn-sidebar-search:hover {
  background-color: var(--brand-red); /* Match CAR KOREA Theme */
}

/* Main Content Area */
.stock-content {
  flex-grow: 1;
  min-width: 0; /* Prevents flex flexbox blowout */
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.content-header .page-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: #333;
  margin: 0;
}

.content-breadcrumbs {
  font-size: 0.8rem;
  color: #777;
}

.content-breadcrumbs .home-icon {
  margin-right: 0.25rem;
}

.content-breadcrumbs .arr {
  margin: 0 0.25rem;
  font-size: 0.7rem;
}

/* Brand Tabs */
.brand-tabs {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid #eee;
  margin-bottom: 2rem;
}

.brand-tabs .tab {
  flex-grow: 1;
  text-align: center;
  padding: 0.75rem 0.5rem;
  font-size: 0.8rem;
  color: #666;
  text-decoration: none;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  background-color: #fcfcfc;
  transition: all 0.2s;
}

.brand-tabs .tab:hover {
  background-color: #f0f0f0;
}

.brand-tabs .tab.active {
  background-color: #fff;
  border-top: 2px solid var(--brand-red);
  font-weight: bold;
  color: #333;
  border-bottom: 1px solid transparent;
}

/* Section Headings */
.section-heading {
  font-size: 1.1rem;
  font-weight: normal;
  color: #333;
  border-top: 2px solid var(--brand-blue); /* Match CAR KOREA Theme */
  border-bottom: 1px solid #555;
  padding: 0.5rem 0;
  margin: 0 0 1rem 0;
}

/* Best Sellers Grid (4 cards horizontally) */
.best-sellers-section {
  margin-bottom: 2rem;
}

.best-sellers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .best-sellers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bs-card {
  border: 1px solid #eee;
  text-align: center;
  padding: 0.5rem;
}

.bs-img-box {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.bs-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bs-title {
  font-size: 0.75rem;
  color: #555;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
  height: 3em; /* Fixed height for 2 lines */
  overflow: hidden;
}

.bs-price {
  font-size: 1rem;
  color: var(--brand-red);
  font-weight: bold;
  margin: 0;
}

/* Search Result Section */
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--brand-blue); /* Match CAR KOREA Theme */
  border-bottom: 1px solid #555;
  margin-bottom: 1rem;
}

.result-header .section-heading {
  border: none;
  margin: 0;
  padding: 0.75rem 0;
}

.result-sort {
  display: flex;
  gap: 0.5rem;
}

.sort-select {
  padding: 0.25rem;
  border: 1px solid #ccc;
  font-size: 0.8rem;
  color: #555;
}

/* List View Layout */
/* --- 베스트셀러 / 추천 섹션 --- */
.featured-section {
  margin-bottom: 2rem;
}

.featured-section-title {
  margin-bottom: 0.75rem;
}

.featured-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 3px;
}

.featured-badge.best { background: var(--brand-blue); color: #fff; }
.featured-badge.rec  { background: #d97706; color: #fff; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 767px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

.featured-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.featured-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); }

.featured-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f3f4f6;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.featured-card:hover .featured-img img { transform: scale(1.04); }

.featured-label {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 2px;
}

.best-label { background: var(--brand-blue); color: #fff; }
.rec-label  { background: #d97706; color: #fff; }

.featured-info {
  padding: 8px 10px 10px;
}

.featured-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-red);
  margin: 0;
}

/* --- */
.list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list-item {
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  padding: 1rem;
  gap: 1rem;
}

@media (min-width: 768px) {
  .list-item {
    flex-direction: row;
    align-items: flex-start;
  }
}

.li-image {
  width: 100%;
  aspect-ratio: 4/3;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .li-image {
    width: 220px;
  }
}

.li-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.li-details {
  flex-grow: 1;
}

.li-title {
  font-size: 1rem;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.li-title a {
  color: #333;
  text-decoration: none;
}

.li-title a:hover {
  text-decoration: underline;
}

.tag-new {
  background-color: var(--brand-red);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
  font-weight: bold;
}

.li-specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 1rem;
  font-size: 0.85rem;
  color: #555;
}

@media (min-width: 576px) {
  .li-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spec-row {
  display: flex;
}

.spec-row span {
  width: 120px;
  color: #888;
}

.spec-row p {
  margin: 0;
  color: #333;
}

.li-price-box {
  text-align: left;
}

@media (min-width: 768px) {
  .li-price-box {
    text-align: right;
    min-width: 120px;
  }
}

.li-price-box .price-val {
  font-size: 1.25rem;
  color: var(--brand-red);
  font-weight: bold;
  margin: 0;
}

/* Pagination (Sena Auto Style) */
.pagination-sena {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.pagination-sena .page {
  padding: 0.4rem 0.75rem;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #555;
  text-decoration: none;
  font-size: 0.85rem;
}

.pagination-sena .page:hover {
  background-color: #f0f0f0;
}

.pagination-sena .page.active {
  font-weight: bold;
  color: #333;
  background-color: #e9e9e9;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.pagination .page-link {
  padding: 0.4rem 0.75rem;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #555;
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 3px;
  transition: background-color 0.15s;
}

.pagination .page-link:hover {
  background-color: #f0f0f0;
  color: #333;
}

.pagination .page-link.active {
  font-weight: bold;
  color: #fff;
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  top: 250px;
  right: 30px;
  width: 130px;
  height: 130px;
  background-color: #25D366;
  color: #fff;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 19px;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 2px 6px 15px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.whatsapp-float svg {
  width: 65px;
  height: 65px;
  fill: #fff;
  margin-bottom: 8px;
}

@media (max-width: 1024px) {
  .whatsapp-float {
    width: 90px;
    height: 90px;
    top: auto;
    bottom: 30px;
    right: 20px;
    font-size: 14px;
    border-radius: 18px;
  }
  .whatsapp-float.detail-side {
    right: 20px;
    left: auto;
  }
  .whatsapp-float svg {
    width: 42px;
    height: 42px;
    margin-bottom: 5px;
  }
}

/* 데스크탑 화면에서 상세페이지 폼 바로 우측 여백에 붙도록 수정 */
.whatsapp-float.detail-side {
  right: 50px; /* 창 우측 벽면에서 50px 간격으로 위치 변경 */
  top: 300px;
}

/* ---------------------------------
   Product Detail Page Styles
----------------------------------- */
.detail-main-wrap {
  min-height: 800px;
}

.page-header {
  margin-bottom: 2rem;
}

.content-breadcrumbs {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.content-breadcrumbs .home-icon {
  margin-right: 5px;
}

.content-breadcrumbs .arr {
  color: #ccc;
  margin: 0 8px;
}

.detail-header-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #222;
  padding-bottom: 1rem;
}

@media (min-width: 1024px) {
  .detail-header-row {
    flex-direction: row;
    align-items: flex-end;
  }
}

.detail-title {
  font-size: 25px;
  font-weight: 600;
  color: #111;
  margin: 0;
  font-family: 'Arial Narrow', sans-serif;
  letter-spacing: -0.02em;
}

.detail-price-box {
  text-align: left;
  margin-top: 0.75rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .detail-price-box {
    text-align: right;
    margin-top: 0;
    width: auto;
  }
}

.price-val-large {
  font-size: 32px;
  font-weight: 700;
  color: var(--brand-red);
  font-family: 'Arial Narrow', sans-serif;
  line-height: 1.2;
}

.price-tag {
  font-size: 15px;
  color: #555;
  margin: 0;
}

.price-tag b {
  color: #000;
}

/* Detail Layout Grid */
.detail-layout-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .detail-layout-container {
    grid-template-columns: 1fr 320px;
    gap: 3rem;
  }
}

/* Left - Gallery */
.gallery-main {
  position: relative;
  background-color: #111;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  text-align: center;
  width: 100%;
  height: 240px;
  overflow: hidden;
}
@media (min-width: 480px) {
  .gallery-main { height: 320px; }
}
@media (min-width: 768px) {
  .gallery-main { height: 400px; }
}
@media (min-width: 1024px) {
  .gallery-main { height: 460px; }
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 유튜브 래퍼 — gallery-main 전체를 채움 */
#galleryVideoWrap {
  position: absolute !important;
  inset: 0 !important;
  padding-bottom: 0 !important;
}
#galleryVideoWrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 갤러리 좌우 화살표 */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 30px;
  height: 44px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
}
@media (min-width: 768px) {
  .gallery-arrow { width: 44px; height: 64px; font-size: 36px; }
}
.gallery-arrow:hover { background: rgba(0,0,0,0.72); }
.gallery-arrow-left  { left: 0; border-radius: 0 4px 4px 0; }
.gallery-arrow-right { right: 0; border-radius: 4px 0 0 4px; }

.tag-floating {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #333;
  color: #fff;
  padding: 5px 15px;
  font-size: 13px;
  font-weight: 600;
  z-index: 10;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 3px;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .gallery-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 4px;
    margin-bottom: 3rem;
  }
}

.gallery-thumbs img {
  width: 100%;
  height: 55px;
  object-fit: cover;
  object-position: center;
  border: 1px solid #ddd;
  cursor: pointer;
  display: block;
  transition: border-color 0.2s;
  background-color: #111;
}

.gallery-thumbs img.active,
.gallery-thumbs img:hover {
  border: 2px solid var(--brand-blue);
}

.gallery-thumbs .yt-thumb-wrap {
  width: 100%;
  height: 55px;
  border: 1px solid #ddd;
  overflow: hidden;
  background: #000;
  transition: border-color 0.2s;
}
.gallery-thumbs .yt-thumb-wrap:hover,
.gallery-thumbs .yt-thumb-wrap.active {
  border: 2px solid var(--brand-blue);
}
.gallery-thumbs .yt-thumb-wrap img {
  width: 100%;
  height: 100%;
  border: none;
}

/* Left - Specs Table */
.specs-table-wrapper {
  margin-bottom: 3rem;
}

.detail-specs-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid #333;
  font-size: 14px;
}

.detail-specs-table th,
.detail-specs-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  font-size: 13px;
}

.detail-specs-table th {
  background-color: #f8f9fa;
  color: #333;
  font-weight: 600;
  width: 18%;
  white-space: nowrap;
}

.detail-specs-table td {
  color: #555;
  width: 32%;
}

/* 모바일: 4열 테이블 → 2열로 재배치 */
@media (max-width: 640px) {
  .detail-specs-table thead { display: none; }
  .detail-specs-table,
  .detail-specs-table tbody,
  .detail-specs-table tr { display: block; width: 100%; }
  .detail-specs-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #ddd;
  }
  .detail-specs-table th,
  .detail-specs-table td {
    border-bottom: none;
    padding: 8px 10px;
    font-size: 12px;
    width: auto;
  }
  .detail-specs-table th { background: #f8f9fa; white-space: normal; }
}
@media (min-width: 641px) {
  .detail-specs-table th,
  .detail-specs-table td { padding: 12px 15px; font-size: 14px; }
  .detail-specs-table th { width: 15%; }
  .detail-specs-table td { width: 35%; }
}

/* --- Options Section --- */
.options-section {
  margin-top: 2rem;
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}
.options-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  padding: 14px;
  border-bottom: 1px solid #e0e0e0;
  margin: 0;
  background: #fff;
}
.options-group-header {
  background: #3d4148;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  text-align: center;
}
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid #e8e8e8;
}
.option-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 7px 8px;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.option-item:nth-child(2n) { border-right: none; }
.option-item.on  { color: var(--brand-blue); font-weight: 600; }
.option-item.off { color: #999; }
.option-check { font-size: 13px; flex-shrink: 0; }

@media (min-width: 480px) {
  .options-grid { grid-template-columns: repeat(3, 1fr); }
  .option-item:nth-child(2n) { border-right: 1px solid #eee; }
  .option-item:nth-child(3n) { border-right: none; }
}
@media (min-width: 768px) {
  .options-grid { grid-template-columns: repeat(4, 1fr); font-size: 13px; }
  .option-item { padding: 8px 10px; }
  .option-item:nth-child(3n) { border-right: 1px solid #eee; }
  .option-item:nth-child(4n) { border-right: none; }
}
@media (min-width: 1024px) {
  .options-grid { grid-template-columns: repeat(5, 1fr); }
  .option-item:nth-child(4n) { border-right: 1px solid #eee; }
  .option-item:nth-child(5n) { border-right: none; }
  .option-item { padding: 8px 12px; }
}

.guarantee-box {
  margin-top: 1.5rem;
  background-color: #f9f9f9;
  padding: 1.5rem;
  border: 1px solid #eee;
  border-left: 4px solid var(--brand-blue);
}

.guarantee-box h4 {
  font-size: 16px;
  color: #333;
  margin: 0 0 10px 0;
}

.guarantee-box p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Right Sidebar Consultant Form */
.consultant-box {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
}

.consultant-box h3 {
  font-size: 18px;
  color: #222;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.consultant-box h3 span {
  font-weight: 300;
  font-size: 16px;
  color: #666;
}

.consultant-desc {
  font-size: 14px;
  color: var(--brand-blue);
  margin-bottom: 2rem;
  line-height: 1.5;
  font-weight: 500;
}

.step-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  margin-top: 25px;
}

.quote-form label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 5px;
  font-weight: 600;
  margin-top: 15px;
}

.quote-form select,
.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="tel"],
.quote-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 14px;
  color: #333;
  outline: none;
  font-family: inherit;
}
.quote-form textarea { resize: vertical; }
.quote-form input[readonly] {
  background-color: #f5f5f5;
  color: #888;
  cursor: default;
}

.total-price-calc {
  background-color: #fff;
  border: 2px solid #ddd;
  padding: 15px;
  text-align: center;
  font-size: 16px;
  margin-bottom: 15px;
  color: #333;
}

.total-price-calc strong {
  color: var(--brand-red);
  font-size: 20px;
  margin-left: 10px;
}

.btn-signin {
  width: 100%;
  background-color: #333;
  color: #fff;
  border: none;
  padding: 15px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-signin:hover {
  background-color: #111;
}

/* Right Sidebar Contact Info */
.contact-info-block {
  border: 1px solid #ddd;
  padding: 1.5rem;
  background-color: #fff;
}

.contact-info-block h4 {
  font-size: 18px;
  color: #333;
  margin: 0 0 1.5rem 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.contact-person {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dotted #ccc;
}

.cp-name {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin-bottom: 5px;
}

.cp-name span {
  font-size: 13px;
  color: #888;
  font-weight: 400;
  margin-left: 10px;
}

.cp-phone {
  font-size: 15px;
  color: #444;
  font-weight: 500;
}

.contact-general p {
  font-size: 13px;
  color: #555;
  margin: 8px 0;
  line-height: 1.5;
}

.contact-general strong {
  color: #333;
  display: inline-block;
  width: 60px;
}
