:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e5e7eb;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --radius: 22px;
  --radius2: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:"Pretendard", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);

  min-height:100vh;
  display:flex;
  flex-direction:column;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.container{max-width:1160px;margin:0 auto;padding:0 18px}
.page{padding:14px 0 60px; flex:1;}

.muted{color:var(--muted);font-size:14px}
.strong{font-weight:700}
.mt{margin-top:14px}
.link{text-decoration:underline;text-underline-offset:3px}

.topbar{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(229,231,235,.7);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  height:64px;
  padding:14px 18px;
}

.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
}
.brand__logo-img{
  width:140px;
  height:40px;
  object-fit:contain;
  display:block;
}

.search{
  flex:1;
  display:flex;align-items:center;
  background:#f4f6fa;
  border:1px solid #edf2f7;
  border-radius:999px;
  padding:8px 10px;
  gap:8px;
}
.search input{
  border:none;outline:none;background:transparent;
  width:100%;
  font-size:14px;
}
.search__btn{
  border:none;background:transparent;cursor:pointer;
  font-size:16px;opacity:.7;
}

.topbar__nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}
.topbar__user{
  font-weight:800;
  margin-right:4px;
  white-space:nowrap;
}

.icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#fff;
  cursor:pointer;
  line-height:1;
}
.icon-btn:hover{transform:translateY(-1px)}

.chip{
  display:inline-flex;align-items:center;gap:6px;
  padding:7px 10px;border-radius:999px;
  border:1px solid #eef2f7;
  background:#fff;
  font-size:13px;
}
.chip--ok{border-color:#bff7d7;background:#ecfdf3;color:#0f766e}

.btn{
  border:none;cursor:pointer;
  background:#111827;color:#fff;
  padding:10px 14px;border-radius:999px;
  font-weight:700;font-size:14px;
  display:inline-flex;align-items:center;justify-content:center;
  gap:8px;
  box-shadow:0 8px 18px rgba(17,24,39,.12);
}
.btn:hover{transform:translateY(-1px)}
.btn--ghost{
  background:#fff;color:#111827;border:1px solid #e5e7eb;
  box-shadow:none;
}
.btn--danger{background:#ef4444;color:#fff}
.btn--wide{width:100%}

.flashes{padding-top:10px}
.flash{
  border-radius:14px;
  border:1px solid #e5e7eb;
  padding:10px 12px;margin:8px 0;
  background:#fff;
}
.flash--success{border-color:#bbf7d0;background:#f0fdf4}
.flash--danger{border-color:#fecaca;background:#fef2f2}
.flash--warning{border-color:#fde68a;background:#fffbeb}
.flash--info{border-color:#bfdbfe;background:#eff6ff}

.hero-full{
  width:100%;
  overflow: hidden;
}

.hero-row{
  position:relative;
  overflow:hidden;
  display: flex;
  justify-content: center;
}

.hero-inner{
  width: 100%;
  max-width: calc(580px * 3 + 20px * 2);
  overflow:hidden;
  position: relative;
}

.hero-swiper{ 
  width:100%;
  overflow:hidden;
  position: relative;
}

.hero-wrapper{
  display:flex;
  will-change: transform;
  transition-property: transform;
  transform: translate3d(0px, 0px, 0px);
}

.hero-slide{
  width:580px;
  margin-right:20px;
  flex: 0 0 auto;
}

.hero-slide-bg{
  aspect-ratio: 2 / 1;
  overflow:hidden;
  background-color:#f3f4f6;
  background-size: cover;
  background-repeat:no-repeat;
  background-position:center;
  border-radius:35px 35px 100px;
  display:flex;
  align-items:center;
}

.hero-link{
  display:block;
  width:100%;
  height:100%;
}
.hero-link:focus{
  outline:none;
  box-shadow: 0 0 0 2px rgba(59,130,246,.6);
}

.catbar{
  display:flex;
  gap:12px;
  margin: 14px 0 24px;
  overflow-x:auto;
  padding: 0 14px 6px;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  scroll-snap-type: x mandatory;
}
.catbar::-webkit-scrollbar{ height:8px; }
.catbar::-webkit-scrollbar-thumb{
  background:#e6eaf1;
  border-radius:999px;
}

.catcard{
  position:relative;
  flex: 0 0 170px;
  height: 92px;
  border-radius: 14px;
  overflow:hidden;
  background:#f3f5f9;
  box-shadow: 0 6px 16px rgba(20, 30, 60, .08);
  transform: translateZ(0);
}
.catcard img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform: scale(1.02);
  transition: transform .35s ease, filter .35s ease;
  filter: brightness(.78) saturate(1.05);
}
.catcard__overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px;
  background: transparent;
}
.catcard__title{
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .2px;
  color:#fff;
  text-align:center;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
  transition: transform .35s ease;
}
.catcard__badge{
  position:absolute;
  left:50%;
  bottom:10px;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color:#fff;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
}
.catcard:hover img{
  transform: scale(1.08);
  filter: brightness(.92) saturate(1.15);
}
.catcard:hover .catcard__title{
  transform: scale(1.05);
}
.catcard:focus-visible{
  outline: 2px solid #7c3aed;
  outline-offset: 3px;
}

.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin:8px 0 14px;
  padding-left:12px;
}
.section h2{margin:0;font-size:22px}

.grid{
  display:grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card{
  border-radius:18px;
  border:1px solid #eef2f7;
  position: relative; /* ✅ 추가 */
  background:#fff;
  overflow: visible;
  box-shadow: 0 6px 16px rgba(15,23,42,.06);
  transition: transform .12s ease;
}
/* ✅ 카드 전체 클릭(상품 상세 링크) */
.card__stretched{
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;   /* ✅ 추가 */
  height: 100%;  /* ✅ 추가 */
  z-index: 2;
}

/* ✅ 카드 내용은 링크 아래로 */
.card__thumb,
.card__body{
  position: relative;
}

/* ✅ 셀러 링크는 다시 위로(셀러만 따로 클릭) */
.seller-link{
  position: relative;
  z-index: 3;
}
.card:hover{transform: translateY(-2px)}
.card__thumb{
  width:100%;
  aspect-ratio: 3 / 2;
  overflow:hidden;
  border-radius: 16px;
  background:#f3f5f9;
}
.card__thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.thumb-placeholder{
  height:100%;
  display:grid;place-items:center;
  color:#94a3b8;font-weight:800;
}
.card__body{
  padding: 14px 14px 16px;
}
.card__title{
  font-size: 16px;
  font-weight: 800;
}
.card__meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.tag{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  background:#f3f4f6;
  color:#111827;
  line-height:1;
}

.tag--main{
  background: var(--tag-bg, #7C3AED) !important;
  color: var(--tag-fg, #FFFFFF) !important;
  border: none !important;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.card__price{
  margin-top: 10px;
  font-weight: 900;
  font-size: 15px;
  color: #111827;            /* ✅ 기존 빨강 고정 제거 */
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.15;
}

.product{
  display:grid;grid-template-columns: 460px 1fr;
  gap:26px;
}
.product__thumb{
  border-radius:22px;overflow:hidden;
  border:1px solid #eef2f7;
  background:#f1f5f9;
  box-shadow: var(--shadow);
  min-height:320px;
}
.product__thumb img{width:100%;height:100%;object-fit:cover}
.product__title{font-size:28px;font-weight:900;letter-spacing:-.3px}
.product__price{margin-top:10px;font-size:20px;font-weight:900}
.product__actions{margin-top:16px;display:flex;gap:10px;align-items:center}
.divider{height:1px;background:#e5e7eb;margin:18px 0}
.product__desc h3{margin:0 0 10px}
.prose{line-height:1.7;color:#0f172a}

.auth{display:grid;place-items:center}
.auth-card{
  width:min(420px, 100%);
  border-radius:24px;
  border:1px solid #eef2f7;
  box-shadow: var(--shadow);
  padding:22px;
  background:#fff;
}
.auth-card h2{margin:0 0 12px}

.field{display:flex;flex-direction:column;gap:7px;margin:12px 0}
label{font-weight:800;font-size:13px;color:#334155}
.input, .textarea{
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:11px 12px;
  font-size:14px;
  outline:none;
}
.textarea{resize:vertical}
.err{color:#ef4444;font-size:12px}

.admin-layout{display:grid;grid-template-columns: 220px 1fr;gap:18px}
.admin-nav{
  position:sticky;top:92px;
  align-self:start;
  border-radius:22px;border:1px solid #eef2f7;
  background:#fff;
  box-shadow: var(--shadow);
  padding:14px;
  height: fit-content;
}
.admin-nav__title{font-weight:900;margin-bottom:10px}
.admin-link{
  display:block;padding:10px 12px;border-radius:14px;
  font-weight:800;color:#334155;
}
.admin-link:hover{background:#f1f5f9}
.admin-nav__spacer{height:10px}

.admin-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.admin-head h2{margin:0}
.admin-main{min-width:0}

.stats{display:grid;grid-template-columns: repeat(3, 1fr); gap:12px;margin-bottom:16px}
.stat{
  border-radius:18px;border:1px solid #eef2f7;background:#fff;
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
  padding:14px;
}
.stat__label{color:#64748b;font-weight:800;font-size:13px}
.stat__value{margin-top:8px;font-weight:900;font-size:26px}

.card-block{
  border-radius:22px;border:1px solid #eef2f7;background:#fff;
  box-shadow: var(--shadow);
  padding:14px;
}
.card-block__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.card-block__head h3{margin:0}

.table{border-radius:18px;border:1px solid #eef2f7;overflow:hidden;background:#fff}
.tr{
  display:grid;
  grid-template-columns: 120px 1.2fr 1.6fr 120px 120px 160px;
  gap:10px;
  padding:12px;
  border-bottom:1px solid #eef2f7;
  align-items:center;
}
.tr.th{
  background:#f8fafc;
  font-weight:900;
  color:#334155;
}
.tr:last-child{border-bottom:none}

.row-actions{display:flex;gap:8px;align-items:center}
.row-actions form{margin:0}
.mini-thumb{
  width:64px;height:40px;border-radius:10px;object-fit:cover;
  border:1px solid #e5e7eb;background:#f1f5f9;
}
.mini-thumb--empty{display:grid;place-items:center;color:#94a3b8}

.form-card{
  border-radius:22px;border:1px solid #eef2f7;background:#fff;
  box-shadow: var(--shadow);
  padding:14px;
}
.preview{
  margin-top:10px;
  width:240px;border-radius:16px;overflow:hidden;
  border:1px solid #e5e7eb;
}

.empty{display:grid;place-items:center;padding:40px 0}
.empty__card{
  border-radius:22px;border:1px solid #eef2f7;background:#fff;
  box-shadow: var(--shadow);
  padding:22px;
  width:min(520px, 100%);
  text-align:center;
}
.empty__title{font-weight:900;font-size:18px;margin-bottom:8px}

.footer{border-top:1px solid #eef2f7;padding:18px 0;background:#fff}
.footer__inner{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

.pd{
  display:grid;
  grid-template-columns: 624px 1fr;
  gap:28px;
  align-items:start;
  margin-top:18px;
}

.pd-seller{
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
}
.pd-seller a{
  color:#111827;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pd-main{
  border-radius:22px;
  border:1px solid #eef2f7;
  overflow:hidden;
  background:#f1f5f9;
  box-shadow: var(--shadow);
}
.pd-main img{ width:100%; height:auto; display:block; }

.pd-thumbs{
  margin-top:12px;
  display:flex;
  gap:10px;
  align-items:center;
  overflow-x:auto;
  padding-bottom:4px;
}
.pd-thumb{
  border:none;
  padding:0;
  background:transparent;
  cursor:pointer;
  border-radius:12px;
  overflow:hidden;
  border:2px solid transparent;
}
.pd-thumb img{
  width:103px;
  height:72px;
  object-fit:cover;
  display:block;
}
.pd-thumb.is-active{ border-color:#7c3aed; }

.pd-right{
  position: static;
  top:auto;
  align-self:start;
}

.pd-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.pd-title{ margin:0; font-size:26px; font-weight:900; }
.pd-share{
  width:40px;height:40px;border-radius:999px;
  border:1px solid #e5e7eb;background:#fff;cursor:pointer;
}

.pd-price{ margin-top:14px; font-size:22px; font-weight:900; }

.pd-card{
  margin-top:14px;
  border:1px solid #eef2f7;
  border-radius:18px;
  padding:14px;
  background:#fff;
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
}
.pd-card-title{ font-weight:900; margin-bottom:10px; }

.pd-opt-grid{ display:flex; flex-wrap:wrap; gap:10px; }
.pd-opt{
  border:1px solid #e5e7eb;
  background:#fff;
  border-radius:14px;
  padding:10px 12px;
  font-weight:800;
  cursor:pointer;
}
.pd-opt.is-active{
  border-color:#7c3aed;
  box-shadow: 0 0 0 2px rgba(124,58,237,.15);
}

.pd-tags{
  margin-top:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.pd-tag{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid #e2e8f0;
  background:#f8fafc;
  font-weight:800;
  font-size:12px;
}

.pd-tag.tag--main{
  background: var(--tag-bg, #7C3AED) !important;
  color: var(--tag-fg, #FFFFFF) !important;
  border: none !important;
}

.intro-card{
  margin-top:16px;
  margin-bottom:16px;
  padding:16px 16px;
  border:1px solid #eef2f7;
  background:#ffffff;
  border-radius:16px;
  box-shadow: 0 8px 20px rgba(15,23,42,.06);
  font-weight:800;
  color:#0f172a;
  line-height:1.55;
  white-space:normal;
}

.btn--buy{
  width:100%;
  height:56px;
  border-radius:16px;
  font-size:16px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

.pd-content{
  margin-top:26px;
  border-top:2px solid #7c3aed;
  padding-top:18px;
}
.pd-content-title{
  text-align:center;
  font-weight:900;
  color:#6d28d9;
  margin-bottom:18px;
}
.pd-content-body{
  line-height:1.8;
}

.purchase-panel, .pd-right, .pd-buybox{ position: static !important; }

.color-row{
  display:flex;
  gap:10px;
  align-items:center;
}
.color-btn{
  width:44px;
  height:44px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  cursor:pointer;
}

.charge-title{
  text-align:center;
  margin-top: 6px;
  margin-bottom: 14px;
}
.charge-title__main{
  font-weight: 900;
  font-size: 20px;
}
.charge-title__sub{
  margin-top: 6px;
  color:#9aa3b2;
  font-size: 13px;
}

.charge-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top: 10px;
}

.charge-btn{
  height:56px;
  border-radius:10px;
  border:1px solid #eef1f6;
  background:#f6f7fb;
  font-weight:900;
  color:#616b7a;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
.charge-btn:hover{ background:#eef1ff; transform:translateY(-1px); }

.charge-info{
  background:#f6f7fb;
  border:1px solid #eef1f6;
  border-radius:14px;
  padding:14px;
}
.charge-info__title{
  font-weight:900;
  margin-bottom:10px;
}
.charge-info__row{
  display:flex;
  justify-content:space-between;
  padding:6px 0;
}

.gauge{
  width:100%;
  height:12px;
  border-radius:999px;
  background:#e9edf6;
  overflow:hidden;
}
.gauge__bar{
  height:100%;
  width:0%;
  background:#6b7cff;
  transition: width .15s linear;
}

.pd-category{
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
}
.pd-category a{
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-row{
  max-width: 100%;
  overflow: hidden;
}

.hero-inner{
  width: 100%;
  max-width: calc(580px * 3 + 20px * 2);
  overflow:hidden;
  position: relative;
}

.hero-swiper{ 
  width:100%;
  overflow:hidden;
  position: relative;
}

.hero-wrapper{
  display:flex;
  will-change: transform;
  transition-property: transform;
  transform: translate3d(0px, 0px, 0px);
}

.hero-slide{
  width:580px;
  margin-right:20px;
  flex: 0 0 auto;
}

.hero-slide-bg{
  aspect-ratio: 2 / 1;
  overflow:hidden;
  background-color:#f3f4f6;
  background-size: cover;
  background-repeat:no-repeat;
  background-position:center;
  border-radius:35px 35px 100px;
  display:flex;
  align-items:center;
}

.hero-link{
  display:block;
  width:100%;
  height:100%;
}
.hero-link:focus{
  outline:none;
  box-shadow: 0 0 0 2px rgba(59,130,246,.6);
}


.charge-center .section__head{
  justify-content:center;
  padding-left:0;
  text-align:center;
}

.charge-center .card{
  max-width:560px;
  margin:0 auto;
}

.charge-center #step1,
.charge-center #step2{
  text-align:center;
}

.charge-center #depositor{
  text-align:center;
}

.charge-center #step1 > div[style*="display:flex"]{
  justify-content:center;
}

.charge-center .charge-info{
  text-align:left;
}

.charge-center .charge-amount{
  text-align:center;
  margin-top:2px;
}
.charge-center .charge-amount__value{
  font-size:26px;
  font-weight:900;
  margin-top:6px;
}


.footer--dark{
  background:#0b0f19; 
  border-top:1px solid rgba(255,255,255,.08);
  padding:22px 0;
}

.footer--dark .footer__inner{
  align-items:flex-start;
}

.footer--dark .muted{
  color:rgba(255,255,255,.72);
}

.footer--dark .strong{
  color:#ffffff;
  font-size:18px;
  line-height:1.3;
  letter-spacing:-0.2px;
}

.footer-logo{
  width:140px;
  height:40px;
  object-fit:contain;
  display:block;
  margin-bottom:10px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
}

.footer-links{
  margin-top:10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.footer--dark .link{
  color:rgba(255,255,255,.86);
  text-decoration:underline;
  text-underline-offset:3px;
}
.footer--dark .link:hover{
  color:#ffffff;
}

.footer-social{
  margin-top:14px;
  display:flex;
  justify-content:flex-end;
}

.footer-social__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:56px;
  height:56px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  transition: transform .15s ease, background .15s ease;
}

.footer-social__icon{
  width:34px;
  height:34px;
  object-fit:contain;
  opacity:.95;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
}

.footer-social__link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.1);
}

html, body { height: 100%; }

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page{
  flex: 1;
}

.footer{
  margin-top: auto;
}


.icon{
  display:block;
}

.icon-order{
  width:20px;
  height:20px;
}

.icon-menu-kebab{
  width:18px;
  height:18px;
}

.user-menu-wrap{
  position: relative;
}

.icon-btn--menu{
  margin-left: 4px;
}

.user-menu{
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .14);
  padding: 6px 0;
  z-index: 60;
}

.user-menu__item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  font-size: 14px;
  color: #0f172a;
  text-decoration: none;
}

.user-menu__item:hover{
  background: #f3f4f6;
}

.user-menu__badge{
  font-size: 12px;
  font-weight: 800;
  color: #4b5563;
}

.user-menu__divider{
  height: 1px;
  margin: 4px 0;
  background: #e5e7eb;
}

.user-menu__item--danger{
  color: #b91c1c;
}

.editor-wrap{
  margin: 12px 0;
}

.pd-content-body p[style*="text-align: center"] img,
.pd-content-body div[style*="text-align: center"] img{
  display: inline-block;
}

.pd-content-body img.aligncenter,
.pd-content-body img.mce-item-none{
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.pd-content-body figure{
  margin: 14px 0;
}
.pd-content-body figure[style*="text-align: center"],
.pd-content-body figure.align-center,
.pd-content-body figure.image-style-align-center{
  text-align: center;
}
.pd-content-body figure[style*="text-align: center"] img,
.pd-content-body figure.align-center img,
.pd-content-body figure.image-style-align-center img{
  display: inline-block;
}

/* =========================================================
   Category
   ========================================================= */
.filter-rowbar{
  display:flex;
  gap:12px;
  align-items:center;
  margin: 10px 0 18px;

  border: 1px solid #eef2f7;
  flex-wrap: wrap;
  background:#fff;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
}

.filter-search{
  flex: 1;
  display:flex;
  align-items:center;
  gap:10px;
  background:#f4f6fa;
  border:1px solid #edf2f7;
  border-radius:999px;
  padding:10px 12px;
  min-width: 220px;
}
.filter-search input{
  border:none; outline:none; background:transparent;
  width:100%;
  font-size:14px;
}
.filter-search__btn{
  border:none;
  background:transparent;
  cursor:pointer;
  font-weight:900;
  opacity:.8;
}
.filter-search__btn:hover{ opacity:1; }

/* =========================================================
   Dropdown
   ========================================================= */
.dd{
  position: relative;
  display:inline-flex;
  align-items:center;
}

.dd__btn{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;

  height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background:#fff;
  cursor:pointer;
  font-weight:900;
  white-space:nowrap;

  min-width: 0;
  width: fit-content;
}

.dd__chev{
  opacity:.7;
  margin-left: 2px;
}

.dd__menu{
  position:absolute;
  left:0;
  top: calc(100% + 8px);
  min-width: 220px;

  border-radius:14px;
  border:1px solid #e5e7eb;
  background:#fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .14);
  padding:6px 0;
  z-index:70;
}

.dd__menu--wide{
  padding: 10px;          /* ✅ 다시 기본으로 */
  padding-bottom: 10px;   /* ✅ 과한 여백 제거 */
}

.dd__item{
  width:100%;
  border:none;
  background:transparent;
  cursor:pointer;
  text-align:left;
  padding:10px 12px;
  font-weight:900;
}
.dd__item:hover{ background:#f3f4f6; }

.dd__empty{
  padding: 10px 12px;
  color:#64748b;
  font-size:13px;
  font-weight:800;
}

.dd__section{
  padding: 10px;
}
.dd__section + .dd__section{
  border-top: 1px solid #eef2f7;
  margin-top: 0;
  padding-top: 10px;
}

.dd__section-title{
  font-size:12px;
  font-weight:900;
  color:#64748b;
  margin-bottom: 8px;
}

.dd__chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.row-actions .btn,
.row-actions button.btn {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}
.dd__chip{
  display:inline-flex;
  align-items:center;
  gap:6px;

  padding: 7px 10px;
  border-radius:999px;
  border:1px solid #eef2f7;
  background:#fff;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  user-select:none;
}
.dd__chip input{ margin:0; }

.dd__footer{
  position: sticky;
  bottom: 0;
  background:#fff;

  margin-top: 8px;
  padding: 6px 2px;
  border-top: 1px solid #eef2f7;

  display:flex;
  justify-content:flex-end;
}
.dd__reset{
  display:inline-flex;
  align-items:center;
  padding: 4px 6px; 
  line-height: 1.1;
  border-radius: 10px;

  font-size:13px;
  font-weight:900;
  color:#334155;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dd__reset:hover{ color:#111827; }

.dd__chip--main{
  background: var(--tag-bg, #7C3AED) !important;
  color: var(--tag-fg, #FFFFFF) !important;
  border: none !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

/* =========================================================
   Tag dropdown
   ========================================================= */
.dd__selected{
  padding: 10px;
}
.dd__selected-title{
  font-size:12px;
  font-weight:900;
  color:#64748b;
  margin-bottom: 8px;
}
.dd__selected-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.dd__selected-empty{
  font-size:13px;
  font-weight:800;
  color:#94a3b8;
  padding: 4px 0;
}

.dd__divider{
  height: 1px;
  background: #eef2f7;
  margin: 2px 10px 10px;
}

.dd__pill{
  border:none;
  cursor:pointer;
  user-select:none;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding: 7px 10px;
  border-radius: 999px;
  background:#f8fafc;
  border: 1px solid #e2e8f0;
  color:#0f172a;

  font-size:13px;
  font-weight:900;
  line-height: 1;
  transition: transform .12s ease, background .12s ease;
}
.dd__pill:hover{
  transform: translateY(-1px);
  background:#f1f5f9;
}

.dd__pill.is-selected{
  border-color:#7c3aed;
  box-shadow: 0 0 0 2px rgba(124,58,237,.12);
}

.dd__pill--main{
  background: var(--tag-bg, #7C3AED) !important;
  color: var(--tag-fg, #FFFFFF) !important;
  border: none !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.dd__pill--main:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.dd__pill--selected{
  position: relative;
  padding-right: 12px;
}
.dd__pill--selected::after{
  content: "×";
  margin-left: 8px;
  font-weight: 900;
  opacity: .75;
}
.dd__pill--selected:hover::after{ opacity: 1; }


/* =========================================================
   Notices
   ========================================================= */
.notice-head{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin: 8px 0 10px;
}
.notice-title{
  margin:0;
  font-size:28px;
  font-weight:900;
  letter-spacing:-.3px;
  margin-left: 8px;
}

.notice-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-left: 8px;
  margin-bottom: 16px;
}
.notice-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 36px;
  padding: 0 14px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#fff;
  font-weight:900;
  font-size:13px;
}
.notice-tab.is-active{
  border-color:#7c3aed;
  background:#7c3aed;
  color:#fff;
}

.notice-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.notice-card{
  display:block;
  border-radius:18px;
  border:1px solid #eef2f7;
  background:#fff;
  overflow:hidden;
  box-shadow: 0 6px 16px rgba(15,23,42,.06);
  transition: transform .12s ease;
}
.notice-card:hover{ transform: translateY(-2px); }

.notice-thumb{
  width:100%;
  aspect-ratio: 16 / 9;
  overflow:hidden;
  background:#f3f5f9;
}
.notice-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.notice-body{
  padding: 12px 14px 14px;
}

.notice-cat-pill{
  display:inline-flex;
  align-items:center;
  height: 22px;
  padding: 0 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  border:1px solid #fecaca;
  background:#fef2f2;
  color:#ef4444;
}

.notice-cat-notice{
  border-color:#bfdbfe;
  background:#eff6ff;
  color:#2563eb;
}
.notice-cat-event{
  border-color:#fecaca;
  background:#fef2f2;
  color:#ef4444;
}
.notice-cat-patch{
  border-color:#bbf7d0;
  background:#f0fdf4;
  color:#16a34a;
}

.notice-card-title{
  margin-top:10px;
  font-size:16px;
  font-weight:900;
  line-height:1.35;
}
.notice-date{
  margin-top:8px;
  color:#64748b;
  font-size:13px;
  font-weight:800;
}

.notice-detail{
  border-radius:22px;
  border:1px solid #eef2f7;
  background:#fff;
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
  overflow:hidden;
}
.notice-detail-head{
  padding:18px 18px 12px;
}
.notice-detail-title{
  margin:10px 0 8px;
  font-size:26px;
  font-weight:900;
  letter-spacing:-.3px;
}
.notice-detail-hero{
  border-top:1px solid #eef2f7;
  border-bottom:1px solid #eef2f7;
  background:#f3f5f9;
}
.notice-detail-hero img{
  width:100%;
  height:auto;
  display:block;
}
.notice-detail-body{
  padding: 18px;
}

@media (max-width: 900px){
  .notice-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 520px){
  .notice-grid{ grid-template-columns: 1fr; gap: 14px; }
  .notice-title{ font-size:24px; }
}

@media (max-width: 1800px){
  .hero-slide{
    width: 520px;
  }
  .hero-inner{
    max-width: calc(520px * 3 + 20px * 2);
  }
}

@media (max-width: 1600px){
  .hero-slide{
    width: 460px;
  }
  .hero-inner{
    max-width: calc(460px * 3 + 20px * 2);
  }
}

@media (max-width: 1400px){
  .hero-slide{
    width: 420px;
  }
  .hero-inner{
    max-width: calc(420px * 3 + 20px * 2);
  }
  
}

@media (max-width: 1280px){
  .hero-slide{
    width: 380px;
  }
  .hero-inner{
    max-width: calc(380px * 3 + 20px * 2);
  }
}

@media (max-width: 900px){
  .grid{
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  
  .pd{
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .pd-left{
    max-width: 600px;
    margin: 0 auto;
  }
  .pd-right{
    padding: 0 14px;
  }
  
}

@media (max-width: 780px){
  .container{
    padding: 0 14px;
  }
  
  .page{
    padding: 10px 0 50px;
  }
  
  .hero-inner{
    width: 100%;
    max-width: 100%;
  }
  
  .hero-slide{
    width: calc(100vw - 28px);
    margin-right: 12px;
  }
  
  .hero-slide-bg{
    border-radius: 24px 24px 60px;
  }
  
  .hero-row{
    padding: 0 14px;
  }
  
  .catbar{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 10px 10px;
    margin: 12px 0 20px;
    padding: 0 14px;
    overflow: visible;
    scroll-snap-type: none;
    justify-content: initial;
  }
  
  .catcard{
    flex-basis: 150px;
    height: 86px;
  }
  
  .catcard__title{
    font-size: 18px;
  }
  
  .section__head{
    margin: 6px 0 12px;
  }
  
  .section h2{
    font-size: 20px;
  }
  
  .grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  
  .pd-main{
    border-radius: 18px;
  }
  
  .pd-thumbs{
    margin-top: 10px;
    gap: 8px;
  }
  
  .pd-thumb{
    border-radius: 10px;
  }
  
  .pd-thumb img{
    width: 90px;
    height: 63px;
  }
  
  .pd-title{
    font-size: 24px;
  }
  
  .pd-price{
    font-size: 20px;
    margin-top: 12px;
  }
  
  .pd-tags{
    margin-top: 10px;
    gap: 6px;
  }
  
  .pd-tag{
    padding: 5px 9px;
    font-size: 11px;
  }
  
  .pd-category{
    margin-top: 8px;
    font-size: 12px;
  }
  
  .pd-card{
    margin-top: 12px;
    padding: 12px;
    border-radius: 16px;
  }
  
  .intro-card{
    margin-top: 14px;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
  }
  
  .btn--buy{
    height: 52px;
    font-size: 15px;
    border-radius: 14px;
  }
  
  .pd-content{
    margin-top: 22px;
    padding-top: 16px;
  }
  
  .pd-content-title{
    font-size: 18px;
    margin-bottom: 16px;
  }
  
  .pd-content-body{
    font-size: 15px;
    line-height: 1.7;
  }
  
  .card{
    border-radius: 14px;
  }
  
  .card__thumb{
    border-radius: 12px;
  }
  
  .card__body{
    padding: 12px;
  }
  
  .card__title{
    font-size: 15px;
  }
  
  .card__meta{
    margin-top: 6px;
    gap: 5px;
  }
  
  .tag{
    padding: 5px 8px;
    font-size: 11px;
  }
  
  .card__price{
    margin-top: 8px;
    font-size: 15px;
  }
  
}

@media (max-width: 680px){
  .topbar{
    padding: 6px 0;
  }
  .dd__btn{
    min-width: 0;      /* ✅ 기존 180px 무력화 */
    width: 100%;       /* ✅ 줄바꿈 시 꽉 차게 */
  }
  .topbar__inner{
    flex-wrap: wrap;
    height: auto;
    padding: 12px 14px;
  }
  
  .brand__logo-img{
    width: 120px;
    height: 36px;
  }
  
  .search{
    order: 3;
    flex: 1 1 100%;
    margin-top: 10px;
  }
  
  .topbar__user{
    font-size: 14px;
  }
  
  .icon-btn{
    width: 36px;
    height: 36px;
  }
  
  .hero-slide{
    width: calc(100vw - 24px);
  }
  
  .hero-slide-bg{
    border-radius: 20px 20px 50px;
  }
  
  .catcard{
    flex-basis: 140px;
    height: 80px;
  }
  
  .catcard__title{
    font-size: 16px;
  }
  
  .section h2{
    font-size: 18px;
  }
  
  .grid{
    gap: 12px;
  }
  
  .pd-share{
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .pd-title{
    font-size: 22px;
  }
  
  .pd-price{
    font-size: 18px;
  }
  
  .pd-thumb img{
    width: 80px;
    height: 56px;
  }
  
  .intro-card{
    font-size: 13px;
    padding: 12px;
  }
  
  .pd-content-title{
    font-size: 17px;
  }
  
  .pd-content-body{
    font-size: 14px;
  }
  
  .card__title{
    font-size: 14px;
  }
  
  .card__price{
    font-size: 14px;
  }
    .footer--dark {
    padding: 28px 0;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .footer-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    margin-bottom: 14px;
  }

  .footer--dark .muted {
    font-size: 13px;
  }

  .footer--dark .muted > div {
    margin-bottom: 4px;
  }

  .footer--dark .strong {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .footer-links {
    justify-content: center;
    gap: 12px;
  }

  .footer-social {
    margin-top: 8px;
  }
}

@media (max-width: 480px){
  .container{
    padding: 0 12px;
  }
  
  .hero-row{
    padding: 0 12px;
  }
  
  .hero-slide{
    width: calc(100vw - 20px);
    margin-right: 10px;
  }
  
  .hero-slide-bg{
    border-radius: 18px 18px 40px;
  }
  
  .catbar{
    gap: 8px;
    margin: 10px 0 18px;
    padding: 0 12px 6px;
  }
  
  .catcard{
    flex-basis: 130px;
    height: 74px;
  }
  
  .catcard__title{
    font-size: 15px;
  }
  
  .section__head{
    margin: 4px 0 10px;
  }
  
  .section h2{
    font-size: 17px;
  }
  
  .grid{
    gap: 10px;
  }
  
  .pd-main{
    border-radius: 16px;
  }
  
  .pd-thumbs{
    gap: 6px;
  }
  
  .pd-thumb{
    border-radius: 8px;
  }
  
  .pd-thumb img{
    width: 70px;
    height: 49px;
  }
  
  .pd-share{
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  
  .pd-title{
    font-size: 20px;
  }
  
  .pd-price{
    font-size: 17px;
    margin-top: 10px;
  }
  
  .pd-tags{
    margin-top: 8px;
    gap: 5px;
  }
  
  .pd-tag{
    padding: 4px 8px;
    font-size: 10px;
  }
  
  .pd-category{
    font-size: 11px;
  }
  
  .pd-card{
    margin-top: 10px;
    padding: 10px;
    border-radius: 14px;
  }
  
  .pd-card-title{
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .pd-opt-grid{
    gap: 8px;
  }
  
  .pd-opt{
    padding: 9px 11px;
    font-size: 13px;
    border-radius: 12px;
  }
  
  .intro-card{
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 11px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.45;
  }
  
  .btn--buy{
    height: 50px;
    font-size: 14px;
    border-radius: 12px;
  }
  
  .pd-content{
    margin-top: 20px;
    padding-top: 14px;
  }
  
  .pd-content-title{
    font-size: 16px;
    margin-bottom: 14px;
  }
  
  .pd-content-body{
    font-size: 13px;
    line-height: 1.65;
  }
  
  .card{
    border-radius: 12px;
  }
  
  .card__thumb{
    border-radius: 10px;
  }
  
  .card__body{
    padding: 10px;
  }
  
  .card__title{
    font-size: 13px;
    line-height: 1.4;
  }
  
  .card__meta{
    margin-top: 5px;
    gap: 4px;
  }
  
  .tag{
    padding: 4px 7px;
    font-size: 10px;
  }
  
  .card__price{
    margin-top: 6px;
    font-size: 13px;
  }
  
  .btn{
    padding: 9px 12px;
    font-size: 13px;
  }
  
  .icon-btn{
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
}

@media (max-width: 360px){
  /* .grid{
    grid-template-columns: 1fr;
    gap: 12px;
  } */
  
  .catcard{
    flex-basis: 120px;
    height: 70px;
  }
  
  .catcard__title{
    font-size: 14px;
  }
  
  .pd-title{
    font-size: 18px;
  }
  
  .pd-price{
    font-size: 16px;
  }
  
  .pd-thumb img{
    width: 65px;
    height: 46px;
  }
  
  .intro-card{
    font-size: 11px;
    padding: 10px;
  }
  
  .btn--buy{
    height: 48px;
    font-size: 13px;
  }
  
  .pd-content-body{
    font-size: 12px;
  }
}

.pd-content-body img{
  max-width: 100%;
  height: auto !important;
}

.pd-content-body p[style*="text-align: center"] img,
.pd-content-body div[style*="text-align: center"] img,
.pd-content-body figure[style*="text-align: center"] img,
.pd-content-body figure.align-center img,
.pd-content-body figure.image-style-align-center img{
  max-width: 100%;
  height: auto !important;
}

.pd-content-body iframe[src*="youtube"],
.pd-content-body iframe[src*="youtu.be"],
.pd-content-body iframe[src*="youtube-nocookie"],
.pd-content-body iframe[src*="vimeo"]{
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border: 0;
}

.pd-content-body video{
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

.oauth-row{
  display:flex;
  justify-content:center;
  gap:14px;
  margin-top: 8px;
}

.oauth-btn{
  width:76px;
  height:76px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
}

.oauth-btn img{
  width:55px;
  height:55px;
  object-fit:contain;
  display:block;
}

.oauth-btn:hover{ transform: translateY(-1px); }
.oauth-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(124,58,237,.22), 0 6px 18px rgba(15,23,42,.06);
}

.ppOpenBtn{
  --pp: 54px;

  width: var(--pp) !important;
  height: var(--pp) !important;
  aspect-ratio: 1 / 1;

  flex: 0 0 var(--pp);      /* flex 안에서 절대 줄지 않게 */
  flex-shrink: 0 !important;

  padding: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  line-height: 0 !important;
  box-sizing: border-box;
}

/* img가 전역 img 스타일에 안 지고 “무조건 꽉” 채우기 */
.ppOpenBtn > img.ppOpenImg{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;   /* max-width:100% 같은 전역 규칙 무력화 */
  object-fit: cover !important;
  display: block !important;
}

.category-banner {
  margin: 0 0 16px 0;
  border-radius: 16px;
  overflow: hidden;
}

.category-banner img {
  width: 100%;
  height: auto;
  display: block;
}



.seller-name-card{
  margin-top: 12px;
  display:flex;
  align-items:center;
  gap:3px;

  padding:12px 14px;
  border-radius:18px;
  border:1px solid #eef2f7;
  background:#fff;
  box-shadow: 0 6px 18px rgba(15,23,42,.06);

  text-decoration:none;
}

.seller-name-card:hover{
  transform: translateY(-1px);
}

.seller-name-card__label{
  font-size:12px;
  font-weight:900;
  color:#64748b;

  padding:6px 10px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
}

.seller-name-card__name{
  font-size:14px;
  font-weight:900;
  color:#0f172a;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.seller-name-card__arrow{
  margin-left:auto;
  font-weight:900;
  color:#94a3b8;
}

.seller-badges{
  display:inline-flex;
  gap:6px;
  margin-right:8px;
  vertical-align:middle;
  align-items:center;
  overflow:visible; /* 혹시라도 잘림 방지 */
}

.badge-icon{
  width:18px;
  height:18px;
  object-fit:contain; /* 이미지 전체 보이게 */
  border:0;           /* 테두리 제거 */
  border-radius:0;    /* ✅ 둥근 사각형 마스크 제거 */
  background:transparent;
  display:inline-block;
}

.badge-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
}

/* 툴팁 박스 */
.badge-wrap::after{
  content: attr(data-tip);
  position:absolute;
  left:50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;

  padding: 6px 8px;   /* ✅ 더 큰 여백 */
  border-radius: 10px;  /* ✅ 더 둥글게 */
  font-size: 11px;      /* ✅ 글자 크게 */
  line-height: 1.2;
  background: rgba(0,0,0,0.85);
  color: #fff;

  opacity: 0;
  pointer-events: none;
  z-index: 9999;

  /* ✅ 딜레이 없이 바로 뜨게 */
  transition: opacity 0s;
}

/* 꼬리(화살표) */
.badge-wrap::before{
  border-width: 4px;
  content:"";
  position:absolute;
  left:50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border:6px solid transparent;
  border-top-color: rgba(0,0,0,0.85);

  opacity:0;
  pointer-events:none;
  z-index: 9999;

  transition: opacity 0s;
}

/* hover/focus 시 즉시 표시 */
.badge-wrap:hover::after,
.badge-wrap:focus::after,
.badge-wrap:hover::before,
.badge-wrap:focus::before{
  opacity: 1;
}

.seller-badges--profile .badge-icon{
  width: 40px;
  height: 40px;
}

/* 툴팁도 같이 더 크게 */
h1 .seller-badges--profile{
  display: inline-flex;
  align-items: center;
  gap: 6px;          /* 배지들끼리 간격 */
  margin-right: 0;   /* 혹시 남아있는 여백 제거 */
  line-height: 1;
}
h1 .seller-badges--profile .badge-wrap{
  display: inline-flex;
  align-items: center;
}

/* Seller strip */
.seller-strip { margin: 10px 0 18px; }
.seller-swiper { overflow: visible; }
.seller-swiper--clip { overflow: hidden; }
.seller-wrapper { display: flex; align-items: flex-start; will-change: transform; }
.seller-slide { flex: 0 0 calc((100% - 60px) / 6); margin-right: 12px; } /* 6개 노출 */

.seller-slide:last-child { margin-right: 0; }

.seller-pill { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: inherit; }
.seller-avatar {
  width: 103px;
  height: 103px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}
.seller-avatar--placeholder {
  display: grid; place-items: center;
  font-weight: 700; font-size: 12px; line-height: 1.1;
}
.seller-name{
  display: inline-flex;
  align-items: center;         /* 배지와 글자 높이 맞춤 */
  justify-content: center;
  gap: 4px;                    /* 배지-닉 간격 (원하는 만큼 조절) */
  line-height: 1;              /* baseline 흔들림 방지 */
}


.card .seller-link{
  display: inline-flex;   /* 인라인 + flex */
  align-items: center;    /* 수직 정렬 */
  gap: 4px;               /* 배지-닉 간격 */
  line-height: 1;         /* baseline 흔들림 방지 */
}

.card .seller-link .seller-badges{
  margin-right: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;               /* 배지들끼리 간격 */
}
.seller-name .seller-badges{
  margin-right: 0;             /* 기존 8px 제거 */
  gap: 4px;                    /* 배지들끼리 간격 */
}

.seller-name .badge-icon{
  display: block;              /* baseline 영향 제거 */
}

@media (max-width: 900px) {
  .seller-slide {
    flex: 0 0 auto;          /* 계산식 제거 */
    min-width: 120px;        /* 최소 폭 보장 */
  }
}


.seller-name-card{
  display:flex;
  align-items:center;
}

.seller-name-card__badges{
  margin-right: 2px;     /* 이름이랑 너무 붙으면 0~4px로 조절 */
}

.seller-name-card__badges .badge-icon{
  width: 20px;
  height: 20px;
  display:block;
}

/* 배지 wrap도 수직정렬 */
.seller-name-card__badges .badge-wrap{
  display:inline-flex;
  align-items:center;
}

/* =========================
   Recommended row (1 line)
   ========================= */
.reco-row{
  display:flex;
  gap:22px;
  overflow-x:auto;
  overflow-y:hidden;
  padding: 0 12px 8px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.reco-row::-webkit-scrollbar{ height:8px; }
.reco-row::-webkit-scrollbar-thumb{
  background:#e6eaf1;
  border-radius:999px;
}

.reco-card{
  flex: 0 0 260px;      /* ✅ 한 줄에서 카드 폭 고정(원하면 280~320으로 조절) */
  scroll-snap-align: start;
}

/* 제목 옆 '전체 상품보기' 작은 카드 */
.mini-all-card{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:14px;
  border:1px solid #e5e7eb;
  background:#fff;
  font-size:13px;
  font-weight:900;
  color:#334155;
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
}
.mini-all-card:hover{
  transform: translateY(-1px);
  background:#f8fafc;
}

/* 모바일에서 카드 폭 조금 줄이기 */
@media (max-width: 780px){
  .reco-row{ gap:14px; padding: 0 8px 8px; }
  .reco-card{ flex-basis: 220px; }
}
@media (max-width: 480px){
  .reco-card{ flex-basis: 200px; }
}

@media (max-width: 780px){
  .mini-all-card{
    padding: 6px 9px;
    border-radius: 12px;
    font-size: 12px;

    position: relative;
    top: 4px;
  }
}

.price-old{
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 800;
  font-size: 12px;
  margin-right: 2px;         /* 기존 여백 과하면 줄임 */
  opacity: 1;                /* ✅ 흐림 대신 컬러로 제어 */
}

/* 할인가 */
.price-sale{
  color: #ef4444;            /* 포인트 컬러 */
  font-weight: 950;
  font-size: 16px;
  letter-spacing: -0.2px;
}

/* 할인율 뱃지 */
.price-off{
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;

  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;

  margin-left: 2px;
}

@media (max-width: 480px){
  .card__price{ font-size: 14px; }
  .price-sale{ font-size: 15px; }
  .price-old{ font-size: 11px; }
  .price-off{ height: 20px; font-size: 11px; padding: 0 7px; }
}
.categoryOuter{
  margin: 10px 0 14px;
}

.categoryInner{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.categoryInnerInner{
  position: relative;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 10px;

  padding: 14px 12px;
  min-height: 120px;

  border-radius: 16px;

  /* ✅ 기본 외곽선 또렷하게 */
  border: 2px solid #b8b8b8;      /* 기존 1px #eef2f7 → 더 진하고 두껍게 */
  background: #fff;
  box-shadow: 0 6px 18px rgba(15,23,42,.06);

  cursor: pointer;
  user-select:none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.categoryInnerInner .categoryIcon{
  line-height: 1;
  opacity: .95;
  color: #111827; /* 기본 아이콘 색 */
}

/* 텍스트+배지 한 줄 정렬 */
.categoryInnerInner .categoryTitle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

/* 선택되면 테두리+아이콘 컬러를 태그 컬러로 */
.categoryInnerInner.is-selected{
  border-color: var(--tag-bg);
  box-shadow: 0 10px 24px rgba(15,23,42,.12);
  transform: translateY(-1px);
}

.categoryInnerInner.is-selected .categoryIcon{
  color: var(--tag-bg);
}


/* hover */
.categoryInnerInner:hover{
  transform: translateY(-1px);
  border-color: #d8dfea;
  box-shadow: 0 10px 26px rgba(15,23,42,.08);
}

/* 접근성 포커스(키보드) */
.categoryInnerInner:focus-within{
  outline: none;
  box-shadow: 0 0 0 3px rgba(124,58,237,.18), 0 10px 26px rgba(15,23,42,.10);
  border-color: rgba(124,58,237,.55);
}

/* 아이콘 */
.categoryInnerInner i{
  opacity: .92;
}

/* 타이틀 + 카운트 */
.categoryTitle{
  font-weight: 900;
  font-size: 16px;
  color: #0f172a;
  display:flex;
  align-items:center;
  gap: 8px;
}
.categoryTitle .label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #eef2f7;
  border: 1px solid #dbe3ef;
  color:#334155;
}
/* 선택된 상태: 체크박스 checked 기반 (label 안에 input hidden) */
.categoryInnerInner input[type="checkbox"]:checked ~ i,
.categoryInnerInner.is-selected i{
  color: var(--tag-bg, #7C3AED);
}

.categoryInnerInner input[type="checkbox"]:checked ~ .categoryTitle,
.categoryInnerInner.is-selected .categoryTitle{
  color: var(--tag-bg, #7C3AED);
}

/* 선택된 상태: 보라색 테두리 + 링 + 은은한 배경 */
.categoryInnerInner input[type="checkbox"]:checked ~ * ,
.categoryInnerInner.is-selected{
  border-color: rgba(124,58,237,.55);
}

.categoryInnerInner input[type="checkbox"]:checked ~ .categoryTitle .label,
.categoryInnerInner.is-selected .categoryTitle .label{
  border-color: rgba(124,58,237,.28);
}

.categoryInnerInner input[type="checkbox"]:checked,
.categoryInnerInner.is-selected{
  /* (input 자체는 hidden이라 효과 없음. 안전용) */
}

.categoryInnerInner.is-selected{
  background: linear-gradient(0deg, rgba(124,58,237,.06), rgba(124,58,237,.06)), #fff;
  box-shadow: 0 0 0 3px rgba(124,58,237,.14), 0 12px 28px rgba(15,23,42,.10);
}

/* 체크 표시(우측 상단) */
.categoryInnerInner.is-selected::after{
  content: "✓";
  position:absolute;
  top: 10px;
  right: 10px;

  width: 26px;
  height: 26px;
  border-radius: 999px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-weight: 900;
  font-size: 14px;
  color: var(--tag-fg, #fff);
  background: var(--tag-bg, #7C3AED);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

/* 모바일 */
@media (max-width: 780px){
  .categoryInner{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .categoryInnerInner{
    min-height: 104px;
    padding: 12px 10px;
    border-radius: 14px;
  }
  .categoryTitle{ font-size: 15px; }
}