/* ============================================
   Supplier Vendor Page Layout — Template 1
     미니멀 화이트 참고
   ============================================ */

:root {
  --vendor-dark: #111;
  --vendor-gray: #888;
  --vendor-light-gray: #f5f5f5;
  --vendor-border: #eee;
  --vendor-max-w: 1500px;
}

* {
  box-sizing: border-box;
}

body.supplier-vendor-layout {
  margin: 0;
  padding: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: var(--vendor-dark);
  letter-spacing: -0.02em;
}

body.no-scroll {
  overflow: hidden;
}

#wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   상단 유틸리티 바 — 얇고 심플
   ============================================ */

.top-utility-bar {
  background: #fff;
  border-bottom: 1px solid #f5f5f5;
  font-size: 11px;
  color: #999;
}

.top-utility-bar__inner {
  max-width: var(--vendor-max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
}

.utility-left,
.utility-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #999;
  text-decoration: none;
  font-size: 11px;
  transition: color 0.15s;
}

.utility-link:hover {
  color: var(--vendor-dark);
}

.utility-link svg {
  width: 12px;
  height: 12px;
}

.divider {
  color: #ddd;
  font-size: 10px;
  margin: 0 2px;
}

.user-greeting {
  font-size: 11px;
  color: #999;
}

.user-greeting strong {
  font-weight: 600;
}

/* ============================================
   메인 헤더 —   스타일
   좌: 로고  |  중앙: GNB  |  우: 검색
   ============================================ */

.vendor-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 999;
}

.vendor-header__inner {
  max-width: var(--vendor-max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: relative;
}

/* 로고 좌측 */
.vendor-header__logo-gnb {
  display: flex;
  align-items: center;
  gap: 0;
}

.vendor-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.vendor-logo:hover {
  opacity: 0.7;
}

.vendor-logo img {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border: none;
}

.vendor-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--vendor-dark);
  letter-spacing: -0.03em;
}

/* GNB 중앙 */
.vendor-header__gnb {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.vendor-header__gnb ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gnb_li--link {
  display: inline-block;
  padding: 8px 18px;
  text-decoration: none;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.15s;
  white-space: nowrap;
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.gnb_li--link:hover {
  color: var(--vendor-dark);
}

.gnb_li--link.active {
  color: var(--vendor-dark);
  font-weight: 700;
}

/* 문의하기 버튼 — GNB 내 */
.gnb_li--button {
  color: #555;
  font-weight: 500;
  border: none;
}

.gnb_li--button:hover {
  color: var(--vendor-dark);
  background: none;
}

/* 검색 우측 */
.vendor-header__search-link {
  display: flex;
  align-items: center;
}

.vendor-header__search {
  width: 100%;
}

.vendor-header__search fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.search_input {
  display: flex;
  align-items: center;
  width: 220px;
  height: 34px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0 10px;
  background: #fff;
  transition: border-color 0.15s;
}

.search_input:focus-within {
  border-color: #111;
}

.search_input input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 12px;
  padding: 0;
  background: transparent;
  color: #333;
}

.search_input input[type="text"]::placeholder {
  color: #bbb;
}

.btn_search {
  width: 18px;
  height: 18px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') no-repeat center;
  background-size: 16px;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.btn_search:hover {
  opacity: 1;
}

/* 모바일 메뉴 버튼 */
.btn_mo_menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px 4px;
}

.btn_mo_menu span {
  width: 24px;
  height: 1.5px;
  background: #333;
  transition: all 0.3s;
}

.btn_mo_menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.btn_mo_menu.active span:nth-child(2) {
  opacity: 0;
}

.btn_mo_menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* 모바일 사이드바 */
.mo_sidebar_overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s;
}

.mo_sidebar_overlay.active {
  display: block;
  opacity: 1;
}

.mo_header_sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: #fff;
  z-index: 1002;
  transition: right 0.3s;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mo_header_sidebar.active {
  right: 0;
}

.sidebar__inner {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.mo_header_sidebar .vendor-header__search {
  margin-bottom: 16px;
}

.mo_header_sidebar .search_input {
  width: 100%;
  height: 38px;
}

#mo_gnb {
  margin-top: 8px;
}

#mo_gnb ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#mo_gnb ul li a {
  display: block;
  padding: 14px 12px;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid #f5f5f5;
  transition: color 0.15s;
}

#mo_gnb ul li:last-child a {
  border-bottom: none;
}

#mo_gnb ul li a:hover {
  color: #000;
}

#mo_gnb ul li .mo-gnb-button {
  display: block;
  width: 100%;
  padding: 14px 12px;
  background: none;
  border: none;
  border-bottom: 1px solid #f5f5f5;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

#mo_gnb ul li .mo-gnb-button:hover {
  color: #000;
}

#mo_gnb ul li a.outline {
  color: #333;
  font-weight: 600;
  border: none;
}

#mo_gnb ul li a.outline:hover {
  color: #000;
}

/* ============================================
   Main Content
   ============================================ */

.vendor-main {
  flex: 1;
  background: #fff;
}

.vendor__inner {
  max-width: var(--vendor-max-w);
  margin: 0 auto;
  padding: 32px 24px;
}

/* ============================================
   Footer —   스타일 라이트 푸터
   ============================================ */

.vendor-footer {
  background: #f9f9f9;
  border-top: 1px solid #eee;
  color: #999;
  margin-top: 80px;
  padding: 36px 0 32px;
}

.vendor-footer__inner {
  max-width: var(--vendor-max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}

/* 푸터 좌측 */
.footer_left h1 {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px;
}

.footer_left .text_box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer_left .text_box div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer_left .text_box p {
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
  color: #aaa;
}

/* 푸터 우측 */
.footer_right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu {
  display: flex;
  gap: 40px;
}

.menu .item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu .item ul li:first-child {
  font-size: 11px;
  font-weight: 700;
  color: #555;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu .item ul li a {
  display: block;
  padding: 3px 0;
  color: #aaa;
  text-decoration: none;
  font-size: 11px;
  transition: color 0.15s;
}

.menu .item ul li a:hover {
  color: #333;
}

.footer-chat-btn {
  display: block;
  padding: 3px 0;
  color: #aaa;
  background: none;
  border: none;
  font-size: 11px;
  cursor: pointer;
  transition: color 0.15s;
}
.footer-chat-btn:hover {
  color: #333;
}

/* 푸터 버튼 */
.explan {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btns {
  display: flex;
  gap: 8px;
}

.footer-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s;
  color: #888;
  font-size: 12px;
}

.footer-btn:hover {
  border-color: #333;
  color: #333;
}

.btn-icon {
  font-size: 16px;
}

.btn-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}

.btn-label {
  font-size: 10px;
  color: #bbb;
}

.btn-value,
.btn-link {
  font-size: 12px;
  color: #333;
  font-weight: 600;
  text-decoration: none;
}

/* 푸터 텍스트 */
.explan .text_box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.explan .text_box span {
  font-size: 10px;
  line-height: 1.6;
  color: #ccc;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .vendor-header__inner,
  .top-utility-bar__inner,
  .vendor__inner,
  .vendor-footer__inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .search_input {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .top-utility-bar__inner {
    height: 28px;
  }

  .utility-link,
  .user-greeting {
    font-size: 10px;
  }

  .vendor-header__inner {
    height: 52px;
    padding: 0 16px;
  }

  .vendor-header__gnb {
    display: none;
  }

  .vendor-header__search-link {
    display: none;
  }

  .btn_mo_menu {
    display: flex;
  }

  .vendor__inner {
    padding: 20px 16px;
  }

  .vendor-footer {
    margin-top: 48px;
    padding: 28px 0 24px;
  }

  .vendor-footer__inner {
    flex-direction: column;
    padding: 0 16px;
    gap: 20px;
  }

  .menu {
    flex-direction: column;
    gap: 12px;
  }

  .btns {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .vendor-header__inner {
    height: 48px;
    padding: 0 12px;
  }

  .vendor-name {
    font-size: 16px;
  }

  .vendor-logo img {
    height: 24px;
    max-width: 110px;
  }

  .vendor__inner {
    padding: 16px 12px;
  }

  .vendor-footer {
    margin-top: 36px;
  }

  .vendor-footer__inner {
    padding: 0 12px;
  }
}

/* ============================================
   모바일 사이드바 — 로그인/로그아웃 (공통)
   ============================================ */

.sv-sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.sv-sidebar-user .divider {
  color: #ddd;
  font-size: 11px;
}

.sv-sidebar-user .utility-link {
  font-size: 13px;
  color: #888;
  text-decoration: none;
}

.sv-sidebar-user .utility-link:hover {
  color: #333;
}

.sv-sidebar-user .utility-link[href*="logout"] {
  color: #e74c3c;
}

.sv-sidebar-login {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: #111;
  color: #fff !important;
  text-align: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
}

.sv-sidebar-login:hover {
  background: #000;
}

/* 떠리멤버스 회원공개 가격 마스킹 (공급자 페이지) */
.price-guest-mask {
  display: inline-block;
  padding: 7px 14px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ff5a3c 0%, #ff2d55 100%);
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1.25;
  letter-spacing: -0.3px;
  box-shadow: 0 2px 8px rgba(255, 45, 85, 0.35);
  white-space: nowrap;
}
.price-guest-mask:hover {
  background: linear-gradient(135deg, #ff4a28 0%, #ff1744 100%);
  box-shadow: 0 3px 12px rgba(255, 45, 85, 0.45);
  text-decoration: none;
  color: #fff;
}