/* =========================================
   JD DETAIL
========================================= */

.jd-detail {
  padding: 40px 20px 100px;
  background: #fff;
}

.jd-detail-inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* =========================================
   TOP HEADER
========================================= */

.jd-top-head {
  padding: 18px 0 24px;
  margin-bottom: 28px;

  border-top: 2px solid #111827;
  border-bottom: 1px solid #e5e7eb;
}

/* =========================================
   STATUS
========================================= */

.jd-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 120px;
  height: 52px;

  padding: 0 24px;

  border-radius: 16px;

  font-size: 16px;
  font-weight: 800;

  border: 1px solid transparent;
}

.jd-status.sale {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.jd-status.done {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #4b5563;
}

/* =========================================
   TITLE
========================================= */

.jd-main-title {
  margin-top: 12px;

  font-size: 30px;
  line-height: 1.4;

  font-weight: 800;

  color: #111827;

  word-break: keep-all;
}

/* =========================================
   META
========================================= */

.jd-main-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;

  margin-top: 12px;
}

.jd-main-meta-left,
.jd-main-meta-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.jd-main-meta-left span,
.jd-main-meta-right span {
  position: relative;

  font-size: 14px;
  color: #888;
}

.jd-main-meta-left span {
  padding-right: 14px;
  margin-right: 10px;
}

.jd-main-meta-left span::after {
  content: "";

  position: absolute;

  top: 50%;
  right: 0;

  width: 4px;
  height: 4px;

  margin-top: -2px;

  border-radius: 50%;

  background: #d1d5db;
}

.jd-main-meta-left span:last-child {
  margin-right: 0;
  padding-right: 0;
}

.jd-main-meta-left span:last-child::after {
  display: none;
}


/* 우측 메타 점 처리 */

.jd-main-meta-right span{
    padding-right:14px;
    margin-right:10px;
}

.jd-main-meta-right span::after{
    content:"";

    position:absolute;

    top:50%;
    right:0;

    width:4px;
    height:4px;

    margin-top:-2px;

    border-radius:50%;

    background:#d1d5db;
}

.jd-main-meta-right span:last-child{
    margin-right:0;
    padding-right:0;
}

.jd-main-meta-right span:last-child::after{
    display:none;
}


/* =========================================
   HERO
========================================= */

.jd-hero {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr) 360px;

  gap: 48px;
}

.jd-left {
  min-width: 0;
}

/* =========================================
   GALLERY
========================================= */

.jd-gallery {
  position: relative;

  overflow: hidden;

  border-radius: 18px;

  border: 1px solid #e5e7eb;

  background: #fff;

  box-shadow:
    0 10px 30px rgba(15, 23, 42, .05);
}

.jd-no-image {
  aspect-ratio: 16/10;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f8fafc;

  color: #94a3b8;

  font-size: 16px;
  font-weight: 600;
}

.jd-main-swiper {
  aspect-ratio: 16/10;
}

.jd-main-swiper img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;

  cursor:pointer;
}

.jd-photo-count {
  position: absolute;

  top: 14px;
  right: 14px;

  z-index: 20;

  display: flex;
  align-items: center;
  gap: 6px;

  padding: 8px 12px;

  border-radius: 999px;

  background: rgba(0, 0, 0, .7);

  color: #fff;

  font-size: 13px;
  font-weight: 700;
}

.jd-gallery .swiper-pagination {
  bottom: 16px !important;
}

.jd-gallery .swiper-pagination-bullet {
  width: 10px;
  height: 10px;

  background: rgba(255, 255, 255, .7);

  opacity: 1;
}

.jd-gallery .swiper-pagination-bullet-active {
  width: 24px;

  border-radius: 999px;

  background: #2563eb;
}

/* =========================================
   SUMMARY
========================================= */

.jd-summary {
  margin-top: 42px;
}

.jd-section-title {
  margin-bottom: 24px;

  font-size: 28px;
  font-weight: 800;

  color: #111827;
}

.jd-summary-table {
  border-top: 2px solid #111827;
}

.jd-summary-row {
  display: flex;

  border-bottom: 1px solid #e5e7eb;
}

.jd-summary-label {
  width: 180px;

  flex-shrink: 0;

  padding: 20px 0;

  font-size: 15px;
  font-weight: 700;

  color: #555;
}

.jd-summary-value {
  flex: 1;

  padding: 20px 0;

  font-size: 16px;
  font-weight: 600;

  color: #111827;
}

/* =========================================
   DESCRIPTION
========================================= */

.jd-description {
  margin-top: 70px;
}

.jd-content {
  font-size: 17px;
  line-height: 1.9;

  color: #222;

  word-break: keep-all;
}

.jd-content img {
  max-width: 100%;
  height: auto;

  border-radius: 18px;
}

.jd-content iframe {
  max-width: 100%;
}

.jd-content p {
  margin: 0 0 18px;
}

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

/* =========================================
   RIGHT
========================================= */

.jd-right {
  position: relative;
}

.jd-sticky {
  position: sticky;
  top: 170px;

  padding: 34px 30px;

  border-radius: 28px;

  background: #fff;

  border: 1px solid #e5e7eb;

  box-shadow:
    0 10px 30px rgba(15, 23, 42, .06);

  box-sizing: border-box;
}

/* =========================================
   PRICE
========================================= */

.jd-price-box {
  padding-bottom: 28px;

  border-bottom: 1px solid #e5e7eb;
}

.jd-price-label {
  margin-bottom: 12px;

  font-size: 14px;

  color: #777;
}

.jd-price {
  font-size: 42px;

  font-weight: 800;

  letter-spacing: -2px;

  color: #111827;
}

.jd-price-unit {
  margin-left: 4px;

  font-size: 20px;
  font-weight: 700;
}

/* =========================================
   CONTACT
========================================= */

.jd-contact {
  margin-top: 24px;
}

.jd-call-btn {
  width: 100%;
  height: 62px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  border-radius: 18px;

  background: #2563eb;
  color: #fff;

  font-size: 18px;
  font-weight: 800;

  transition: .2s;
}

.jd-call-btn:hover {
  background: #1d4ed8;

  transform: translateY(-1px);
}

.jd-call-btn svg {
  width: 20px;
  height: 20px;

  stroke-width: 2.4;
}

/* =========================================
   DEALER
========================================= */

.jd-dealer {
  margin-top: 28px;

  padding-top: 28px;

  border-top: 1px solid #e5e7eb;
}

.jd-dealer-head {
  margin-bottom: 18px;

  font-size: 14px;
  font-weight: 700;

  color: #777;
}

.jd-dealer-type {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  height: 30px;

  padding: 0 12px;

  margin-bottom: 12px;

  border-radius: 999px;

  background: #eff6ff;

  color: #2563eb;

  font-size: 13px;
  font-weight: 700;
}

.jd-dealer-name {
  font-size: 28px;
  font-weight: 800;

  line-height: 1.4;

  color: #111827;
}

.jd-dealer-phone {
  margin-top: 14px;

  font-size: 32px;
  font-weight: 800;

  color: #2563eb;
}

.jd-dealer-address {
  margin-top: 16px;

  font-size: 15px;
  line-height: 1.7;

  color: #555;
}

/* =========================================
   OTHER ITEMS
========================================= */

.jd-other-items {
  margin-top: 24px;

  padding: 20px;

  border: 1px solid #e5e7eb;
  border-radius: 16px;

  background: #fff;
}

.jd-other-title {
  margin-bottom: 14px;

  font-size: 15px;
  font-weight: 700;

  color: #111827;
}

.jd-other-link {
  display: flex;
  align-items: center;

  gap: 12px;

  padding: 10px 0;

  border-bottom: 1px solid #f3f4f6;

  text-decoration: none;
}

.jd-other-link:last-child {
  border-bottom: none;
}

.jd-other-thumb {
  width: 80px;
  height: 80px;

  flex-shrink: 0;

  overflow: hidden;

  border-radius: 10px;

  background: #f3f4f6;
}

.jd-other-thumb img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.jd-no-thumb {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 10px;

  color: #9ca3af;
}

.jd-other-info {
  flex: 1;
  min-width: 0;
}

.jd-other-subject {
  font-size: 14px;
  font-weight: 700;

  color: #111827;

  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.jd-other-price {
  margin-top: 6px;

  font-size: 15px;
  font-weight: 800;

  color: #2563eb;
}

/* =========================================
   SIMILAR PARTS
========================================= */

.jd-similar-items {
  margin-top: 32px;

  padding: 24px;

  background: #fff;

  border: 1px solid #e5e7eb;
  border-radius: 20px;
}

.jd-similar-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 14px;
}

.jd-similar-card {
  display: flex;

  gap: 12px;

  padding: 12px;

  border: 1px solid #eef2f7;
  border-radius: 14px;

  text-decoration: none;

  transition: .2s;
}

.jd-similar-card:hover {
  border-color: #2563eb;

  transform: translateY(-2px);
}

.jd-similar-thumb {
  width: 90px;
  height: 90px;

  flex-shrink: 0;

  overflow: hidden;

  border-radius: 12px;

  background: #f3f4f6;
}

.jd-similar-thumb img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.jd-similar-info {
  flex: 1;
  min-width: 0;
}

.jd-similar-subject {
  font-size: 14px;
  font-weight: 700;

  line-height: 1.45;

  color: #111827;

  display: -webkit-box;

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;
}

.jd-similar-price {
  margin-top: 10px;

  font-size: 17px;
  font-weight: 800;

  color: #2563eb;
}

/* =========================================
   BOTTOM BUTTONS
========================================= */

.jd-bottom-actions {
  display: flex;

  gap: 12px;

  margin-top: 70px;
}

.jd-bottom-actions a {
  min-width: 120px;
  height: 54px;

  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  font-size: 15px;
  font-weight: 700;

  transition: .2s;
}

.jd-btn-outline {
  border: 1px solid #d1d5db;

  background: #fff;
  color: #111827;
}

.jd-btn-outline:hover {
  background: #f3f4f6;
}

.jd-btn-delete {
  background: #ef4444;
  color: #fff;
}

.jd-btn-delete:hover {
  background: #dc2626;
}

/* =========================================
   MOBILE FIXED CALL
========================================= */

.jd-mobile-fixed {
  display: none;
}

.jd-mobile-call {
  width: 100%;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  border-radius: 16px;

  background: #2563eb;
  color: #fff;

  font-size: 16px;
  font-weight: 800;
}

.jd-mobile-call svg {
  width: 18px;
  height: 18px;

  stroke-width: 2.4;
}

/* =========================================
   GALLERY MODAL
========================================= */

#jd-gallery-modal {
  position: fixed;

  inset: 0;

  background: #000;

  z-index: 9999;

  display: none;
}

#jd-gallery-modal.show {
  display: block;
}

.jd-gallery-swiper {
  width: 100%;
  height: 100vh;
}

.jd-gallery-swiper img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

.jd-gallery-close {
  position: absolute;

  top: 20px;
  right: 20px;

  z-index: 10001;

  width: 44px;
  height: 44px;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, .15);

  color: #fff;

  font-size: 22px;

  cursor: pointer;
}

.jd-gallery-prev,
.jd-gallery-next {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  z-index: 10001;

  width: 54px;
  height: 54px;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, .15);

  color: #fff;

  font-size: 34px;

  cursor: pointer;
}

.jd-gallery-prev {
  left: 20px;
}

.jd-gallery-next {
  right: 20px;
}

/* =========================================
   TABLET
========================================= */

@media(max-width:1024px) {

  .jd-hero {
    grid-template-columns: 1fr;
  }

  .jd-sticky {
    position: static;
  }

  .jd-main-swiper {
    aspect-ratio: 4/3;
  }

}

/* =========================================
   MOBILE
========================================= */

@media(max-width:768px) {

  .jd-detail {
    padding: 24px 16px 100px;
  }

  .jd-main-title {
    font-size: 24px;
  }

  .jd-main-meta {
    flex-direction: column;

    align-items: flex-start;

    gap: 12px;
  }

  .jd-hero {
    gap: 28px;
  }

  .jd-section-title {
    font-size: 22px;
  }

  .jd-summary-label {
    width: 110px;

    font-size: 14px;
  }

  .jd-summary-value {
    font-size: 14px;
  }

  .jd-content {
    font-size: 15px;
  }

  .jd-price {
    font-size: 34px;
  }

  .jd-dealer-name {
    font-size: 22px;
  }

  .jd-dealer-phone {
    font-size: 26px;
  }

  .jd-similar-grid {
    grid-template-columns: 1fr;
  }

  .jd-bottom-actions {
    flex-direction: column;
  }

  .jd-bottom-actions a {
    width: 100%;
  }

  .jd-mobile-fixed {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 999;

    display: flex;

    padding: 14px 16px;

    background: #fff;

    border-top: 1px solid #e5e7eb;
  }

}

/* 부품 뷰 뱃지 */ 

.jd-ad-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    height:28px;

    padding:0 12px;

    border-radius:999px;

    font-size:12px;
    font-weight:700;
}

.jd-ad-badge.recommend{
    background:#eff6ff;
    color:#2563eb;
}

.jd-ad-badge.premium{
    background:#fef3c7;
    color:#d97706;
}

.jd-hot-badge{

    display:inline-flex;
    align-items:center;

    padding:0;

    background:none;

    border:none;

    color:#ea580c;

    font-size:14px;
    font-weight:700;

    line-height:1;
}


/* =========================================
   META ICON
========================================= */

.jd-meta-icon{
    position:relative;

    padding-right:14px;
    margin-right:10px;
}

.jd-meta-icon:last-child{
    padding-right:0;
    margin-right:0;
}

.jd-meta-icon::after{
    content:"";

    position:absolute;

    top:50%;
    right:0;

    width:4px;
    height:4px;

    margin-top:-2px;

    border-radius:50%;

    background:#d1d5db;
}

.jd-meta-icon:last-child::after{
    display:none;
}

.jd-like-btn,
.jd-report-btn{

    display:flex;
    align-items:center;
    justify-content:center;

    padding:0;

    border:none;
    background:none;

    color:#666;

    cursor:pointer;
}

/* 찜 */

.jd-like-btn.active{
    color:#dc2626;
}

.jd-like-btn.active svg{
    fill:#dc2626;
    stroke:#dc2626;
}

.jd-like-count-wrap{
    display:inline-flex;
    align-items:center;
    gap:4px;

    font-size:14px;
    color:#666;
}

.jd-like-count-wrap strong{
    font-weight:800;
}

.jd-like-btn svg,
.jd-report-btn svg{

    width:18px;
    height:18px;

    stroke-width:2.2;
}