/* 직접 편집하는 원본 CSS. 섹션 번호와 순서는 네 파일에서 동일합니다. */
/* 태블릿 전용: 540px–1024px. 모바일은 이 파일에 의존하지 않습니다. */
@media (min-width: 540px) and (max-width: 1024px) {
  /* 00. 기본 · 글꼴 · 토큰 · 초기화 */
  :root {
    --header: 80px;
    --drawer: 80vw;
  }

  /* 02. 헤더 · 내비게이션 */
  .desktop-nav strong {
    font-size: 14px;
  }

  .desktop-nav {
    display: flex;
    font-size: 14px;
  }

  .menu-toggle {
    display: none;
  }

  @media (max-width: 560px) {
    .desktop-nav, .guest-home .desktop-nav {
      display: none;
    }

    .menu-toggle, .guest-home .menu-toggle {
      display: flex;
    }

  }

  /* 10–11. 게이트 · 비회원 메인: PC 내용과 순서를 유지하는 태블릿 배치 */
  .intro-main { min-height: 720px; padding: 0; background-size: 100% 100%,auto 1081px,auto 1081px; }
  .gate { width: min(385px,calc((100vw - 72px)/2)); height: min(385px,calc((100vw - 72px)/2)); }
  /* 최신 태블릿 369:2131: 480px 배너 / 3열 제품 / 400px 지도. */
  .guest-hero { height: 480px; padding: 0 32px; background-size: 100% 100%; background-position: center; }
  .hero-content { height: auto; padding: 36px 32px; gap: 14px; border-radius: 0; }
  .hero-caption { font-size: 18px; line-height: 22px; margin-bottom: 14px; }
  .hero-content h1 { font-size: 32px; line-height: 38px; }
  .hero-description { width: 570px; max-width: 100%; font-size: 18px; line-height: 23px; }
  .hero-description br { display: none; }
  .guest-home .guest-catalog, .guest-home .guest-location { width: calc(100% - 72px); }
  .guest-catalog { padding-top: 64px; padding-bottom: 60px; }
  .guest-copy { margin-bottom: 55px; }
  .guest-copy h2 { font-size: 32px; line-height: 38px; color: black; letter-spacing: normal; }
  .guest-copy h2 strong { color: inherit; font-weight: 700; }
  .guest-copy p { margin-top: 20px; font-size: 18px; line-height: 22px; }
  .guest-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .guest-card { padding: 10px; gap: 10px; border: 0; }
  .guest-card:first-child { box-shadow: none; }
  .guest-card-image { width: 200px; max-width: 100%; height: auto; aspect-ratio: 1; }
  .guest-card:first-child .guest-card-image img { transform: none; }
  .guest-card h3 { font-size: 16px; line-height: 19px; color: black; }
  .guest-location { padding-top: 0; padding-bottom: 90px; }
  .guest-location>h2 { font-size: 32px; line-height: 28px; margin-bottom: 34px; }
  .guest-location>h2::after { width: 170px; }
  .location-contacts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .location-contacts section { height: 140px; }
  .location-phone a { font-size: 22px; }
  .location-note { margin-top: 25px; }
  .guest-home .site-footer { min-height: 0; padding: 32px 40px; }
  .guest-home .site-footer .container { width: 100%; }
  .guest-home .site-footer nav { flex-direction: column; align-items: start; gap: 18px; }
  .guest-home .site-footer p { line-height: 17px; }

  .product-page-content { width: calc(100% - 96px); padding: 56px 0 80px; }
  .product-page-content .product-detail-wrap>.product-image { width: 348px; }
  .product-page-content .product-detail-wrap h2 { font-size: 28px; }
  .product-page-content .product-description-content { font-size: 14px; }

  /* 20. 상품 목록 · 옵션 · 수량 */
  .list-item-wrap {
    grid-template-columns: repeat(2,minmax(0,1fr));
    max-width: 900px;
  }

  .list-wrap {
    padding: 24px;
  }

  .order-open .list-wrap {
    margin-right: 0;
  }

  /* 30. 주문 · 수량 확인 · 정보 입력 · 결제 */
  .order-dialog.checkout .order-summary-panel {
    display: none;
  }

  .checkout-panel {
    width: calc(100% - 64px);
    max-width: 800px;
    left: 50%;
    transform: translateX(-50%);
    top: 32px;
    bottom: 32px;
  }

  .checkout-summary {
    display: block;
    margin-bottom: 28px;
  }

  .checkout-summary .order-box {
    padding: 20px;
  }

  .checkout-summary .order-item {
    grid-template-columns: 64px 1fr auto;
    padding: 16px 0;
  }

  .checkout-summary .order-item .item-image {
    width: 64px;
    height: 64px;
  }

  .checkout-summary .order-item:last-child {
    padding-bottom: 0;
  }

  .checkout-summary .order-item h4 {
    font-size: 18px;
  }

  .checkout-summary .order-item p {
    margin-bottom: 0;
  }

  .order-heading {
    padding: 24px 32px;
  }

  .product-list-page .order-heading .icon-button,
  .product-list-page .checkout-heading .icon-button {
    width: 40px;
    height: 40px;
    margin: 0;
    margin-left: auto;
    transform: none;
  }

  .product-list-page .order-heading .icon-close,
  .product-list-page .checkout-heading .icon-close {
    flex: 0 0 30px;
    min-width: 30px;
    width: 30px !important;
    max-width: none;
    height: 30px !important;
    aspect-ratio: 1;
  }

  .order-scroll {
    padding: 24px 32px;
  }

  /* 31. 주문 · 전체 펼침 */
  .full-review .checkout-panel {
    transform: none;
  }

  /* 42. 마이페이지 · 주문 및 취소 내역 */
  .order-filter {
    flex-wrap: wrap;
    align-items: center;
  }

  .order-status-filter {
    flex: 1 1 auto;
  }

  .order-period-filter {
    flex: 1 1 100%;
  }

  .order-period-filter label {
    flex: 1 1 0;
  }

  .order-filter .search-date {
    width: 100%;
  }

  /* 43. 마이페이지 · 주문 및 취소 상세 */
  .order-detail-grid {
    gap: 16px;
  }

  .info-list {
    grid-template-columns: 110px 1fr;
  }

  /* 50. 문의 · 연락처 */
  .contact-item p {
    font-size: 16px;
  }

  .contact-item a {
    font-size: 16px;
  }

}

@media (max-width: 680px){
  .desktop-nav {
    display: flex;
    font-size: 12px;
    gap: 7px;
  }
}

@media (max-width:630px){
  .desktop-nav {
    display: none;
  }
  .menu-toggle, .guest-home .menu-toggle {
    display: flex;
  }
  .menu-toggle .icon{
    width: 32px;
    height: 32px;
  }
  :root {
    --header: 80px;
    --drawer: 100vw;
  }
}

/* 20-1. 장바구니 플로팅 버튼 */
@media (min-width: 540px) and (max-width: 1024px) {
  .cart-fab {
    right: 30px;
    bottom: 30px;
  }
}
