/* PLinezone — keeps the current plinezone.com look: white, Open Sans, PLine green, square black buttons */
:root {
  --green: #3a6554;
  --green-dark: #2c4f41;
  --green-tint: #eef3f0;
  --ink: #111;
  --muted: #5d625f;
  --line: #e4e4e1;
  --bg: #fff;
  --soft: #f6f6f4;
  --danger: #b3261e;
  --ok: #1f7a4d;
  --radius: 0px;
  --max: 1240px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Open Sans", Arial, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* announcement + header */
.announce { background: var(--green); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 12px; }
.announce a { color: #fff; text-decoration: none; }
header.site { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.hdr { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo img { height: 40px; width: auto; }
nav.main { display: flex; gap: 22px; flex: 1; }
nav.main a { text-decoration: none; font-size: 14px; padding: 6px 0; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a.on { border-bottom-color: var(--green); }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.hdr-actions .link { text-decoration: none; font-size: 14px; }
.quote-pill { background: var(--green); color: #fff !important; text-decoration: none; padding: 9px 14px; font-weight: 600; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.quote-pill .n { background: #fff; color: var(--green); min-width: 20px; height: 20px; border-radius: 10px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.menu-btn { display: none; background: none; border: 0; font-size: 24px; padding: 4px 8px; cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 12px 22px; text-decoration: none; cursor: pointer; border-radius: var(--radius); font-weight: 600; font-size: 14px; letter-spacing: .02em; min-height: 46px; }
.btn:hover { opacity: .88; }
.btn.green { background: var(--green); border-color: var(--green); }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 12px; min-height: 34px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* home promo banner (HQ 설정 → 홈 광고 배너) */
.promo { display: block; max-width: 1600px; margin: 18px auto 0; padding: 0 16px; }
.promo img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
/* hero */
.hero { position: relative; overflow: hidden; background: var(--green); }
.hero .slide { display: none; position: relative; }
.hero .slide.on { display: block; }
.hero picture img { width: 100%; height: 520px; object-fit: cover; }
.hero .cap { position: absolute; left: 0; right: 0; bottom: 36px; text-align: center; }
.hero .cap h2 { color: #fff; font-size: 40px; font-weight: 400; margin: 0 0 14px; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero .dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero .dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); padding: 0; cursor: pointer; }
.hero .dots button.on { background: #fff; }

/* sections */
section.block { padding: 48px 0; }
section.block.soft { background: var(--soft); }
h1, h2, h3 { font-weight: 400; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: 34px; }
h2.sec { font-size: 30px; text-align: center; margin-bottom: 8px; }
p.sub { text-align: center; color: var(--muted); margin: 0 0 28px; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); font-weight: 700; }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { text-decoration: none; display: flex; flex-direction: column; background: #fff; }
.card .ph { aspect-ratio: 1 / 1; background: var(--soft); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .ph img { transform: scale(1.03); }
.card .meta { padding: 12px 2px 0; }
.card .nm { font-size: 15px; margin: 0 0 4px; }
.card .sm { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.price { font-weight: 600; }
.price s { color: var(--muted); font-weight: 400; margin-left: 6px; }
.lock { font-size: 13px; color: var(--green); font-weight: 600; text-decoration: underline; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--green-tint); color: var(--green); padding: 3px 8px; margin-bottom: 6px; }

/* store types */
.stores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.store { position: relative; text-decoration: none; display: block; overflow: hidden; background: #000; }
.store img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; opacity: .95; }
.store span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* name is already printed in each GIF */

/* filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 8px 14px; cursor: pointer; text-decoration: none; font-size: 14px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* product page */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; padding: 32px 0 48px; }
.gallery .main { background: var(--soft); aspect-ratio: 1 / 1; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.thumbs button { border: 1px solid var(--line); padding: 0; background: var(--soft); cursor: pointer; aspect-ratio: 1 / 1; }
.thumbs button.on { border: 2px solid var(--green); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-size: 30px; }
.pdp .price { font-size: 24px; margin: 6px 0 18px; }
.specs { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.specs li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.comp { display: grid; gap: 8px; margin: 0 0 20px; }
.comp a { display: flex; gap: 12px; align-items: center; text-decoration: none; border: 1px solid var(--line); padding: 8px; }
.comp img { width: 52px; height: 52px; object-fit: cover; background: var(--soft); }
.comp .q { margin-left: auto; color: var(--muted); font-size: 13px; }
.qty { display: inline-flex; border: 1px solid var(--ink); height: 46px; }
.qty button { width: 44px; border: 0; background: #fff; font-size: 20px; cursor: pointer; }
.qty input { width: 48px; border: 0; text-align: center; font-weight: 600; }
.addrow { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.addrow .btn { flex: 1; }
.yt { aspect-ratio: 9 / 16; max-width: 320px; border: 0; width: 100%; margin-top: 16px; }
.note { background: var(--green-tint); padding: 12px 14px; font-size: 14px; }
.note.warn { background: #fff4e5; }
.note.err { background: #fdecea; color: var(--danger); }

/* quote builder (web app) */
.qb { max-width: 760px; margin: 0 auto; padding: 24px 20px 140px; }
.qitem { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.qitem img { width: 72px; height: 72px; object-fit: cover; background: var(--soft); }
.qitem .nm { font-weight: 600; font-size: 15px; }
.qitem .rm { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; padding: 0; }
.qitem .qty { height: 38px; }
.qitem .qty button { width: 36px; }
.qitem .qty input { width: 36px; }
.qitem .lt { text-align: right; font-weight: 600; margin-top: 6px; }
fieldset { border: 1px solid var(--line); padding: 16px; margin: 20px 0; }
legend { font-weight: 700; padding: 0 6px; }
.chan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chan label { border: 1px solid var(--line); padding: 14px 10px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.chan input { position: absolute; opacity: 0; pointer-events: none; }
.chan label.on { border: 2px solid var(--green); background: var(--green-tint); }
.chan .ic { font-size: 24px; line-height: 1; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { border: 1px solid #c9cbc8; padding: 11px 12px; border-radius: 0; background: #fff; min-height: 44px; width: 100%; }
.field textarea { min-height: 80px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.totalbar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(0,0,0,.06); z-index: 30; }
.totalbar .in { max-width: 760px; margin: 0 auto; padding: 12px 20px; display: flex; gap: 14px; align-items: center; }
.totalbar .t { flex: 1; }
.totalbar .t small { color: var(--muted); display: block; font-size: 12px; }
.totalbar .t b { font-size: 20px; }
.deliv { display: grid; gap: 10px; margin: 18px 0; }
.deliv .d { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); padding: 12px 14px; }
.deliv .d .s { margin-left: auto; font-size: 13px; font-weight: 600; }
.ok { color: var(--ok); } .bad { color: var(--danger); }

/* forms page */
.auth { max-width: 520px; margin: 0 auto; padding: 36px 20px 60px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs a { flex: 1; text-align: center; padding: 12px; text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a.on { border-bottom-color: var(--ink); font-weight: 600; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 6px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }

/* tables (account) */
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.list th { background: var(--soft); font-weight: 600; }
.badge { display: inline-block; padding: 2px 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--soft); }
.badge.new, .badge.pending { background: #fff4e5; color: #8a5300; }
.badge.sent, .badge.viewed { background: #e8f0fe; color: #1a4fa0; }
.badge.accepted, .badge.won, .badge.approved { background: var(--green-tint); color: var(--green); }
.badge.lost, .badge.expired, .badge.blocked { background: #fdecea; color: var(--danger); }

/* footer */
footer.site { background: var(--soft); border-top: 1px solid var(--line); padding: 40px 0 28px; margin-top: 40px; font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
footer h4 { margin: 0 0 10px; font-size: 15px; }
footer p { margin: 0 0 6px; color: var(--muted); }
footer .copy { margin-top: 24px; color: var(--muted); font-size: 12px; }
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 25; background: #25d366; color: #fff; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 26px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
body.has-bar .fab { display: none; }

.toast { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; z-index: 50; font-size: 14px; max-width: 90vw; }

@media (max-width: 960px) {
  nav.main { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); padding: 4px 20px 12px; }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: block; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .stores { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pdp { grid-template-columns: 1fr; gap: 20px; padding-top: 16px; }
  .hero picture img { height: 420px; }
  .hero .cap h2 { font-size: 28px; }
  footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hdr { gap: 10px; height: 64px; }
  nav.main { top: 64px; }
  .logo img { height: 32px; }
  .hdr-actions .link.hide-sm { display: none; }
  h1 { font-size: 26px; }
  h2.sec { font-size: 24px; }
  section.block { padding: 32px 0; }
  .row2 { grid-template-columns: 1fr; }
  .chan label { padding: 12px 4px; font-size: 13px; }
  .pdp h1 { font-size: 24px; }
  .thumbs { grid-template-columns: repeat(5, 1fr); }
  .qb { padding: 16px 16px 140px; }
}

/* print (quote PDF) */
@media print {
  .announce, header.site, footer.site, .no-print, .fab, .totalbar { display: none !important; }
  body { font-size: 12px; }
}

/* My store (FSM) */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.gal figure { margin: 0; position: relative; aspect-ratio: 1; background: var(--soft); overflow: hidden; }
.gal img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.gal figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 10px; padding: 2px 5px; white-space: nowrap; overflow: hidden; }
.gal .own { position: absolute; top: 4px; left: 4px; background: var(--green); color: #fff; font-size: 9px; padding: 1px 5px; }
.gal .own.rep { background: var(--ink); }

/* My page */
.mypage .stats4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 6px 0 20px; }
.mypage .stats4 div { border: 1px solid var(--line); padding: 12px 14px; } .mypage .stats4 b { display: block; font-size: 20px; font-weight: 600; } .mypage .stats4 small { color: var(--muted); font-size: 12px; }
.mypage label.radio { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mypage table.list { width: 100%; border-collapse: collapse; font-size: 14px; } .mypage table.list th, .mypage table.list td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.mypage table.list th { background: var(--soft); font-size: 12px; } .mypage h3 { font-size: 18px; margin: 18px 0 8px; }
.mypage .qty { height: 38px; } .mypage .qty button { width: 36px; } .mypage .qty input { width: 40px; }
.badge.received, .badge.approved, .badge.paid, .badge.synced { border-color: var(--ok); color: var(--ok); } .badge.bounced, .badge.pending, .badge.rejected { border-color: var(--danger); color: var(--danger); }

.totalbar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 0; z-index: 30; box-shadow: 0 -4px 14px rgba(0,0,0,.06); }

/* contact page — sales rep cards */
.reps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rep-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); padding: 14px; align-items: flex-start; }
.rep-card img, .rep-ini { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 72px; background: var(--green-tint); }
.rep-ini { display: flex; align-items: center; justify-content: center; color: var(--green); font-weight: 700; font-size: 22px; }
.rep-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .rep-body b { font-size: 16px; } .rep-body small { color: var(--muted); margin-bottom: 4px; }
.rep-body a { font-size: 14px; text-decoration: none; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rep-body a:hover { text-decoration: underline; }
