:root{
  --bg:#ffffff;
  --text:#121212;
  --muted:#6b7280;
  --line:#e5e7eb;
  --card:#ffffff;
  --shadow: 0 6px 18px rgba(0,0,0,.06);
  --radius: 16px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
}
a{ color:inherit; text-decoration:none; }

.container{ max-width:1080px; margin:0 auto; padding:20px 16px 40px; }

.header{
  position: sticky;
  top: 0;
  z-index: 20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom:1px solid var(--line);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
}
.logo{ font-weight:700; letter-spacing:.2px; }

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}
.navItem{
  font-size:14px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
  color: var(--muted);
}
.navItem:hover{ border-color: var(--line); color: var(--text); }
.navItem.isActive{ border-color: var(--text); color: var(--text); }

.actions{ display:flex; gap:8px; align-items:center; }
.iconBtn{
  width:38px; height:38px;
  border:1px solid var(--line);
  background:#fff;
  border-radius: 12px;
  cursor:pointer;
}
.iconBtn:hover{ box-shadow: var(--shadow); }

.iconBtnLink{
  width:38px; height:38px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.iconBtnLink:hover{ box-shadow: var(--shadow); }

.cartDot{
  position:absolute;
  top:-6px; right:-6px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.announce{
  border-bottom:1px solid var(--line);
  padding: 10px 16px;
  text-align:center;
  font-size:14px;
  color: var(--muted);
}
.dot{ margin: 0 8px; }

.toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin: 18px 0 14px;
}
h1{ margin:0; font-size:22px; letter-spacing:-.2px; }

.select, .input, .textarea{
  border:1px solid var(--line);
  border-radius: 12px;
  padding:10px 12px;
  background:#fff;
  width:100%;
}
.textarea{ min-height: 90px; resize: vertical; }

.grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav{ display:none; }
  .showOnMobile{ display:inline-flex; }
}
@media (min-width: 721px){
  .showOnMobile{ display:none; }
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }

.thumb{
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f3f4f6, #ffffff);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.badge{
  position:absolute;
  left:10px; top:10px;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:#111827;
  color:#fff;
}
.badge.soldout{ background:#9ca3af; }

.iconThumb{
  width: 54%;
  max-width: 120px;
  opacity: .86;
}

.cardBody{ padding: 12px 12px 14px; }
.title{ font-size:14px; line-height:1.35; min-height: 38px; }
.priceRow{ display:flex; align-items:baseline; justify-content:space-between; margin-top:8px; }
.price{ font-weight:700; }
.muted{ color: var(--muted); font-size: 12px; }

.pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  margin-top: 18px;
}
.pageBtn{
  border:1px solid var(--line);
  background:#fff;
  border-radius: 12px;
  padding:10px 12px;
  cursor:pointer;
}
.pageBtn:disabled{ opacity:.45; cursor:not-allowed; }
.pageInfo{ color: var(--muted); font-size:14px; }

.footer{
  border-top:1px solid var(--line);
  padding: 22px 16px;
}
.footerCols{
  max-width:1080px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 18px;
}
.footer h3{ margin:0 0 10px; font-size:14px; }
.footer ul{ list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.footer a{ color: var(--muted); font-size:14px; }
.footer a:hover{ color: var(--text); }
.footerNote{ color: var(--muted); font-size: 13px; line-height: 1.45; }
@media (max-width: 720px){
  .footerCols{ grid-template-columns: 1fr; }
}

/* Layout blocks */
.cardGrid2{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}
@media (max-width: 860px){
  .cardGrid2{ grid-template-columns: 1fr; }
}

.panel{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:#fff;
  padding: 14px;
}
.panelTitle{
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.row{
  display:flex;
  gap: 10px;
}
.row > *{ flex:1; }

.btn{
  border:1px solid var(--line);
  background:#fff;
  border-radius: 12px;
  padding: 11px 12px;
  cursor:pointer;
}
.btn:hover{ box-shadow: var(--shadow); }
.btnPrimary{
  background:#111827;
  color:#fff;
  border-color:#111827;
}
.btnDanger{
  border-color:#ef4444;
  color:#ef4444;
}
.btnLink{
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 0;
  cursor:pointer;
}
.btnLink:hover{ color: var(--text); }

.table{
  width:100%;
  border-collapse: collapse;
}
.table th, .table td{
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align:left;
  font-size: 14px;
}
.table th{ color: var(--muted); font-weight:600; }

.qty{
  display:flex; gap:8px; align-items:center;
}
.qty button{
  width:34px; height:34px;
  border-radius: 12px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
}

.notice{
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* Drawer */
.backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.35);
  z-index: 40;
}
.drawer{
  position:fixed;
  top:0; right:0;
  width: 320px;
  max-width: 86vw;
  height: 100%;
  background:#fff;
  border-left:1px solid var(--line);
  z-index: 50;
  padding: 14px;
  box-shadow: var(--shadow);
}
.drawerTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 12px;
}
.drawerTitle{ font-weight:700; }
.drawerSection{
  border-top:1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.drawerLabel{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.drawerLink{
  display:block;
  padding: 10px 10px;
  border-radius: 12px;
  border:1px solid transparent;
}
.drawerLink:hover{ border-color: var(--line); background:#fafafa; }

/* tiny */
.small{ font-size: 12px; color: var(--muted); }
