@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700;800;900&family=Noto+Sans:wght@400;500;600;700&display=swap');

:root{
  --bg:#ffffff;
  --bg-card:#ffffff;
  --bg-card-2:#f2f2f7;
  --line:#e3e3ec;
  --teal:#29d3d0;
  --pink:#ee5fa7;
  --grad:linear-gradient(120deg,var(--teal),#8b7fe0 55%,var(--pink));
  --ink:#17171d;
  --muted:#6c6c78;
  --radius:16px;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:'Noto Sans',sans-serif;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}
h1,h2,h3,b,strong,.primary,.tabs button,.admin-nav button{font-family:'Montserrat',sans-serif;}
a{color:inherit;}

/* ---------- header ---------- */
header.top{
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; gap:12px;
  padding:14px 20px;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
header.top .logo{
  width:40px; height:40px; border-radius:50%;
  object-fit:cover; border:1px solid var(--line);
  flex:0 0 auto;
}
.logo-fallback{
  display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:.85rem;
  background:var(--grad); color:#0b0b0e;
}
header.top .brand{display:flex; flex-direction:column; line-height:1.15;}
header.top .brand b{
  font-weight:900; font-size:.95rem; letter-spacing:.06em;
  background:var(--grad);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
header.top .brand span{font-size:.66rem; color:var(--muted); letter-spacing:.03em;}
header.top .icon{
  margin-left:auto; background:none; border:1px solid var(--line);
  color:var(--ink); width:36px; height:36px; border-radius:10px;
  font-size:1rem; cursor:pointer;
}

.announce{
  font-size:.75rem; text-align:center; color:var(--muted);
  padding:6px; background:var(--bg-card); border-bottom:1px solid var(--line);
}
.announce:empty{display:none;}

/* ---------- hero ---------- */
.hero{
  padding:44px 20px 30px;
  display:flex; flex-direction:column; gap:22px; align-items:center; text-align:center;
  background:
    radial-gradient(500px 320px at 15% 0%,rgba(41,211,208,.16),transparent 60%),
    radial-gradient(500px 320px at 85% 10%,rgba(238,95,167,.16),transparent 60%);
}
.hero .pill{
  display:inline-flex; align-items:center; gap:6px;
  font-size:.68rem; font-weight:700; letter-spacing:.15em; text-transform:uppercase;
  color:var(--teal); border:1px solid var(--line); border-radius:999px;
  padding:6px 14px; background:var(--bg-card);
}
.hero h1{
  font-size:clamp(1.9rem,7vw,3rem); font-weight:900; line-height:1.05;
  letter-spacing:-.01em; margin:16px 0 10px;
}
.hero h1 em{
  font-style:normal;
  background:var(--grad);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-tagline{
  font-size:.78rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color:var(--muted); margin:2px 0 10px;
}
.hero > div:first-child > p{color:var(--muted); font-size:.92rem; max-width:380px; margin:0 auto; line-height:1.55;}

.hero-card{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap; justify-content:center;
  background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius);
  padding:10px 16px;
}
.hero-card b{font-size:.66rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); width:100%;}
.hero-card strong{font-size:.82rem; color:var(--ink); font-weight:700;}
.hero-card span{font-size:.62rem; color:var(--muted); margin-right:8px;}

/* ---------- track / search ---------- */
.track{
  max-width:520px; margin:0 auto; padding:0 20px 40px;
  display:flex; flex-direction:column; gap:10px;
}
.track-label{
  font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--muted); margin:0;
}
#trackInput{
  padding:13px 16px; border-radius:10px; border:1px solid var(--line);
  background:var(--bg-card); color:var(--ink); font-size:.85rem; outline:none;
}
#trackInput:focus{border-color:var(--teal);}
#trackInput::placeholder{color:var(--muted);}

button.primary{
  padding:13px 20px; border-radius:10px; border:0; cursor:pointer;
  background:var(--grad); color:#0b0b0e; font-weight:700; font-size:.85rem;
  letter-spacing:.02em;
}
button.primary:active{opacity:.85;}

.product-search{
  display:block; width:calc(100% - 40px); margin:0 20px 16px;
  padding:13px 16px; border-radius:10px; border:1px solid var(--line);
  background:var(--bg-card); color:var(--ink); font-size:.85rem; outline:none;
}
.product-search:focus{border-color:var(--teal);}
.product-search::placeholder{color:var(--muted);}

/* ---------- section title ---------- */
.section-title{
  display:flex; align-items:center; justify-content:space-between;
  padding:0 20px; margin:14px 0 16px;
}
.section-title h2{font-size:1.15rem; font-weight:800;}
.section-title button{
  background:none; border:1px solid var(--line); color:var(--muted);
  border-radius:8px; padding:7px 12px; font-size:.72rem; cursor:pointer;
}
.section-title button:hover{color:var(--ink); border-color:var(--teal);}

/* ---------- product grid (storefront) ---------- */
.grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:14px;
  padding:0 20px 10px;
}
@media(min-width:640px){ .grid{grid-template-columns:repeat(3,1fr);} }
@media(min-width:960px){ .grid{grid-template-columns:repeat(4,1fr);} }

.product{
  background:var(--bg-card); border:1px solid var(--line); border-radius:14px;
  padding:12px; display:flex; flex-direction:column; gap:6px;
  transition:transform .2s,border-color .2s;
}
.product:hover{transform:translateY(-3px); border-color:var(--teal);}
.product img{width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:10px; background:var(--bg-card-2);}
.product .p h3{font-size:.82rem; font-weight:700; margin:2px 0 2px; color:var(--ink);}
.product .price{
  font-weight:800; font-size:.85rem;
  background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.product .stock{font-size:.68rem; color:var(--muted); margin:2px 0 8px;}
.product .p button{
  width:100%; padding:9px; border-radius:8px; border:0; cursor:pointer;
  background:var(--grad); color:#0b0b0e; font-weight:700; font-size:.75rem;
}
.product .p button:disabled{background:var(--bg-card-2); color:var(--muted); cursor:not-allowed;}

.cat-badge{
  display:inline-block; align-self:flex-start; font-size:.6rem; font-weight:700;
  letter-spacing:.03em; padding:3px 9px; border-radius:999px; margin-bottom:2px;
  background:var(--bg-card-2); border:1px solid var(--line); color:var(--muted);
}
.cat-badge.cat-mn_belen{color:var(--teal); border-color:rgba(41,211,208,.4); background:rgba(41,211,208,.08);}
.cat-badge.cat-kr_belen{color:#c9a6ff; border-color:rgba(201,166,255,.4); background:rgba(201,166,255,.08);}
.cat-badge.cat-order{color:var(--pink); border-color:rgba(238,95,167,.4); background:rgba(238,95,167,.08);}

.size-select{
  width:100%; padding:8px 10px; border-radius:8px; border:1px solid var(--line);
  background:var(--bg-card-2); color:var(--ink); font-size:.72rem; margin:2px 0;
}

/* ---------- order cards (Таны захиалгууд) ---------- */
#orders{display:flex; flex-direction:column; gap:14px; padding:0 20px 10px;}

.order-card{
  background:var(--bg-card); border:1px solid var(--line); border-radius:18px;
  padding:22px; display:flex; flex-direction:column; gap:16px;
  cursor:pointer; transition:border-color .2s;
}
.order-card:hover{border-color:var(--teal);}
.order-tap-hint{font-size:.68rem; color:var(--teal); text-align:right; margin-top:-8px;}
.order-head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px;}
.order-eyebrow{display:block; font-size:.62rem; letter-spacing:.12em; color:var(--muted); margin-bottom:4px;}
.order-code{font-size:1rem; font-weight:800;}

.badge{
  font-size:.68rem; font-weight:700; letter-spacing:.03em;
  padding:6px 14px; border-radius:999px; white-space:nowrap;
  background:var(--bg-card-2); border:1px solid var(--line); color:var(--muted);
}
.badge.status-registered{color:var(--teal); border-color:rgba(41,211,208,.4); background:rgba(41,211,208,.08);}
.badge.status-transport,.badge.status-mongolia{color:#c9a6ff; border-color:rgba(201,166,255,.4); background:rgba(201,166,255,.08);}
.badge.status-delivery{color:var(--pink); border-color:rgba(238,95,167,.4); background:rgba(238,95,167,.08);}
.badge.status-delivered{color:#4ade80; border-color:rgba(74,222,128,.4); background:rgba(74,222,128,.08);}
.badge.status-cancelled{color:#f87171; border-color:rgba(248,113,113,.4); background:rgba(248,113,113,.08);}

.order-body{display:flex; gap:16px;}
.order-thumb{
  flex:0 0 auto; width:110px; height:110px; border-radius:12px; overflow:hidden;
  background:var(--bg-card-2); border:1px solid var(--line);
}
.order-thumb img{width:100%; height:100%; object-fit:cover;}
.order-meta p{font-size:.78rem; color:var(--muted); margin:3px 0; line-height:1.5;}
.order-meta b{color:var(--ink);}

.order-cancelled{
  font-size:.78rem; font-weight:700; color:#f87171;
  background:rgba(248,113,113,.08); border:1px solid rgba(248,113,113,.3);
  border-radius:10px; padding:10px; text-align:center;
}

.stage-track{display:flex; align-items:flex-start; padding-top:6px;}
.stage{flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; position:relative; text-align:center;}
.stage::before{content:""; position:absolute; top:13px; left:-50%; width:100%; height:2px; background:var(--line); z-index:0;}
.stage:first-child::before{display:none;}
.stage.done::before{background:var(--grad);}
.stage .dot{
  width:28px; height:28px; border-radius:50%; background:var(--bg-card-2);
  border:2px solid var(--line); z-index:1; display:flex; align-items:center; justify-content:center;
  font-size:.75rem; color:var(--muted); transition:.2s;
}
.stage.done .dot{background:var(--grad); border-color:transparent; color:#0b0b0e; font-weight:800;}
.stage.current .dot{box-shadow:0 0 0 6px rgba(238,95,167,.18);}
.stage .label{font-size:.65rem; color:var(--muted);}
.stage.done .label{color:var(--ink); font-weight:600;}
.stage.current .label{color:var(--pink); font-weight:700;}

/* ---------- order flow (scalable SVG diagram) ---------- */
.flow{padding:20px 12px 40px;}
.flow-svg-wrap{
  max-width:1000px; margin:0 auto;
  background:#fff; border:1px solid var(--line); border-radius:18px;
  padding:10px; box-shadow:0 10px 30px rgba(0,0,0,.06);
  overflow:hidden;
}
.flow-svg{display:block; width:100%; height:auto;}

/* ---------- payment section ---------- */
.pay-grid{display:grid; gap:14px; padding:0 20px 44px; max-width:900px; margin:0 auto;}
@media(min-width:720px){ .pay-grid{grid-template-columns:1fr 1fr;} }
.pay-methods,.pay-info{
  background:var(--bg-card); border:1px solid var(--line); border-radius:16px; padding:20px;
}
.pay-methods{border-color:rgba(238,95,167,.35);}
.pay-methods h3,.pay-info h3{font-size:.72rem; letter-spacing:.1em; color:var(--muted); margin-bottom:14px;}
.pay-row{
  display:flex; align-items:center; gap:12px; padding:12px; border-radius:12px;
  background:var(--bg-card-2); border:1px solid var(--line); margin-bottom:10px;
  cursor:pointer; transition:border-color .2s;
}
.pay-row:hover{border-color:var(--teal);}
.pay-row.open{border-color:var(--teal);}
.pay-ic{width:34px; height:34px; border-radius:8px; background:var(--bg-card); display:flex; align-items:center; justify-content:center; flex:0 0 auto;}
.pay-row div{flex:1;}
.pay-row b{display:block; font-size:.82rem; color:var(--ink);}
.pay-row small{font-size:.68rem; color:var(--muted);}
.pay-row .arrow{color:var(--muted); font-size:1.2rem; transition:transform .2s;}
.pay-row.open .arrow{transform:rotate(90deg); color:var(--teal);}

.pay-detail{margin:-2px 0 12px; padding:2px; overflow:hidden;}
.pay-detail .success-bank{
  background:var(--bg-card-2); border:1px solid var(--line); border-radius:12px; padding:14px;
  display:flex; flex-direction:column; gap:10px;
}

.pay-note{
  display:flex; gap:10px; background:rgba(41,211,208,.08); border:1px solid rgba(41,211,208,.3);
  border-radius:12px; padding:14px; margin-bottom:14px;
}
.pay-note p{font-size:.76rem; color:var(--muted); line-height:1.5; margin:0;}
.pay-note b{color:var(--ink);}
.pay-check{font-size:.76rem; color:var(--muted); margin:8px 0;}

/* ---------- drawer (cart) ---------- */
.hidden{display:none !important;}

.drawer{
  position:fixed; inset:0 0 0 auto; z-index:60;
  width:min(400px,100%); height:100%;
  background:var(--bg-card); border-left:1px solid var(--line);
  padding:20px; overflow-y:auto;
  display:flex; flex-direction:column; gap:12px;
  box-shadow:-20px 0 60px rgba(0,0,0,.5);
}
.drawer-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:6px;}
.drawer-head h2{font-size:1.1rem; font-weight:800;}
.drawer-head button{
  background:none; border:0; color:var(--muted); font-size:1.3rem; cursor:pointer; line-height:1;
}
.drawer input,.drawer select{
  padding:12px 14px; border-radius:10px; border:1px solid var(--line);
  background:var(--bg-card-2); color:var(--ink); font-size:.85rem; outline:none;
}
.drawer input:focus,.drawer select:focus{border-color:var(--teal);}
.drawer input::placeholder{color:var(--muted);}

.cart-item{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 0; border-bottom:1px solid var(--line); font-size:.82rem;
}
.cart-item b{color:var(--ink);}
#cartItems h3{font-size:.9rem; margin-top:12px; text-align:right;}

/* ---------- modal (order success / detail) ---------- */
.modal{
  position:fixed; inset:0; z-index:70;
  background:rgba(0,0,0,.6); backdrop-filter:blur(3px);
  display:flex; align-items:center; justify-content:center; padding:20px;
}
.admin-box{
  width:min(420px,100%); max-height:85vh; overflow-y:auto;
  background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius);
  padding:22px; display:flex; flex-direction:column; gap:12px;
}
.order-detail-box{border-color:rgba(238,95,167,.35);}

/* Ensure the order-detail modal always renders above the admin panel modal,
   since both can be open at the same time (admin clicking "Засах"). */
#orderDetailModal{z-index:90;}

/* ---------- admin: full-screen ---------- */
.admin-fullscreen{padding:0; align-items:stretch; justify-content:stretch; backdrop-filter:none;}
.admin-box-full{
  width:100%; height:100%; max-height:none; max-width:none;
  border-radius:0; border:0; padding:18px;
  overflow-x:hidden; /* keep wide inner tables scrolling within their own wrapper, not the whole panel */
}
.admin-box-full .drawer-head{
  position:sticky; top:-18px; background:var(--bg-card); padding:14px 0 14px;
  margin:-18px -18px 4px; padding-left:18px; padding-right:18px;
  border-bottom:1px solid var(--line); z-index:5;
}

#adminLogin{display:flex; flex-direction:column; gap:10px; max-width:360px; margin:40px auto;}
#adminLogin input{
  padding:12px 14px; border-radius:10px; border:1px solid var(--line);
  background:var(--bg-card-2); color:var(--ink); font-size:.85rem; outline:none;
}

.admin-nav{display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; position:sticky; top:44px; background:var(--bg-card); padding:6px 0; z-index:4;}
.admin-nav button{
  flex:1; min-width:80px; padding:10px; border-radius:8px; border:1px solid var(--line);
  background:var(--bg-card-2); color:var(--muted); font-size:.72rem; font-weight:700; cursor:pointer;
}
.admin-nav button:hover{color:var(--ink); border-color:var(--teal);}
.admin-nav button.active{background:var(--grad); color:#0b0b0e; border-color:transparent;}

.admin-card{
  background:var(--bg-card-2); border:1px solid var(--line); border-radius:12px;
  padding:14px; margin-bottom:10px; font-size:.82rem; color:var(--muted);
}
.admin-card b{color:var(--ink);}
.admin-card h2{font-size:1.3rem; margin-top:4px; color:var(--ink);}
.admin-row{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px;}
.admin-row input,.admin-row select,#adminContent textarea{
  flex:1; min-width:120px; padding:10px 12px; border-radius:8px;
  border:1px solid var(--line); background:var(--bg-card); color:var(--ink); font-size:.78rem;
}
#adminContent textarea{width:100%; min-height:70px; margin-bottom:8px;}
.section-sub{font-size:.85rem; color:var(--muted); margin:20px 0 10px; letter-spacing:.05em;}
.muted-note{font-size:.78rem; color:var(--muted); text-align:center; padding:14px;}
.field-label{font-size:.7rem; color:var(--muted); margin:10px 0 6px; letter-spacing:.03em;}

/* size rows (admin product form) */
.size-row{align-items:center;}
.size-size{flex:1.4 !important;}
.size-qty{flex:1 !important;}
.size-remove{
  flex:0 0 auto !important; width:34px; padding:0 !important; border-radius:8px; border:1px solid var(--line);
  background:var(--bg-card); color:var(--muted); cursor:pointer; font-size:.85rem;
}
.size-remove:hover{color:#f87171; border-color:#f87171;}

/* file upload button */
.file-btn{
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding:12px; border-radius:10px; border:1px dashed var(--line);
  background:var(--bg-card); color:var(--muted); font-size:.78rem; font-weight:600;
  cursor:pointer; margin-bottom:10px; position:relative; text-align:center;
}
.file-btn:hover{border-color:var(--teal); color:var(--ink);}
.file-btn input[type="file"]{
  position:absolute; inset:0; opacity:0; cursor:pointer;
}
.img-preview{margin-bottom:10px;}
.img-preview img{width:90px; height:90px; object-fit:cover; border-radius:10px; border:1px solid var(--line);}

.admin-card-row{display:flex; gap:12px; align-items:center;}
.admin-thumb{width:56px; height:56px; border-radius:10px; object-fit:cover; border:1px solid var(--line); flex:0 0 auto;}
.admin-thumb-empty{
  display:flex; align-items:center; justify-content:center; font-size:.7rem; font-weight:800;
  background:var(--grad); color:#0b0b0e;
}

.month-list{display:flex; flex-direction:column; gap:0;}
.month-row{
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 0; border-bottom:1px solid var(--line); font-size:.82rem;
}
.month-row:last-child{border-bottom:0;}
.month-row span{color:var(--muted); text-transform:uppercase; letter-spacing:.03em; font-size:.7rem;}
.month-row b{
  background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; font-size:.92rem;
}

/* ---------- order success payment modal ---------- */
.success-box{border-color:rgba(41,211,208,.35);}
.success-code{
  text-align:center; font-size:.72rem; color:var(--muted); letter-spacing:.05em;
  background:var(--bg-card-2); border:1px solid var(--line); border-radius:12px; padding:14px;
}
.success-code b{
  display:block; margin-top:4px; font-size:1.05rem;
  background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.success-pay{background:var(--bg-card-2); border:1px solid var(--line); border-radius:12px; padding:16px;}
.success-label{font-size:.72rem; color:var(--muted); margin:0 0 12px; letter-spacing:.03em;}
.success-bank{display:flex; flex-direction:column; gap:10px; margin-bottom:12px;}
.success-bank > div{display:flex; align-items:center; justify-content:space-between; gap:10px; padding-bottom:8px; border-bottom:1px solid var(--line);}
.success-bank > div:last-child{border-bottom:0; padding-bottom:0;}
.success-bank span{font-size:.72rem; color:var(--muted);}
.success-bank b{font-size:.88rem; color:var(--ink);}
.success-note{font-size:.72rem; color:var(--muted); line-height:1.6; margin:0;}
.success-note b{color:var(--pink);}
.pay-detail .success-bank{margin-bottom:0;}

/* ---------- cart fab ---------- */
.cart-fab{
  position:fixed; right:18px; bottom:18px; z-index:50;
  background:var(--grad); color:#0b0b0e; border:0; border-radius:999px;
  padding:14px 20px; font-weight:800; font-size:.85rem; cursor:pointer;
  box-shadow:0 10px 30px rgba(41,211,208,.25);
}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--line); padding:40px 20px 20px;}
.footer-grid{display:grid; gap:26px; max-width:900px; margin:0 auto;}
@media(min-width:720px){ .footer-grid{grid-template-columns:1.4fr 1fr 1fr;} }
.footer-grid b{display:block; font-size:.78rem; letter-spacing:.08em; color:var(--muted); margin-bottom:12px;}
.footer-logo{
  font-size:1rem !important; letter-spacing:.06em; margin-bottom:8px !important;
  background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.footer-grid > div:first-child p{font-size:.78rem; color:var(--muted); line-height:1.5;}
.footer-grid a{display:block; color:var(--muted); text-decoration:none; font-size:.8rem; margin-bottom:10px; cursor:pointer;}
.footer-grid a:hover{color:var(--ink);}

.trust-badges{display:flex; gap:14px; margin-top:16px; flex-wrap:wrap;}
.trust-badge{display:flex; flex-direction:column; align-items:center; gap:8px; width:64px;}
.trust-icon{
  width:52px; height:52px; border-radius:50%; background:var(--bg-card); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; font-size:1.3rem;
}
.trust-badge span:last-child{font-size:.66rem; color:var(--muted); text-align:center; line-height:1.35;}

/* FAQ modal */
.faq-box{border-color:rgba(41,211,208,.35);}
.faq-item{
  background:var(--bg-card-2); border:1px solid var(--line); border-radius:12px;
  padding:14px; margin-bottom:10px;
}
.faq-item b{display:block; font-size:.85rem; color:var(--ink); margin-bottom:6px;}
.faq-item p{font-size:.78rem; color:var(--muted); line-height:1.55; margin:0;}
.footer-bottom{
  text-align:center; margin-top:30px; padding-top:20px; border-top:1px solid var(--line);
  font-size:.72rem; color:var(--muted);
}

/* ---------- admin dashboard v2 ---------- */
.stat-card{text-align:center;}
.stat-card h2{font-size:1.25rem; margin:6px 0 2px;}
.stat-card small{font-size:.66rem; color:var(--muted);}
.stat-card.stat-warn h2{color:#e11d48;}

.bar-chart{display:flex; align-items:flex-end; gap:10px; height:170px; padding:8px 0;}
.bar-col{flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; gap:6px;}
.bar{width:100%; max-width:42px; border-radius:8px 8px 4px 4px; background:var(--grad);}
.bar-val{font-size:.62rem; color:var(--muted); font-weight:700;}
.bar-label{font-size:.62rem; color:var(--muted);}

.status-list{display:flex; flex-direction:column; gap:0;}
.status-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:9px 0; border-bottom:1px solid var(--line);
}
.status-row:last-child{border-bottom:0;}
.status-row b{font-size:.95rem; color:var(--ink);}

/* ---------- admin products list ---------- */
.stock-pill{
  display:inline-block; font-size:.62rem; font-weight:700; padding:2px 9px;
  border-radius:999px; margin-left:6px;
}
.stock-in{background:rgba(41,211,208,.12); color:#0e8f8d; border:1px solid rgba(41,211,208,.45);}
.stock-out{background:rgba(225,29,72,.10); color:#e11d48; border:1px solid rgba(225,29,72,.35);}
.admin-card-row.is-out{opacity:.7;}

/* ---------- admin orders list ---------- */
.order-admin-head{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:6px;}
.bal-due{color:#e11d48;}
.bal-ok{color:#0e8f8d;}
#adminContent .admin-row button{
  flex:1; min-width:110px; padding:10px; border-radius:8px; cursor:pointer;
  border:1px solid var(--line); background:var(--bg-card-2); color:var(--ink);
  font-size:.75rem; font-weight:700;
}
#adminContent .admin-row button.primary{
  background:var(--grad); color:#0b0b0e; border:0;
}

/* ---------- product card additions: media, KRW price, detail btn ---------- */
.product-media{position:relative; cursor:pointer;}
.product-media .img-count{
  position:absolute; bottom:6px; right:6px; background:rgba(0,0,0,.55); color:#fff;
  font-size:.6rem; padding:2px 7px; border-radius:999px;
}
.product .p h3{cursor:pointer;}
.price-krw{font-size:.68rem; color:var(--muted); margin:-2px 0 4px;}
.detail-btn{
  width:100%; margin-top:6px; padding:8px; border-radius:8px; cursor:pointer;
  border:1px solid var(--line); background:var(--bg-card-2); color:var(--ink);
  font-size:.7rem; font-weight:700;
}

/* ---------- product detail modal ---------- */
.product-modal-box{width:min(480px,100%);}
.pm-gallery{position:relative; border-radius:14px; overflow:hidden; background:var(--bg-card-2); margin-bottom:10px; flex:0 0 auto;}
.pm-gallery img{width:100%; aspect-ratio:1/1; object-fit:cover; display:block;}
.pm-nav{
  position:absolute; top:50%; transform:translateY(-50%); width:34px; height:34px; border-radius:50%;
  background:rgba(0,0,0,.45); color:#fff; border:0; font-size:1.2rem; cursor:pointer;
}
.pm-prev{left:8px;} .pm-next{right:8px;}
.pm-thumbs{display:flex; gap:8px; margin-bottom:14px; overflow-x:auto; flex:0 0 auto; scrollbar-width:none;}
.pm-thumbs::-webkit-scrollbar{display:none;}
.pm-thumb{width:56px; height:56px; min-width:56px; min-height:56px; border-radius:8px; object-fit:cover; cursor:pointer; opacity:.55; border:2px solid transparent; flex:0 0 auto;}
.pm-thumb.active{opacity:1; border-color:var(--teal);}
.pm-price{display:flex; align-items:baseline; gap:10px; margin:6px 0 12px;}
.pm-price b{font-size:1.15rem; background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;}
.pm-krw{font-size:.8rem; color:var(--muted);}
.pm-stock{font-size:.8rem; color:var(--muted);}
.pm-sizes{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px;}
.pm-size{font-size:.72rem; padding:6px 12px; border-radius:999px; border:1px solid var(--line); background:var(--bg-card-2); color:var(--ink);}
.pm-size.is-out{color:var(--muted); text-decoration:line-through;}
.pm-desc{font-size:.82rem; color:var(--muted); line-height:1.6;}
.pm-cargo{
  background:var(--bg-card-2); border:1px solid var(--line); border-radius:12px; padding:14px; margin:12px 0;
}
.pm-cargo b{font-size:.82rem; color:var(--ink); display:block; margin-bottom:6px;}
.pm-cargo p{font-size:.76rem; color:var(--muted); line-height:1.55; margin:0;}
.pm-pickup{margin-top:8px !important;}

/* ---------- admin multi-image upload ---------- */
.file-btn.uploading{opacity:.6; pointer-events:none;}
.img-preview.multi{display:flex; flex-wrap:wrap; gap:8px;}
.thumb-wrap{position:relative; width:70px; height:70px;}
.thumb-wrap img{width:100%; height:100%; object-fit:cover; border-radius:10px; border:1px solid var(--line);}
.thumb-x{
  position:absolute; top:-6px; right:-6px; width:20px; height:20px; border-radius:50%;
  background:#e11d48; color:#fff; border:2px solid var(--bg-card); font-size:.7rem; line-height:1; cursor:pointer;
}
.thumb-main{
  position:absolute; bottom:2px; left:2px; right:2px; font-size:.5rem; text-align:center;
  background:rgba(0,0,0,.6); color:#fff; border-radius:4px; padding:1px;
}

/* ---------- Korean bank + KRW payment note ---------- */
.krw-note{font-size:.72rem; color:var(--muted); line-height:1.7; margin:10px 0 0;}
.krw-note b{color:var(--pink);}
.krw-pay{margin-top:14px;}

/* ---------- cart cargo note ---------- */
.cargo-note{
  background:var(--bg-card-2); border:1px solid var(--line); border-radius:12px;
  padding:14px; margin-bottom:6px;
}
.cargo-note b{font-size:.8rem; color:var(--ink); display:block; margin-bottom:6px;}
.cargo-note p{font-size:.74rem; color:var(--muted); line-height:1.55; margin:0;}

/* ---------- bulk order entry table ---------- */
.bulk-table-wrap{overflow-x:auto; margin-bottom:10px; border:1px solid var(--line); border-radius:12px;}
.bulk-table{border-collapse:collapse; width:100%; min-width:760px;}
.bulk-table th{
  background:var(--bg-card-2); font-size:.68rem; text-transform:uppercase; letter-spacing:.03em;
  color:var(--muted); padding:8px 6px; text-align:left; white-space:nowrap;
}
.bulk-table td{padding:4px; border-top:1px solid var(--line);}
.bulk-table input, .bulk-table select{
  width:100%; min-width:80px; padding:8px; border-radius:6px; border:1px solid var(--line);
  background:var(--bg-card); color:var(--ink); font-size:.76rem;
}
.bulk-table .b-price{min-width:90px;}
.bulk-table .b-code{min-width:70px;}
.row-x{
  width:28px; height:28px; border-radius:6px; border:1px solid var(--line);
  background:var(--bg-card-2); color:var(--muted); cursor:pointer; font-size:.75rem;
}
.row-x:hover{color:#e11d48; border-color:#e11d48;}

/* ---------- admin orders/customers table ---------- */
.orders-table-wrap{overflow-x:auto; border:1px solid var(--line); border-radius:12px;}
.orders-table{border-collapse:collapse; width:100%; min-width:520px; font-size:.78rem;}
.orders-table th{
  background:var(--bg-card-2); font-size:.66rem; text-transform:uppercase; letter-spacing:.03em;
  color:var(--muted); padding:9px 8px; text-align:left; white-space:nowrap;
}
.orders-table td{padding:8px; border-top:1px solid var(--line); vertical-align:middle;}
.orders-table td.ot-code{font-weight:700; color:var(--ink); white-space:nowrap;}
.orders-table td small{color:var(--muted); font-size:.68rem;}
.ot-actions{display:flex; gap:6px; white-space:nowrap;}
.ot-actions button{
  padding:6px 10px; border-radius:6px; border:1px solid var(--line);
  background:var(--bg-card-2); color:var(--ink); font-size:.7rem; cursor:pointer;
}
.ot-actions .row-x{color:#e11d48; border-color:rgba(225,29,72,.35);}
.row-x-full{
  flex:1; padding:10px; border-radius:8px; border:1px solid rgba(225,29,72,.4);
  background:rgba(225,29,72,.08); color:#e11d48; font-weight:700; font-size:.75rem; cursor:pointer;
}

/* ---------- dark accent panel (product listing + cart) ---------- */
.theme-dark{
  background:
    radial-gradient(120% 90% at 50% 50%, #ffffff 32%, rgba(255,255,255,.55) 58%, transparent 78%),
    linear-gradient(135deg, #1a1a22 0%, #2a2233 25%, #241f2e 50%, #2a2233 75%, #1a1a22 100%);
  color:var(--ink);
  border-radius:22px; margin:0 16px 30px; padding:22px 14px;
  position:relative; overflow:hidden;
}
.theme-dark::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(340px 220px at 0% 0%, rgba(41,211,208,.28), transparent 62%),
    radial-gradient(340px 220px at 100% 0%, rgba(238,95,167,.26), transparent 62%),
    radial-gradient(340px 220px at 0% 100%, rgba(139,127,224,.26), transparent 62%),
    radial-gradient(340px 220px at 100% 100%, rgba(41,211,208,.24), transparent 62%);
}
.theme-dark .section-title{padding:0 6px; margin:0 0 16px; position:relative;}
.theme-dark .product-search{margin:0 6px 16px; width:calc(100% - 12px); position:relative;}
.theme-dark .grid{padding:0 6px; position:relative;}

/* ---------- hero social icons ---------- */
.hero-social{display:flex; gap:10px; justify-content:center; margin:-4px 0 4px; flex-wrap:wrap;}
.soc-btn{
  display:flex; align-items:center; gap:9px; text-decoration:none;
  border-radius:999px; padding:11px 20px 11px 11px; transition:transform .15s;
  box-shadow:0 4px 14px rgba(0,0,0,.12);
}
.soc-btn:active{transform:scale(.96);}
.soc-ic{
  width:30px; height:30px; border-radius:50%; background:#fff;
  display:flex; align-items:center; justify-content:center; flex:0 0 auto;
}
.soc-name{font-size:.85rem; font-weight:800; color:#fff;}
.soc-btn-fb{background:#1877F2;}
.soc-btn-ig{background:linear-gradient(135deg,#f9ce34,#ee2a7b 55%,#6228d7);}

/* ---------- track section accent (stand out from surrounding white) ---------- */
.track-accent{
  background:linear-gradient(180deg, rgba(41,211,208,.08), rgba(238,95,167,.08));
  border:1px solid rgba(139,127,224,.25);
  border-radius:20px;
  padding-top:20px; padding-bottom:24px;
  margin:0 16px 30px;
  max-width:none;
}
.track-accent .track-label{color:#8b5cf6; font-weight:800;}

/* ---------- selectable size buttons in product modal ---------- */
.pm-size{
  cursor:pointer; font-family:inherit;
  background:var(--bg-card-2); border:1.5px solid var(--line); color:var(--ink);
  transition:border-color .15s, background .15s;
}
.pm-size:hover:not(:disabled){border-color:var(--teal);}
.pm-size.selected{
  border-color:transparent; color:#fff;
  background:linear-gradient(120deg,var(--teal),#8b7fe0 55%,var(--pink));
}
.pm-size:disabled{cursor:not-allowed; opacity:.5;}

/* ---------- cargo branch address box in cart ---------- */
.branch-detail:empty{display:none;}
.branch-detail{
  background:var(--bg-card-2); border:1px solid var(--line); border-radius:12px;
  padding:12px 14px; margin-top:-4px;
}
.branch-detail b{display:block; font-size:.8rem; color:var(--ink); margin-bottom:4px;}
.branch-detail p{font-size:.74rem; color:var(--muted); margin:0; line-height:1.5;}

/* ---------- fullscreen image lightbox ---------- */
.lightbox{
  position:fixed; inset:0; z-index:120;
  background:rgba(0,0,0,.92);
  display:flex; align-items:center; justify-content:center;
}
.lightbox.hidden{display:none !important;}
.lb-stage{
  max-width:100%; max-height:100%; display:flex; align-items:center; justify-content:center;
  padding:20px;
}
.lb-stage img{
  max-width:100%; max-height:86vh; object-fit:contain; border-radius:8px;
  -webkit-user-select:none; user-select:none;
}
.lb-close{
  position:absolute; top:14px; right:16px; z-index:2;
  width:40px; height:40px; border-radius:50%; border:0; cursor:pointer;
  background:rgba(255,255,255,.15); color:#fff; font-size:1.5rem; line-height:1;
}
.lb-nav{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:44px; height:44px; border-radius:50%; border:0; cursor:pointer;
  background:rgba(255,255,255,.15); color:#fff; font-size:1.6rem;
  display:flex; align-items:center; justify-content:center;
}
.lb-prev{left:12px;} .lb-next{right:12px;}
.lb-counter{
  position:absolute; bottom:22px; left:50%; transform:translateX(-50%);
  color:rgba(255,255,255,.85); font-size:.8rem; letter-spacing:.05em;
}
.pm-gallery img{cursor:zoom-in;}

/* ---------- brand filter tabs ---------- */
.brand-tabs{
  display:flex; gap:8px; overflow-x:auto; padding:0 6px 12px;
  -webkit-overflow-scrolling:touch; scrollbar-width:none; position:relative;
}
.brand-tabs::-webkit-scrollbar{display:none;}
.brand-tab{
  flex:0 0 auto; padding:8px 16px; border-radius:999px; cursor:pointer;
  border:1px solid var(--line); background:var(--bg-card); color:var(--muted);
  font-size:.75rem; font-weight:700; white-space:nowrap; font-family:inherit;
  transition:.15s;
}
.brand-tab:hover{color:var(--ink); border-color:var(--teal);}
.brand-tab.active{
  background:linear-gradient(120deg,var(--teal),#8b7fe0 55%,var(--pink));
  color:#fff; border-color:transparent;
}

/* ---------- horizontal product row (swipe sideways) ---------- */
.theme-dark .grid{
  display:flex; gap:14px; overflow-x:auto; padding:0 6px 14px;
  -webkit-overflow-scrolling:touch; scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
.theme-dark .grid::-webkit-scrollbar{display:none;}
.theme-dark .grid > *{
  flex:0 0 62%; max-width:230px; scroll-snap-align:start;
}
@media(min-width:640px){ .theme-dark .grid > *{flex:0 0 33%;} }
@media(min-width:960px){ .theme-dark .grid > *{flex:0 0 24%;} }

/* keep product-modal media at full size inside the flex column */
.product-modal-box > *{flex-shrink:0;}
.product-modal-box{overflow-y:auto;}

/* ---------- copy account button ---------- */
.acct{display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end;}
.copy-btn{
  padding:4px 10px; border-radius:7px; cursor:pointer; font-family:inherit;
  border:1px solid var(--line); background:var(--bg-card-2); color:var(--muted);
  font-size:.64rem; font-weight:700; white-space:nowrap; transition:.15s;
}
.copy-btn:hover{color:var(--ink); border-color:var(--teal);}
.copy-btn.copied{
  background:linear-gradient(120deg,var(--teal),#8b7fe0 55%,var(--pink));
  color:#fff; border-color:transparent;
}

/* ---------- share product button ---------- */
.share-btn{
  width:100%; margin-top:8px; padding:11px; border-radius:10px; cursor:pointer;
  border:1px solid var(--line); background:var(--bg-card-2); color:var(--ink);
  font-size:.78rem; font-weight:700; font-family:inherit;
}
.share-btn:hover{border-color:var(--teal);}
