:root {
  --blue: #0C1EDA;
  --orange: #FD6400;
  --bg: #FFFFFF;
  --panel: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #686B78;
  --line: #E5E7F2;
  --soft: #F6F7FF;
  --shadow: 0 18px 44px rgba(12, 30, 218, .08);
}
* { box-sizing: border-box; }
html, body { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; }
body { --content-width: min(1240px, calc(100vw - 48px)); --summary-width: 320px; --layout-gap: 24px; margin: 0; font-family: Pretendard, "Noto Sans KR", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
button, input { font: inherit; }
button { cursor: pointer; }
.estimate-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--summary-width); gap: var(--layout-gap); align-items: start; width: var(--content-width); margin: 0 auto; }
.app-shell { min-width: 0; padding: 40px 0 96px; }
.hero { padding: 44px 0 22px; }
.hero-characters { display: block; width: 148px; height: auto; margin: 0 0 10px; }
.hero h1 { margin: 6px 0 10px; color: var(--blue); font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: 0; }
.hero p { max-width: 720px; color: var(--muted); line-height: 1.6; }
.hero .pc-notice { margin-top: -8px; color: var(--blue); font-weight: 800; animation: noticePulse 1.8s ease-in-out infinite; }
@keyframes noticePulse { 0%, 100% { opacity: 1; } 50% { opacity: .38; } }
.eyebrow { margin: 0; color: var(--orange); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 900; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.step-panel { padding: 28px; margin-bottom: 22px; }
.step-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-title > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; }
.step-title h2 { min-width: 0; margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -.03em; line-height: 1.35; }
#box-title, #bag-title { position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; width: 100%; padding-right: 44px; cursor: pointer; }
.title-label { flex: 0 0 auto; }
.selected-title { display: inline-flex; align-items: center; min-width: 0; max-width: min(420px, 46vw); color: var(--orange); font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selected-check { flex: 0 0 auto; margin-right: 4px; font-size: 15px; line-height: 1; }
.selected-label { flex: 0 0 auto; margin-right: 4px; font-weight: 700; }
.title-toggle { position: absolute; right: 0; top: 50%; width: 30px; height: 30px; border: 1.5px solid var(--blue); border-radius: 999px; background: #fff; transform: translateY(-50%); transition: .16s ease; }
.title-toggle::before { content: ""; position: absolute; left: 50%; top: 48%; width: 7px; height: 7px; border-right: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue); transform: translate(-50%, -60%) rotate(45deg); }
.title-toggle.open::before { top: 54%; transform: translate(-50%, -40%) rotate(225deg); }
#box-title:hover .title-toggle, #bag-title:hover .title-toggle { background: rgba(12, 30, 218, .04); box-shadow: 0 0 0 3px rgba(12, 30, 218, .08); }
.qty-label { display: grid; gap: 8px; max-width: 280px; font-weight: 800; }
.qty-label input, .search-input { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; color: var(--ink); outline: 0; }
.qty-label input:focus, .search-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(12, 30, 218, .12); }
.help-text { color: var(--muted); font-size: 14px; line-height: 1.5; }
.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mode-card { display: flex; flex-direction: column; align-items: stretch; text-align: left; min-height: 150px; border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 18px; transition: .18s ease; }
.mode-image { display: block; width: 100%; height: auto; margin: 0 0 14px; border-radius: 14px; background: transparent; }
.mode-card:hover { transform: translateY(-2px); border-color: var(--blue); }
.mode-card strong { display: block; margin-bottom: 8px; color: var(--blue); font-size: 18px; font-weight: 900; }
.mode-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.mode-card.active { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue); }
.filter-row { display: grid; grid-template-columns: 1fr 260px; gap: 14px; align-items: start; margin-bottom: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; padding-bottom: 4px; }
.tab { white-space: nowrap; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 14px; color: var(--muted); font-weight: 800; }
.tab-count { font-size: calc(1em - 3px); font-weight: 300; }
.tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; padding: 4px; }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); max-height: 846px; overflow-y: auto; overscroll-behavior: auto; padding: 4px; scrollbar-width: none; }
.product-grid::-webkit-scrollbar { width: 0; height: 0; }
.product-grid::-webkit-scrollbar-track { background: #F4EFEB; border-radius: 999px; }
.product-grid::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 999px; border: 2px solid #F4EFEB; }
.scroll-grid { max-height: 906px; overflow-y: auto; overscroll-behavior: auto; padding: 4px; scrollbar-width: none; }
.scroll-grid::-webkit-scrollbar { width: 0; height: 0; }
.scroll-grid::-webkit-scrollbar-track { background: #F4EFEB; border-radius: 999px; }
.scroll-grid::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 999px; border: 2px solid #F4EFEB; }
.scroll-grid::-webkit-scrollbar-thumb:hover { background: #d95200; }
.product-grid::-webkit-scrollbar-thumb:hover { background: #d95200; }
.item-card { position: relative; overflow: hidden; text-align: left; border: 1px solid var(--line); border-radius: 22px; background: #fff; padding: 10px; transition: .18s ease; }
.item-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.item-card.active { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue); }
.card-media { position: relative; overflow: hidden; border-radius: 16px; background: var(--soft); }
.card-media::after { content: ""; pointer-events: none; position: absolute; inset: 0; background: rgba(255,255,255,.56); backdrop-filter: blur(2px); opacity: 0; transition: .18s ease; }
.item-card:hover .card-media::after, .item-card:focus-within .card-media::after { opacity: 1; }
.card-media > img, .package-visual { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; background: var(--soft); }
.package-visual { display: grid; place-items: center; color: var(--blue); font-weight: 900; text-align: center; padding: 18px; }
.card-hover { position: absolute; z-index: 2; inset: 0; display: grid; pointer-events: none; align-content: center; gap: 8px; padding: 14px; opacity: 0; transition: .18s ease; color: var(--ink); }
.item-card:hover .card-hover, .item-card:focus-within .card-hover { opacity: 1; }
.card-hover p { display: grid; grid-template-columns: 44px 1fr; gap: 8px; margin: 0; font-size: 12px; line-height: 1.35; }
.card-hover strong { color: var(--blue); font-weight: 900; }
.card-hover span { color: var(--ink); font-weight: 700; }
.card-hover .hover-note { display: block; margin-top: 4px; color: var(--orange); font-weight: 900; }
.item-card h3 { min-height: 42px; margin: 12px 2px 8px; font-size: 15px; font-weight: 900; letter-spacing: -.03em; line-height: 1.35; }
.meta, .select-label { display: none; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 2px 2px; }
.badge, .detail-link { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 900; line-height: 1; text-decoration: none; }
.badge { background: var(--orange); color: #fff; }
.badge.warn { background: var(--orange); color: #fff; }
.detail-link { border: 1px solid var(--orange); background: #fff; color: var(--orange); }
.detail-link:hover { background: rgba(253, 100, 0, .08); }
.summary-panel { position: fixed; top: var(--summary-top, 40px); right: calc((100vw - var(--content-width)) / 2); width: var(--summary-width); max-height: calc(100vh - var(--summary-top, 40px) - 40px); overflow: auto; scrollbar-width: none; padding: 22px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); backdrop-filter: blur(10px); transition: top .18s ease, max-height .18s ease; }
.summary-panel::-webkit-scrollbar { width: 0; height: 0; }
.summary-panel h2 { margin: 0 0 14px; color: var(--blue); font-weight: 900; }
.summary-list { display: grid; gap: 12px; margin-bottom: 16px; }
.summary-block { border-top: 1px solid var(--line); padding-top: 12px; }
.summary-block:first-child { border-top: 0; padding-top: 0; }
.summary-block strong { display: block; margin-bottom: 4px; font-weight: 900; }
.summary-block p { margin: 0; color: var(--muted); line-height: 1.45; font-size: 14px; }
.summary-block.moq-alert { margin: 2px -6px 0; border-top: 0; border-radius: 14px; padding: 12px; background: #FFFF00; color: var(--ink); }
.summary-block.moq-alert p { color: var(--ink); font-weight: 900; }
.moq-basis { color: var(--orange); font-size: calc(1em - 2px); font-weight: 300; }
.summary-product-list { display: grid; gap: 7px; }
.summary-product-row { display: grid; grid-template-columns: 22px 1fr; gap: 7px; align-items: start; color: var(--muted); font-size: 14px; line-height: 1.35; }
.summary-product-row button { width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--orange); line-height: 18px; padding: 0; font-weight: 900; }
.primary-btn, .secondary-btn, .reset-btn { border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 900; }
.primary-btn { width: 100%; background: var(--blue); color: #fff; }
.primary-btn:hover { background: #0716b8; }
.reset-btn { width: 100%; margin-top: 10px; background: #fff; border: 1px solid var(--blue); color: var(--blue); }
.show-board-wrap { position: relative; }
.click-hint { position: absolute; right: 14px; bottom: calc(100% + 9px); z-index: 6; border: 1px solid var(--orange); border-radius: 999px; padding: 7px 12px; background: #fff; color: var(--orange); font-size: 12px; font-weight: 900; line-height: 1; box-shadow: 0 8px 18px rgba(253,100,0,.14); animation: clickBounce 1.05s ease-in-out infinite; pointer-events: none; }
.click-hint::after { content: ""; position: absolute; right: 18px; top: 100%; border: 6px solid transparent; border-top-color: #fff; filter: drop-shadow(0 1px 0 var(--orange)); }
@keyframes clickBounce { 0%, 100% { transform: translateY(0) scale(1); } 45% { transform: translateY(-8px) scale(1.06); } }

.secondary-btn { background: #fff; border: 1px solid var(--line); color: var(--blue); }
.action-row .orange-action { background: #fff; border: 1px solid var(--orange); color: var(--orange); }
.result-wrap { width: calc(var(--content-width) - var(--summary-width) - var(--layout-gap)); margin-left: calc((100vw - var(--content-width)) / 2); padding: 0 0 80px; }
.result-board { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 24px; box-shadow: var(--shadow); }
.board-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.board-head h2 { margin: 4px 0 0; color: var(--blue); font-size: 30px; font-weight: 900; letter-spacing: -.04em; }
.board-total { text-align: right; font-weight: 900; line-height: 1.45; }
.vat-note { color: var(--orange); font-size: calc(1em - 2px); font-weight: 500; }
.board-main { display: grid; gap: 18px; padding: 16px 0; }
.board-main.count-1, .board-main.count-2, .board-main.count-3, .board-main.count-4, .board-main.count-5, .board-main.count-6 { grid-template-columns: 26% 1fr; }
.board-main.count-7, .board-main.count-8, .board-main.count-9, .board-main.count-10 { grid-template-columns: 22% 1fr; }
.board-package, .board-product { align-self: start; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 8px; }
.board-package img, .board-product img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 16px; background: var(--soft); }
.board-package-stack { display: grid; gap: 10px; padding-right: 20px; border-right: 1px dashed #DDE2EE; }
.board-package-stack.package-count-2 { width: min(190px, 100%); justify-self: start; }
.board-package-stack.package-count-2 .board-package { padding: 10px; }
.board-package-stack.package-count-2 .board-package img { aspect-ratio: 1/1; object-fit: cover; }
.board-package-stack.package-count-2 .board-package h3 { font-size: 14px; }
.board-package h3, .board-product h3 { margin: 8px 4px 2px; font-size: 14px; font-weight: 900; }
.board-products { display: grid; align-content: start; align-items: start; gap: 8px; }
.board-products.cols-2 { grid-template-columns: repeat(2, 1fr); }
.board-products.cols-3 { grid-template-columns: repeat(3, 1fr); }
.board-products.cols-4 { grid-template-columns: repeat(4, 1fr); }
.board-products.cols-5 { grid-template-columns: repeat(5, 1fr); }
.board-footer { border-top: 1px solid var(--line); padding: 12px 150px 0 0; color: var(--muted); line-height: 1.5; }
.board-contact { position: absolute; right: 30px; bottom: 62px; color: #9A9DA8; font-size: 12px; font-weight: 300; line-height: 1.35; text-align: right; }
.board-watermark { position: absolute; right: 30px; bottom: 24px; width: 118px; height: auto; }
.action-row { display: flex; flex-wrap: nowrap; gap: 10px; margin: 16px 0 0; }
.action-row > * { flex: 1 1 0; width: auto; min-width: 0; white-space: nowrap; text-align: center; text-decoration: none; font-size: 16px; line-height: 1; padding: 13px 10px; border-radius: 14px; }
.action-row .action-link { display: inline-flex; align-items: center; justify-content: center; width: auto; }
.action-row .kakao-action { background: #FEE500; color: #1A1A1A; }
.tooltip-action { position: relative; }
.tooltip-action::after { content: attr(data-tooltip); position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%) translateY(4px); z-index: 5; width: max-content; max-width: 220px; border-radius: 999px; padding: 8px 11px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; opacity: 0; pointer-events: none; transition: .16s ease; box-shadow: 0 8px 18px rgba(0,0,0,.14); }
.tooltip-action::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%) translateY(4px); border: 6px solid transparent; border-top-color: var(--ink); opacity: 0; pointer-events: none; transition: .16s ease; }
.tooltip-action:hover::after, .tooltip-action:focus-visible::after, .tooltip-action:hover::before, .tooltip-action:focus-visible::before { opacity: 1; transform: translateX(-50%) translateY(0); }
.missing-product-cta { display: grid; place-items: center; gap: 8px; margin: 28px 0 0; padding: 18px 28px; background: transparent; color: var(--blue); text-align: center; }
.missing-product-cta strong { font-size: 30px; font-weight: 900; line-height: 1.25; }
.missing-product-cta span { font-size: 17px; font-weight: 700; line-height: 1.35; }
.hidden { display: none !important; }
.mobile-summary { display: none; }
@media (max-width: 980px) {
  .estimate-layout { display: block; width: 100%; margin: 0; }
  .app-shell, .result-wrap { width: 100%; margin-left: 0; padding-inline: 18px; }
  .summary-panel { display: none; margin-top: 0; }
  .mobile-summary { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10; }
  .mobile-summary button { width: 100%; border: 0; border-radius: 16px; padding: 16px; background: var(--blue); color: #fff; font-weight: 900; box-shadow: var(--shadow); }
  .mode-grid, .filter-row { grid-template-columns: 1fr; }
  .board-main, .board-main.count-1, .board-main.count-2, .board-main.count-3, .board-main.count-4, .board-main.count-5, .board-main.count-6, .board-main.count-7, .board-main.count-8, .board-main.count-9, .board-main.count-10 { grid-template-columns: 1fr; }
  .board-package-stack { padding-right: 0; border-right: 0; }
  .action-row { flex-wrap: wrap; }
  .action-row > * { flex-basis: calc(50% - 5px); }
  .missing-product-cta { padding: 22px 18px; }
  .missing-product-cta strong { font-size: 24px; }
  .missing-product-cta span { font-size: 15px; }
  .board-products.cols-4, .board-products.cols-5 { grid-template-columns: repeat(2, 1fr); }
}
