/* =========================================================
   다인산업안전 (THINE) — 클린 화이트몰 Design System
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&display=swap");

:root {
  --orange: #F7941E;       /* primary */
  --orange-600: #E8720C;   /* link / darker */
  --red: #C1272D;          /* logo accent / hover */
  --ink: #1A1A1A;          /* black */
  --surface-dark: #2B2B2B;
  --bg: #F7F6F3;
  --bg-2: #F5F3F0;
  --bg-3: #F0EEEA;
  --line: #E5E2DC;
  --line-2: #DDD9D3;
  --body: #4A463F;
  --muted: #77716A;
  --muted-2: #98938B;
  --on-dark: #B5B0A8;
  --on-dark-2: #8C8880;
  --white: #fff;
  --container: 1280px;
  --pad: 48px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.mobile-nav:not(.open) { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--orange-600); text-decoration: none; transition: color .15s; }
a:hover { color: var(--red); }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; line-height: 1.25; font-weight: 900; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; font-size: 15px; padding: 14px 28px; border: 2px solid transparent; transition: all .18s var(--ease); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: var(--orange-600); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--surface-dark); color: var(--orange); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; }

/* =========================================================
   Header / Nav
   ========================================================= */
.orange-strip { height: 6px; background: var(--ink); }
.topbar { background: var(--ink); color: var(--on-dark); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar b { color: var(--orange); }
.topbar a { color: var(--on-dark); }
.topbar a:hover { color: #fff; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 32px; padding-top: 18px; padding-bottom: 18px; }
.logo img { height: 56px; display: block; }
.logo { flex: none; }

.search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 12px; border: 2px solid var(--ink); padding: 11px 16px; background: #fff; }
.search input { flex: 1; border: 0; outline: none; font-family: inherit; font-size: 15px; color: var(--ink); background: transparent; }
.search input::placeholder { color: var(--muted-2); }
.search button { border: 0; background: none; font-size: 20px; color: var(--ink); line-height: 1; padding: 0; display: flex; }
.search button svg { width: 20px; height: 20px; }

.header-util { display: flex; gap: 22px; font-size: 14px; font-weight: 700; color: var(--body); align-items: center; margin-left: auto; }
.header-util a { color: var(--body); display: inline-flex; align-items: center; gap: 6px; }
.header-util a:hover { color: var(--orange-600); }
.header-util a.quote { color: var(--orange-600); }
.header-util svg { width: 17px; height: 17px; }

/* category nav (black) */
.catnav { background: var(--ink); position: sticky; top: 0; z-index: 90; }
.catnav .container { display: flex; align-items: center; gap: 30px; height: 50px; font-weight: 700; font-size: 15px; }
.catnav a { color: #fff; }
.catnav a:hover { color: var(--orange); }
.catnav .all { color: var(--orange); display: inline-flex; align-items: center; gap: 8px; position: relative; }
.catnav .all .bars { font-size: 17px; }
.catnav .spacer { flex: 1; }
.catnav .util-m { display: none; }

/* mega dropdown for 전체 카테고리 */
.catnav .all-wrap { position: relative; }
.mega { position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line); min-width: 280px; box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: 10px; display: none; grid-template-columns: 1fr 1fr; gap: 2px; z-index: 100; }
.catnav .all-wrap:hover .mega, .mega.open { display: grid; }
.mega a { color: var(--body); padding: 10px 14px; font-weight: 500; font-size: 14px; }
.mega a:hover { background: var(--bg-2); color: var(--orange-600); }

/* burger */
.burger { display: none; margin-left: auto; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; }
.burger span { width: 22px; height: 2px; background: #fff; }

/* mobile drawer */
.mobile-nav { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.mobile-nav .overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: .3s; }
.mobile-nav .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(84vw,340px); background: #fff; transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; padding: 20px; overflow-y: auto; }
.mobile-nav.open { visibility: visible; }
.mobile-nav.open .overlay { opacity: 1; }
.mobile-nav.open .panel { transform: none; }
.mobile-nav .m-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mobile-nav .m-top img { height: 40px; }
.mobile-nav .m-close { font-size: 28px; background: none; border: 0; line-height: 1; }
.mobile-nav .m-search { display: flex; border: 2px solid var(--ink); padding: 10px 12px; margin-bottom: 16px; }
.mobile-nav .m-search input { border: 0; outline: none; width: 100%; font-family: inherit; font-size: 15px; }
.mobile-nav a.m-link { padding: 13px 6px; font-size: 16px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--bg-2); }
.mobile-nav .m-foot { margin-top: auto; padding-top: 18px; }
.mobile-nav .m-tel { font-size: 22px; font-weight: 900; color: var(--ink); }
.mobile-nav .m-foot p { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* =========================================================
   Home — banner + side CTA
   ========================================================= */
.hero-row { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; padding-top: 28px; }
.hero-main { position: relative; min-height: 340px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 40px; color: #fff; overflow: hidden; background: var(--ink); }
.hero-main .bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(120deg, #1A1A1A 0%, #2B2B2B 55%, #3a2a12 100%); }
.hero-main .bg::after { content: ""; position: absolute; width: 460px; height: 460px; background: var(--orange); opacity: .16; transform: rotate(45deg); right: -160px; top: -140px; }
.hero-main .bg::before { content: ""; position: absolute; width: 300px; height: 300px; border: 20px solid var(--orange); opacity: .12; transform: rotate(45deg); right: 60px; bottom: -200px; }
.hero-main > * { position: relative; z-index: 1; }
.hero-main .eyebrow { color: var(--orange); font-weight: 900; letter-spacing: 3px; font-size: 13px; margin-bottom: 12px; }
.hero-main h1 { color: #fff; font-size: 36px; font-weight: 900; line-height: 1.25; }
.hero-main p { color: var(--on-dark); margin-top: 14px; font-size: 16px; }
.hero-main .acts { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.side-card { padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.side-card.dark { background: var(--ink); color: #fff; }
.side-card.dark .k { color: var(--orange); font-weight: 900; font-size: 14px; }
.side-card.dark .t { font-weight: 900; font-size: 20px; line-height: 1.3; }
.side-card.dark .s { color: var(--on-dark); font-size: 15px; font-weight: 700; margin-top: 4px; }
.side-card.orange { background: var(--orange); color: var(--ink); }
.side-card.orange .k { font-weight: 900; font-size: 14px; }
.side-card.orange .t { font-weight: 900; font-size: 20px; line-height: 1.3; }
.side-card.orange .s { font-size: 14px; font-weight: 700; margin-top: 4px; }
.side-card:hover { filter: brightness(1.06); }

/* =========================================================
   Sections / headings
   ========================================================= */
.section { padding: 52px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 24px; font-weight: 900; }
.section-head .more { font-size: 14px; font-weight: 700; color: var(--orange-600); }
.section-sub { color: var(--muted); font-size: 15px; margin: -16px 0 26px; }

/* category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.cat-tile { background: #fff; border: 1px solid var(--line); padding: 22px 12px; display: grid; gap: 12px; justify-items: center; text-align: center; transition: all .18s var(--ease); }
.cat-tile:hover { border-color: var(--orange); transform: translateY(-3px); }
.cat-tile .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; color: var(--ink); }
.cat-tile:hover .ic { background: var(--orange); }
.cat-tile .ic svg { width: 32px; height: 32px; }
.cat-tile span { font-weight: 700; font-size: 14px; color: var(--ink); }

/* =========================================================
   Product cards
   ========================================================= */
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.p-card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: all .18s var(--ease); }
.p-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.p-card .thumb { height: 200px; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; position: relative; display: grid; place-items: center; }
.p-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .3s var(--ease); }
.p-card:hover .thumb img { transform: scale(1.04); }
.p-card .tag { position: absolute; top: 10px; left: 10px; background: var(--orange); color: var(--ink); font-size: 11px; font-weight: 900; padding: 4px 9px; border-radius: 4px; }
.p-card .body { padding: 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.p-card .cat-label { font-size: 12px; font-weight: 700; color: var(--orange-600); }
.p-card .p-name { font-size: 14.5px; color: var(--body); font-weight: 500; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.p-card .p-name:hover { color: var(--orange-600); }
.p-card .p-price { font-size: 18px; font-weight: 900; color: var(--ink); margin-top: 2px; }
.p-card .p-price small { font-size: 12px; font-weight: 500; color: var(--muted-2); }
.p-card .p-price.ask { color: var(--orange-600); font-size: 15px; }
.p-card .foot { margin-top: auto; display: flex; border-top: 1px solid var(--line); }
.p-card .foot a { flex: 1; text-align: center; padding: 11px; font-size: 13.5px; font-weight: 700; }
.p-card .foot .detail { color: var(--body); border-right: 1px solid var(--line); }
.p-card .foot .detail:hover { background: var(--bg-2); }
.p-card .foot .buy { color: var(--orange-600); }
.p-card .foot .buy:hover { background: var(--orange); color: var(--ink); }

/* =========================================================
   Brand strip
   ========================================================= */
.brand-strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brand-strip .container { display: flex; align-items: center; gap: 36px; padding-top: 30px; padding-bottom: 30px; }
.brand-strip .lab { font-weight: 900; font-size: 17px; flex: none; }
.brand-strip .brands { display: flex; gap: 14px; flex: 1; flex-wrap: wrap; }
.brand-strip .brands div { flex: 1; min-width: 96px; height: 56px; background: var(--bg-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); font-size: 14px; }

/* =========================================================
   Intro + quote form (2col)
   ========================================================= */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.intro-card { background: #fff; border: 1px solid var(--line); padding: 32px; }
.intro-card h2 { font-size: 20px; margin-bottom: 12px; }
.intro-card p { color: var(--muted); font-size: 15px; line-height: 1.85; }
.intro-card .links { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.quote-card { background: var(--ink); padding: 32px; }
.quote-card h2 { color: var(--orange); font-size: 20px; margin-bottom: 16px; }
.quote-card .field input, .quote-card .field select, .quote-card .field textarea { width: 100%; background: var(--surface-dark); border: 1px solid #3a3a3a; color: #fff; padding: 12px 14px; font-family: inherit; font-size: 14px; margin-bottom: 8px; }
.quote-card .field input::placeholder, .quote-card .field textarea::placeholder { color: var(--muted-2); }
.quote-card textarea { min-height: 90px; resize: vertical; }
.quote-card .agree { color: var(--on-dark-2); font-size: 12.5px; display: flex; gap: 8px; margin: 6px 0 12px; }
.quote-card .agree input { margin-top: 2px; }

/* =========================================================
   Map / contact row
   ========================================================= */
.map-row { display: grid; grid-template-columns: 1.4fr 1fr; background: #fff; border-top: 1px solid var(--line); }
.map-row .map { min-height: 300px; }
.map-row .map iframe { width: 100%; height: 100%; border: 0; display: block; min-height: 300px; }
.map-row .info { padding: 40px 48px; display: grid; gap: 14px; align-content: center; }
.map-row .info h2 { font-size: 22px; }
.map-row .info .line { font-size: 15px; color: var(--body); line-height: 1.8; }
.map-row .info b { color: var(--ink); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #fff; border-top: 3px solid var(--ink); }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; padding: 44px 0; }
.footer-main .logo img { height: 46px; margin-bottom: 14px; }
.footer-desc { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer-col h5 { font-size: 14px; font-weight: 900; margin-bottom: 14px; color: var(--ink); }
.footer-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; font-weight: 500; }
.footer-col a:hover { color: var(--orange-600); }
.footer-contact li { display: flex; gap: 9px; padding: 4px 0; color: var(--body); font-size: 14px; }
.footer-contact svg { width: 16px; height: 16px; color: var(--orange-600); flex: none; margin-top: 3px; }
.footer-contact b { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--muted); }
.footer-bottom .biz { line-height: 1.7; }

/* =========================================================
   Page hero (sub pages)
   ========================================================= */
.page-hero { background: var(--ink); color: #fff; padding: 44px 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 360px; height: 360px; background: var(--orange); opacity: .14; transform: rotate(45deg); right: -120px; top: -120px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: 32px; }
.page-hero p { color: var(--on-dark); margin-top: 10px; font-size: 15px; }
.breadcrumb { font-size: 13px; color: var(--on-dark-2); margin-bottom: 14px; display: flex; gap: 8px; }
.breadcrumb a { color: var(--on-dark-2); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { opacity: .5; }

/* =========================================================
   Catalog
   ========================================================= */
.catalog { display: grid; grid-template-columns: 230px 1fr; gap: 32px; align-items: start; }
.filter-side h4 { font-size: 13px; font-weight: 900; letter-spacing: .04em; margin-bottom: 12px; color: var(--ink); border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.cat-filter a { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; color: var(--body); font-weight: 500; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.cat-filter a:hover { color: var(--orange-600); }
.cat-filter a.active { background: var(--ink); color: #fff; font-weight: 700; }
.cat-filter a.active .c { color: var(--orange); }
.cat-filter .c { font-size: 12px; color: var(--muted-2); font-weight: 700; }
.catalog-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.catalog-top .count { font-size: 15px; color: var(--muted); }
.catalog-top .count b { color: var(--ink); }
.catalog-top .searchmini { display: flex; border: 2px solid var(--ink); padding: 9px 14px; min-width: 240px; }
.catalog-top .searchmini input { border: 0; outline: none; font-family: inherit; font-size: 14px; width: 100%; }
.chip-row { display: none; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 18px; }
.chip-row a { flex: none; padding: 9px 15px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--body); }
.chip-row a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { text-align: center; padding: 80px 0; color: var(--muted-2); }

/* =========================================================
   Product detail
   ========================================================= */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.pd-gallery { background: #fff; border: 1px solid var(--line); aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden; position: sticky; top: 70px; }
.pd-gallery img { width: 100%; height: 100%; object-fit: contain; padding: 30px; }
.pd-info .cat-label { font-size: 13px; font-weight: 700; color: var(--orange-600); }
.pd-info h1 { font-size: 28px; margin-top: 10px; line-height: 1.3; }
.pd-price { margin-top: 20px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); }
.pd-price .lab { font-size: 13px; color: var(--muted); }
.pd-price .val { font-size: 30px; font-weight: 900; margin-top: 4px; }
.pd-price .val small { font-size: 13px; color: var(--muted); font-weight: 500; }
.pd-actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.pd-actions .btn { flex: 1; min-width: 160px; }
.pd-meta { margin-top: 26px; border-top: 2px solid var(--ink); }
.pd-meta .row { display: flex; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.pd-meta .k { width: 120px; color: var(--muted); font-weight: 700; flex: none; }
.pd-meta .v { color: var(--ink); font-weight: 500; }
.pd-note { margin-top: 20px; padding: 16px 18px; background: #fff8f0; border: 1px solid #f6d9b8; font-size: 13.5px; color: var(--body); display: flex; gap: 10px; }
.pd-note svg { width: 18px; height: 18px; color: var(--orange-600); flex: none; margin-top: 2px; }

/* =========================================================
   Company page
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-grid .visual { aspect-ratio: 4/3; background: var(--ink); position: relative; overflow: hidden; display: grid; place-items: center; }
.about-grid .visual::after { content: ""; position: absolute; width: 300px; height: 300px; background: var(--orange); opacity: .16; transform: rotate(45deg); right: -100px; top: -100px; }
.about-grid .visual img { width: 62%; position: relative; z-index: 1; background: #fff; padding: 24px; }
.about-grid h2 { font-size: 30px; }
.about-grid .eyebrow { color: var(--orange-600); font-weight: 900; font-size: 13px; letter-spacing: .1em; margin-bottom: 12px; }
.about-grid .lead { margin-top: 18px; color: var(--body); font-size: 16px; line-height: 1.9; }
.about-grid .lead strong { color: var(--ink); }
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: #fff; text-align: center; padding: 32px 16px; }
.stat .n { font-size: 40px; font-weight: 900; color: var(--ink); }
.stat .n b { color: var(--orange); }
.stat .l { margin-top: 6px; color: var(--muted); font-weight: 700; font-size: 14px; }
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.value { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange); padding: 30px; }
.value .ic { width: 50px; height: 50px; background: var(--bg-3); display: grid; place-items: center; color: var(--orange-600); margin-bottom: 18px; }
.value .ic svg { width: 26px; height: 26px; }
.value h3 { font-size: 18px; }
.value p { color: var(--muted); font-size: 14.5px; margin-top: 10px; line-height: 1.7; }
.info-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.info-table th, .info-table td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 15px; }
.info-table th { background: var(--bg-2); width: 190px; font-weight: 700; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info .ci { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-info .ci:last-child { border-bottom: 0; }
.contact-info .ci .ic { width: 46px; height: 46px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.contact-info .ci .ic svg { width: 22px; height: 22px; }
.contact-info .ci h4 { font-size: 13px; color: var(--muted); font-weight: 700; }
.contact-info .ci p { font-size: 18px; font-weight: 900; margin-top: 3px; }
.contact-info .ci small { color: var(--muted); font-weight: 500; font-size: 14px; }
.form-card { background: #fff; border: 1px solid var(--line); padding: 34px; }
.form-card h3 { font-size: 20px; margin-bottom: 6px; }
.form-card .desc { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.form-agree { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; font-size: 13.5px; color: var(--muted); }
.form-agree input { margin-top: 3px; flex: none; }
.form-msg { display: none; padding: 15px; font-weight: 700; margin-bottom: 16px; }
.form-msg.ok { display: block; background: #eef8f0; color: #1c7d47; border: 1px solid #b6e0c4; }

/* =========================================================
   Resources (자료실)
   ========================================================= */
.res-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); }
.res-tabs a { padding: 12px 22px; font-weight: 700; font-size: 15px; color: var(--body); border: 1px solid var(--line); border-bottom: 0; background: var(--bg-2); }
.res-tabs a.active { background: var(--ink); color: #fff; }
.res-list { background: #fff; border: 1px solid var(--line); }
.res-item { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.res-item:last-child { border-bottom: 0; }
.res-item:hover { background: var(--bg-2); }
.res-item .ic { width: 44px; height: 44px; background: var(--bg-3); color: var(--orange-600); display: grid; place-items: center; flex: none; font-weight: 900; font-size: 12px; }
.res-item .meta { flex: 1; }
.res-item .meta h4 { font-size: 16px; font-weight: 700; }
.res-item .meta .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.res-item .dl { flex: none; }
.res-empty { padding: 60px; text-align: center; color: var(--muted-2); }

/* legal / doc pages */
.legal { max-width: 900px; }
.legal h2 { font-size: 19px; margin: 34px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 { font-size: 15.5px; margin: 18px 0 8px; }
.legal p, .legal li { color: var(--body); font-size: 14.5px; line-height: 1.85; }
.legal ul { margin: 8px 0 8px 18px; list-style: disc; }
.legal ol { margin: 8px 0 8px 20px; }
.legal ol li { margin-bottom: 4px; }
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.legal table th, .legal table td { border: 1px solid var(--line); padding: 10px 12px; font-size: 14px; text-align: left; }
.legal table th { background: var(--bg-2); font-weight: 700; }

/* cart / checkout */
.cart-badge { position: relative; }
.cart-badge .cnt { position: absolute; top: -8px; right: -10px; background: var(--red); color: #fff; font-size: 10px; font-weight: 900; min-width: 16px; height: 16px; border-radius: 999px; display: none; align-items: center; justify-content: center; padding: 0 4px; }
.cart-badge .cnt.show { display: inline-flex; }
.cart-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-lines { background: #fff; border: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb { width: 84px; height: 84px; border: 1px solid var(--line); object-fit: contain; padding: 6px; background: #fff; }
.cart-line .nm { font-weight: 700; font-size: 15px; }
.cart-line .op { color: var(--muted); font-size: 13px; margin-top: 3px; }
.cart-line .pr { font-weight: 900; margin-top: 6px; }
.qty { display: inline-flex; border: 1px solid var(--line-2); margin-top: 8px; }
.qty button { width: 30px; height: 30px; border: 0; background: #fff; font-size: 16px; }
.qty span { width: 40px; display: grid; place-items: center; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); font-weight: 700; }
.cart-line .rm { background: none; border: 0; color: var(--muted-2); font-size: 13px; text-decoration: underline; margin-top: 8px; }
.cart-sum { background: #fff; border: 1px solid var(--line); padding: 24px; position: sticky; top: 70px; }
.cart-sum h3 { font-size: 17px; margin-bottom: 16px; }
.cart-sum .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14.5px; color: var(--body); }
.cart-sum .row.total { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 900; color: var(--ink); }
.cart-empty { background: #fff; border: 1px solid var(--line); padding: 70px; text-align: center; color: var(--muted); }
.co-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.co-box { background: #fff; border: 1px solid var(--line); padding: 26px; margin-bottom: 20px; }
.co-box h3 { font-size: 17px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.co-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; color: var(--body); }
.pay-note { background:#fff8f0; border:1px solid #f6d9b8; padding:14px 16px; font-size:13px; color:var(--body); margin-top:14px; }

/* 제품 상세 설명 / 추가 갤러리 */
.pd-extra { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.pd-extra h2 { font-size: 20px; font-weight: 900; margin-bottom: 16px; }
.pd-desc { color: var(--body); font-size: 15px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
.pd-gallery-more { display: grid; gap: 16px; max-width: 800px; }
.pd-gallery-more img { width: 100%; height: auto; border: 1px solid var(--line); display: block; }

/* 판매중지 */
.p-card .tag.out { background: #8a8880; }
.p-card .p-price.soldout { color: #8a8880; }
.p-card.is-soldout .thumb img { opacity: .5; filter: grayscale(0.4); }
.p-card .foot .buy.disabled { color: #a8a49d; cursor: default; background: transparent; }
.p-card .foot .buy.disabled:hover { background: transparent; color: #a8a49d; }

/* reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  :root { --pad: 28px; }
  .cat-tiles { grid-template-columns: repeat(3,1fr); }
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .catnav .container > a:not(.all), .catnav .spacer { display: none; }
  .catnav .all-wrap { margin-right: auto; }
  .header-util { display: none; }
  .burger { display: flex; }
  .hero-row { grid-template-columns: 1fr; }
  .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .two-col, .about-grid, .contact-grid, .pd { grid-template-columns: 1fr; }
  .cart-wrap, .co-grid { grid-template-columns: 1fr; }
  .cart-sum { position: static; }
  .map-row { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .filter-side { display: none; }
  .chip-row { display: flex; }
  .value-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2,1fr); }
  .pd-gallery { position: static; }
  .brand-strip .container { flex-direction: column; align-items: flex-start; gap: 16px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .site-header .container { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  :root { --pad: 16px; }
  /* 모바일: 상단바 소개문구 숨기고 대표전화만 한 줄로 (잘림 방지) */
  .topbar { font-size: 12px; }
  .topbar .container { justify-content: center; }
  .topbar .container > span:first-child { display: none; }
  .cat-tiles { grid-template-columns: repeat(2,1fr); }
  .product-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .hero-side { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-main h1 { font-size: 27px; }
  .stat .n { font-size: 30px; }
  .section { padding: 40px 0; }
}
