/* ============================================================
   버터치즈 | 서면 피규어 빌리지 — butter-cream design system
   ============================================================ */

:root {
  --cream: #FFFDF5;
  --cream-2: #FFF9E6;
  --butter: #FFD95A;
  --butter-soft: #FFF1BE;
  --butter-deep: #F4B400;
  --pink: #FFE4EC;
  --pink-deep: #F7A8BF;
  --mint: #DFF3E7;
  --sky: #E3F0FB;
  --violet: #F0E6FA;
  --cocoa: #4A3525;
  --cocoa-soft: #6B5442;
  --muted: #9A8874;
  --line: #EFE3CC;
  --line-2: #F7EEDA;
  --white: #fff;
  --red: #D9534F;
  --green: #2E8B57;
  --shadow: 0 10px 30px rgba(120, 90, 40, .08);
  --shadow-sm: 0 4px 14px rgba(120, 90, 40, .07);
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Noto Sans CJK KR',
               'Malgun Gothic', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
code { background: var(--cream-2); border: 1px solid var(--line); border-radius: 6px;
       padding: 1px 5px; font-size: .86em; color: var(--cocoa); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.25; }
p { margin: 0; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12.5px; }
.sub { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: 999px; padding: 11px 20px;
  font-size: 14px; font-weight: 700; color: var(--cocoa); background: var(--white);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--butter); border-color: var(--butter); box-shadow: 0 4px 0 #E9C13F; }
.btn-primary:hover { background: #FFE072; }
.btn-ghost { background: var(--white); border-color: var(--line); }
.btn-cart { background: var(--cocoa); color: #fff; padding: 10px 18px; }
.btn-cart:hover { background: #5B4230; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }

.icon-btn {
  border: 0; background: transparent; color: var(--cocoa); font-size: 17px;
  width: 34px; height: 34px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--cream-2); }

/* ============================================================
   Storefront
   ============================================================ */
.promo-bar {
  background: var(--cocoa); color: #FFF6DC; font-size: 12.5px; letter-spacing: .01em;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 8px 16px; flex-wrap: wrap;
}
.promo-bar i { opacity: .45; font-style: normal; }

.site-header {
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { position: relative; width: 44px; height: 38px; }
.brand-mark .cat { position: absolute; font-size: 24px; top: 0; }
.brand-mark .cat:first-child { left: 0; transform: rotate(-6deg); }
.brand-mark .cat:last-child { right: 0; top: 6px; transform: rotate(6deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 19px; letter-spacing: -.03em; }
.brand-text em { font-style: normal; font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.site-nav { display: flex; gap: 4px; margin-left: 10px; }
.nav-link { padding: 8px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--cocoa-soft); }
.nav-link:hover { background: var(--cream-2); }
.nav-link.active { background: var(--butter-soft); color: var(--cocoa); }
.ig-link {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--cocoa-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px;
  background: var(--white);
}
.ig-link:hover { background: var(--pink); border-color: var(--pink-deep); }
.ig-ico { color: var(--pink-deep); font-size: 15px; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line);
  background: var(--white); border-radius: 999px; padding: 8px 14px 8px 12px;
  font-size: 13.5px; font-weight: 700; color: var(--cocoa);
}
.cart-btn:hover { background: var(--butter-soft); }
.cart-count {
  background: var(--cocoa); color: #fff; font-size: 11.5px; min-width: 20px;
  height: 20px; border-radius: 999px; display: inline-flex; align-items: center;
  justify-content: center; padding: 0 5px;
}

/* hero */
.hero { background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%); }
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 54px 24px 64px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.hero-eyebrow {
  display: inline-block; background: var(--white); border: 1px solid var(--line);
  color: var(--cocoa-soft); font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: 46px; line-height: 1.18; letter-spacing: -.045em; }
.hero h1 .hl {
  background: linear-gradient(transparent 62%, var(--butter) 62%);
  padding: 0 4px;
}
.hero-copy > p { margin-top: 18px; color: var(--cocoa-soft); font-size: 15.5px; line-height: 1.7; }
.hero-copy > p strong { color: var(--cocoa); background: var(--pink); padding: 1px 5px; border-radius: 6px; }
.hero-stats { display: flex; gap: 26px; margin-top: 26px; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-size: 24px; letter-spacing: -.03em; }
.hero-stat span { font-size: 12px; color: var(--muted); }
.hero-cta { display: flex; gap: 10px; margin-top: 26px; }
.hero-greeting { margin-top: 18px; font-size: 13px; color: var(--muted); }

.hero-art { position: relative; min-height: 360px; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .8; }
.blob.b1 { width: 300px; height: 300px; background: var(--butter-soft); right: 30px; top: 10px; }
.blob.b2 { width: 170px; height: 170px; background: var(--pink); left: 0; bottom: 10px; }
.blob.b3 { width: 90px; height: 90px; background: var(--mint); right: 0; bottom: 40px; }
.hero-panel {
  position: absolute; inset: 24px 40px 20px 30px; background: var(--white);
  border: 1px solid var(--line); border-radius: 34px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; padding: 22px; transform: rotate(-1.2deg);
}
.hero-panel-top { font-size: 30px; letter-spacing: 2px; text-align: center; }
.hero-shelf {
  flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  align-items: end; margin-top: 14px;
}
.hero-shelf span {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: 14px 14px 6px 6px;
  height: 84px; display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.hero-panel-label {
  margin-top: 14px; text-align: center; font-size: 11px; letter-spacing: .22em;
  color: var(--muted); line-height: 1.6;
}
.hero-panel-label em { font-style: normal; font-size: 9px; letter-spacing: .3em; }
.float {
  position: absolute; font-size: 30px; background: #fff; border-radius: 50%;
  width: 58px; height: 58px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); animation: bob 5s ease-in-out infinite;
}
.float.f1 { left: 4px; top: 8px; animation-delay: .2s; }
.float.f2 { right: 6px; top: 70px; animation-delay: 1.1s; }
.float.f3 { left: 24px; bottom: 30px; animation-delay: .6s; }
.float.f4 { right: 26px; bottom: 6px; animation-delay: 1.6s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* promise strip */
.promise-strip {
  max-width: 1200px; margin: 0 auto; padding: 6px 24px 10px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.promise-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
}
.promise-ico { font-size: 22px; line-height: 1.2; }
.promise-item strong { font-size: 14px; display: block; }
.promise-item p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* products */
.products { max-width: 1200px; margin: 0 auto; padding: 46px 24px 20px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; letter-spacing: -.035em; }
.section-sub { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-size: 13px; font-weight: 600; color: var(--cocoa-soft);
}
.chip span {
  background: var(--cream-2); border-radius: 999px; padding: 1px 6px; font-size: 11px; color: var(--muted);
}
.chip:hover { border-color: var(--butter); }
.chip.active { background: var(--butter); border-color: var(--butter); color: var(--cocoa); }
.chip.active span { background: rgba(255,255,255,.65); color: var(--cocoa); }

.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px;
}
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; height: 208px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-media.c-butter { background: linear-gradient(150deg, #FFF3C9, #FFE69A); }
.card-media.c-pink { background: linear-gradient(150deg, #FFE9F0, #FFD3E1); }
.card-media.c-mint { background: linear-gradient(150deg, #E6F6EC, #CFECDC); }
.card-media.c-sky { background: linear-gradient(150deg, #E8F4FD, #D3E9FA); }
.card-media.c-violet { background: linear-gradient(150deg, #F3EBFB, #E6D8F7); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.figure-emoji {
  font-size: 82px; line-height: 1; filter: drop-shadow(0 8px 12px rgba(120, 90, 40, .18));
  transform: translateY(-6px);
}
.media-shelf {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 62%; height: 8px; border-radius: 50%; background: rgba(74, 53, 37, .10); filter: blur(1px);
}
.media-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; z-index: 2; }
.badge {
  font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px;
  letter-spacing: .01em; background: #fff; color: var(--cocoa); box-shadow: var(--shadow-sm);
}
.badge-pre { background: var(--butter); }
.badge-in { background: var(--mint); color: #256B48; }
.badge-mercari { background: var(--pink); color: #A64A67; }
.badge-urgent { background: #FFD9D7; color: #A33A35; }
.badge-sold { background: rgba(74,53,37,.82); color: #fff; }
.badge-ship-in { background: #E4F6EA; color: #23684A; }
.badge-ship-out { background: #E8F2FD; color: #2C5C86; }
.media-badges { flex-wrap: wrap; max-width: calc(100% - 24px); right: 14px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.card-title { font-size: 17px; margin-top: 6px; letter-spacing: -.03em; }
.card-summary { font-size: 12.8px; color: var(--cocoa-soft); margin-top: 6px; min-height: 38px; }
.random-note { font-size: 11.5px; color: #A64A67; background: #FFF3F7; border: 1px solid #F9DCE6;
  border-radius: 8px; padding: 6px 9px; margin-top: 8px; line-height: 1.4; }
.box-note { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.unit-select { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.unit-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 13px; cursor: pointer;
  display: flex; flex-direction: column; gap: 1px; background: #fff; }
.unit-card strong { font-size: 13px; }
.unit-card span { font-size: 11px; color: var(--muted); }
.unit-card b { font-size: 13px; margin-top: 3px; }
.unit-card.selected { border-color: var(--butter-deep); background: var(--cream-2); }
.unit-card.disabled { opacity: .45; cursor: not-allowed; }
.unit-card em { font-style: normal; font-size: 10px; color: var(--red); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--line); }
.fact { display: flex; flex-direction: column; gap: 1px; }
.fact-k { font-size: 10.5px; color: var(--muted); }
.fact-v { font-size: 12.5px; font-weight: 700; }
.stock.ok { color: var(--green); }
.stock.low { color: #D18A00; }
.stock.out { color: var(--red); }
.limit { margin-top: 11px; }
.limit-bar { height: 5px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.limit-bar i { display: block; height: 100%; background: var(--butter-deep); border-radius: 999px; }
.limit span { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; }
.price strong { font-size: 19px; letter-spacing: -.03em; }
.price small { font-size: 11px; color: var(--muted); margin-left: 3px; }

/* shop note */
.shop-note { max-width: 1200px; margin: 40px auto 0; padding: 0 24px 30px; }
.shop-note-inner {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px 36px; display: flex; gap: 30px; align-items: center;
}
.shop-note-art { font-size: 40px; letter-spacing: 4px; }
.shop-note h2 { font-size: 22px; }
.shop-note p { color: var(--cocoa-soft); margin-top: 10px; max-width: 720px; font-size: 14px; }
.shop-note-tags { display: flex; gap: 7px; margin-top: 14px; flex-wrap: wrap; }
.shop-note-tags span { font-size: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--cream-2); margin-top: 20px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 34px 24px 44px;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 26px;
}
.footer-logo { font-size: 16px; font-weight: 800; }
.footer-logo em { font-style: normal; font-weight: 600; color: var(--muted); }
.footer-greeting { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.footer-ig { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--pink-deep); }
.footer-info { display: flex; flex-wrap: wrap; gap: 5px 16px; font-size: 12px; color: var(--muted); align-content: start; }
.footer-note { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 16px; }

/* ---------- cart drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(74, 53, 37, .32); z-index: 40;
  backdrop-filter: blur(1px);
}
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); z-index: 50;
  background: var(--white); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .26s ease;
  box-shadow: -18px 0 40px rgba(74, 53, 37, .14);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 18px; }
.drawer-head h2 span { color: var(--muted); font-size: 13px; margin-left: 4px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.drawer-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); background: var(--cream); }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; }
.drawer-total span { font-size: 13px; color: var(--muted); }
.drawer-total strong { font-size: 22px; }
.drawer-hint { font-size: 11.5px; color: var(--muted); margin: 6px 0 14px; }
.cart-notice-wrap { margin-top: 12px; }
.cart-ship-note { font-size: 11.5px; line-height: 1.5; color: #2C5C86; background: #F2F8FE;
  border: 1px solid #D8E9F8; border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.cart-ship-note.mixed { color: #8A5A00; background: #FFF8E7; border-color: #EFD89A; }
.cart-ship-note.fast { color: #23684A; background: #F1FAF4; border-color: #D3EBDD; }
.checkout-random-notice { font-size: 11.5px; color: #A64A67; background: #FFF3F7; border: 1px solid #F9DCE6;
  border-radius: 10px; padding: 9px 12px; margin-top: 12px; line-height: 1.5; }
.order-ship-notice { font-size: 12px; color: #2C5C86; background: #F2F8FE; border: 1px solid #D8E9F8;
  border-radius: 10px; padding: 9px 12px; margin-top: 10px; line-height: 1.5; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.ci-thumb {
  width: 56px; height: 56px; border-radius: 14px; background: var(--cream-2);
  display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0;
  border: 1px solid var(--line); overflow: hidden;
}
.ci-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ci-main { flex: 1; min-width: 0; }
.ci-name { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.ci-opt { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ci-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.ci-price { font-size: 13.5px; font-weight: 700; }
.ci-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-btn { border: 0; background: var(--white); width: 26px; height: 26px; font-size: 15px; line-height: 1; }
.qty-btn:hover { background: var(--cream-2); }
.ci-qty em { font-style: normal; font-size: 12.5px; padding: 0 8px; min-width: 26px; text-align: center; }
.ci-remove { border: 0; background: none; color: var(--muted); font-size: 11.5px; text-decoration: underline; padding: 0; }
.cart-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.cart-empty .big { font-size: 36px; display: block; margin-bottom: 10px; }

/* ---------- modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center;
  justify-content: center; padding: 20px; background: rgba(74, 53, 37, .38);
  backdrop-filter: blur(2px);
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--white); border-radius: 28px; width: min(560px, 100%);
  max-height: 92vh; overflow-y: auto; position: relative; padding: 30px;
  box-shadow: 0 30px 80px rgba(74, 53, 37, .25);
}
.checkout-modal { width: min(620px, 100%); }
.product-modal { width: min(760px, 100%); padding: 0; overflow: hidden; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; background: rgba(255,255,255,.8); }
.modal-title { font-size: 22px; letter-spacing: -.03em; }

/* product modal */
.pm-grid { display: grid; grid-template-columns: 1fr 1.15fr; }
.pm-media {
  background: linear-gradient(150deg, #FFF3C9, #FFE69A); min-height: 320px;
  display: flex; align-items: center; justify-content: center; font-size: 96px; position: relative;
}
.pm-media img { width: 100%; height: 100%; object-fit: cover; }
.pm-body { padding: 30px 28px 26px; }
.pm-meta { font-size: 11.5px; color: var(--muted); }
.pm-name { font-size: 21px; margin-top: 6px; letter-spacing: -.03em; }
.pm-desc { font-size: 13px; color: var(--cocoa-soft); margin-top: 8px; }
.pm-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.pm-facts b { color: var(--cocoa); }
.opt-list { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.opt-card {
  border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13.5px; cursor: pointer; background: var(--white);
}
.opt-card:hover { border-color: var(--butter); }
.opt-card.selected { border-color: var(--butter-deep); background: var(--cream-2); }
.opt-card input { accent-color: var(--butter-deep); margin-right: 8px; }
.opt-card .opt-price { font-weight: 700; }
.opt-card.sold { opacity: .5; }
.pm-qty { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.pm-qty .ci-qty { border-color: var(--line); }
.pm-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pm-total strong { font-size: 22px; }
.pm-add { margin-top: 14px; }

/* checkout form */
.field { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.field > span, .field legend { font-size: 12px; font-weight: 700; color: var(--cocoa-soft); }
.field b { color: var(--pink-deep); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px;
  font-family: inherit; font-size: 14px; color: var(--cocoa); background: var(--white);
  outline: none; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--butter-deep); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.field.zip { flex: 0 0 120px; }
.field.grow { flex: 1; }
.field.narrow { flex: 0 0 100px; }
.pay-field { border: 0; padding: 0; margin: 16px 0 0; }
.pay-field legend { padding: 0; margin-bottom: 8px; }
.pay-option {
  display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
}
.pay-option:has(input:checked) { border-color: var(--butter-deep); background: var(--cream-2); }
.pay-option input { margin-top: 3px; accent-color: var(--butter-deep); }
.pay-option span { display: flex; flex-direction: column; }
.pay-option strong { font-size: 13.5px; }
.pay-option em { font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.checkout-summary { margin-top: 16px; border: 1px dashed var(--line); border-radius: 14px; padding: 14px; background: var(--cream); }
.checkout-summary .row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.checkout-summary .row.total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 10px; font-weight: 800; font-size: 15px; }
.form-error { background: #FFF0EF; border: 1px solid #F5C9C6; color: #A33A35; font-size: 12.5px; border-radius: 10px; padding: 10px 12px; margin-top: 12px; }
.form-note { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 10px; }

/* success */
#successStep { text-align: center; padding-top: 8px; }
.success-ico { font-size: 54px; }
.success-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.order-number {
  font-family: 'SFMono-Regular', Consolas, monospace; font-size: 21px; font-weight: 800;
  letter-spacing: .04em; background: var(--butter-soft); border-radius: 14px;
  padding: 14px; margin: 18px 0;
}
.success-rows { text-align: left; font-size: 13px; color: var(--cocoa-soft); }
.success-rows .row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.success-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }

/* ---------- order lookup ---------- */
.page-hero { background: var(--cream-2); border-bottom: 1px solid var(--line); }
.page-hero-inner { max-width: 900px; margin: 0 auto; padding: 52px 24px 44px; }
.page-hero h1 { font-size: 34px; margin-top: 10px; letter-spacing: -.04em; }
.page-hero p { color: var(--muted); margin-top: 8px; font-size: 14px; }
.lookup { max-width: 900px; margin: 0 auto; padding: 30px 24px 60px; }
.lookup-form { display: flex; gap: 10px; }
.lookup-form input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 14px 20px;
  font-size: 14px; font-family: inherit; outline: none; background: var(--white);
}
.lookup-form input:focus { border-color: var(--butter-deep); }
.lookup-hint { font-size: 12px; color: var(--muted); margin-top: 10px; }
.order-results { margin-top: 26px; }
.results-head { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.order-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 16px; }
.order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.order-no { font-size: 12.5px; color: var(--muted); }
.order-no strong { color: var(--cocoa); font-size: 15px; letter-spacing: .02em; }
.order-date { font-size: 12px; color: var(--muted); margin-top: 2px; }
.status-pill { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800; padding: 5px 11px; border-radius: 999px; background: var(--cream-2); color: var(--cocoa-soft); }
.st-wait { background: #FFF1C9; color: #8A6200; }
.st-confirm { background: var(--sky); color: #2C5C86; }
.st-ordered { background: var(--violet); color: #6A4A93; }
.st-prep { background: var(--mint); color: #256B48; }
.st-done { background: #E8E8E8; color: #555; }
.st-soldout { background: #FFE0DE; color: #A33A35; }
.st-cancel { background: #F1EDE6; color: #8B7A66; }
.timeline { display: flex; gap: 6px; margin-top: 18px; }
.tl-step { flex: 1; display: flex; flex-direction: column; gap: 5px; align-items: center; font-size: 10.5px; color: var(--muted); }
.tl-step i { display: block; height: 5px; width: 100%; border-radius: 999px; background: var(--cream-2); }
.tl-step.done i { background: var(--butter-deep); }
.tl-step.done span { color: var(--cocoa); font-weight: 700; }
.timeline.canceled { background: #FFF0EF; border-radius: 10px; padding: 10px 14px; }
.tl-cancel { font-size: 12.5px; color: #A33A35; }
.order-items { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px dashed var(--line); }
.order-items li { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.oi-name { flex: 1; }
.oi-name em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.oi-qty { color: var(--muted); font-size: 12px; }
.oi-price { font-weight: 700; min-width: 80px; text-align: right; }
.order-total { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; }
.order-total strong { font-size: 18px; }
.tracking { background: var(--mint); color: #256B48; border-radius: 10px; padding: 9px 12px; font-size: 12.5px; margin-top: 12px; }
.order-memo { background: var(--cream-2); border-radius: 10px; padding: 9px 12px; font-size: 12.5px; margin-top: 8px; color: var(--cocoa-soft); }
.order-receiver { font-size: 12px; color: var(--muted); margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.order-soldout { background: #FFF0EF; border: 1px solid #F5C9C6; border-radius: 12px; padding: 12px 14px; margin-top: 14px; display: flex; flex-direction: column; gap: 3px; }
.order-soldout strong { color: #A33A35; font-size: 13px; }
.order-soldout span { font-size: 12px; color: #8A5A57; }
.empty-state { text-align: center; padding: 60px 20px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.empty-state.soft { background: var(--cream-2); }
.empty-ico { font-size: 40px; margin-bottom: 10px; }
.empty-state h3 { font-size: 17px; }
.empty-state p { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ============================================================
   Admin
   ============================================================ */
.admin-body { background: #FBF7EF; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  width: 248px; flex-shrink: 0; background: var(--white); border-right: 1px solid var(--line);
  padding: 24px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.admin-brand { display: flex; gap: 10px; align-items: center; padding: 0 6px 20px; }
.admin-brand-mark { font-size: 22px; }
.admin-brand strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.admin-brand em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.side-label { font-size: 10px; letter-spacing: .2em; color: var(--muted); padding: 10px 10px 8px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-link {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px;
  font-size: 13.5px; font-weight: 600; color: var(--cocoa-soft); position: relative;
}
.side-link:hover { background: var(--cream-2); }
.side-link.active { background: var(--butter-soft); color: var(--cocoa); }
.side-ico { font-size: 15px; }
.side-dot { position: absolute; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--pink-deep); }
.side-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.live-badge { font-size: 11.5px; color: var(--green); display: flex; align-items: center; gap: 6px; font-weight: 700; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(46,139,87,.12); }
.side-store { font-size: 12.5px; color: var(--cocoa-soft); font-weight: 700; }
.side-copy { font-size: 10.5px; color: var(--muted); }

.admin-main { flex: 1; min-width: 0; padding: 28px 34px 60px; max-width: 1500px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.admin-crumb { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.admin-head h1 { font-size: 26px; margin-top: 4px; letter-spacing: -.035em; }
.admin-head-right { display: flex; align-items: center; gap: 12px; }
.admin-date { font-size: 12.5px; color: var(--muted); }
.sync-pill { font-size: 11.5px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.sync-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--butter-deep); }
.admin-alert { background: #FFF0EF; border: 1px solid #F5C9C6; color: #A33A35; padding: 11px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 16px; }

.kpi-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-bottom: 18px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px 15px; }
.kpi-k { font-size: 11.5px; color: var(--muted); }
.kpi-v { display: flex; align-items: baseline; gap: 3px; margin-top: 4px; }
.kpi-v strong { font-size: 21px; letter-spacing: -.03em; }
.kpi-v em { font-style: normal; font-size: 11px; color: var(--muted); }
.kpi-sun { background: #FFF8DF; border-color: #F6E6B4; }
.kpi-pink { background: #FFF5F8; border-color: #F9DCE6; }
.kpi-mint { background: #F3FBF6; border-color: #D8EEE1; }
.kpi-butter { background: #FFFBF0; border-color: #F5E9C6; }
.kpi-violet { background: #FAF6FE; border-color: #EADFF8; }
.kpi-sky { background: #F4FAFE; border-color: #DCEDF9; }
.kpi-gray { background: #FAF8F4; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px 6px; margin-bottom: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { font-size: 17px; letter-spacing: -.02em; }
.panel-head p { font-size: 12.5px; color: var(--muted); margin-top: 4px; max-width: 780px; }
.panel-tag { font-size: 11px; background: var(--cream-2); border: 1px solid var(--line); color: var(--cocoa-soft); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.panel-total { display: flex; gap: 16px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.panel-total strong { color: var(--cocoa); font-size: 14px; }
.panel-actions { display: flex; gap: 8px; }
.panel-note { font-size: 11.5px; color: var(--muted); padding: 10px 0 14px; border-top: 1px dashed var(--line-2); margin-top: 4px; }

.table-wrap { overflow-x: auto; margin: 0 -8px; padding: 0 8px 14px; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.8px; }
.data-table th {
  text-align: left; font-size: 11px; color: var(--muted); font-weight: 700;
  padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
  background: var(--cream); position: sticky; top: 0;
}
.data-table td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; white-space: nowrap; }
.data-table th.num { text-align: right; }
.prod-cell { display: flex; gap: 9px; align-items: center; min-width: 190px; }
.prod-cell strong { font-size: 12.8px; display: block; line-height: 1.35; }
.prod-cell em { font-style: normal; font-size: 11px; color: var(--muted); display: block; }
.prod-cell .bj-hint { font-size: 10.5px; color: #B08A4A; margin-top: 2px; }
.mini-emoji { font-size: 20px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: var(--cream-2); border-radius: 10px; flex-shrink: 0; }
.thumb { width: 38px; height: 38px; border-radius: 10px; overflow: hidden; background: var(--cream-2); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.state { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.state-ok { background: var(--mint); color: #256B48; }
.state-low { background: #FFF1C9; color: #8A6200; }
.state-out { background: #FFE0DE; color: #A33A35; }
.count { font-weight: 700; }
.row-actions { white-space: nowrap; display: flex; gap: 5px; justify-content: flex-end; }
.mini-btn {
  white-space: nowrap; border: 1px solid var(--line); background: var(--white); border-radius: 8px;
  font-size: 11.5px; padding: 5px 9px; color: var(--cocoa-soft); font-weight: 700;
}
.mini-btn:hover { background: var(--cream-2); border-color: var(--butter); }
.mini-btn.primary { background: var(--butter); border-color: var(--butter); color: var(--cocoa); }
.mini-btn[disabled] { opacity: .4; cursor: not-allowed; }
.need-badge { font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 8px; background: var(--cream-2); }
.need-badge.need { background: #FFE9C7; color: #8A5A00; }
.need-badge.ok { background: var(--mint); color: #256B48; }
.dday-chip { font-size: 11px; background: var(--cream-2); border-radius: 8px; padding: 4px 8px; white-space: nowrap; }
.dday-chip.urgent { background: #FFE0DE; color: #A33A35; }
.kw-chip { font-size: 11.5px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; display: inline-block; }
.kw-chip.jp { background: #F4FAFE; border-color: #DCEDF9; }
.matched-cell a { font-size: 11px; color: var(--cocoa-soft); text-decoration: underline; display: inline-block; margin-top: 2px; }
.matched-cell strong { font-size: 12px; font-weight: 600; }
.fwd-cell { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.fwd-cell em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.empty-row { text-align: center; color: var(--muted); padding: 26px !important; }

/* orders tab */
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; }
.orders-head { align-items: center; }
.mini-search { display: flex; gap: 6px; }
.mini-search input { border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; font-size: 12px; font-family: inherit; outline: none; min-width: 190px; }
.bulkbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--cream); border: 1px dashed var(--line); border-radius: 14px;
  padding: 10px 14px; margin-bottom: 12px;
}
.bulk-left { display: flex; align-items: baseline; gap: 10px; }
.bulk-left strong { font-size: 13px; }
.bulk-hint { font-size: 11px; color: var(--muted); }
.bulk-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.fwd-banner { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; }
.fwd-banner.warn { background: #FFF6E2; border: 1px solid #F4DFAE; }
.fwd-banner.ok { background: var(--mint); border: 1px solid #CFE9DA; }
.fwd-banner strong { font-size: 13px; display: block; }
.fwd-banner span { font-size: 11.5px; color: var(--cocoa-soft); }
.order-no-cell strong { font-size: 12.5px; display: block; white-space: nowrap; }
.order-no-cell em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.cust-cell strong { display: block; font-size: 12.5px; }
.cust-cell em { font-style: normal; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.items-cell strong { display: block; font-size: 12px; font-weight: 600; }
.items-cell em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.pay-tag { font-size: 10.5px; background: var(--cream-2); border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
.status-select { border: 1px solid var(--line); border-radius: 9px; padding: 6px 8px; font-size: 11.5px; font-family: inherit; background: var(--white); }
.tracking-cell { display: flex; gap: 4px; align-items: center; white-space: nowrap; }
.tracking-input { width: 62px; border: 1px solid var(--line); border-radius: 7px; padding: 5px 6px; font-size: 11px; font-family: inherit; }
.tracking-input.wide { width: 110px; }
.check-cell { width: 34px; text-align: center; }
.order-table input[type=checkbox] { accent-color: var(--butter-deep); }
.row-end { text-align: right; }

/* labels tab */
.label-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding-bottom: 16px; }
.label-form .field { margin-top: 0; min-width: 190px; }
.export-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 18px; }
.export-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--cream); }
.export-ico { font-size: 24px; }
.export-card h3 { font-size: 15px; margin-top: 6px; }
.export-card p { font-size: 12px; color: var(--muted); margin-top: 6px; }
.export-actions { display: flex; gap: 7px; margin-top: 14px; flex-wrap: wrap; }
.col-preview { margin-top: 14px; overflow-x: auto; }
.col-preview table { border-collapse: collapse; width: 100%; }
.col-preview th { font-size: 9.5px; background: var(--butter); color: var(--cocoa); padding: 4px 6px; white-space: nowrap; text-align: left; border: 1px solid #EBD089; }
.guide-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.guide-steps li { display: flex; gap: 12px; align-items: flex-start; }
.step-no { width: 24px; height: 24px; border-radius: 50%; background: var(--butter); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.guide-steps strong { font-size: 13px; }
.guide-steps p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.guide-tip { background: #FFF8E7; border: 1px dashed #EFD89A; border-radius: 12px; padding: 12px 14px; margin: 16px 0 18px; }
.guide-tip strong { font-size: 12.5px; }
.guide-tip p { font-size: 12px; color: var(--cocoa-soft); margin-top: 3px; }

/* sourcing */
.mc-note { background: var(--cream); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.mc-note strong { display: block; font-size: 12.5px; }
.mc-note span { font-size: 11.5px; color: var(--muted); }

/* stock tab */
.upload-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding-bottom: 18px; }
.file-drop {
  display: flex; gap: 12px; align-items: center; border: 1.5px dashed var(--line);
  border-radius: 14px; padding: 16px 20px; background: var(--cream); cursor: pointer; min-width: 300px;
}
.file-drop:hover { border-color: var(--butter-deep); background: #FFFCF0; }
.file-drop input { display: none; }
.file-ico { font-size: 24px; }
.file-drop strong { display: block; font-size: 13px; }
.file-drop em { font-style: normal; font-size: 11px; color: var(--muted); }
.upload-hint { font-size: 11.5px; color: var(--muted); max-width: 480px; }
.preview-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 16px; background: var(--cream); }
.preview-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; flex-wrap: wrap; }
.preview-head strong { font-size: 13px; }
.preview-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.preview-table th { text-align: left; font-size: 10.5px; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.preview-table td { padding: 7px 8px; border-bottom: 1px solid var(--line-2); }
.preview-table input, .preview-table select {
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font-size: 12px;
  font-family: inherit; background: #fff;
}
.preview-actions { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; }
.kakao-box {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  font-family: inherit; font-size: 13px; resize: vertical; background: var(--cream);
  outline: none; margin-bottom: 10px;
}
.kakao-box:focus { border-color: var(--butter-deep); background: #fff; }
.kakao-actions { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; }
.wholesale-form {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
  background: var(--cream); border-radius: 14px; padding: 14px; margin-bottom: 14px;
}
.wholesale-form .field { margin-top: 0; min-width: 120px; }
.wholesale-form .field.grow { min-width: 240px; }
.wholesale-form .field.narrow { flex: 0 0 90px; }
.connector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 16px; }
.connector { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--cream); }
.connector-top { display: flex; justify-content: space-between; align-items: center; }
.connector-top strong { font-size: 13px; }
.conn-state { font-size: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; color: var(--muted); }
.connector p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.connector-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; font-size: 10px; color: var(--muted); flex-wrap: wrap; }
.connector-foot a { color: var(--cocoa-soft); font-weight: 700; }
.log-table td { font-size: 11.8px; }
.log-kind { font-size: 10.5px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.num.plus { color: var(--green); font-weight: 700; }
.num.minus { color: var(--red); font-weight: 700; }

/* products + settings */
.settings-form { padding-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 14px; }
.form-grid .field.grow { grid-column: span 2; }
.toggle-line { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 6px; font-size: 12.5px; }
.toggle-line input { margin-top: 3px; accent-color: var(--butter-deep); }
.toggle-line strong { display: block; }
.toggle-line em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.settings-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.address-preview { margin: 16px 0 18px; background: var(--cream); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; }
.address-preview span { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 4px; }
.address-preview code { background: transparent; border: 0; font-size: 12.5px; }
.warn-banner { background: #FFF6E2; border: 1px solid #F4DFAE; border-radius: 12px; padding: 11px 14px; font-size: 12.5px; color: #7A5510; margin-bottom: 14px; }

/* admin modal / toast */
.admin-modal .modal-card { width: min(680px, 100%); padding: 26px; }
.admin-modal h2 { font-size: 19px; }
.fwd-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.fwd-block { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.fwd-block h4 { font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: .02em; }
.fwd-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 3px 0; }
.fwd-row span { color: var(--muted); }
.fwd-row strong { text-align: right; }
.fwd-url { font-size: 11.5px; word-break: break-all; background: var(--cream); border-radius: 8px; padding: 8px 10px; margin-top: 4px; }
.fwd-message { white-space: pre-wrap; font-size: 11.5px; background: var(--cream); border-radius: 10px; padding: 12px; max-height: 190px; overflow-y: auto; line-height: 1.55; }
.fwd-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.toast-wrap { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 80; }
.toast {
  background: var(--cocoa); color: #FFF8E7; border-radius: 12px; padding: 11px 16px;
  font-size: 12.5px; box-shadow: 0 14px 30px rgba(74,53,37,.25); max-width: 380px;
  animation: toastIn .2s ease;
}
.toast.ok { background: #2E6B4B; }
.toast.err { background: #A33A35; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ============================================================
   Print labels
   ============================================================ */
.labels-body { background: #EFEAE0; }
.print-toolbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; background: rgba(255, 253, 245, .95); border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.back-link { font-size: 12.5px; font-weight: 700; color: var(--cocoa-soft); }
.print-title { font-size: 14px; font-weight: 800; }
.print-title span { color: var(--muted); font-weight: 600; font-size: 12px; margin-left: 4px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.seg a { font-size: 11.5px; padding: 6px 11px; color: var(--muted); }
.seg a.active { background: var(--butter); color: var(--cocoa); font-weight: 700; }
.print-toolbar .btn { margin-left: auto; }
.print-hint { font-size: 11.5px; color: var(--muted); padding: 8px 20px; }
.label-sheet { padding: 16px 20px 40px; }
.label-page { display: grid; gap: 4mm; justify-content: center; }
.ship-label {
  width: 100mm; height: 150mm; background: #fff; border: 1px solid #E3D8C4;
  padding: 7mm 7mm 5mm; display: flex; flex-direction: column; box-sizing: border-box;
  color: #1F1A14; font-family: 'Noto Sans KR', 'Noto Sans CJK KR', sans-serif;
}
.sl-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #1F1A14; padding-bottom: 2.5mm; }
.sl-brand { font-size: 10pt; font-weight: 800; }
.sl-brand em { font-style: normal; font-weight: 500; font-size: 7.5pt; }
.sl-kind { font-size: 7.5pt; border: 1px solid #1F1A14; border-radius: 2mm; padding: 1mm 2.5mm; }
.sl-sender { padding: 2.5mm 0; border-bottom: 1px dashed #B9AB93; }
.sl-k { display: block; font-size: 6.5pt; color: #7A6A55; letter-spacing: .04em; }
.sl-sender-body { font-size: 7.6pt; line-height: 1.45; margin-top: .6mm; }
.sl-sender-body strong { font-size: 8pt; }
.sl-sender-body span { display: block; }
.sl-receiver { padding: 3mm 0 2.5mm; border-bottom: 1px dashed #B9AB93; }
.sl-name { font-size: 16pt; font-weight: 800; margin-top: .8mm; }
.sl-phone { font-size: 11pt; font-weight: 700; margin-top: .4mm; }
.sl-addr { font-size: 9pt; line-height: 1.4; margin-top: 1mm; }
.sl-detail { padding: 2mm 0; font-size: 7.6pt; line-height: 1.5; }
.sl-line { display: flex; gap: 2mm; align-items: baseline; }
.sl-line .sl-k { display: inline; min-width: 14mm; }
.sl-code { margin-top: auto; text-align: center; padding-top: 1mm; }
.sl-code .barcode { max-width: 100%; height: auto; }

.prod-label {
  width: 50mm; height: 30mm; background: #fff; border: 1px solid #E3D8C4;
  padding: 2.2mm 2.6mm; display: flex; flex-direction: column; box-sizing: border-box;
  color: #1F1A14; font-family: 'Noto Sans KR', 'Noto Sans CJK KR', sans-serif;
}
.pl-top { display: flex; justify-content: space-between; font-size: 5.6pt; color: #6B5A45; border-bottom: 1px solid #D8CBB4; padding-bottom: .8mm; }
.pl-sku { font-family: monospace; font-weight: 700; }
.pl-body { flex: 1; padding-top: 1mm; overflow: hidden; }
.pl-name { font-size: 6.2pt; font-weight: 800; line-height: 1.22; max-height: 2.5em; overflow: hidden; }
.pl-opt { font-size: 5.6pt; color: #6B5A45; margin-top: .6mm; }
.pl-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 2mm; }
.pl-code .barcode { height: 7mm; width: auto; }
.pl-price { font-size: 8pt; font-weight: 800; white-space: nowrap; }
.label-empty { background: #fff; border: 1px dashed #C9BBA2; padding: 40px; text-align: center; color: #7A6A55; }

.label-sheet.paper-a4 .ship-label,
.label-sheet.paper-a4 .prod-label { border-color: #DCCFB8; }
.label-sheet.paper-a4 .label-page {
  background: #fff; width: 210mm; min-height: 297mm; padding: 5mm;
  border: 1px solid #E3D8C4; box-shadow: 0 8px 26px rgba(74,53,37,.10);
  margin: 0 auto 10mm; align-content: start; justify-content: start; gap: 0;
}
.label-sheet.paper-a4 .prod-label { width: 47mm; height: 28mm; }
.label-sheet.paper-a4 .ship-label { width: 100mm; height: 150mm; }

@media print {
  .no-print { display: none !important; }
  .labels-body { background: #fff; }
  .label-sheet { padding: 0; }
  .label-page { gap: 0; justify-content: flex-start; page-break-after: always; }
  .label-page:last-child { page-break-after: auto; }
  .ship-label, .prod-label { border: none; box-shadow: none; }
  .barcode { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1240px) {
  .kpi-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1060px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; order: -1; }
  .hero h1 { font-size: 38px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { flex-direction: column; }
  .admin-side { width: auto; height: auto; position: relative; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 16px; }
  .side-label, .side-foot { display: none; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-main { padding: 20px 16px 50px; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .field.grow { grid-column: span 2; }
  .connector-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; padding: 14px 16px; gap: 10px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; }
  .ig-link { margin-left: auto; }
  .cart-label { display: none; }
  .hero-inner { padding: 30px 16px 40px; }
  .hero h1 { font-size: 31px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .promise-strip { grid-template-columns: 1fr; padding: 0 16px; }
  .products { padding: 30px 16px 10px; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .section-head { align-items: flex-start; }
  .shop-note-inner { flex-direction: column; padding: 24px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .pm-grid { grid-template-columns: 1fr; }
  .pm-media { min-height: 220px; }
  .field-row { flex-direction: column; gap: 0; }
  .field.zip { flex: 1; }
  .modal-card { padding: 22px; border-radius: 22px; }
  .export-grid { grid-template-columns: 1fr; }
  .connector-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .field.grow { grid-column: span 1; }
  .admin-head { flex-direction: column; align-items: flex-start; }
  .bulkbar { flex-direction: column; align-items: flex-start; }
  .bulk-actions { width: 100%; }
  .tracking-cell { flex-wrap: wrap; }
}

.badge-popular { background: #FFE9C7; color: #8A5A00; }


/* ---------- AI custom quote ---------- */
.ai-quote-banner {
  max-width: 1200px; margin: 10px auto 0; padding: 0 24px;
}
.ai-quote-inner {
  background: linear-gradient(120deg, #FFF6DC, #FFE9F0);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
}
.ai-quote-copy { flex: 1; min-width: 280px; }
.ai-quote-copy h2 { font-size: 24px; letter-spacing: -.03em; }
.ai-quote-copy p { font-size: 13.5px; color: var(--cocoa-soft); margin: 8px 0 14px; }
.ai-quote-copy b { color: var(--cocoa); }
.ai-quote-steps { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.ai-quote-steps span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }
.ai-quote-steps i { font-style: normal; color: var(--butter-deep); }

.quote-modal { width: min(560px, 100%); }
.quote-photo { margin-top: 14px; position: relative; overflow: hidden; }
.quote-photo img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

.qr-head { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.qr-keyword { font-size: 13px; color: var(--muted); }
.qr-price { font-size: 15px; margin-top: 14px; }
.qr-price strong { font-size: 27px; letter-spacing: -.03em; display: block; margin-top: 2px; }
.qr-rows { margin-top: 14px; border-top: 1px dashed var(--line); }
.qr-rows > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 12.5px; }
.qr-rows span { color: var(--muted); }
.qr-rows b { text-align: right; }
.qr-rows em { grid-column: 1 / -1; font-style: normal; font-size: 10.5px; color: var(--muted); }
.qr-rows b.good { color: var(--green); }
.qr-rows b.bad { color: var(--red); }
.qr-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.margin-badge { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: var(--mint); color: #256B48; }
.margin-badge.low { background: #FFE0DE; color: #A33A35; }
.order-confirmed { background: #F1FAF4; border: 1px solid #D3EBDD; color: #23684A; border-radius: 10px; padding: 9px 12px; margin-top: 10px; font-size: 12.5px; }

/* ---------- delivery / waiver ---------- */
.delivery-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.delivery-card {
  display: flex; gap: 8px; align-items: flex-start; border: 1.5px solid var(--line);
  border-radius: 14px; padding: 12px 13px; cursor: pointer; background: #fff;
}
.delivery-card:has(input:checked) { border-color: var(--butter-deep); background: var(--cream-2); }
.delivery-card input { margin-top: 3px; accent-color: var(--butter-deep); }
.delivery-card span { display: flex; flex-direction: column; }
.delivery-card strong { font-size: 13px; }
.delivery-card em { font-style: normal; font-size: 11px; color: var(--muted); }
.pickup-notice { font-size: 12px; color: #7A5510; background: #FFF8E7; border: 1px solid #EFD89A;
  border-radius: 10px; padding: 10px 12px; margin-top: 8px; line-height: 1.5; }
.waiver-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 11.5px;
  color: var(--cocoa-soft); line-height: 1.5; background: #FFF9F9; border: 1px solid #F5D9D7;
  border-radius: 10px; padding: 10px 12px; }
.waiver-line input { margin-top: 2px; accent-color: var(--red); }
.waiver-line b { color: #A33A35; }
.order-delivery { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.deliv-badge { display: inline-block; font-size: 10px; background: var(--cream-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; margin-top: 3px; color: var(--cocoa-soft); }
.deliv-badge.pickup { background: #FFF8E7; border-color: #EFD89A; color: #7A5510; }

.form-section-title { font-size: 13px; font-weight: 800; margin: 22px 0 8px; padding-top: 16px;
  border-top: 1px dashed var(--line); }
.tracking-live { margin-top: 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.track-steps { display: flex; gap: 4px; margin-top: 8px; }
.track-step { flex: 1; text-align: center; font-size: 10.5px; color: var(--muted); }
.track-step i { display: block; height: 5px; border-radius: 999px; background: var(--line); margin-bottom: 5px; }
.track-step.done i { background: var(--butter-deep); }
.track-step.current i { background: var(--pink-deep); }
.track-step.done, .track-step.current { color: var(--cocoa); font-weight: 700; }
.track-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.track-head strong { font-size: 12.5px; }
.track-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.track-links a { font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; background: #fff; }
.track-events { margin: 10px 0 0; padding: 0; list-style: none; font-size: 11.5px; color: var(--muted); }
.track-events li { padding: 3px 0; border-bottom: 1px dashed var(--line-2); }

.logii-guide { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: #F4FAFE;
  border: 1px solid #D8E9F8; border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; }
.logii-guide-copy strong { display: block; font-size: 13px; color: #2C5C86; }
.logii-guide-copy span { font-size: 11.5px; color: var(--muted); }
.logii-guide ul { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.logii-guide li { font-size: 11.5px; color: var(--cocoa-soft); }
.logii-guide b:first-child { display: inline-flex; width: 16px; height: 16px; border-radius: 50%;
  background: #2C5C86; color: #fff; align-items: center; justify-content: center; font-size: 10px; margin-right: 3px; }

.pickup-info { background: #FFF8E7; border: 1px solid #EFD89A; border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.pickup-rows { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #7A5510; }
.pickup-rows b { color: var(--cocoa); }
.proxy-form { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.proxy-form input { border: 1px solid #E7D3A2; border-radius: 8px; padding: 7px 9px; font-size: 12px;
  font-family: inherit; background: #fff; min-width: 130px; }
.pickup-extra { margin-top: 8px; }
.pickup-deadline { font-size: 10.5px; color: #7A5510; display: block; margin-top: 3px; }

.unboxing-notice { background: #FFF7F2; border: 1px solid #F3D2C3; border-radius: 12px;
  padding: 12px 14px; margin-top: 12px; }
.unboxing-notice strong { display: block; font-size: 12.5px; color: #9A4A2A; }
.unboxing-notice p { font-size: 11.5px; color: #7A5544; line-height: 1.55; margin-top: 4px; }
.unboxing-check { display: flex; gap: 7px; align-items: flex-start; margin-top: 9px;
  font-size: 11.5px; color: var(--cocoa); line-height: 1.45; }
.unboxing-check input { margin-top: 2px; accent-color: #C05A2E; }
.unboxing-notice.compact { margin-top: 10px; padding: 10px 12px; }

.badge-discount { background: #FFE3D6; color: #A54A24; }
.price-original { display: block; font-size: 11.5px; color: var(--muted); text-decoration: line-through; }
.discount-off { display: inline-block; font-size: 11px; font-weight: 800; color: #C0392B;
  background: #FFEDEA; border-radius: 6px; padding: 2px 6px; margin-left: 4px; vertical-align: 2px; }
.condition-note { font-size: 11.5px; color: #A54A24; background: #FFF4EE; border: 1px solid #F5D9C9;
  border-radius: 8px; padding: 6px 9px; margin-top: 8px; line-height: 1.4; }

.filter-tiers { display: flex; flex-direction: column; gap: 8px; margin-top: 14px;
  background: var(--cream-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.filter-tier { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tier-label { font-size: 10.5px; font-weight: 800; color: var(--muted); letter-spacing: .04em;
  min-width: 42px; }
.chip-sm { padding: 5px 11px; font-size: 11.5px; }
.cat-pill { display: inline-block; font-size: 10.5px; color: var(--cocoa-soft); background: var(--cream-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; margin-top: 5px; }

.sort-row { display: flex; align-items: center; gap: 6px; margin-top: 16px; flex-wrap: wrap; }

/* ============================================================
   2026-11 REVAMP — 버터치즈 pastel gingham storefront
   ============================================================ */
:root {
  --bc-paper: #FFFCF3;
  --bc-butter-bg: #FFF3C4;
  --bc-butter-deep2: #F2C14E;
  --bc-brown: #6B4A2F;
  --bc-brown-soft: #8B6B4E;
  --bc-rose: #F7C7D4;
  --bc-line: #F0E2C6;
}

body.store { background: var(--bc-paper); }

/* ---------- top bar / header ---------- */
.promo-bar {
  background: #FFF7DA; color: #A8863D; font-size: 12.5px; font-weight: 600;
  padding: 9px 16px; gap: 8px; border-bottom: 1px solid #F6E7B6;
}
.promo-bar b { color: var(--bc-brown); }
.pb-star { color: #E9B94C; font-size: 11px; }

.site-header {
  max-width: 1240px; margin: 0 auto; padding: 16px 24px; gap: 16px;
  background: transparent; border-bottom: 1px solid #F6ECD6;
}
.brand-emblem {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: #FFF6E0; border: 2px solid #F3DFAE; box-shadow: 0 3px 10px rgba(180,140,60,.12);
}
.brand-emblem img { width: 100%; height: 100%; object-fit: cover; }
.brand-text strong {
  font-size: 13px; line-height: 1.05; letter-spacing: .06em; color: var(--bc-brown);
  font-weight: 900;
}
.brand-text em { font-size: 10px; letter-spacing: .02em; color: #B49A78; }
.site-nav { gap: 2px; margin-left: 14px; }
.nav-link { font-size: 13.5px; padding: 8px 12px; color: #8A6B4D; }
.nav-link:hover { background: #FFF6E3; }
.nav-link.active { background: var(--bc-butter-bg); color: var(--bc-brown); }
.head-search {
  flex: 1; max-width: 340px; margin-left: auto; position: relative; display: flex;
  align-items: center; background: #FFFDF7; border: 1.5px solid #F0E4C8;
  border-radius: 999px; padding: 0 14px; height: 40px;
}
.head-search input {
  border: 0; background: transparent; outline: none; width: 100%; font-family: inherit;
  font-size: 12.5px; color: var(--bc-brown);
}
.head-search input::placeholder { color: #C0AC91; }
.hs-ico { font-size: 13px; opacity: .6; }
.ig-link { font-size: 12px; border-color: #F3E4C6; background: #FFFDF7; }
.cart-btn { background: #FFFDF7; border-color: #F0E0C0; }
.cart-btn:hover { background: var(--bc-butter-bg); }
.cart-count { background: var(--bc-brown); }

/* ---------- hero ---------- */
.hero {
  background-color: #FFF3C4;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.85), transparent 42%),
    radial-gradient(circle at 82% 12%, rgba(255,230,180,.75), transparent 46%),
    linear-gradient(rgba(255,255,255,.62) 50%, transparent 50%),
    linear-gradient(90deg, rgba(255,255,255,.62) 50%, transparent 50%);
  background-size: auto, auto, 52px 52px, 52px 52px;
  border-radius: 0 0 44px 44px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(233,185,76,.16) 1.5px, transparent 1.6px);
  background-size: 26px 26px; opacity: .5; pointer-events: none;
}
.hero-inner {
  max-width: 1240px; margin: 0 auto; padding: 44px 24px 52px;
  display: grid; grid-template-columns: .9fr 1.15fr .62fr; gap: 26px;
  align-items: center; position: relative; z-index: 1;
}
.hero-art { position: relative; min-height: 0; }
.hero-photo {
  position: relative; border-radius: 32px; overflow: hidden;
  background: #FFF9E8; border: 3px solid #fff;
  box-shadow: 0 18px 40px rgba(180,140,60,.16);
  transform: rotate(-2deg);
}
.hero-photo img { width: 100%; display: block; mix-blend-mode: multiply; }
.hero-stamp {
  position: absolute; right: -6px; bottom: -12px; background: #fff; border: 1.5px solid #F3DFAE;
  border-radius: 16px; padding: 9px 12px; font-size: 9.5px; font-weight: 900;
  letter-spacing: .14em; color: var(--bc-brown); text-align: center; line-height: 1.35;
  box-shadow: var(--shadow-sm); transform: rotate(3deg);
}
.hero-stamp em { display: block; font-style: normal; font-size: 7.5px; letter-spacing: .08em; color: #B49A78; }
.hero-doodle { position: absolute; font-size: 24px; animation: bob 5s ease-in-out infinite; z-index: 2; }
.d-star { top: -8px; left: 8%; }
.d-cheese { bottom: 6%; right: -14px; font-size: 30px; animation-delay: 1s; }
.d-paw1 { top: 12%; right: -8px; font-size: 16px; opacity: .55; animation-delay: .5s; }
.d-paw2 { bottom: -6px; left: 12%; font-size: 14px; opacity: .45; animation-delay: 1.6s; }
.hero-eyebrow { background: rgba(255,255,255,.78); border-color: #F1DFB4; color: #9A7B3A; font-size: 11.5px; }
.hero h1 { font-size: 50px; line-height: 1.14; color: var(--bc-brown); }
.hero h1 .hl { background: linear-gradient(transparent 60%, #FFD95A 60%); padding: 0 6px; }
.hero-copy > p { color: #8A6B4D; font-size: 14.5px; line-height: 1.75; }
.hero-copy > p strong { background: #FFF; color: var(--bc-brown); }
.hero-stats { gap: 22px; }
.hero-stat strong { font-size: 22px; color: var(--bc-brown); }
.hero-stat span { color: #A98C68; font-size: 11.5px; }
.hero-cta .btn-primary { box-shadow: 0 4px 0 #E9C13F; }
.hero-greeting { color: #A98C68; }
.hero-showcase {
  background: #fff; border: 2px solid #fff; border-radius: 30px; padding: 20px 16px 16px;
  box-shadow: 0 16px 34px rgba(180,140,60,.14); position: relative; text-align: center;
  transform: rotate(1.2deg);
}
.showcase-bow { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 30px; }
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.sc-tile {
  border-radius: 18px; height: 74px; display: flex; align-items: center; justify-content: center;
  font-size: 30px; border: 1.5px solid #fff;
}
.sc-pink { background: #FFE9F0; }
.sc-butter { background: #FFF4C9; }
.sc-cream { background: #FFF9EC; }
.sc-rose { background: #FFE3E8; }
.showcase-label { display: block; margin-top: 10px; font-size: 10.5px; color: #B49A78; letter-spacing: .04em; }

/* ---------- quick strip ---------- */
.quick-strip {
  max-width: 1180px; margin: -26px auto 0; padding: 0 24px; position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.quick-card {
  display: flex; align-items: center; gap: 11px; background: #fff; border: 1.5px solid #F4E6CB;
  border-radius: 22px; padding: 13px 16px; text-align: left; box-shadow: 0 8px 22px rgba(180,140,60,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.quick-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(180,140,60,.14); }
.qc-ico {
  width: 40px; height: 40px; border-radius: 50%; background: #FFF6DF; display: flex;
  align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0;
}
.quick-card strong { display: block; font-size: 13px; color: var(--bc-brown); }
.quick-card em { font-style: normal; font-size: 11px; color: #B49A78; }

/* ---------- coupon / AI quote ---------- */
.coupon-banner {
  max-width: 1180px; margin: 26px auto 0; padding: 0 24px;
}
.coupon-banner > * { position: relative; }
.coupon-banner {
  display: grid; grid-template-columns: 168px 1fr auto; gap: 0; align-items: stretch;
}
.coupon-banner::before {
  content: ''; position: absolute; left: 24px; right: 24px; top: 0; bottom: 0;
  background: linear-gradient(120deg, #FFF8E2, #FFF1EE);
  border: 2px dashed #EFD79B; border-radius: 26px;
}
.coupon-stub {
  margin: 14px 0 14px 38px; background: #FFF1C2; border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 10px; border: 1.5px dashed #E7C877; color: #8A6620; z-index: 1;
}
.cs-top { font-size: 8.5px; letter-spacing: .16em; font-weight: 800; }
.coupon-stub strong { font-size: 20px; letter-spacing: -.02em; margin-top: 4px; }
.coupon-stub em { font-style: normal; font-size: 9.5px; margin-top: 3px; }
.cs-code { font-family: monospace; font-size: 8.5px; margin-top: 8px; opacity: .7; }
.coupon-body { padding: 26px 22px 26px 22px; z-index: 1; }
.coupon-body h2 { font-size: 21px; color: var(--bc-brown); letter-spacing: -.03em; }
.coupon-body p { font-size: 12.5px; color: #8A6B4D; margin: 8px 0 14px; max-width: 520px; }
.coupon-steps {
  display: flex; flex-direction: column; gap: 3px; justify-content: center;
  padding: 18px 30px 18px 8px; font-size: 10.5px; color: #A98C68; z-index: 1; white-space: nowrap;
}
.coupon-steps span { background: #fff; border: 1px solid #F3E3C2; border-radius: 999px; padding: 3px 9px; }
.coupon-steps i { font-style: normal; color: #E9C13F; text-align: center; }

/* ---------- market notice / products ---------- */
.market-notice {
  max-width: 1180px; margin: 24px auto 0; padding: 0 24px;
  display: flex; gap: 10px; align-items: flex-start;
}
.market-notice p {
  flex: 1; background: #FFF7E4; border: 1px solid #F2E0B4; border-radius: 14px;
  padding: 10px 14px; font-size: 12px; color: #8A6620; line-height: 1.55;
}
.mn-ico { font-size: 18px; line-height: 1.6; }
.products { max-width: 1180px; padding: 30px 24px 10px; }
.section-head h2 { font-size: 26px; color: var(--bc-brown); display: flex; align-items: center; gap: 8px; }
.sec-bow { font-size: 20px; }
.section-sub { display: flex; align-items: center; gap: 7px; color: #A98C68; }
.sec-doodle { font-size: 15px; opacity: .7; }
.filters { gap: 6px; }
.chip { border: 1.5px solid #F1E3C6; background: #fff; color: #8A6B4D; font-size: 12.5px; padding: 7px 13px; }
.chip span { background: #FFF7E4; }
.chip:hover { border-color: #EBCB7E; }
.chip.active { background: var(--bc-butter-bg); border-color: #EBCB7E; color: var(--bc-brown); }
.chip-gacha { background: #F7EEFF; border-color: #E7D6FA; color: #7A5A9E; }
.chip-gacha.active { background: #EADCFF; border-color: #CDB2F2; }
.chip-sm { padding: 5px 10px; font-size: 11px; }
.sync-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.last-sync { font-size: 11px; color: #A98C68; background: #FFF9EA; border: 1px dashed #EEDCB4; border-radius: 999px; padding: 3px 10px; }
.sync-hint { font-size: 11px; color: #B9A385; }
.filter-tiers { background: #FFF9EC; border-color: #F4E6C8; border-radius: 20px; }
.sort-row .tier-label { color: #B49A78; }

/* product cards */
.product-grid { gap: 20px; margin-top: 22px; }
.card { border-radius: 24px; border: 1.5px solid #F3E7CE; box-shadow: 0 6px 18px rgba(180,140,60,.06); }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(180,140,60,.13); }
.card-media { height: 196px; border-radius: 22px 22px 0 0; }
.card-media.c-butter { background: linear-gradient(150deg, #FFF7D9, #FFEAA6); }
.card-media.c-pink { background: linear-gradient(150deg, #FFEFF4, #FFD9E5); }
.card-media.c-mint { background: linear-gradient(150deg, #EFFAF2, #D6F0E0); }
.card-media.c-sky { background: linear-gradient(150deg, #EFF7FE, #D8EBFB); }
.card-media.c-violet { background: linear-gradient(150deg, #F8F1FE, #EBDDFB); }
.figure-emoji { font-size: 70px; filter: drop-shadow(0 10px 14px rgba(150,110,50,.16)); }
.media-badges { top: 11px; left: 11px; gap: 5px; }
.badge { font-size: 10px; padding: 4px 9px; box-shadow: 0 3px 8px rgba(150,110,50,.10); }
.badge-pre { background: #FFE9A8; }
.badge-in { background: #DCF2E5; }
.badge-gacha { background: #EADCFF; color: #6D4A93; }
.badge-mercari { background: #FFE1EC; }
.badge-sold { background: rgba(107,74,47,.85); }
.badge-ship-in { background: #E5F6EC; }
.badge-ship-out { background: #E7F1FD; }
.badge-popular { background: #FFE9C7; }
.badge-discount { background: #FFE3D6; }
.card-body { padding: 15px 17px 17px; }
.card-meta { font-size: 10.5px; color: #B9A385; }
.cat-pill { background: #FFF7E6; border-color: #F2E3C4; color: #A98C68; }
.card-title { font-size: 15.5px; color: var(--bc-brown); margin-top: 5px; }
.card-summary { font-size: 12px; color: #8A6B4D; min-height: 34px; }
.facts { gap: 8px 14px; border-top: 1px dashed #F2E4C9; margin-top: 11px; padding-top: 11px; }
.fact-k { font-size: 10px; color: #B9A385; }
.fact-v { font-size: 11.5px; color: var(--bc-brown); }
.card-foot { padding-top: 13px; }
.price strong { font-size: 18px; color: var(--bc-brown); }
.btn-cart {
  background: var(--bc-brown); color: #fff; border-radius: 999px; font-size: 12px; padding: 9px 14px;
}
.btn-cart:hover { background: #7C5838; }
.btn-inquire {
  background: #FFF0F3; border: 1.5px solid #F6CBD7; color: #B25570; border-radius: 999px;
  font-size: 12px; padding: 9px 13px;
}
.btn-inquire:hover { background: #FFE2EA; }
.gacha-line {
  font-size: 11px; color: #7A5A9E; background: #F8F1FF; border: 1px solid #EBDDFB;
  border-radius: 9px; padding: 6px 9px; margin-top: 8px;
}
.gacha-pool { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.gp-chip {
  display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; color: #7A5A9E;
  background: #FBF6FF; border: 1px solid #EEE1FA; border-radius: 999px; padding: 3px 8px;
}
.gp-chip i { font-style: normal; }
.gp-chip b { background: #fff; border-radius: 999px; padding: 0 5px; color: #6D4A93; font-size: 10px; }
.gp-chip.out { opacity: .4; }
.capsule-deco { position: absolute; inset: auto 0 28px 0; display: flex; justify-content: center; gap: 10px; font-size: 15px; opacity: .55; }
.card-gacha .card-media { box-shadow: inset 0 -26px 34px rgba(255,255,255,.55); }
.grid-empty { text-align: center; color: #A98C68; padding: 40px; font-size: 13px; }

/* shop note + thanks + footer */
.shop-note-inner { background: #FFF7E6; border-color: #F3E3C3; border-radius: 30px; }
.shop-note-art { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; flex-shrink: 0; }
.shop-note-art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.site-footer { background: #FFF8E8; border-top: 1.5px solid #F2E3C4; margin-top: 26px; padding-top: 26px; }
.thanks-banner {
  max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 18px;
  background: #FFF1C9; border: 1.5px solid #F3DE9F; border-radius: 30px;
  padding: 18px 30px; position: relative; overflow: hidden;
  background-image: linear-gradient(90deg, rgba(255,255,255,.45) 50%, transparent 50%);
  background-size: 44px 44px;
}
.thanks-cats { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; flex-shrink: 0; }
.thanks-copy strong { display: block; font-size: 18px; color: var(--bc-brown); letter-spacing: -.02em; }
.thanks-copy p { font-size: 12px; color: #9A7B3A; margin-top: 4px; }
.thanks-deco { margin-left: auto; font-size: 24px; opacity: .75; }
.thanks-deco + .thanks-deco { margin-left: 6px; font-size: 18px; }
.footer-inner { padding-top: 26px; }
.footer-logo { display: flex; align-items: center; gap: 9px; }
.footer-emblem { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; border: 2px solid #F3DFAE; display: inline-block; }
.footer-emblem img { width: 100%; height: 100%; object-fit: cover; }
.footer-info, .footer-note, .footer-greeting { color: #A98C68; }

/* ---------- gacha result modal ---------- */
.gacha-modal .gacha-card {
  width: min(560px, 100%); padding: 0; overflow: hidden;
  background: linear-gradient(180deg, #FFF7DA 0%, #FFFDF7 46%, #FFFFFF 100%);
}
.gm-spin { padding: 26px 26px 22px; text-align: center; }
.gm-stage {
  position: relative; width: 230px; height: 250px; margin: 6px auto 0;
}
.gm-dome {
  position: relative; width: 200px; height: 150px; margin: 0 auto;
  border-radius: 100px 100px 26px 26px;
  background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(255,236,180,.75));
  border: 4px solid #F3DFAE; overflow: hidden; box-shadow: inset 0 -12px 22px rgba(230,190,110,.25);
}
.gm-glass { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.7) 0 22%, transparent 40%); }
.gm-capsules { position: absolute; inset: 0; }
.gcap {
  position: absolute; font-size: 22px; animation: gcapIdle 2.6s ease-in-out infinite;
}
.gcap.c1 { left: 16%; bottom: 16%; }
.gcap.c2 { left: 42%; bottom: 9%; animation-delay: .3s; }
.gcap.c3 { left: 66%; bottom: 18%; animation-delay: .7s; }
.gcap.c4 { left: 26%; bottom: 42%; animation-delay: .45s; }
.gcap.c5 { left: 52%; bottom: 46%; animation-delay: .9s; }
.gcap.c6 { left: 70%; bottom: 52%; animation-delay: 1.2s; }
@keyframes gcapIdle { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-5px) rotate(5deg); } }
.gm-body {
  position: relative; width: 200px; height: 84px; margin: -8px auto 0;
  background: linear-gradient(180deg, #FFE9A8, #F7D273); border: 4px solid #E9C46A;
  border-top: 0; border-radius: 0 0 26px 26px;
  display: flex; align-items: center; justify-content: center;
}
.gm-dial { font-size: 30px; filter: drop-shadow(0 3px 4px rgba(150,110,40,.2)); }
.gm-handle {
  position: absolute; right: 22px; top: 18px; width: 34px; height: 10px; border-radius: 6px;
  background: #C99A3B; transform-origin: 4px 50%;
}
.gm-handle::after {
  content: ''; position: absolute; right: -8px; top: -4px; width: 18px; height: 18px;
  border-radius: 50%; background: #8A6220;
}
.gm-knob {
  position: absolute; left: 16px; top: 22px; width: 14px; height: 14px; border-radius: 50%;
  background: #8A6220; box-shadow: inset 0 2px 3px rgba(255,255,255,.35);
}
.gm-tray {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 92px; height: 22px; border-radius: 0 0 16px 16px; background: #F5E1B2;
  border: 3px solid #E9C46A; border-top: 0; display: flex; align-items: center; justify-content: center;
}
.gm-out-capsule { font-size: 18px; opacity: 0; }
.gm-title { font-size: 19px; margin-top: 18px; color: var(--bc-brown); }
.gm-sub { font-size: 12px; color: #A98C68; margin-top: 5px; }
.gm-progress { height: 8px; background: #F4E7C8; border-radius: 999px; overflow: hidden; margin: 16px 8px 12px; }
.gm-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #FFD95A, #F0A94C); border-radius: 999px; }
.gm-spin .btn { font-size: 12px; }

.gm-spin.spinning .gm-body { animation: gmShake .38s ease-in-out infinite; }
.gm-spin.spinning .gm-dial { animation: gmDial .7s linear infinite; }
.gm-spin.spinning .gm-handle { animation: gmHandle 1.1s linear infinite; }
.gm-spin.spinning .gcap { animation: gcapShake .32s ease-in-out infinite; }
.gm-spin.spinning .gcap.c2 { animation-delay: .08s; }
.gm-spin.spinning .gcap.c4 { animation-delay: .14s; }
.gm-spin.spinning .gcap.c6 { animation-delay: .2s; }
.gm-spin.spinning .gm-out-capsule { animation: gcapDrop 1.2s cubic-bezier(.2,.9,.3,1.2) .25s infinite; }
.gm-spin.spinning .gm-progress i { animation: gmProgress 1.6s linear forwards; }
@keyframes gmShake { 0%,100% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-3px) rotate(-1.2deg); } 75% { transform: translateX(3px) rotate(1.2deg); } }
@keyframes gmDial { to { transform: rotate(360deg); } }
@keyframes gmHandle { to { transform: rotate(360deg); } }
@keyframes gcapShake { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(3px,-7px) rotate(14deg); } }
@keyframes gcapDrop { 0% { opacity: 0; transform: translateY(-40px) scale(.6); } 45% { opacity: 1; transform: translateY(4px) scale(1.05); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes gmProgress { from { width: 0; } to { width: 100%; } }

.gm-reveal { padding: 26px 24px 24px; text-align: center; }
.gr-burst { font-size: 26px; letter-spacing: 3px; animation: burstIn .6s ease both; }
.gr-title { font-size: 26px; color: var(--bc-brown); letter-spacing: -.03em; margin-top: 2px; animation: burstIn .55s ease both; }
.gr-sub { font-size: 12.5px; color: #A98C68; margin-top: 5px; }
.gr-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 8px; }
.gr-card {
  width: 108px; background: linear-gradient(160deg, #FFF9E6, #FFF0C8);
  border: 2px solid #F5E2AF; border-radius: 20px; padding: 12px 8px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  animation: grPop .55s cubic-bezier(.2,1.3,.4,1) both; position: relative;
}
.gr-card:nth-child(3n+2) { background: linear-gradient(160deg, #FFF3F7, #FFE1EC); border-color: #F8D4E1; }
.gr-card:nth-child(3n) { background: linear-gradient(160deg, #F4F9FF, #E3F1FC); border-color: #DCEBF9; }
.gr-emoji { font-size: 34px; line-height: 1.15; }
.gr-card strong { font-size: 12px; color: var(--bc-brown); }
.gr-capsule { position: absolute; top: -9px; right: -6px; font-size: 18px; animation: bob 2.4s ease-in-out infinite; }
@keyframes grPop { 0% { opacity: 0; transform: translateY(18px) scale(.5) rotate(-6deg); } 70% { opacity: 1; transform: translateY(-3px) scale(1.06) rotate(2deg); } 100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
@keyframes burstIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
.gr-meta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; font-size: 11px; color: #A98C68; margin-top: 10px; }
.gr-meta b { color: #7A5A9E; }
.gr-note { font-size: 11px; color: #B49A78; margin-top: 10px; }
.gr-actions { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }

/* ---------- payment / inquiry / countdown ---------- */
.bank-box, .pg-note {
  background: #FFF9E9; border: 1px solid #F1DFB4; border-radius: 14px; padding: 12px 14px; margin-top: 10px;
}
.bank-box > strong { font-size: 12.5px; color: #8A6620; }
.bank-rows { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: 12px; color: #8A6B4D; }
.bank-rows b { color: var(--bc-brown); }
.bank-deadline { font-size: 11.5px; color: #A05A2A; margin-top: 8px; }
.pg-note { font-size: 11.5px; color: #8A6B4D; background: #F5F8FF; border-color: #DDE7F7; }
.gacha-notice {
  background: #FFF3F5; border: 1.5px solid #F6C8CF; border-radius: 14px; padding: 12px 14px; margin-top: 12px;
}
.gacha-notice > strong { display: block; font-size: 13px; color: #A93B45; }
.gacha-callout { font-size: 11.5px; color: #94303B; line-height: 1.55; margin-top: 5px; font-weight: 600; }
.gacha-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 11.5px; color: #7A2E36; }
.gacha-check input { margin-top: 2px; accent-color: #D9534F; }
.pay-option { border-color: #F1E3C6; }
.pay-option:has(input:checked), .pay-option.selected { border-color: #E9C46A; background: #FFF9E8; }
.pay-countdown {
  margin-top: 12px; background: #FFF7E4; border: 1px dashed #EFD08C; border-radius: 12px; padding: 10px 13px;
}
.pc-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #8A6620; font-weight: 700; }
.pc-time { font-size: 20px; color: #C0392B; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.pc-notice { font-size: 11px; color: #8A6B4D; margin-top: 4px; }
.pc-bank { font-size: 12.5px; color: var(--bc-brown); font-weight: 700; margin-top: 6px; }
.pc-sub { font-size: 10.5px; color: #B49A78; margin-top: 3px; }
.pay-countdown.expired { background: #FFF0EF; border-color: #F5C9C6; }
.success-bank {
  text-align: left; background: #FFF9E9; border: 1px solid #F1DFB4; border-radius: 12px;
  padding: 11px 13px; margin-top: 14px; font-size: 12px; color: #8A6B4D;
}
.success-bank strong { display: block; color: #8A6620; font-size: 12.5px; }
.success-bank p { margin-top: 3px; }
.success-bank .pay-countdown { margin-top: 8px; }
.success-bank .pc-time { font-size: 17px; }
.gacha-pending-note {
  background: #F8F1FF; border: 1px solid #E7D6FA; color: #6D4A93; border-radius: 10px;
  padding: 9px 12px; margin-top: 10px; font-size: 11.5px; text-align: left;
}
.checkout-summary .row span { color: #8A6B4D; }
.order-gacha {
  margin-top: 12px; background: #FBF6FF; border: 1px solid #EADCFA; border-radius: 12px; padding: 11px 13px;
}
.order-gacha.pending { background: #FFF9E9; border-color: #F1DFB4; }
.og-head { font-size: 12.5px; font-weight: 800; color: #6D4A93; }
.order-gacha.pending .og-head { color: #8A6620; }
.og-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.order-gacha-chip {
  background: #fff; border: 1px solid #E7D6FA; border-radius: 999px; padding: 3px 9px;
  font-size: 11.5px; color: #6D4A93;
}
.og-note { font-size: 10.5px; color: #9A8AB0; margin-top: 6px; }
.oi-gacha { display: block; font-style: normal; font-size: 11px; color: #7A5A9E; margin-top: 3px; }
.ci-gacha { font-size: 9.5px; background: #F2E6FF; color: #7A5A9E; border-radius: 999px; padding: 1px 6px; margin-left: 3px; }
.cart-ship-note.gacha { color: #6D4A93; background: #F8F1FF; border-color: #E7D6FA; }

/* inquiry modal */
.inquiry-card { width: min(520px, 100%); }
.inq-product {
  display: flex; gap: 10px; align-items: center; background: #FFF9EC; border: 1px dashed #EEDDB6;
  border-radius: 12px; padding: 10px 12px; margin-top: 12px;
}
.inq-emoji { font-size: 26px; }
.inq-product strong { display: block; font-size: 13px; color: var(--bc-brown); }
.inq-product em { font-style: normal; font-size: 11px; color: #B49A78; }
.inq-head { font-size: 16px; font-weight: 800; color: var(--bc-brown); }
.inq-quote { margin-top: 10px; background: #FFF6DC; border: 1px solid #F2DE9F; border-radius: 14px; padding: 12px 14px; }
.inq-quote span { font-size: 11px; color: #A98C68; display: block; }
.inq-quote strong { font-size: 26px; color: var(--bc-brown); letter-spacing: -.03em; }
.inq-quote em { display: block; font-style: normal; font-size: 10.5px; color: #B49A78; }
.inq-rows { margin-top: 12px; border-top: 1px dashed #F2E4C9; }
.inq-rows > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 7px 0; border-bottom: 1px dashed #F6EBD6; font-size: 12px; }
.inq-rows span { color: #A98C68; }
.inq-rows em { grid-column: 1 / -1; font-style: normal; font-size: 10.5px; color: #B9A385; }
.inq-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* info modal */
.info-card { width: min(520px, 100%); }
.info-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.info-badge { font-size: 10px; letter-spacing: .12em; color: #B49A78; }
.info-head h2 { font-size: 20px; color: var(--bc-brown); }
.info-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.info-list li { font-size: 12.5px; color: #8A6B4D; line-height: 1.55; background: #FFFBF0; border: 1px solid #F5E8CB; border-radius: 12px; padding: 10px 12px; }
.info-list b { color: var(--bc-brown); }

/* ---------- admin additions ---------- */
.side-dot.warn { background: #E9A23B; }
.gacha-summary { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: #9A8874; padding: 0 0 12px; }
.gacha-summary strong { color: #4A3525; font-size: 14px; }
.gacha-admin-pool { display: flex; flex-wrap: wrap; gap: 6px; max-width: 620px; }
.gacha-admin-chip {
  display: inline-flex; align-items: center; gap: 4px; background: #FBF6FF; border: 1px solid #EADCFA;
  border-radius: 999px; padding: 3px 5px 3px 9px; font-size: 11.5px; color: #6D4A93;
}
.gacha-admin-chip i { font-style: normal; }
.gacha-admin-chip b { background: #fff; border-radius: 999px; padding: 0 6px; }
.gacha-admin-chip .mini-btn { padding: 1px 6px; font-size: 10px; border-radius: 999px; }
.draw-chars { display: flex; flex-wrap: wrap; gap: 4px; }
.og-chip { font-size: 10.5px; background: #FBF6FF; border: 1px solid #EADCFA; border-radius: 999px; padding: 2px 7px; color: #6D4A93; }
.gacha-editor { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; margin-top: 10px; background: var(--cream); }
.gacha-editor-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.gacha-editor-head strong { font-size: 12.5px; }
.gacha-row { display: flex; gap: 6px; margin-bottom: 6px; align-items: center; }
.gacha-row input { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 12px; font-family: inherit; }
.gacha-row .gr-emoji { width: 50px; text-align: center; }
.gacha-row .gr-name { flex: 1; }
.gacha-row .gr-qty { width: 90px; }
.gacha-restock-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.gr-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px dashed var(--line-2); padding-bottom: 7px; font-size: 12.5px; }
.gr-line span i { font-style: normal; margin-right: 5px; }
.gr-line em { font-style: normal; color: var(--muted); font-size: 11px; margin-left: 4px; }
.gr-line input { width: 90px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-family: inherit; }
.market-rule-banner {
  background: #F4FAFE; border: 1px solid #D8E9F8; border-radius: 16px; padding: 13px 16px;
  margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px;
}
.market-rule-banner strong { font-size: 13px; color: #2C5C86; }
.market-rule-banner p { font-size: 12px; color: var(--cocoa-soft); }
.mrb-note { font-size: 11px; color: var(--muted); }
.mrb-note b { color: var(--cocoa); }
.pay-cell { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pay-deadline { font-style: normal; font-size: 10.5px; color: #A05A2A; }
.items-cell .gacha-draw { display: block; font-style: normal; font-size: 11px; color: #6D4A93; margin-top: 2px; }
.items-cell .gacha-draw.pending { color: #8A6620; }
.items-cell .ship-expected { font-style: normal; font-size: 10.5px; color: #2C5C86; display: block; }
.inq-quote-form { display: inline-flex; gap: 4px; align-items: center; }
.inq-quote-form input { width: 76px; border: 1px solid var(--line); border-radius: 7px; padding: 4px 6px; font-size: 11px; font-family: inherit; }
.sl-gacha { font-size: 7.4pt; margin-top: 1mm; background: #F6F0FF; border: 1px dashed #D9C6F2; border-radius: 1.5mm; padding: .8mm 1.5mm; }
.sl-gacha.pending { background: #FFF6E0; border-color: #EBD28F; }

/* responsive tweaks */
@media (max-width: 1060px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-art { max-width: 360px; margin: 0 auto; order: -1; }
  .hero-showcase { max-width: 320px; margin: 0 auto; }
  .hero-copy .hero-stats, .hero-copy .hero-cta { justify-content: center; }
  .quick-strip { grid-template-columns: 1fr 1fr; margin-top: 18px; }
  .coupon-banner { grid-template-columns: 1fr; }
  .coupon-stub { margin: 18px 18px 0; }
  .coupon-steps { flex-direction: row; flex-wrap: wrap; padding: 0 22px 20px; }
}
@media (max-width: 720px) {
  .quick-strip { grid-template-columns: 1fr; padding: 0 16px; }
  .hero h1 { font-size: 34px; }
  .hp-search, .head-search { display: none; }
  .coupon-banner { padding: 0 16px; }
  .coupon-banner::before { left: 16px; right: 16px; }
  .thanks-banner { flex-direction: column; text-align: center; padding: 18px; }
  .thanks-deco { margin: 0; }
  .gr-card { width: 92px; }
  .gr-title { font-size: 22px; }
}

/* fix: gacha result sits above the checkout modal; keep sidebar labels on one line */
.gacha-modal { z-index: 80; }
.side-link { white-space: nowrap; }

/* fix: keep the coupon ticket background inside its banner (was covering the page) */
.coupon-banner { position: relative; }

/* ============================================================
   Cloudflare Pages + Supabase 배포용 추가 스타일
   (buttercheese-shop/static/style.css 원본은 그대로 유지)
   ============================================================ */

.chip-inline { display: contents; }
.grid-loading {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted);
  font-size: 14px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.grid-loading .btn { margin-top: 12px; }

/* 폭주/순차처리 안내 — 화면을 막지 않는 상단 띠 */
.cf-busy {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 95; display: flex; align-items: center; gap: 8px;
  background: #FFF6DC; border: 1px solid #F0DCA6; color: #7A5A12;
  padding: 10px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(120, 90, 30, .16); max-width: calc(100% - 24px);
}
.cf-busy[hidden] { display: none; }
.cf-busy-ico { font-size: 14px; }

.cf-mode-note {
  background: #F4FAFE; border: 1px solid #DCEDF9; color: #3F6A82;
  border-radius: 12px; padding: 10px 12px; font-size: 12px; margin: 10px 0 4px;
}

/* 관리자 */
.side-link {
  background: none; border: 0; width: 100%; text-align: left; cursor: pointer;
  font-family: inherit;
}
.side-link .side-dot { position: absolute; }
.side-link .side-dot[hidden] { display: none; }
.admin-cards { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; }
.admin-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 14px;
}
.admin-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.admin-card-head h2 { font-size: 16px; letter-spacing: -.02em; }
.admin-todo { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 6px 0 0; padding: 0; }
.admin-todo li {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.8px; color: var(--cocoa-soft); border-bottom: 1px dashed var(--line-2); padding-bottom: 9px;
}
.admin-todo li:last-child { border-bottom: 0; }
.admin-note {
  margin-top: 12px; font-size: 11.8px; line-height: 1.6; color: var(--muted);
  background: var(--cream-2); border-radius: 12px; padding: 10px 12px;
}
.admin-toolbar {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  flex-wrap: wrap; margin-bottom: 12px;
}
.admin-toolbar .filters { gap: 5px; }
.admin-search { display: flex; gap: 6px; }
.admin-search input {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; font-size: 12.5px;
  background: var(--white); min-width: 190px; font-family: inherit;
}
.cell-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.track-edit { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.track-edit input {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 11.5px;
  width: 84px; background: var(--white); font-family: inherit;
}
.stock-line { display: flex; align-items: center; gap: 5px; font-size: 11.5px; margin: 2px 0; }
.stock-line .muted { min-width: 82px; }
.qty-edit { display: inline-flex; gap: 4px; }
.filter-select {
  border: 1px solid var(--line); border-radius: 9px; padding: 5px 7px; font-size: 11.5px;
  background: var(--white); font-family: inherit;
}
.admin-foot-note { font-size: 11.8px; color: var(--muted); margin-top: 6px; }
.pay-deadline { font-style: normal; font-size: 11px; color: #B4721A; font-weight: 700; margin-left: 4px; }
.gacha-draw { display: block; font-style: normal; font-size: 11px; color: var(--cocoa-soft); margin-top: 2px; }
.gacha-draw.pending { color: #B4721A; }

/* 토스트 표시 */
.toast { opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1060px) {
  .admin-cards { grid-template-columns: 1fr; }
}

/* ── 모바일 UX 기준 ───────────────────────────────────────
 * 1) iOS Safari 자동 확대/포커스 튐 방지: 입력 요소 글자 16px 이상
 * 2) 좁은 화면에서 표는 가로 스크롤, 관리자 사이드바는 상단 탭으로
 */
@media (max-width: 720px) {
  input, select, textarea { font-size: 16px !important; }
  .admin-search input { min-width: 0; flex: 1; }
  .admin-search { width: 100%; }
  .admin-toolbar .filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .cf-busy { font-size: 12px; padding: 9px 13px; bottom: 12px; }
}

/* 모바일 헤더: 아이디어 링크는 아이콘만 남겨 장바구니가 한 줄에 오도록 */
@media (max-width: 720px) {
  .site-header { gap: 8px; }
  .ig-link { padding: 7px 10px; }
  .ig-link span:last-child { display: none; }
  .cart-btn { margin-left: auto; }
}

/* 모바일 관리자: 사이드바를 가로 스크롤 탭으로 */
@media (max-width: 1060px) {
  .admin-side { align-items: center; }
  .admin-brand { padding-bottom: 8px; }
  .side-label { display: none; }
  .side-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 4px; }
  .side-link { width: auto; white-space: nowrap; }
  .side-dot { position: static; margin-left: 4px; }
}
@media (max-width: 720px) {
  .side-foot { display: none; }
  .admin-main { padding-top: 14px; }
  .kpi-v strong { font-size: 19px; }
}

/* 칩은 한 줄로 유지 (모바일에서 글자가 세로로 쪼개지지 않도록) */
.chip { white-space: nowrap; flex: 0 0 auto; }
