/* ==========================================================================
   SOOJIP.COM RESPONSIVE UNIFICATION CSS (PC & Mobile Unified)
   ========================================================================== */

/* 1. 기본 미디어 쿼리 및 유틸리티 */
@media (max-width: 768px) {
  /* PC 상단 메뉴바 간소화 */
  header .nav-tabs {
    display: none !important;
  }
  
  header .nav-main {
    display: none !important;
  }

  header .auth-buttons {
    display: none !important;
  }

  header .nav-top-bar {
    padding: 10px 16px !important;
    height: 56px !important;
    box-sizing: border-box;
  }

  header .logo img {
    height: 32px !important;
  }

  header .logo span {
    font-size: 17px !important;
  }

  .notice-banner {
    font-size: 12px !important;
    padding: 6px 10px !important;
  }

  /* 메인 슬라이더 및 히어로 반응형 */
  .hero-wrapper {
    margin-bottom: 20px !important;
  }

  .hero {
    flex-direction: column !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .hero .slides {
    height: 200px !important;
    border-radius: 0 !important;
  }

  .hero .slide-image img {
    height: 200px !important;
    object-fit: cover !important;
  }

  .hero .slide-content {
    padding: 15px !important;
  }

  .hero .slide-content h2 {
    font-size: 18px !important;
  }

  .hero .slide-content p {
    font-size: 13px !important;
    display: none;
  }

  .hero-notice {
    width: 100% !important;
    border-radius: 0 !important;
    padding: 12px 16px !important;
    box-sizing: border-box;
  }

  /* 상품 그리드 모바일 2열 */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 12px !important;
  }

  .products-inner {
    padding: 0 !important;
  }

  .section-title {
    font-size: 18px !important;
    margin: 24px 16px 12px 16px !important;
  }

  .product-card {
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
  }

  .product-name {
    font-size: 13px !important;
    line-height: 1.35 !important;
    height: 36px !important;
  }

  .product-price {
    font-size: 14px !important;
  }

  .add-to-cart {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }

  /* 푸터 모바일 최적화 */
  footer {
    padding: 30px 16px 80px 16px !important; /* 바텀 네비 높이 확보 */
  }

  footer .footer__wrap {
    flex-direction: column !important;
  }

  footer .cell_area.pc {
    display: none !important;
  }

  footer .cell_area.mobile {
    display: block !important;
    margin-bottom: 20px;
  }
}

/* 2. 모바일 하단 고정 네비게이션 (Bottom Navigation) */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
  }

  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #4b5563;
    font-size: 11px;
    font-weight: 500;
    height: 100%;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
  }

  .mobile-nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    margin-bottom: 3px;
  }

  .mobile-nav-item.active {
    color: #0044cc;
    font-weight: 700;
  }
}
