:root {
    --primary: #003b88;
    --primary-dark: #002d69;
    --primary-soft: #eaf1fb;
    --text: #0f172a;
    --muted: #64748b;
    --line: #dfe7f2;
    --border: #dfe5ee;
    --bg: #f5f8fc;
    --white: #fff;
	--success:#0f8a43;
	--warning:#9a6700;
	--danger:#b42318;
    --shadow: 0 14px 34px rgba(15, 23, 42, 0.08); /*--shadow: 0 18px 40px rgba(15, 23, 42, 0.14);*/
}

/* Reset */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* Layout */
.wrap {
    max-width: 1180px;
    min-height: 100vh;
    margin: 0 auto;

    background: #fff;
    box-shadow: 0 0 18px rgba(15, 23, 42, 0.08);
}

main {
    padding: 10px 25px 64px; /*padding: 42px 58px 64px;*/
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    height: 76px;
    padding: 0 34px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #fff;
    border-bottom: 1px solid #d1d6e1;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;

    color: var(--primary);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo span {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.logo img{
    /*height:38px;*/
	height:26px;
}

/* GNB */
.gnb {
    display: flex;
    align-items: center;
    gap: 46px;

    font-size: 15px;
    font-weight: 600;
}

.gnb a {
    position: relative;

    padding: 28px 0;

    color: #374151;
    transition: 0.2s;
}

.gnb a:hover,
.gnb a.active {
    color: var(--primary);
}

.gnb a::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: 18px;

    width: 0;
    height: 3px;

    background: var(--primary);

    transform: translateX(-50%);
    transition: 0.25s;
}

.gnb a:hover::after,
.gnb a.active::after {
    width: 100%;
}

/* Top Links */
.top-links {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.top-links a {
    height: 34px;
    padding: 0 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid transparent;
    border-radius: 999px;
}

.top-links .login {
    background: #f3f6fa;
    border-color: #e2e8f0;
    color: #374151;
}

.top-links .join {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.top-links .join:hover {
    background: var(--primary-dark);
}

/* Mobile Menu Button */
.menu-btn {
    position: relative;

    display: none;

    width: 38px;
    height: 38px;

    background: transparent;
    border: 0;
    border-radius: 6px;

    cursor: pointer;
}

.menu-btn span,
.menu-btn::before,
.menu-btn::after {
    content: "";

    position: absolute;
    left: 8px;

    width: 22px;
    height: 2px;

    background: #111827;
    transition: 0.22s;
}

.menu-btn::before {
    top: 11px;
}

.menu-btn span {
    top: 18px;
}

.menu-btn::after {
    top: 25px;
}

.menu-btn.active::before {
    top: 18px;
    transform: rotate(45deg);
}

.menu-btn.active span {
    opacity: 0;
}

.menu-btn.active::after {
    top: 18px;
    transform: rotate(-45deg);
}

/* Hero */
.hero {
    min-height: 160px;
    padding: 42px 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;

    /*background: linear-gradient(90deg, rgba(0, 31, 82, 0.96), rgba(0, 62, 137, 0.86)), url("/r/images/hero_default.avif") center / cover;*/
	background-repeat:no-repeat;
    background-position:center center;
    background-size:cover;
    color: #fff;
}
/* 메뉴별 타이틀 배경 이미지 */
.hero.bg_default { background-image: linear-gradient(90deg, rgba(0, 31, 82, 0.96), rgba(0, 62, 137, 0.86)), url("/r/images/hero_default.avif"); }
.hero.bg_menu1 { background-image: linear-gradient(90deg, rgba(0, 31, 82, 0.96), rgba(0, 62, 137, 0.86)), url("/r/images/hero_menu1.avif"); }
.hero.bg_menu2 { background-image: linear-gradient(90deg, rgba(0, 31, 82, 0.96), rgba(0, 62, 137, 0.86)), url("/r/images/hero_menu2.avif"); }
.hero.bg_menu3 { background-image: linear-gradient(90deg, rgba(0, 31, 82, 0.96), rgba(0, 62, 137, 0.86)), url("/r/images/hero_menu3.avif"); }
.hero.bg_mem { background-image: linear-gradient(90deg, rgba(0, 31, 82, 0.96), rgba(0, 62, 137, 0.86)), url("/r/images/hero_mem.avif"); }
.hero.bg_my { background-image: linear-gradient(90deg, rgba(0, 31, 82, 0.96), rgba(0, 62, 137, 0.86)), url("/r/images/hero_my.avif"); }
.hero.bg_my1 { background-image: linear-gradient(90deg, rgba(0, 31, 82, 0.96), rgba(0, 62, 137, 0.86)), url("/r/images/hero_my1.avif"); }
.hero.bg_my2 { background-image: linear-gradient(90deg, rgba(0, 31, 82, 0.96), rgba(0, 62, 137, 0.86)), url("/r/images/hero_my2.avif"); }
.hero.bg_my3 { background-image: linear-gradient(90deg, rgba(0, 31, 82, 0.96), rgba(0, 62, 137, 0.86)), url("/r/images/hero_my3.avif"); }
.hero.bg_my4 { background-image: linear-gradient(90deg, rgba(0, 31, 82, 0.96), rgba(0, 62, 137, 0.86)), url("/r/images/hero_my4.avif"); }
.hero.bg_my5 { background-image: linear-gradient(90deg, rgba(0, 31, 82, 0.96), rgba(0, 62, 137, 0.86)), url("/r/images/hero_my5.avif"); }
.hero.bg_terms { background-image: linear-gradient(90deg, rgba(0, 31, 82, 0.96), rgba(0, 62, 137, 0.86)), url("/r/images/hero_terms.avif"); }
.hero.bg_privacy { background-image: linear-gradient(90deg, rgba(0, 31, 82, 0.96), rgba(0, 62, 137, 0.86)), url("/r/images/hero_privacy.avif"); }
.hero.bg_location { background-image: linear-gradient(90deg, rgba(0, 31, 82, 0.96), rgba(0, 62, 137, 0.86)), url("/r/images/hero_location.avif"); }

.hero h1 {
    margin: 0 0 18px;

    font-size: 38px;
    letter-spacing: -1.2px;
}

.hero p {
    margin: 0;

    font-size: 17px;
    opacity: 0.92;
}

.hero-badge {
    padding: 12px 18px;

    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;

    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

/* Mobile Menu */
.mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;

    display: none;

    background: rgba(15, 23, 42, 0.48);
}

.mobile-backdrop.show {
    display: block;
}

.mobile-panel {
    position: fixed;
    top: 76px;
    right: calc((100vw - 1180px) / 2);
    z-index: 95;

    width: 320px;
    max-width: calc(100vw - 36px);
    height: calc(100vh - 76px);

    display: flex;
    flex-direction: column;

    background: #fff;
    box-shadow: var(--shadow);

    transform: translateX(110%);
    transition: 0.25s ease;
}

.mobile-panel.show {
    transform: translateX(0);
}

.mobile-user {
    padding: 20px;

    background: linear-gradient(180deg, #f8fbff, #fff);
    border-bottom: 1px solid #edf1f6;
}

.mobile-user strong {
    display: block;

    margin-bottom: 6px;

    color: var(--primary);
    font-size: 20px;
}

.mobile-user p {
    margin: 0;

    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;

    padding: 14px 20px;

    border-bottom: 1px solid #edf1f6;
}

.mobile-actions a {
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;

    font-size: 14px;
    font-weight: 900;
}

.mobile-actions .m-login {
    background: #eef2f7;
    color: var(--primary);
}

.mobile-actions .m-join {
    background: var(--primary);
    color: #fff;
}

.mobile-nav {
    padding: 8px 0;
    overflow: auto;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 17px 20px;

    border-bottom: 1px solid #edf1f6;

    color: #374151;
    font-weight: 900;
}

.mobile-nav a span {
    color: #9aa3af;
}

.mobile-nav span {
	font-size: 12px;
	color:#a9a9a9;
}

/* 경매타입 배지 설정 */
.auction-badges{
    display:flex;
    gap:6px;
    flex-wrap:wrap;

    margin-bottom:16px;
}

/*.badge {
    position: absolute;
    left: 12px;
    top: 12px;
    height: 27px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}*/
.badge{
    height:26px;
    display:flex;
    align-items:center;
    padding:0 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
}
.badge.evayauction{
    background:#E63740;
    border:1px solid #E63740;
    color:#ffffff;
}
.badge.normal{
    background:#ffffff;
    border:1px solid #ff0000;
    color:#ff0000;
}
.badge.hybrid{
    background:#008000;
    border:1px solid #008000;
    color:#ffffff;
}
.badge.blind{
    background:#5F5FD9;
    border:1px solid #5F5FD9;
    color:#ffffff;
}
.badge.auto{
    background:#ff7800;
    color:#fff;
}
.badge.wish{
    background:#ff6b6b;
    color:#fff;
}
.badge.red {
    background: var(--danger);
    color:#fff;
}
.badge.green {
    background: #49a21a;
    color:#fff;
}
.badge.gray {
    background: #64748b;
    color:#fff;
}

/* Footer */
footer {
    padding: 34px 58px;

    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 28px;

    background: #e9e9eb;
    border-top: 1px solid #d8dde6;

    color: #5d6673;
    font-size: 13px;
    line-height: 1.9;
}

footer strong {
    display: block;

    margin-bottom: 10px;

    color: #00439c;
    font-size: 28px;
}

footer h4 {
    margin: 0 0 10px;

    color: #111827;
    font-size: 15px;
}

.call {
    color: #00439c;
    font-size: 24px;
    font-weight: 900;
}

/* Pager */
.pager {
    display: flex;
    justify-content: center;
    gap: 6px;

    margin-top: 22px;
}
.pager a {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 5px;

    color: #4b5563;
    font-size: 13px;
    font-weight: 900;
}
.pager a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pager .prvnext  {
	font-size: 12px;
	color:#a9a9a9;
}

/* PC에서 모바일 메뉴 숨김 */
@media (min-width: 769px) {

    .mobile-backdrop,
    .mobile-backdrop.show,
    .mobile-panel,
    .mobile-panel.show {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.menu-open {
        overflow: auto;
    }
}

/* Tablet */
@media (max-width: 1180px) {

    .mobile-panel {
        right: 0;
    }
}

@media (max-width: 900px) {

    .gnb {
        gap: 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    body {
        background: #fff;
    }

    .wrap {
        box-shadow: none;
    }

    .site-header {
        height: 70px;
        padding: 0 18px;
    }

    .logo{
		font-size:22px;
		gap:4px;
	}

	.logo span{
		font-size:10px;
		display:block;
	}

	.logo img{
        /*height:30px;*/
		height:20px;
    }

    .gnb,
    .top-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        min-height: 110px;
        padding: 24px 18px;

        display: flex;
        align-items: center;
    }

    .hero h1 {
        margin-bottom: 12px;
        font-size: 26px;
    }

    .hero p {
        font-size: 13px;
        line-height: 1.5;
    }

    main {
        padding: 18px 16px 34px;
    }

    footer {
        display: block;
        padding: 26px 18px;

        font-size: 12px;
    }

    footer strong {
        font-size: 24px;
    }

    footer h4 {
        margin-top: 18px;
    }

    .call {
        font-size: 18px;
    }
}







/* CATEGORY */
.category{
  display:grid;
  grid-template-columns:repeat(8,1fr);
  gap:15px;
  margin-top:20px;
}

.cat{
  height:180px;
  background-size:cover;
  background-position:center;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:flex-end;
  padding-bottom:14px;
  color:#fff;
  transition:.3s;
  border-radius:10px;
  overflow:hidden; 
  cursor:pointer;
}
.cat::before{
  content:'';
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.35);
  transition:.3s;
}
.cat:hover{
  transform:scale(1.03);
}
.cat:hover::before{
  background:rgba(0,0,0,0.02);
}
.cat span{
  position:relative;
  text-align:center;
}
.cat small{
  display:block;
  font-size:14px;
}

@media(max-width:1024px){
  .category{grid-template-columns:repeat(4,1fr);}
}

@media(max-width:768px){
  .category{grid-template-columns:repeat(2,1fr);}
}


/*카테고리 - 탭 메뉴형*/
.category-tabs{
    display:grid;
    grid-template-columns:repeat(8, 1fr);
    gap:8px;

    overflow:visible;
}

.category-tabs a{
    min-width:0;
    height:44px;
    padding:0 10px;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;

    background:#fff;
    border:1px solid var(--border);
    border-radius:999px;

    color:#374151;
    font-size:14px;
    font-weight:800;
    white-space:nowrap;
}

.category-tabs a span{
    min-width:22px;
    height:22px;
    padding:0 7px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#eef2f7;
    border-radius:999px;

    color:var(--primary);
    font-size:12px;
    font-weight:900;
}

.category-tabs a.active{
    background:var(--primary);
    border-color:var(--primary);
    color:#fff;
}

.category-tabs a.active span{
    background:rgba(255,255,255,.18);
    color:#fff;
}

@media(max-width:768px){

    .category-tabs{
        display:flex;
        flex-wrap:nowrap;
        gap:8px;

        overflow-x:auto;
        overflow-y:hidden;

        padding-bottom:6px;

        scrollbar-width:none;
        -ms-overflow-style:none;
    }

    .category-tabs::-webkit-scrollbar{
        display:none;
    }

    .category-tabs a{
        flex:0 0 auto;
        padding:0 16px;
    }
}



/* 좌우 날개 배너 */
.wing-banner-left, .wing-banner-right {
    position:fixed;
    top:116px;
    z-index:50;
    width:120px;
}
.wing-banner-left img{
    width:100%;
	height:180px;
    display:block;
    border-radius:5px;
    box-shadow:0 3px 8px rgba(15,23,42,.18);
}
.wing-banner-right img{
    width:100%;
	height:120px;
    display:block;
	border-radius:1px;
	border:1px solid #ccc;
    /*box-shadow:0 1px 1px rgba(15,23,42,.18);*/
}
.wing-left{
    left:calc(50% - 720px);
}
.wing-right{
    right:calc(50% - 720px);
}

/* 1280px 이하에서는 숨김 */
@media(max-width:1280px){
    .wing-banner-left, .wing-banner-right {
        display:none;
    }
}



/* =========================================
   STORE HEADER CUSTOM
========================================= */

.store-header {
    position: sticky;
    top: 0;
    z-index: 100;

    height: auto;
    padding: 0;

    display: block;

    background: #fff;
    border-bottom: 1px solid #d1d6e1;
}

.header-top {
    max-width: 1180px;
    height: 68px;
    margin: 0 auto;
    padding: 0 34px;

    display: grid;
    grid-template-columns: 180px 1fr 180px;
    align-items: center;
    gap: 20px;
}

.header-top .logo {
    justify-self: start;
}

.pc-search {
    justify-self: center;

    width: 380px;
    height: 42px;

    display: grid;
    grid-template-columns: 1fr 58px;

    border: 2px solid var(--primary);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.pc-search input {
    border: 0;
    padding: 0 18px;
    font-size: 14px;
}

.pc-search input:focus {
    outline: none;
}

.pc-search button {
    border: 0;
    background: #fff;
    color: var(--primary);
    font-weight: 900;
    cursor: pointer;
}

.search-btn{
    width:58px;
    height:100%;

    display:flex;
    align-items:center;
    justify-content:center;

    border:0;
    background:#fff;

    color:var(--primary);
    cursor:pointer;
}

.search-btn svg{
    width:20px;
    height:20px;
}

.header-top .top-links {
    justify-self: end;
}

.header-menu-row {
    position: relative;

    max-width: 1180px;
    height: 48px;
    margin: 0 auto;
    padding: 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-top: 1px solid #eef2f7;
}

.category-toggle {
    position:absolute;
    left:34px;
    top:50%;
    transform:translateY(-50%);

    display:flex;
    align-items:center;
    gap:8px;

    padding:0;

    border:0;
    outline:none;
    box-shadow:none;

    background:transparent;

    color:#111827;
    font-size:14px;
    font-weight:900;

    cursor:pointer;
}

.category-toggle:focus,
.category-toggle:active{
    outline:none;
    box-shadow:none;
}

.category-toggle span {
    position: relative;
    width: 18px;
    height: 14px;
    display: inline-block;
    border-top: 2px solid var(--primary);
}

.category-toggle span::before,
.category-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--primary);
}

.category-toggle span::before {
    top: 5px;
}

.category-toggle span::after {
    top: 12px;
}

.header-menu-row .gnb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 54px;

    width: 100%;
}

.header-menu-row .gnb a {
    padding: 16px 0;
}

.header-menu-row .gnb a::after {
    bottom: 6px;
}

.category-panel {
    position: absolute;
    left: 50%;
    top: 116px;
    z-index: 120;

    display: none;

    width: 100%; /*calc(100% - 68px);*/
    max-width: 1200px;
    padding: 20px;

    grid-template-columns: repeat(6, 1fr);
    gap: 8px;

    background:#15335B;       /* 변경 */
    border:1px solid #CBD2DF; /* 변경 */
    border-radius: 1px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);

    transform: translateX(-50%);
}

.category-panel.open {
    display: grid;
}

.category-panel a {
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:#fff;
    border:1px solid #e5edf7;
    border-radius: 8px;

    color: #374151;
    font-size: 13px;
    font-weight: 900;
}

.category-panel a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.mobile-search {
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 1fr 54px;
    gap: 8px;
    border-bottom: 1px solid #edf1f6;
}

.mobile-search input {
    height: 42px;
    border: 1px solid #d5dbe5;
    border-radius: 6px;
    padding: 0 12px;
}

.mobile-search button {
    height: 42px;
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
}



.mobile-category-toggle {
	width: calc(100% - 40px);
	height: 44px;
	margin: 14px 20px 0;

	display: flex;
	align-items: center;
	justify-content: space-between;

	border: 1px solid #cfe0ff;
	border-radius: 8px;
	background: #f8fbff;

	color: var(--primary);
	font-size: 14px;
	font-weight: 900;
}

.mobile-category-panel {
	display: none;

	margin: 10px 20px 14px;
	padding: 12px;

	grid-template-columns: repeat(2, 1fr);
	gap: 8px;

	background: #f8fbff;
	border: 1px solid #cfe0ff;
	border-radius: 10px;
}

.mobile-category-panel.open {
	display: grid;
}

.mobile-category-panel a {
	height: 38px;

	display: flex;
	align-items: center;
	justify-content: center;

	background: #fff;
	border: 1px solid #e5edf7;
	border-radius: 7px;

	color: #374151;
	font-size: 13px;
	font-weight: 900;
}


/* MOBILE */
@media (max-width: 768px) {
	.category-panel {
         position:fixed;

        top:70px;
        left:0;

        width:100%;
        max-width:none;

        padding:16px;
        margin:0;

        border-radius:0;
        border-top:1px solid #e5edf7;

        transform:none;

        grid-template-columns:repeat(2,1fr);

        max-height:calc(100vh - 70px);
        overflow-y:auto;

        background:#f8fbff;

        z-index:999;
    }
	.category-panel.open{
        display:grid;
    }

    .store-header {
        height: 70px;
        padding: 0 18px;

        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header-top {
        width: 100%;
        height: 70px;
        padding: 0;

        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .pc-search,
    .header-menu-row,
    .category-panel,
    .store-header .gnb,
    .store-header .top-links {
        display: none !important;
    }

    .menu-btn {
        display: block !important;
    }

    .mobile-panel {
        position: fixed;
		top: 70px;
		right: 0;

		width: 320px;
		max-width: calc(100vw - 36px);
		height: calc(100vh - 70px);

		display: flex;
		flex-direction: column;

		overflow-y: auto;
		overflow-x: hidden;

		-webkit-overflow-scrolling: touch;

		background: #fff;
		box-shadow: var(--shadow);
    }

	.mobile-nav {
		flex: 1;
		overflow-y: auto;
		overflow-x: hidden;
	}
}