/* 사용자 공통 스타일 파일입니다. 공통으로 적용할 스타일 코드를 작성해주세요. */

/* ===================== 직배송 업체 섹션 ===================== */

/* 섹션 여백 */
.delivery-vendors {
  margin: 32px 0 20px;
}

/* 제목 영역 */
.delivery-vendors__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 14px;
}

.delivery-vendors__title {
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.delivery-vendors__title .count b {
  color: #e53935;
}

.delivery-vendors__help {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #dcdfe3;
  background: #fff;
  font-weight: 700;
  line-height: 20px;
  cursor: help;
}

.delivery-vendors__all {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
  margin-top: 6px;
}

/* 스크롤/센터 영역 */
.delivery-vendors__scroller {
  display: flex;
  justify-content: center;
  position: relative;
}

.delivery-vendors__track {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 6px 0;
  overflow-x: visible;
}

.delivery-vendors__track::-webkit-scrollbar {
  display: none;
}

/* 칩 버튼 */
.vendor-pill {
  flex: 0 0 auto;
  min-width: 180px;
  padding: 18px 22px;
  border-radius: 8px;
  border: 1px solid #edf0f3;
  background: #f5f7fa;
  color: #222;
  font-size: 16px;
}

.vendor-pill:hover {
  background: #eef2f6;
}

.vendor-pill.is-active {
  background: #2f3338;
  color: #fff;
  position: relative;
}

.vendor-pill.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #2f3338;
}

/* 좌우 네비 버튼 (필요하면 사용) */
.delivery-vendors__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e2e5ea;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.delivery-vendors__nav.prev {
  left: 4px;
}

.delivery-vendors__nav.next {
  right: 4px;
}

.delivery-vendors__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ===================== 상단 카테고리(전체 상품 / 직배송 업체 / 업종 / 지역 찾기) ===================== */

.shopby-header .nav__slider .nav__slider-item {
  font-size: 17px !important;
  font-weight: 500 !important;
  color: #222 !important;
  padding: 0 28px !important;
}

.shopby-header .nav__slider .nav__slider-item-wrap {
  position: relative;
  margin-right: 0 !important;
}

.shopby-header .nav__slider .nav__slider-item-wrap + .nav__slider-item-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: #e1e1e1;
}

/* ===================== 전체 카테고리(ALL CATEGORY 패널) ===================== */
/* → “전체 상품” 블록 하나만 보여주고, 그 안을 4열 그리드로 */

.nav__all-menu dl {
  display: block !important;
}

.nav__all-menu .all-menu__category {
  display: none;
}

/* 첫 번째 카테고리(전체 상품)만 사용 */
.nav__all-menu .all-menu__category:first-child {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* dt/dd 여백 제거 */
.nav__all-menu .all-menu__category:first-child dt,
.nav__all-menu .all-menu__category:first-child dd {
  margin: 0 !important;
  padding: 0 !important;
}

/* 큰 제목(전체 상품) */
.nav__all-menu .all-menu__category:first-child .all-menu__tit {
  display: block;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 24px;
  white-space: nowrap;
}

/* 리스트 4열 그리드 */
.nav__all-menu .all-menu__category:first-child .all-menu__list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 !important;
  padding: 4px 0 24px !important;
}

/* 각 항목 – 4열 */
.nav__all-menu .all-menu__category:first-child .all-menu__list li {
  width: 25%;
  box-sizing: border-box;
  list-style: none;
  margin: 0 !important;
  padding: 12px 28px 12px 0 !important;
  position: relative;
  text-indent: 0 !important;
}

/* 첫 번째 li도 동일하게 */
.nav__all-menu .all-menu__category:first-child .all-menu__list li:first-child {
  margin: 0 !important;
  padding: 12px 28px 12px 0 !important;
}

/* 링크 스타일 */
.nav__all-menu .all-menu__category:first-child .all-menu__list a.all-menu__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

/* 첫 링크만 굵게/들여쓰기 되는 것 방지 */
.nav__all-menu .all-menu__category:first-child .all-menu__list li:first-child a.all-menu__link {
  font-weight: 400 !important;
  margin: 0 !important;
  text-indent: 0 !important;
}

.nav__all-menu .all-menu__category:first-child .all-menu__list a.all-menu__link:hover {
  text-decoration: underline;
}

/* 세로 구분선 */
.nav__all-menu .all-menu__category:first-child .all-menu__list li::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 8px;
  width: 1px;
  height: 18px;
  background: #eee;
}

/* 4열 기준 마지막 컬럼은 세로선 제거 */
.nav__all-menu .all-menu__category:first-child .all-menu__list li:nth-child(4n)::after {
  display: none;
}

/* 반응형 – 좁을수록 열 수 줄이기 */
@media (max-width: 1200px) {
  .nav__all-menu .all-menu__category:first-child .all-menu__list li {
    width: 33.3333%;
  }
  .nav__all-menu .all-menu__category:first-child .all-menu__list li:nth-child(3n)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav__all-menu .all-menu__category:first-child .all-menu__list li {
    width: 50%;
  }
  .nav__all-menu .all-menu__category:first-child .all-menu__list li:nth-child(2n)::after {
    display: none;
  }
}

/* ===================== 직배송 전용 섹션(하단 별도 박스) ===================== */

.direct-section {
  max-width: 1040px;
  margin: 40px auto;
  padding: 24px;
  border-radius: 16px;
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif;
}

.direct-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

#direct-area-label {
  color: #111827;
}

#direct-company-count {
  color: #dc2626;
  font-size: 18px;
}

.direct-sub {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}

.chip-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 8px;
}

.chip-list::-webkit-scrollbar {
  height: 6px;
}

.chip-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #d1d5db;
}

.chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 14px;
  color: #111827;
  white-space: nowrap;
}

.chip.active {
  background: #111827;
  color: #ffffff;
}

.open-popup-btn {
  margin-top: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #111827;
  background: #ffffff;
  font-size: 13px;
  cursor: pointer;
}

/* ===================== 지역 선택 팝업 ===================== */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-overlay.show {
  display: flex;
}

.popup {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 24px 16px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

.popup-close {
  position: absolute;
  right: 18px;
  top: 16px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.popup-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  margin-bottom: 16px;
}

.popup-title-box {
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
}

.popup-title-box .highlight {
  background: #fef9c3;
}

.popup-subtitle {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.popup-desc {
  font-size: 13px;
  color: #f97316;
  margin-bottom: 16px;
}

.grid-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.grid-buttons button {
  padding: 10px 4px;
  border-radius: 6px;
  border: none;
  background: #f3f4f6;
  font-size: 14px;
  cursor: pointer;
}

.grid-buttons button:hover {
  background: #e5e7eb;
}

.step2-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.back-btn {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

#step2-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.popup-bottom-banner {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(to right, #fef3c7, #e0f2fe);
  font-size: 12px;
  text-align: center;
  color: #111827;
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .popup {
    margin: 0 16px;
    padding: 20px 16px 12px;
  }
}

/* ===================== ALL CATEGORY : "전체 상품" 타이틀 식봄스타일 + 로고 ===================== */

.nav__all-menu .all-menu__category:first-child .all-menu__tit {
  margin-bottom: 50px;
  margin-left: 0;
  padding-left: 0;
}

.nav__all-menu .all-menu__category:first-child .all-menu__tit .all-menu__link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: 0;
  text-decoration: none;
}

/* 왼쪽에 마스터푸드 로고 아이콘 */
.nav__all-menu .all-menu__category:first-child .all-menu__tit .all-menu__link::before {
  content: "";
  width: 28px;
  height: 28px;
  margin-bottom: 20px;
  background: url("/logo.png") no-repeat center / contain;
}

/* 오른쪽에 “전체 상품” 텍스트 (초록색) */
.nav__all-menu .all-menu__category:first-child .all-menu__tit .all-menu__link::after {
  content: "전체 상품";
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #16a34a;
}

/* ===================================== */
/* 푸터 : 고객센터 / 입점문의 + 하단 정보 */
/* ===================================== */

.mf-footer {
  background: #ffffff;
}

/* 상단 고객센터 / 입점문의 바 */
.mf-footer-top {
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  background: #fafafa;
}

.mf-footer-top__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 40px;
}

/* 공통 컬럼 */
.mf-footer-top__cs,
.mf-footer-top__seller {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 왼쪽 : 고객센터 */
.mf-footer-top__cs {
  flex: 1.2;
}

.mf-footer-top__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #111827;
}

.mf-footer-top__tel {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #111827;
}

.mf-footer-top__time {
  font-size: 13px;
  color: #6b7280;
}

/* 버튼 카드 3개 (카카오 / FAQ / 공지사항) */
.mf-footer-top__btn-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.mf-footer-top__btn {
  flex: 1;
  min-width: 140px;
  max-width: 190px;
  height: 110px;
  border-radius: 8px;
  border: 1px solid #dddddd;
  background: #ffffff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.mf-footer-top__btn:hover {
  border-color: #333333;
}

.mf-footer-top__btn-text {
  font-size: 14px;
  color: #333333;
  font-weight: 500;
}

/* 카카오톡 버튼 */
.mf-footer-top__btn--kakao {
  background: #ffe812;
  border-color: #ffe812;
}

.mf-footer-top__btn-ch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #000000;
  color: #ffe812;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 16px;
}

/* 오른쪽 : 판매자 입점 문의 */
.mf-footer-top__seller {
  flex: 0 0 260px;
  align-items: flex-start;
}

.mf-footer-top__seller .mf-footer-top__title {
  margin-bottom: 2px;
}

.mf-footer-top__seller .mf-footer-top__tel {
  font-size: 24px;
}

.mf-footer-top__seller .mf-footer-top__time {
  margin-bottom: 10px;
}

.mf-footer-top__seller .mf-footer-top__time a {
  color: #111827;
  text-decoration: underline;
}

/* 입점 신청 버튼 */
.mf-footer-top__btn--seller {
  margin-top: 4px;
  width: 200px;
  height: 110px;
  border-radius: 8px;
  border: 1px solid #555555;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mf-footer-top__btn--seller .mf-footer-top__btn-text {
  font-size: 14px;
  font-weight: 600;
}

/* -------- 하단 기본 shopby 영역 손질 -------- */

/* 약관 링크를 작은 버튼 느낌으로 */
.mf-footer .footer__about-company span a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  margin-right: 4px;
  margin-bottom: 4px;
  font-size: 12px;
  background: #f3f4f6;
  color: #4b5563;
}

.mf-footer .footer__about-company span a.bold {
  background: #16a34a;
  color: #ffffff;
}

/* 회사 정보 줄 간격 */
.mf-footer__company-wrap address {
  font-style: normal;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
  margin-top: 10px;
}

.mf-footer__company-wrap .copyright {
  margin-top: 8px;
  font-size: 12px;
  color: #9ca3af;
}

/* footer__quick-link */
.mf-footer .footer__quick-link ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mf-footer .footer__quick-link li {
  margin-bottom: 4px;
}

.mf-footer .footer__quick-link a {
  font-size: 13px;
  color: #4b5563;
}

/* 마크 영역 정렬 */
.mf-footer .footer__mark {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

/* 반응형 : 상단 영역 세로 배치 */
@media (max-width: 768px) {
  .mf-footer-top__inner {
    flex-direction: column;
    gap: 20px;
    padding: 20px 16px;
  }

  .mf-footer-top__seller {
    align-items: flex-start;
  }

  .mf-footer-top__btn-row {
    flex-wrap: wrap;
  }

  .mf-footer-top__btn,
  .mf-footer-top__btn--seller {
    max-width: none;
    width: 100%;
  }
}

/* 푸터 전체 기본 패딩/배경 초기화 (위에 회색 빈 줄 없애기) */
.mf-footer.shopby-common-footer .footer {
  padding: 0 !important;       /* 위쪽 큰 여백 제거 */
  margin: 0 !important;
  background: #ffffff !important;  /* 회색 배경 → 흰색 */
  border: none !important;
}

/* 우리가 만든 고객센터 바가 바로 위에 붙도록 */
.mf-footer-top {
  margin-top: 0;
}

/* 푸터 중간 영역(게시판 링크 / CS CENTER / BANK INFO) 상단 여백 */
.mf-footer .footer__quick-link,
.mf-footer .footer__info {
  margin-top: 32px !important;
}

.mf-footer .footer__quick-link {
  padding-bottom: 8px;
}
.mf-footer__company-wrap {
  margin-top: 24px;
}
