:root {
  --main-red: #E82310;
  --main-white: #fff;
  --menu-orange: #f2674b;
  --menu-border: #f2674b80;
  --menu-hover-bg: #ffe4de;
  --main-red-dark: #c51709;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Pretendard', sans-serif;
  background: #eee;
}

.pc-header, .mobile-appbar, .mobile-main-menu, .mobile-layer-menu, .mobile-layer-search { box-sizing: border-box; }

/* ========== PC (851px 이상) ========== */
@media (min-width: 851px) {
  body { padding-top: 86px !important; }
  .pc-header { display: block; }
  .mobile-appbar,
  .mobile-main-menu,
  .mobile-layer-menu,
  .mobile-layer-search { display: none !important; }
  .pc-header {
    position: fixed; top: 0; left: 0; width: 100vw; z-index: 2000;
    background: var(--main-white);
    border-bottom: 1.5px solid #ffe1e1;
    box-shadow: 0 1px 16px #e823100a;
    transition: background .22s, box-shadow .16s;
  }
  .pc-header-inner {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 28px;
    height: 86px;
  }
.pc-logo {
  font-size: 1.52rem;
  font-weight: 900;
  color: var(--main-red);
  letter-spacing: 0.04em;
  flex: 0 0 auto;
  margin-right: 48px;
  text-align: left;
  position: relative;      /* 추가 */
  left: 450px;       /* 오른쪽으로 300px 이동 */
}

  /* --------------------------- */
  /* 검색창 위치 조정 (중앙에서 왼쪽 250px로, 즉 왼쪽으로 땡김) */
  .pc-search-bar {
    flex: 0 1 340px;
    min-width: 220px;
    max-width: 440px;
    display: flex;
    justify-content: flex-start;
    /* 중앙에서 왼쪽으로 250px 땡기기 위해 transform 사용 */
    position: relative;
    left: 600px; /* 수정하면 됨 (음수: 왼쪽으로) */
    transition: none;
    margin-right: 0;
  }
  /* --------------------------- */

  .pc-header.scrolled { background: var(--main-red); box-shadow: 0 3px 14px #e8231030; }
  .pc-header.scrolled .pc-logo { color: #fff; }
  .pc-search-bar { gap: 8px; }
  .search-wrap {
    display: flex; align-items: center; position: relative;
    max-width: 280px; width: 100%;
    transition: max-width .25s cubic-bezier(.6,.3,.4,1);
    background: none;
    border: none !important;
    box-shadow: none !important;
  }
  .search-wrap input[type="text"] {
    flex: 1; height: 42px; padding: 0 14px;
    border: 2px solid var(--main-red);
    border-radius: 16px 0 0 16px; border-right: none;
    font-size: 16px;
    background: #fff;
    color: #23233c;
    outline: none;
  }
  .search-wrap button {
    height: 42px; padding: 0 22px;
    border: 2px solid var(--main-red); border-left: none;
    background: var(--main-red); color: #fff;
    border-radius: 0 16px 16px 0;
    cursor: pointer; font-weight: 600;
    font-size: 16px;
  }
  /* --------------------------- */
  /* 메뉴 간격 줄이고 왼쪽으로 150px 이동 */
  .pc-menu {
    display: flex;
    gap: 28px;   /* ★ 메뉴 간격 줄임 (원래 42px) */
    margin-left: auto !important;
    flex: 0 0 auto;
    justify-content: flex-end;
    position: relative;
    right: 150px; /* ★ 왼쪽으로 150px 이동 */
  }
  /* --------------------------- */
  .pc-menu a {
    color: #222;
    text-decoration: none; font-weight: 700; font-size: 1.13em;
    padding: 7px 13px; border-radius: 6px;
    background: none;
    transition: color .12s, background .11s;
  }
  .pc-menu a:hover { background: var(--menu-hover-bg); color: var(--main-red);}
  .pc-header.scrolled .pc-menu a { color: #fff;}
  .pc-header.scrolled .pc-menu a:hover { background: #fff; color: var(--main-red);}
  .pc-search-bar, .pc-header-inner, .search-wrap, .pc-menu { border: none !important; box-shadow: none !important; }
  #recent-search-list-pc { display: none !important; }
}
.search-wrap {
  max-width: 280px;
  width: 100%;
  transition: max-width .25s cubic-bezier(.6,.3,.4,1);
}

/* ========== 모바일 (850px 이하) ========== */
@media (max-width: 850px) {
  body { padding-top: 96px !important; }
  .pc-header { display: none !important; }
  .mobile-appbar {
    display: flex !important; align-items: center; justify-content: space-between;
    width: 100vw; height: 57px;
    background: var(--main-red); color: #fff;
    font-size: 1.22rem; font-weight: 900;
    position: fixed; top: 0; left: 0; z-index: 1201;
    padding: 0 8px 0 10px;
  }
  .mobile-appbar .icon-btn {
    background: none; border: none; color: #fff;
    font-size: 1.65em; padding: 5px 6px; cursor: pointer;
  }
  .mobile-appbar .logo { color: #fff; font-size: 1.22rem;}
  .mobile-main-menu {
    position: fixed; top: 57px; left: 0; width: 100vw;
    background: #fff; color: var(--main-red);
    padding: 13px 9px; display: flex; flex-direction: column;
    border-bottom: 1.5px solid #ffe1e1;
    box-shadow: 0 1px 16px #e823100a;
    z-index: 1200;
  }
  .mobile-menu-slider {
    display: flex; gap: 6px; overflow-x: auto;
    padding: 4px 1px 2px 1px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    justify-content: space-between;
  }
  .mobile-menu-slider a {
    flex: 0 0 auto; min-width: 77px;
    font-weight: 700; text-align: center;
    border: 1.2px solid var(--menu-border);
    border-radius: 13px; padding: 10px 0;
    color: var(--menu-orange); background: #fff;
    text-decoration: none;
    margin: 0;
    transition: background .11s, color .12s;
  }
  .mobile-menu-slider a:active, .mobile-menu-slider a:focus {
    background: var(--menu-hover-bg); color: var(--main-red);
  }
  .mobile-layer-menu,
  .mobile-layer-search {
    display: none; flex-direction: column;
    background: var(--main-red); color: #fff;
    width: 100vw; position: fixed; left: 0; top: 57px;
    z-index: 1230;
    box-shadow: 0 6px 20px #e8231040;
    animation: slide-down .22s;
    will-change: transform, opacity;
  }
  .mobile-layer-menu.active,
  .mobile-layer-search.active { display: flex; }
  .mobile-layer-menu .menu-header,
  .mobile-layer-search .search-header {
    display: flex; align-items: center; justify-content: flex-end;
    width: 100%;
    margin-bottom: 0;
  }
  .close-btn {
    margin-left: auto;
    background: #fa7a6b; color: #fff; border: none;
    border-radius: 9px; font-size: 1.45em; font-weight: 800;
    padding: 3px 15px 3px 15px; cursor: pointer; box-shadow: none;
    display: flex; align-items: center; justify-content: center;
  }
  .close-btn i { font-size: 1.4em; }
  .mobile-layer-search .mobile-menu-search {
    background: #fff; border-radius: 13px;
    margin: 15px 8px 8px 8px;
    padding: 13px 12px;
    display: flex; align-items: center;
    box-shadow: 0 1px 12px #e8231038;
    z-index: 1300;
  }
  .mobile-layer-search input {
    flex: 1; border: none; outline: none;
    font-size: 1.09em; padding: 8px 10px;
    color: var(--menu-orange); background: transparent;
  }
  .mobile-layer-search input::placeholder { color: #f2674bc2; opacity:.88; }
  .mobile-layer-search button {
    background: var(--menu-orange); color: #fff;
    border-radius: 8px; font-weight: bold;
    border: none; padding: 7px 19px; margin-left: 7px; cursor: pointer;
  }
  #recent-search-list-mo { display: block; }
  .mobile-layer-search { align-items: stretch; }
  .mobile-layer-search .mobile-menu-search { margin-bottom: 0; }
  #mainBanner, .content, .banner, .other-main-content { position: relative; z-index: 1; }
  @keyframes slide-down {
    from { opacity: 0; transform: translateY(-20px);}
    to { opacity: 1; transform: translateY(0);}
  }
}
