/* ===== Reset (minimal) ===== */
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans KR","Apple SD Gothic Neo",Arial,sans-serif;color:#111;background:#f6f7fb}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
ul{list-style:none;margin:0;padding:0}

/* ===== Tokens ===== */
:root{
  --container: 1440px;
  --side: 220px;     /* 좌/우 배너 폭 */
  --gap: 18px;
  --card: #fff;
  --line: #e6e8ef;
  --text: #111827;
  --muted: #6b7280;
  --brand: #e60023;  /* 포인트 컬러 */
  --shadow: 0 10px 26px rgba(17, 24, 39, .07);
  --radius: 14px;
}

/* ===== Common Layout ===== */
.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.topbar{
  background:#fff;
  border-bottom:1px solid var(--line);
}
.topbar .row{
  height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:12px;
  color:var(--muted);
}
.topbar .links{
  display:flex;
  gap:10px;
  align-items:center;
}
.topbar .links a{
  padding:6px 8px;
  border-radius:10px;
}
.topbar .links a:hover{
  background:#f1f3f9;
  color:var(--text);
}

/* ===== Header ===== */
.header{
  background:#fff;
  border-bottom:1px solid var(--line);
}
.header .row{
  padding:18px 0;
  display:grid;
  grid-template-columns: 220px 1fr 260px;
  gap:14px;
  align-items:center;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand .logo{
  width:38px;height:38px;border-radius:12px;
  background:transparent;
  box-shadow:none;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.brand .logo img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.brand .name{
  font-weight:900;
  letter-spacing:-.3px;
  font-size:18px;
  line-height:1.1;
}
.brand .sub{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}

.search{
  display:grid;
  grid-template-columns: 120px 1fr 92px;
  gap:8px;
  padding:10px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background:#fff;
}
.search select, .search input{
  height:42px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:0 12px;
  outline:none;
  background:#fff;
}
.search input:focus, .search select:focus{
  border-color: rgba(230,0,35,.45);
  box-shadow:0 0 0 4px rgba(230,0,35,.10);
}
.search button{
  height:42px;border:0;border-radius:12px;
  background: var(--brand);
  color:#fff;font-weight:800;cursor:pointer;
  box-shadow:0 12px 24px rgba(230,0,35,.18);
}
.search button:hover{filter:brightness(1.03)}

.header-quick{
  display:flex;
  justify-content:flex-end;
  gap:8px;
}
/* 요청 반영: 테두리 없이 깔끔하게 */
.header-quick a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:42px;
  padding:0 6px;
  border:0;
  border-radius:10px;
  background:transparent;
  box-shadow:none;
  font-size:13px;
  font-weight:800;
  color: var(--muted);
}
.header-quick a:hover{
  background:#f1f3f9;
  color: var(--text);
}

/* ===== GNB (요청 반영: sticky 제거) ===== */
.gnb{
  background:#fff;
  border-bottom:1px solid var(--line);
}
.gnb .row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 0;
}

/* Hamburger category button */
.cat-wrap{
  position: relative;
}
.cat-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  font-weight:900;
  font-size:14px;
  color:#1f2937;
  background:#fff;
  border:1px solid var(--line);
  cursor:pointer;
}
.cat-btn:hover{background:#f1f3f9}
.burger{
  width:18px; height:12px; position:relative;
}
.burger i{
  position:absolute; left:0; right:0; height:2px;
  background:#1f2937; border-radius:2px;
}
.burger i:nth-child(1){top:0}
.burger i:nth-child(2){top:5px}
.burger i:nth-child(3){top:10px}

.menu{
  position:absolute;
  top: calc(100% + 10px);
  left:0;
  width: 920px;
  max-width: calc(100vw - 32px);
  background:#fff;
  border:1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(17,24,39,.14);
  padding: 14px;
  display:none;
  z-index: 50;
}
.menu.open{display:block}
.menu::before{
  content:"";
  position:absolute;
  top:-8px; left:16px;
  width:14px; height:14px;
  background:#fff;
  border-left:1px solid var(--line);
  border-top:1px solid var(--line);
  transform: rotate(45deg);
}
.menu-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 2px 2px 10px;
}
.menu-head strong{
  font-size:14px;
  letter-spacing:-.2px;
}
.menu-close{
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  height:34px;
  padding:0 10px;
  font-weight:900;
  cursor:pointer;
}
.menu-close:hover{background:#f1f3f9}

.menu-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.menu-col{
  border:1px solid var(--line);
  border-radius: 14px;
  background:#fff;
  padding: 10px;
}
.menu-col .col-title{
  font-weight:900;
  font-size:13px;
  margin-bottom:8px;
}
.menu-col a{
  display:block;
  padding:8px 10px;
  border-radius:12px;
  font-size:13px;
  color:#374151;
}
.menu-col a:hover{
  background: rgba(230,0,35,.08);
  color: var(--brand);
}

/* Nav links */
.nav-links{
  display:flex;
  align-items:center;
  gap:6px;
}
.nav-links a{
  padding:10px 12px;
  border-radius:12px;
  font-weight:900;
  font-size:14px;
  color:#1f2937;
}
.nav-links a:hover{background:#f1f3f9}
.nav-links a.active{
  background: rgba(230,0,35,.08);
  color: var(--brand);
  border: 1px solid rgba(230,0,35,.18);
}

/* ===== Main Grid (좌/중앙/우) ===== */
.page{
  padding:18px 0 42px;
}
/* .grid{
  display:grid;
  grid-template-columns: var(--side) 1fr var(--side);
  gap: var(--gap);
  align-items:start;
} */

/* Side ads */
.sidebar{
  position:relative;
}
.sticky{
  position: sticky;
  top: 12px; /* sticky gnb 제거했으니 자연스럽게 */
}
.ad-stack{
  display:grid;
  gap: 12px;
}
.ad{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:0;
  overflow:hidden;
}
.ad .label{
  display:none;
}
.ad .box{
  margin-top:0;
  height: 220px;
  border-radius: 0;
  border:none;
  background: transparent;
  display:block;
  color: transparent;
  font-weight:900;
}
/* .ad.small .box{height: 140px}
.ad.tall .box{height: 320px} */

/* Center content */
.content{
  display:grid;
  gap: var(--gap);
}

/* .content{
  display:grid;
  gap: var(--gap);
  border-radius: var(--radius);
  padding: 10px 15px 0px 15px;
  background: #fff;
} */
.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card .head{
  padding:14px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line);
}
.card .title{
  font-size:15px;
  font-weight:900;
  letter-spacing:-.2px;
}
.card .more{
  font-size:12px;
  color: var(--muted);
}
.card .more:hover{ color: var(--brand); }
.card .body{
  padding:14px 16px;
}

/* Hero banner area */
.hero{
  padding:18px 16px;
  background: linear-gradient(135deg, rgba(230,0,35,.10), rgba(17,24,39,.02));
}
.hero .badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.85);
  border:1px solid rgba(255,255,255,.7);
  font-size:12px;
  font-weight:900;
}
.hero h2{
  margin:10px 0 6px;
  font-size:22px;
  letter-spacing:-.4px;
}
.hero p{
  margin:0;
  color: rgba(17,24,39,.72);
  font-size:13px;
}
.hero .actions{
  margin-top:14px;
  display:flex;
  gap:10px;
}
.btn{
  height:40px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:900;
  cursor:pointer;
}
.btn.primary{
  border:0;
  background: var(--brand);
  color:#fff;
  box-shadow:0 12px 24px rgba(230,0,35,.18);
}
.btn:hover{filter:brightness(1.02)}

/* Product grid (요청 반영: 간격 조금 더) */
.products{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px; /* 12 -> 16 */
}
.product{
  border:1px solid var(--line);
  border-radius: 14px;
  overflow:hidden;
  background:#fff;
  transition: transform .12s ease, border-color .12s ease;
}
.product:hover{
  border-color: rgba(230,0,35,.22);
  transform: translateY(-2px);
}
.product .thumb{
  height: 140px;
  background: linear-gradient(135deg, rgba(17,24,39,.06), rgba(17,24,39,.03));
  display:grid;
  place-items:center;
  color: rgba(17,24,39,.5);
  font-weight:900;
  position:relative;
}
.product .tag{
  position:absolute;
  top:10px; left:10px;
  height:26px;
  padding:0 10px;
  border-radius:999px;
  background: rgba(255,255,255,.9);
  border:1px solid rgba(255,255,255,.7);
  font-size:11px;
  font-weight:900;
}
.product .info{
  padding:10px 10px 12px;
  display:grid;
  gap:6px;
}
.product .name{
  font-weight:900;
  font-size:13px;
  line-height:1.25;
  min-height: 32px;
}
.product .meta{
  display:flex;
  justify-content:space-between;
  color: var(--muted);
  font-size:12px;
}
.product .price{
  font-weight:900;
  color:#111827;
}

/* Footer */
.footer{
  background:#fff;
  border-top:1px solid var(--line);
}
.footer .row{
  padding:22px 0;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  font-size:12px;
  color: var(--muted);
}
.footer strong{color:var(--text)}
.footer .right{text-align:right}
.footer a:hover{color:var(--brand)}

/* ===== Responsive ===== */
@media (max-width: 1024px){
  .header .row{
    grid-template-columns: 1fr;
  }
  .header-quick{justify-content:flex-start}
  .grid{
    grid-template-columns: 1fr;
  }
  .sidebar{display:none}
  .products{grid-template-columns: repeat(2, 1fr);}
  /* .menu{width: 100%;} */
  .menu-grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
}


/* ========================= */
/* BANNER WRAP */
/* ========================= */

.main-banner-wrap{
position:relative;
width:100%;
border-radius:20px;
overflow:hidden;
margin-bottom:5px;   /* 배너 아래 간격 */
}


/* ========================= */
/* SLIDE */
/* ========================= */

.main-banner{
height:500px;
}

.banner-item{
height:500px;
}

.banner-item img{
width:100%;
height:100%;
object-fit:cover;
display:block;
border-radius:20px;   /* 이미지 라운드 */
}


/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width:768px){

.main-banner{
height:220px;
}

.banner-item{
height:220px;
}

}


/* ========================= */
/* ARROWS */
/* ========================= */

.slick-prev,
.slick-next{
width:70px;
height:70px;
z-index:20;
opacity:0;
transition:0.3s;
}

.main-banner-wrap:hover .slick-prev,
.main-banner-wrap:hover .slick-next{
opacity:1;
}

.slick-prev{
left:25px;
}

.slick-next{
right:25px;
}

.slick-prev:before,
.slick-next:before{
font-size:60px;
color:white;
opacity:0.9;
}


/* ========================= */
/* BAR DOT */
/* ========================= */

.main-banner .slick-dots{
position:absolute;
bottom:20px;
width:100%;
display:flex !important;
justify-content:center;
gap:10px;
}

.main-banner .slick-dots li{
width:50px;
height:4px;
margin:0;
overflow:hidden;
background:rgba(255,255,255,0.4);
border-radius:4px;
}

.main-banner .slick-dots li button{
display:none;
}


/* ========================= */
/* PROGRESS */
/* ========================= */

.main-banner .slick-dots li::after{
content:'';
display:block;
height:4px;
width:0%;
background:white;
}

.main-banner .slick-dots li.slick-active::after{
animation:bannerProgress 5s linear forwards;
}

@keyframes bannerProgress{
0%{width:0%;}
100%{width:100%;}
}
