/* =========================================================
   장비다 2.0 APP CSS
========================================================= */

:root {

  --jb-primary: #2563eb;
  --jb-dark: #111827;
  --jb-text: #222222;
  --jb-gray: #666666;
  --jb-border: #e5e7eb;
  --jb-bg: #f5f7fb;
  --jb-white: #ffffff;

  --jb-radius: 12px;
  --jb-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);

}

/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: 'Pretendard', sans-serif;
  font-size: 16px;
  color: var(--jb-text);
  background: var(--jb-bg);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* =========================================================
   LAYOUT
========================================================= */

#jb-app {
  min-height: 100vh;
}

.jb-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.jb-main {
  min-height: 600px;
}


/* =========================================================
   HEADER 2.0
========================================================= */

.jb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 18px rgba(0, 0, 0, .04);
}

/* HEADER INNER */

.jb-header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 88px;
}

/* LOGO */

.jb-logo {
  flex-shrink: 0;
}

.jb-logo a {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #111827;
}

.jb-logo-point {
  color: var(--jb-primary);
}

/* SEARCH */

.jb-search-wrap {
  flex: 1;
  max-width: 560px;

  margin-right: auto;
}

.jb-search-form {
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 58px;
  border: 2px solid var(--jb-primary);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, .10);
}

.jb-search-form input {
  flex: 1;
  height: 100%;
  border: 0;
  padding: 0 24px;
  font-size: 16px;
}

.jb-search-form input:focus {
  outline: none;
}

.jb-search-form button {
  width: 120px;
  height: 100%;
  border: 0;
  background: var(--jb-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

/* =========================================
   HEADER UTIL
========================================= */

.jb-util {
  display: flex;
  align-items: center;
  gap: 12px;

  flex-shrink: 0;
}

.jb-util a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 40px;

  padding: 0 14px;

  border-radius: 10px;

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

  color: #444;

  transition: all .2s ease;

  white-space: nowrap;
}

/* hover */

.jb-util a:not(.jb-btn-sell):not(.jb-partner-link):hover {
  color: #111827;
  background: #f3f4f6;
}

/* 회원가입 */

.jb-util .jb-register-link {
  border: 1px solid #dbe2ea;
  background: #fff;
}

.jb-util .jb-register-link:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

/* 파트너입점 */

.jb-util .jb-partner-link {
  background: #2563eb;
  color: #fff !important;

  font-weight: 700;

  box-shadow:
    0 4px 12px rgba(37, 99, 235, .18);
}

.jb-util .jb-partner-link:hover {
  background: #1d4ed8;
  color: #fff !important;

  transform: translateY(-1px);
}


/* SELL BUTTON */

.jb-btn-sell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--jb-primary);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
}

.jb-btn-sell:hover {
  background: #1d4ed8;
  color: #fff !important;

  transform: translateY(-1px);
}

/* =========================================================
   GNB
========================================================= */

.jb-gnb {
  border-top: 1px solid #f1f5f9;
  background: #fff;
}

.jb-gnb-menu {
  display: flex;
  align-items: center;

  gap: 42px;

  height: 58px;
}

/* link */

.jb-gnb-menu li a {
  position: relative;

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

  height: 58px;

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

  color: #222;

  transition: all .2s ease;
}

/* hover */

.jb-gnb-menu li a:hover {
  color: var(--jb-primary);
}

/* underline */

.jb-gnb-menu li a::after {
  content: '';

  position: absolute;

  left: 0;
  bottom: 8px;

  width: 0;
  height: 3px;

  border-radius: 999px;

  background: var(--jb-primary);

  transition: width .2s ease;
}

/* hover underline */

.jb-gnb-menu li a:hover::after {
  width: 100%;
}

/* =========================================
   ACTIVE
========================================= */

.jb-gnb-menu li a.active {
  color: var(--jb-primary);
}

.jb-gnb-menu li a.active::after {
  width: 100%;
}



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

.jb-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background:
    linear-gradient(135deg,
      #1e3a8a,
      #2563eb);
  color: #fff;
}

.jb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right,
      rgba(255, 255, 255, .12),
      transparent 40%);
}


.jb-hero-content {
  text-align: center;
}

.jb-hero-content h2 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 16px;
}

.jb-hero-content p {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 40px;
}

.jb-hero-sub {
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 600;
  opacity: .9;
}

.jb-hero-count {
  margin-bottom: 32px;
  font-size: 18px;
  opacity: .95;
}

.jb-hero-count strong {
  font-size: 28px;
  font-weight: 800;
}

/* =========================================================
   MAIN SEARCH 2.0
========================================================= */

.jb-main-search {
  max-width: 1100px;
  margin: 40px auto 0;
}

/* TYPE */

.jb-search-type {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}

.type-btn {
  height: 54px;
  padding: 0 34px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}

.type-btn.active {
  background: #fff;
  color: #111827;
}

/* SEARCH BOX */

.jb-search-box {
  display: grid;
  grid-template-columns:
    1fr 1fr 1fr 180px;
  gap: 14px;
}

.jb-search-select {
  background: #fff;
  border-radius: 18px;
  padding: 14px 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
}

.jb-search-select span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #888;
}

.jb-search-select select {
  width: 100%;
  height: 34px;
  border: none;
  background: none;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.jb-search-select select:focus {
  outline: none;
}

.jb-search-btn {
  border: none;
  border-radius: 18px;
  background: #111827;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}

/* MOBILE */

@media (max-width:768px) {

  .jb-search-box {
    grid-template-columns: 1fr;
  }

  .jb-search-btn {
    height: 58px;
  }

}

/* =========================================================
   SECTION
========================================================= */

.jb-section {
  padding: 60px 0;
}

.jb-section-title {
  margin-bottom: 24px;
  font-size: 28px;
  font-weight: 800;
}

.jb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.jb-section-head h3 {
  font-size: 28px;
  font-weight: 800;
}





/* =========================================================
   EQUIPMENT CARD
========================================================= */

.jb-equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.jb-card {
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--jb-shadow);
  transition: all .2s ease;
}

.jb-card:hover {
  transform: translateY(-4px);
}

.jb-card-premium {
  border: 2px solid rgba(37, 99, 235, .14);
}

.jb-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .10);
  color: var(--jb-primary);
  font-size: 12px;
  font-weight: 700;
}

.jb-card-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #eee;
}

.jb-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jb-card-body {
  padding: 18px;
}

.jb-card-title {
  font-size: 16px;
  font-weight: 700;
}

.jb-card-meta {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

.jb-card-price {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 800;
  color: var(--jb-primary);
}

/* =========================================================
   BUTTON
========================================================= */

.jb-btn-write,
.jb-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--jb-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* =========================================================
   PARTNER
========================================================= */

.jb-partner-banner {
  padding: 80px 0;
  background: #111827;
  color: #fff;
  text-align: center;
}

.jb-partner-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
}

.jb-partner-content h3 {
  font-size: 36px;
  margin-bottom: 16px;
}

.jb-partner-content p {
  margin-bottom: 24px;
  opacity: 0.9;
}

/* =========================================================
   FOOTER
========================================================= */

.jb-footer {
  padding: 70px 0;
  background: #fff;
  border-top: 1px solid var(--jb-border);
}

.jb-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 34px;
}

.jb-footer-menu a {
  font-size: 15px;
  font-weight: 600;
  color: #444;
  transition: all .2s ease;
}

.jb-footer-menu a:hover {
  color: var(--jb-primary);
}

.jb-footer-company {
  margin-bottom: 28px;
}

.jb-footer-company strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 800;
  color: #111827;
}

.jb-footer-company p {
  font-size: 15px;
  color: #666;
}

.jb-footer-cta {
  margin-bottom: 34px;
}

.jb-footer-copy {
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
  font-size: 14px;
  color: #888;
}

/* =========================================================
   TOP BUTTON
========================================================= */

#jb-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99;

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

  width: 64px;
  height: 64px;

  border: none;
  border-radius: 999px;

  background: #111827;
  color: #fff;

  font-size: 13px;
  font-weight: 800;
  letter-spacing: .5px;

  cursor: pointer;

  box-shadow:
    0 12px 28px rgba(0, 0, 0, .18);

  transition: all .2s ease;
}

#jb-top-btn:hover {
  transform: translateY(-4px);
}


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

.jb-mobile-menu-btn {
  display: none;

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 10px;

  background: #f3f4f6;

  font-size: 20px;

  cursor: pointer;
}

.jb-mobile-actions {
  display: none;
}

.jb-mobile-search-btn {
  display: none;
}

.jb-mobile-user-btn {
  display: none;
}

/* DRAWER */

.jb-mobile-drawer {
  position: fixed;
  inset: 0;

  z-index: 999;

  visibility: hidden;
  opacity: 0;

  transition: all .2s ease;
}

.jb-mobile-drawer.active {
  visibility: visible;
  opacity: 1;
}

.jb-mobile-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, .5);
}

.jb-mobile-sidebar {
  position: absolute;
  top: 0;
  left: 0;

  width: 280px;
  max-width: 80%;

  height: 100%;

  background: #fff;

  transform: translateX(-100%);
  transition: transform .25s ease;
}

.jb-mobile-drawer.active .jb-mobile-sidebar {
  transform: translateX(0);
}

/* TOP */

.jb-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 72px;

  padding: 0 20px;

  border-bottom: 1px solid #eee;
}

.jb-mobile-top strong {
  font-size: 24px;
  font-weight: 800;
}

#jbMobileClose {
  border: none;
  background: none;

  font-size: 24px;

  cursor: pointer;
}

/* MENU */

.jb-mobile-menu {
  display: flex;
  flex-direction: column;

  padding: 18px;
}

.jb-mobile-menu a {
  display: flex;
  align-items: center;

  height: 52px;

  padding: 0 14px;

  border-radius: 12px;

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

  transition: all .2s ease;
}

.jb-mobile-menu a:hover {
  background: #f3f4f6;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1024px) {

  .jb-category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .jb-equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


@media (max-width:768px) {

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

  .jb-header-inner {
    position: relative;

    display: flex;
    align-items: center;

    justify-content: flex-start;
    
    gap: 6px;

    height: 64px;

  }

  /* 햄버거 */

  .jb-mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 8px;

    background: #f3f4f6;

    font-size: 20px;

    cursor: pointer;

    flex-shrink: 0;

  }

  /* 로고 */

  .jb-logo {
    margin-left: 6px;
    margin-right: auto;

    flex-shrink: 0;
  }

  .jb-logo a {
    font-size: 24px;
  }


  .jb-mobile-actions {
    display: flex;
    align-items: center;

    gap: 6px;

    flex-shrink: 0;
  }


  /* 모바일 검색 */

  .jb-mobile-search-btn {
    display: flex;

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

    margin-left: auto;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 8px;

    background: #f3f4f6;

    font-size: 18px;

    cursor: pointer;

    flex-shrink: 0;
  }


  .jb-mobile-user-btn {
    display: flex;

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

    margin-left: 8px;

    width: 38px;
    height: 38px;

    border-radius: 8px;

    background: #f3f4f6;

    color: #111827;

    flex-shrink: 0;
  }


  /* 숨김 */

  .jb-search-wrap {
    display: none;
  }

  .jb-util {
    display: none;
  }

  .jb-gnb {
    display: none;
  }

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

  .jb-hero {
    padding: 60px 0;
  }

  .jb-hero-content h2 {
    font-size: 36px;
    line-height: 1.3;
  }

  .jb-hero-content p {
    font-size: 16px;
  }

  /* =========================================
     GRID
  ========================================= */

  .jb-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .jb-equipment-grid {
    grid-template-columns: 1fr;
  }

  /* =========================================
     FOOTER
  ========================================= */

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

  .jb-footer-menu {
    justify-content: center;
    gap: 16px;
  }

  /* =========================================
     TOP BUTTON
  ========================================= */

  #jb-top-btn {
    width: 56px;
    height: 56px;

    font-size: 12px;
  }

}


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

.jb-modal {
  position: fixed;
  inset: 0;

  z-index: 9999;

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

  visibility: hidden;
  opacity: 0;

  transition: all .2s ease;
}

.jb-modal.show {
  visibility: visible;
  opacity: 1;
}

/* OVERLAY */

.jb-modal-overlay {
  position: absolute;
  inset: 0;

  background: rgba(17, 24, 39, .55);

  backdrop-filter: blur(4px);
}

/* CONTENT */

.jb-modal-content {
  position: relative;

  width: 100%;
  max-width: 420px;

  margin: 0 20px;
  padding: 34px 28px 28px;

  border-radius: 24px;

  background: #fff;

  text-align: center;

  box-shadow:
    0 20px 60px rgba(0, 0, 0, .18);

  transform: translateY(10px);

  transition: all .2s ease;
}

.jb-modal.show .jb-modal-content {
  transform: translateY(0);
}

/* ICON */

.jb-modal-icon {
  margin-bottom: 18px;

  font-size: 42px;
  line-height: 1;
}

/* TEXT */

#jb-modal-msg {
  font-size: 16px;
  line-height: 1.7;

  color: #111827;

  word-break: keep-all;
}

/* BUTTONS */

.jb-modal-buttons {
  display: flex;
  gap: 10px;

  margin-top: 28px;
}

/* BUTTON */

.jb-btn {
  flex: 1;

  height: 52px;

  border: none;
  border-radius: 14px;

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

  cursor: pointer;

  transition: all .2s ease;
}

/* 취소 */

.jb-btn-secondary {
  background: #f3f4f6;
  color: #444;
}

.jb-btn-secondary:hover {
  background: #e5e7eb;
}

/* 확인 */

.jb-btn-primary {
  background: #2563eb;
  color: #fff;
}

.jb-btn-primary:hover {
  background: #1d4ed8;
}

/* MOBILE */

@media(max-width:768px) {

  .jb-modal-content {
    padding: 30px 22px 22px;

    border-radius: 20px;
  }

  .jb-modal-icon {
    font-size: 36px;
  }

  #jb-modal-msg {
    font-size: 15px;
  }

  .jb-btn {
    height: 50px;
    font-size: 14px;
  }

}

/* 파트너 승인 */
.jb-partner-pending {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 50px;
  background: #fff3cd;
  color: #856404;
  font-size: 13px;
  font-weight: 600;
}

/* 파트너 이용중지 */
.jb-partner-blocked {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 50px;

  background: #f3f4f6;
  color: #6b7280;

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

.jb-partner-center {
  font-weight: 600;
}


.jb-mobile-member-box {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.jb-mobile-pending {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff3cd;
  color: #856404;
  font-size: 13px;
  line-height: 1.5;
}

.jb-mobile-blocked {
  margin: 12px 0;
  padding: 12px 14px;

  border-radius: 10px;

  background: #f3f4f6;
  color: #6b7280;

  font-size: 13px;
  line-height: 1.5;
}

.jb-mobile-partner {
  color: #2563eb !important;
  font-weight: 700;
}

.jb-mobile-partner-link {
  color: #2563eb !important;
  font-weight: 700;
}



/* 알람 스타일 */

.jb-notify-btn {
  position: relative;

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

  margin-right: 4px;

  color: #111827;
  text-decoration: none;
}

.jb-notify-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;
}

.jb-notify-icon svg {
  width: 28px !important;
  height: 28px !important;

  stroke-width: 2.2;
}

.jb-notify-btn:hover {
  opacity: .7;
}

.jb-notify-badge {
  position: absolute;

  top: -1px;
  right: -1px;

  min-width: 18px;
  height: 18px;

  padding: 0 5px;

  border-radius: 999px;

  background: #ef4444;
  color: #fff;

  font-size: 11px;
  font-weight: 700;
  line-height: 18px;

  text-align: center;
}

/* 모바일 종버튼 */
.jb-mobile-bell-btn {
  position: relative;

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

  width: 38px;
  height: 38px;

  border-radius: 8px;

  background: #f3f4f6;

  color: #111827;

  flex-shrink: 0;
}

.jb-mobile-bell-btn svg {
  width: 22px;
  height: 22px;

  stroke-width: 2.2;
}

