@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

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

body {
    font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #222;
}

/* ── 상단 헤더·네비 래퍼 (스크롤 시 숨김) ── */
.site-top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  transition: transform 0.3s ease;
  will-change: transform;
}

.site-top--hidden {
  transform: translateY(-100%);
}

/* ── 상단 헤더 ── */
header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 1280px;
  margin: 0 auto;
  background: #fff;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo img{
  /*height: 100%;*/
  height: 40px;
  object-fit: contain;
}


.logo-icon {
  width: 34px;
  height: 34px;
}

.logo-text {
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #7c5ce0, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}

.search-bar {
  width: 100%;
  position: relative;
}

.search-bar input {
  width: 100%;
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0 40px 0 14px;
  font-size: 14px;
  color: #3b3b3b;
  outline: none;
  background: #fff;
}

.search-bar input::placeholder {
  color: #aaa;
}

.search-bar input:focus {
  border-color: #5a58d4;
  transition: border-color 0.3s ease;
}

.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  display: flex;
  align-items: center;
  padding: 0;
}
.header-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    width: 100%;
}
.header-container .right-box{
    width: 50%;
    gap: 30px;
    display: flex;
    align-items: center;
}
.header-container .left-box{
    width: 50%;
    gap: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.header-nav-list a{
    font-size: 14px;
    color: #3b3b3b;
    text-decoration: none;
}
.header-nav-list a:hover {
    color: #5a58d4;
    text-decoration: underline;
    transition: .2s ease-in;
}
.header-nav-list .logout{
    color: #5a58d4;
    text-decoration: underline;
    font-weight: 500;
}

.mobile-search{
    display: none;
    padding: 0 20px;
    margin-bottom: 15px;
}


/* ── 버튼 ── */
.btn-filled-md {
  height: 38px;
  padding: 0 22px;
  background: #5046e4;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-filled-md:hover {
  background: #3d35c8;
  transition: background 0.3s ease-in-out;
}

.btn-filled-lg {
  height: 42px;
  padding: 0 22px;
  background: #5046e4;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
}
.btn-filled-lg:hover {
  background: #3d35c8;
  transition: background 0.3s ease-in-out;
}

/* ── 카테고리 네비 ── */
nav {
  height: 46px;
  background: #f7f8fa;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  gap: 32px;
}
.nav-container{
    width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

nav a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
}

nav a:hover {
  color: #5046e4;
  background: #f2eef4;
  transition: background 0.3s ease-in-out;
}

/* ── 메인 콘텐츠 ── */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 50px 0;
  background: #fff;
}


/* ── 푸터 ── */
footer {
    background: #3c3a8f;
    color: #fff;
    width: 100%;
  }
   
/* ── 상단 링크 바 ── */
.footer-top {
    background: #5a58d4;
    padding: 12px 0;
  }

.footer-top-inner {
    width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-top p {
  margin: 0 auto;
}
   
.footer-top-nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
 
.footer-top-nav a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  white-space: nowrap;
}
 
.footer-top-nav a:hover {
  color: #fff;
  text-decoration: underline;
}
 
.footer-top-nav .divider {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
 
/* ── 중단 회사 정보 ── */
.footer-middle {
  padding: 30px 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background-color: #1D1850;
  display: none;
}
 
.footer-middle-inner {
  width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
 
.info-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 25%;
}
 
.info-col p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  white-space: nowrap;
}
 
.info-col p strong {
  font-weight: 600;
  color: #fff;
}
 
.info-col .col-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
 
.info-col .phone-number {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-top: 2px;
}

.info-col img {
  width: 80px;
}
 
/* ── 하단 로고 + 카피라이트 ── */
.footer-bottom {
  padding: 20px 0;
  background-color: #1D1850;
}
 
.footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
 
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img{
    width: 130px;
}

.footer-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}
 
.copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}
 
/* ════════════════════════════
   빠른메뉴 컨테이너
   — 실제 사용 시 position: fixed
════════════════════════════ */
.quick-menu {
    position: fixed;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 500;
  }
   
  /* ════════════════════════════
     공통 버튼 베이스
  ════════════════════════════ */
  .qm-btn {
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, filter 0.15s;
    padding: 0;
    text-align: center;
  }
   
  .qm-btn img{
    width: 20px; 
  }

  .qm-btn:hover {
    transform: scale(1.07);
    filter: brightness(1.08);
  }
   
  .qm-btn:active {
    transform: scale(0.97);
  }
   
  /* ── 원형 버튼 공통 ── */
  .qm-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    gap: 3px;
  }
   
  /* ── pill 형 버튼 (운영시간) ── */
  .qm-pill {
    width: 90px;
    border-radius: 50px;
    padding: 20px 2px 25px 2px;
    gap: 0;
  }

/* disabled 상태 */
.radio-btn input[type="radio"]:disabled + span {
  pointer-events: none;
  filter: none;
  opacity: 0.45;
  cursor: not-allowed;
  border-color: #e0e0e0;
  color: #aaa;
  background: #f5f5f5;
}

/* disabled된 label 자체도 커서 변경 */
.radio-btn:has(input[type="radio"]:disabled) {
  cursor: not-allowed;
}
   
  /* ════════════════════════════
     개별 색상
  ════════════════════════════ */
  .qm-kakao  { background: #f9e000; }
  .qm-center { background: #2233cc; }
  .qm-hours  { background: #8855ee; }
   
  /* ════════════════════════════
     텍스트
  ════════════════════════════ */
  .qm-label {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    margin-top: 5px;
    text-align: center;
  }
   
  .qm-kakao  .qm-label { color: #3c1e1e; }
  .qm-center .qm-label { color: #ffffff; }
  .qm-hours  .qm-label { color: #ffffff; margin-bottom: 4px; }
   
  .qm-sub {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    margin-top: 1px;
  }
   
  /* 구분선 */
  .qm-divider {
    display: block;
    width: 54px;
    height: 1px;
    background: rgba(255, 255, 255, 0.38);
    margin: 6px auto;
  }
   
  /* 시간 블록 */
  .qm-time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4px;
  }
   
  .qm-time-block:last-child {
    margin-bottom: 0;
  }
   
  .qm-time-title {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.3;
  }
   
  .qm-time-val {
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.4;
    letter-spacing: -0.2px;
  }
   
/* 스펙 테이블 */
.spec-table { margin-bottom: 18px; }
.spec-row {
  display: grid;
  grid-template-columns: 90px 1fr 90px 1fr 70px 1fr;
  border-top: 1px solid #e8e8e8;
  min-height: 40px;
}
.spec-row:last-child { border-bottom: 1px solid #e8e8e8; }
.spec-label {
  font-size: 14px; color: #3b3b3b; font-weight: 500;
  padding: 10px 12px;
  background: #f7f8fa;
  display: flex; align-items: center;
  border-right: 1px solid #e8e8e8;
}
.spec-value {
  font-size: 14px; color: #222;
  padding: 10px 16px;
  display: flex; align-items: center;
  border-right: 1px solid #e8e8e8;
}
.spec-value:last-child { border-right: none; }
 
/* 월 납부 배너 */
.payment-banner {

  padding: 0;
  display: flex;
  align-items: stretch;
  margin-bottom: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
}
.payment-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 16px 12px;
  gap: 4px;
  background: #5046e4;
  border-radius: 10px;
}
.payment-total { background: #3427AE; }
.pay-label  { font-size: 12px; color: rgba(255,255,255,0.8); text-align: center; }
.pay-amount { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.payment-op {
  font-size: 25px; font-weight: 700; color: #5046e4;
  display: flex; align-items: center; padding: 0 4px;
  flex-shrink: 0;
  justify-content: center;
}
 
/* 가격 상세 테이블 */
.price-table { border-top: 1px solid #e8e8e8; }
.price-row {
  display: grid;
  grid-template-columns: 90px 120px 80px 120px 1fr;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
}
.price-label { font-size: 14px; color: #3b3b3b; padding: 10px 12px; background-color: #f7f8fa; font-weight: 500;}
.price-value { font-size: 14px; color: #3b3b3b; font-weight: 500; padding: 8px 8px 8px 16px; }
.price-value.red { color: #e4003a; }
.price-note { font-size: 11px; color: #999; padding: 8px 0; }

/* ── 상품 정보 ── */
.product-info { flex: 1; min-width: 0; }
.product-name { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; line-height: 1.4; }
.product-spec { font-size: 14px; color: #888; margin-bottom: 14px; }
.info-divider { border: none; border-top: 1px solid #e0e0e0; margin-bottom: 16px; }
 
/* ── 모달 ── */
.modal-detail-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f7f8fa;
  border-bottom: 1px solid #eee;
}

.modal-detail-title{
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
}

.modal-detail-close{
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  color: #555;
  font-size: 22px;
  line-height: 1;
}

.modal-detail-close:hover{
  background: #f0eeff;
  color: #5046e4;
}

.modal-detail-body{
  padding: 14px 16px 16px;
}

.modal-detail-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-detail-overlay.is-open{
  display: flex;
}

.modal-detail-modal{
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.2);
  overflow: hidden;
}




/* ════════════════════════════
   페이지네이션
════════════════════════════ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top : 30px;
  }
   
  .page-btn {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 13px; font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }
  .page-btn:hover:not(:disabled):not(.active) {
    border-color: #5046e4; color: #5046e4;
  }
  .page-btn.active {
    background: #5046e4; border-color: #5046e4;
    color: #fff; font-weight: 700;
  }
  .page-btn:disabled {
    opacity: 0.35; cursor: not-allowed;
  }
  .page-arrow { border-color: #e0e0e0; }
   

.mobile {
  display: none;
}

@media (max-width: 1280px) {
  header {
    width: 100%;
  }
  .nav-container {
    width: 100%;
  }
  .footer-container {
    width: 100%;
  }
  .footer-top-nav{
    width: 100%;
  }
  .footer-middle-inner{
    width: 100%;
  }
  .footer-middle{
    padding: 30px 20px;
  }
  header{
    padding: 0 20px;
  }
  .footer-bottom{
    padding: 15px 20px;
  }
  .footer-top{
    padding : 12px 20px;
  }
}

@media (max-width: 768px) {
    main{
        padding: 30px 0;
    }
    header {
        height: auto;
        padding: 15px 20px;
        align-items: flex-start;
        border-bottom: none;
    }
    .pc{
        display: none !important;
    }
    .mobile {
        display: block;
    }
    .mobile-search{
        display: block;
    }
    .search-btn{
        right: 40px;
    }
    .info-col {
        width: 48%;
    }
    .info-col img {
        width: 48%;
    }
    .footer-middle-inner {
      padding: 0 16px;
      flex-wrap: wrap;
      gap: 10px;
    }
       
    .footer-middle {
      padding: 24px 0 20px;
    }
    .quick-menu{
        display: none;
    }
    .pagination{
        margin-top: 20px;
    }


    /* 상품 섹션 세로 배치 */
    .product-section { flex-direction: column; gap: 20px; }
    .product-img-wrap { width: 100%; flex-direction: row; padding: 16px; gap: 16px; align-items: center; }
    .product-img { width: 100px; height: 140px; }
    .sk-logo-sm { margin-bottom: 0; }
    
    /* 스펙 테이블 2열 */
    .spec-row { grid-template-columns: 80px 1fr 80px 1fr; }
    .spec-row .spec-label:nth-child(5),
    .spec-row .spec-value:nth-child(6) { display: none; }
    .spec-value{border:none;}
    /* 배너 */
    .pay-amount { font-size: 15px; }
    .payment-op { font-size: 18px; }
    
    /* 가격 테이블 */
    .price-row { grid-template-columns: 100px 100px 100px 100px; }
    .price-note { display: none; }
}

@media (max-width : 520px) {
    .nav-container {
        overflow-x: scroll;
    }
    .left-panel{
      flex-direction: column;
    }
    .product-img-card{
      width: 100%;
    }
    .calc-card{
      width: 100%;
    }
    nav a{
        padding: 0 20px;
    }
    .footer-top {
        padding: 10px 0;
      }
     
      .footer-top-nav {
        padding: 0 16px;
        gap: 6px 4px;
      }
     
      .footer-top-nav a {
        font-size: 12px;
      }
     
      .footer-top-nav .divider {
        font-size: 12px;
      }

      
      .info-col {
        min-width: 100%;
        gap: 6px;
      }
     
      .info-col p {
        font-size: 12px;
        white-space: normal;
      }
     
      .info-col .col-title {
        font-size: 14px;
      }
     
      .info-col .phone-number {
        font-size: 20px;
      }
     
      .footer-bottom {
        padding: 16px 0;
      }
     
      .footer-bottom-inner {
        padding: 0 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }
     
      .footer-logo-text {
        font-size: 14px;
      }
     
      .copyright {
        font-size: 12px;
      }
    
      .product-name { font-size: 15px; }
      .product-spec { font-size: 12px; }

        /* 스펙 2열 */
    .spec-row { grid-template-columns: 72px 1fr 72px 1fr; }
   
    /* 배너 세로 */
    .payment-banner { flex-direction: column; border-radius: 8px; }
    .payment-op { padding: 0; font-size: 16px; transform: rotate(90deg); height: 20px; }
    .payment-item { padding: 12px; flex-direction: row; justify-content: space-between; width: 100%; }
    .payment-total { border-radius:8px }
   
    /* 가격 테이블 */
    .price-row { grid-template-columns: 68px 90px 68px 90px; font-size: 12px; }
    .price-label, .price-value { padding: 7px 8px; height: -webkit-fill-available;}
   
}