/* =========================================
   공통 사이트 셸 스타일
   - 상단 배너
   - 상단 공지 바
   - 공통 네비 반응형
   ========================================= */

/* =========================================
   Site Banner
   - PC: 3열
   - Mobile: 1장 슬라이드
   ========================================= */

#topContent {
  width: 100%;
  margin: 0 0 14px;
}

#topContent .heroBanner {
  width: 100%;
}

#topContent .heroBannerGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

#topContent .heroBannerCard,
#topContent .heroBannerSlide {
  width: 100%;
}

#topContent .heroBannerCard a,
#topContent .heroBannerSlide a {
  display: block;
  width: 100%;
  text-decoration: none;
}


#topContent .heroBannerFrame {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
  border-radius: 14px;
  background: #f3f4f6;
}

#topContent .heroBannerMedia,
#topContent .heroBannerFallback {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

#topContent .heroBannerFallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #f3f4f6;
}

#topContent .heroBannerImage,
#topContent .heroBannerVideo {
  position: relative;
  z-index: 2;
}

#topContent .heroBannerVideo {
  background: transparent;
  opacity: 0;
  transition: opacity .18s ease;
}

#topContent .heroBannerVideo.is-ready {
  opacity: 1;
}

#topContent .heroBannerFrame.is-video-ready .heroBannerFallback {
  opacity: 0;
  transition: opacity .18s ease;
}


#topContent .heroBannerCard img,
#topContent .heroBannerSlide img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
  background: #f3f4f6;
}

#topContent .heroBannerMobile {
  width: 100%;
}

#topContent .heroBannerViewport {
  width: 100%;
  overflow: hidden;
}

#topContent .heroBannerDots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

#topContent .heroBannerDot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d1d5db;
  cursor: pointer;
}

#topContent .heroBannerDot.is-active {
  background: #111827;
}

@media (max-width: 1024px) {
  #topContent .heroBannerGrid {
    gap: 12px;
  }

  #topContent .heroBannerFrame,
  #topContent .heroBannerCard img,
  #topContent .heroBannerSlide img {
    height: 150px;
  }
}

@media (max-width: 768px) {
  #topContent {
    margin-bottom: 10px;
  }

  #topContent .heroBannerGrid {
    grid-template-columns: 1fr;
  }

  #topContent .heroBannerFrame,
  #topContent .heroBannerCard img,
  #topContent .heroBannerSlide img {
    height: 108px;
    border-radius: 12px;
  }

  #topContent .heroBannerDots {
    margin-top: 6px;
  }
}

/* =========================================
   Site Notice Bar
   - inventory / mypage / notices / po 공통
   ========================================= */

.topbar-mid {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.topbar-mid::-webkit-scrollbar {
  display: none;
}

.topMidIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 14px;
}

.topMidBtn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background-color .15s ease,
    border-color .15s ease,
    color .15s ease,
    transform .15s ease;
}

.topMidBtn:hover {
  background: #f9fafb;
  color: #111827;
  text-decoration: none;
  transform: translateY(-1px);
}

.topMidBtn--noticeHome {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.topMidBtn--noticeItem {
  border-color: #e5e7eb;
  background: #ffffff;
  color: #374151;
}

.topMidBtn--noticeItem.is-important {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

/* =========================================
   공통 상단 네비 반응형
   - inventory / mypage / notices 공통
   ========================================= */

.topbar-right {
  min-width: 0;
}

.navBar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.navBar .btn,
.navBar .navBtn {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .topbar-right {
    width: 100%;
    min-width: 0;
  }

  .navBar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    gap: 6px;
  }

  .navBar::-webkit-scrollbar {
    display: none;
  }

  .navBar .btn,
  .navBar .navBtn,
  .navBar .btn-cart {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 10px;
  }

  .navBar .btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .topbar-mid {
    gap: 6px;
  }

  .topMidBtn {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .topMidIcon {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
}
/* =========================================
   Shell responsive polish
   - 태블릿/아이패드 포함 중간폭 안정화
   ========================================= */

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

.topbar-left-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.topbar-summary {
  min-width: 0;
}

.topbar-who {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 1180px) {
  .topbar-inner {
    gap: 10px;
  }

  .topbar-left-row {
    row-gap: 6px;
  }

  .topbar-summary {
    flex: 1 1 100%;
    order: 10;
  }
}

@media (max-width: 1024px) {
  .topbar-left,
  .topbar-right {
    width: 100%;
    min-width: 0;
  }

  .topbar-left-row {
    align-items: center;
  }

  .topbar-who {
    flex: 1 1 100%;
  }

  .topbar-mid {
    margin-top: 2px;
  }
}

@media (max-width: 768px) {
  .topbar-title {
    font-size: 18px;
    line-height: 1.2;
  }

  .topbar-summary {
    font-size: 13px;
    line-height: 1.45;
  }

  .topbar-who {
    font-size: 12px;
  }
}
