

/* ===== Section ===== */
.md-pick-section {
  padding: 40px 0;
  background-color: #fff;
}

/* ===== Section Header ===== */
.md-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: none;
}

.md-header .text-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.md-header .title {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.3px;
}

.md-header .desc {
  font-size: 14px;
  color: #888;
  font-weight: 400;
}

.md-header .link-more {
  font-size: 13px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 500;
  transition: color 0.2s;
}

.md-header .link-more:hover {
  color: #111;
}

/* ===== Grid — PC 4열, 모바일 1열 ===== */
.md-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== Card — Discover Feed Style ===== */
.md-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e8e5;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.md-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* ----- Top Bar: 공급업체명 ----- */
.md-card .card-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0ed;
  background: #fafaf9;
}

.md-card .supplier-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* 공급업체 이니셜 아바타 */
.md-card .supplier-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8e8e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #666;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.md-card .supplier-name {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.md-card .topbar-price {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-bottom: 6px;
}

.md-card .topbar-price .discount {
  font-size: 14px;
  font-weight: 800;
  color: #d32f2f;
  letter-spacing: -0.3px;
}

.md-card .topbar-price .price {
  font-size: 14px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.3px;
}

.md-card .topbar-price .original {
  font-size: 12px;
  color: #bbb;
  text-decoration: line-through;
  font-weight: 400;
}

/* ----- Thumbnail ----- */
.md-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 비율 — 피드 스타일 */
  overflow: hidden;
  background: #f5f5f3;
}

.md-thumb .img-link {
  display: block;
}

.md-thumb .img-link img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.md-card:hover .md-thumb img {
  transform: scale(1.03);
}

/* 장바구니 버튼 */
.md-thumb .btn-cart {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.md-card:hover .btn-cart {
  opacity: 1;
  transform: translateY(0);
}

.md-thumb .btn-cart:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* 품절 */
.soldout-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.soldout-cover span {
  font-size: 13px;
  font-weight: 700;
  color: #555;
  border: 1px solid #bbb;
  padding: 6px 14px;
  border-radius: 100px;
  background: #fff;
}

/* ----- Info Area: 상품명 + 스토리 ----- */
.md-info {
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.info-link {
  text-decoration: none;
}

.md-info .prod-name {
  font-size: 16px;
  color: #111;
  line-height: 1.45;
  margin-bottom: 2px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 30px;
}

.md-info .brand {
  font-weight: 800;
  color: #111;
  margin-right: 3px;
}

/* 상품 스토리 */
.md-info .prod-story {
  font-size: 13.5px;
  color: #777;
  line-height: 1.55;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: 10px;
}

/* 가격 행 — 인포 하단 (topbar에도 가격이 있지만, 모바일 접근성을 위해 유지) */
.md-info .price-row {
  display: none; /* 기본은 topbar에 가격 표시하므로 숨김 */
}

/* 태그 */
.md-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.md-tag {
  font-size: 11px;
  color: #666;
  background-color: #f0f0ed;
  padding: 3px 8px;
  border-radius: 100px;
  font-weight: 500;
}

/* 쿠폰 */
.new_coupon {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 8px 12px;
  background: #fff5f5;
  border-radius: 8px;
  border: 1px solid #ffe0e0;
}

.new_coupon span {
  font-size: 13px;
  color: #d32f2f;
  font-weight: 600;
}

.new_coupon span:first-child {
  font-weight: 800;
}

/* ===== Responsive — Tablet ===== */
@media (max-width: 1024px) {
  .md-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ===== Responsive — Mobile ===== */
@media (max-width: 640px) {
  .md-pick-section {
    padding: 24px 0;
  }

  .md-header {
    margin-bottom: 16px;
    align-items: center;
  }

  .md-header .title {
    font-size: 18px;
  }

  .md-header .desc {
    display: none;
  }

  /* 모바일 1열 */
  .md-product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 카드 라운딩 줄이기 */
  .md-card {
    border-radius: 0px;
    padding: 10px;
  }

  /* 탑바 */
  .md-card .card-topbar {
    padding: 12px 14px;
  }

  .md-card .supplier-avatar {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .md-card .supplier-name {
    font-size: 12px;
  }

  .md-card .topbar-price .discount {
    font-size: 13px;
  }

  .md-card .topbar-price .price {
    font-size: 13px;
  }

  .md-card .topbar-price .original {
    font-size: 11px;
  }

  /* 썸네일 — 모바일에서도 16:9 유지 */
  .md-thumb {
    padding-top: 56.25%;
  }

  /* 장바구니 버튼 항상 표시 */
  .md-thumb .btn-cart {
    opacity: 1;
    transform: translateY(0);
    width: 34px;
    height: 34px;
    bottom: 8px;
    right: 8px;
  }

  .md-thumb .btn-cart svg {
    width: 16px;
    height: 16px;
  }

  /* 인포 */
  .md-info {
    padding: 12px 14px 16px;
  }

  .md-info .prod-name {
    font-size: 22px;
  }

  .md-info .prod-story {
    font-size: 18px;
    -webkit-line-clamp: 3;
  }

  .md-pick-section {
    padding: 10px 0;
  }

  .new_coupon span {
    font-size: 12px;
  }
}