:root{
  --bg:#f5f7fb;
  --card:#ffffff;
  --line:#e5e7eb;
  --text:#111827;
  --muted:#6b7280;
  --primary:#111827;
  --soft:#f8fafc;
  --shadow:0 14px 40px rgba(15,23,42,.08);
  --radius:20px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body.giftBody{
  background:linear-gradient(180deg,#f8fafc 0%,#eef2f7 100%);
  color:var(--text);
  font:16px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans KR",sans-serif;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}

.giftContainer{
  width:min(1200px, calc(100% - 32px));
  margin:0 auto;
}

.giftHeader{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.giftHeaderRow{
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.giftBrand{
  font-size:22px;
  font-weight:800;
}
.giftNav{
  display:flex;
  align-items:center;
  gap:18px;
}
.giftNav a{
  color:var(--muted);
  font-weight:600;
}
.giftUserBox{
  display:flex;
  align-items:center;
  gap:12px;
}
.giftPoint{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:88px;
  height:36px;
  padding:0 12px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-weight:800;
}

.giftMain{padding:28px 0 48px}
.giftHero{
  background:linear-gradient(135deg,#111827 0%,#1f2937 100%);
  color:#fff;
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:28px;
  margin-bottom:24px;
}
.giftHero h1{
  margin:0 0 10px;
  font-size:34px;
  line-height:1.2;
}
.giftHero p{
  margin:0;
  color:rgba(255,255,255,.82);
}

.giftSection{
  margin-top:28px;
}
.giftSectionHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.giftSectionHead h2{
  margin:0;
  font-size:24px;
}

.giftGrid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.giftCard{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.giftThumb{
  aspect-ratio:1/1;
  background:#f3f4f6;
}
.giftThumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.giftCardBody{
  padding:16px;
}
.giftMeta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
  color:var(--muted);
  font-size:13px;
}
.giftName{
  font-size:17px;
  line-height:1.4;
  font-weight:800;
  margin:0 0 8px;
}
.giftSummary{
  margin:0 0 12px;
  color:var(--muted);
  font-size:14px;
  min-height:44px;
}
.giftPointPrice{
  font-size:22px;
  font-weight:900;
  letter-spacing:-.02em;
}
.giftEmpty{
  padding:28px;
  text-align:center;
  border:1px dashed var(--line);
  border-radius:20px;
  background:#fff;
  color:var(--muted);
}

.giftFooter{
  padding:18px 0 42px;
  color:var(--muted);
  text-align:center;
}

@media (max-width: 980px){
  .giftGrid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width: 760px){
  .giftHeaderRow{
    flex-wrap:wrap;
    padding:10px 0;
  }
  .giftNav{
    width:100%;
    order:3;
    overflow:auto;
    white-space:nowrap;
  }
  .giftGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .giftHero h1{font-size:28px}
}
@media (max-width: 420px){
  .giftContainer{width:min(100% - 20px, 1200px)}
  .giftGrid{grid-template-columns:1fr 1fr;gap:12px}
  .giftCardBody{padding:12px}
  .giftName{font-size:15px}
  .giftPointPrice{font-size:19px}
}