:root {
  --green: #087238;
  --red: #d7282c;
  --text: #222;
  --line: #ddd;
  --content: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: #fff; color: var(--text); font: 14px/1.5 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', Arial, sans-serif; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button:hover, a:hover { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.utility { max-width: var(--content); margin: auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 0; color: #777; font-size: 12px; }
.utility > div { display: flex; gap: 18px; }
header { max-width: var(--content); margin: auto; min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 45px; padding: 9px 0 19px; }
.logo { flex-shrink: 0; }
.symbol { display: block; width: 130px; height: 65px; background: transparent; }
.symbol img { display: block; width: 100%; height: 100%; object-fit: contain; }
.search-wrap { width: 440px; }
#search { display: flex; height: 44px; border: 2px solid var(--green); background: #fff; border-radius: 2px; }
#search input { width: 100%; min-width: 0; border: 0; background: none; padding: 10px 14px; font-size: 14px; }
#search button { display: flex; align-items: center; padding: 0 13px; color: var(--green); }
#search button svg { width: 23px; height: 23px; }
.search-hints { display: flex; align-items: center; gap: 15px; margin-top: 7px; font-size: 12px; color: #777; }
.search-hints > span { color: #999; }
.search-hints button { font-size: 12px; }
.header-actions { display: flex; gap: 25px; }
.header-actions button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; }
.header-actions svg { width: 25px; height: 25px; }
.cart-icon { display: flex; position: relative; }
.cart-icon b { position: absolute; right: -9px; top: -7px; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 50%; background: var(--red); color: #fff; font: bold 11px/17px Arial, sans-serif; }
.nav-wrap { border-top: 1px solid #eee; border-bottom: 1px solid #ccc; }
nav { max-width: var(--content); margin: auto; display: flex; align-items: stretch; justify-content: space-between; height: 50px; gap: 24px; font-size: 14px; font-weight: 700; }
nav > button, nav > a { display: flex; align-items: center; white-space: nowrap; }
nav .all-menu { gap: 10px; width: 150px; justify-content: center; flex-shrink: 0; background: var(--green); color: #fff; }
nav .all-menu svg { width: 19px; height: 19px; }
nav .active:not(.all-menu) { color: var(--green); }
nav > a { color: #555; font-weight: 400; padding-left: 20px; border-left: 1px solid #eee; }
main { max-width: var(--content); margin: auto; }
.campaign { margin-top: 20px; }
.hero { position: relative; height: 350px; background: #f4f3f0; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-copy { position: relative; padding: 55px 50px; max-width: 600px; }
.hero-copy > span { display: block; color: #555; font-size: 15px; }
h1 { font-size: 37px; line-height: 1.4; font-weight: 700; letter-spacing: -1px; margin: 12px 0 15px; }
.hero-copy p { font-size: 15px; line-height: 1.7; color: #555; margin: 0 0 22px; }
.hero-link { display: inline-block; padding: 9px 17px; background: #fff; border: 1px solid #aaa; font-size: 13px; border-radius: 2px; }
.slide-controls { position: absolute; bottom: 17px; right: 20px; display: flex; align-items: center; gap: 15px; background: #ffffffed; border: 1px solid #ddd; padding: 4px 9px; font: 12px Arial, sans-serif; }
.slide-controls button { font-size: 21px; padding: 0 5px; line-height: 1.2; }
.slide-controls b { font-weight: 400; }
.campaign-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #ddd; border-top: 0; }
.campaign-tabs button { font-size: 13px; padding: 12px 15px; background: #fafafa; color: #777; border-right: 1px solid #ddd; }
.campaign-tabs button:last-child { border-right: 0; }
.campaign-tabs button.active { color: #222; background: #fff; font-weight: 700; box-shadow: inset 0 -2px var(--green); }
.products { padding: 35px 0 40px; scroll-margin-top: 15px; }
.section-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
h2 { margin: 0; font-size: 23px; line-height: 1.5; font-weight: 700; letter-spacing: -.5px; }
#result-count { color: #888; font-size: 12px; }
#sort { margin-left: auto; border: 1px solid #ccc; border-radius: 0; background: #fff; padding: 6px 8px; font-size: 12px; }
.tabs { display: flex; border-bottom: 1px solid #aaa; margin-bottom: 25px; }
.tabs button { padding: 10px 26px; font-size: 13px; border: 1px solid #ddd; border-bottom: 0; border-right: 0; color: #666; }
.tabs button:last-child { border-right: 1px solid #ddd; }
.tabs button.active { background: #f5f5f5; color: #222; font-weight: 700; }
#grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 34px 24px; }
.product { min-width: 0; }
.product-image { position: relative; aspect-ratio: 1; background: #fff; border: 1px solid #ececec; }
.product-image > button:first-child { display: block; width: 100%; height: 100%; }
.product-image img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product-image > button:first-child:hover { outline: 1px solid #aaa; }
.heart { position: absolute; bottom: 8px; right: 8px; display: grid; place-items: center; width: 27px; height: 27px; background: #fff; color: #888; }
.heart svg { width: 19px; height: 19px; }
.heart.saved { color: var(--red); }
.heart.saved svg { fill: var(--red); }
.product h3 { font-size: 14px; font-weight: 400; line-height: 1.55; margin: 11px 0 5px; }
.product h3 button { text-align: left; }
.meta { font-size: 12px; color: #888; margin: 0 0 7px; }
.price { display: block; font: bold 20px/1.5 Arial, 'Malgun Gothic', sans-serif; color: #222; }
.price small { font: 13px 'Malgun Gothic', '맑은 고딕', sans-serif; margin-left: 2px; color: #555; }
.add { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; width: 100%; border: 1px solid #ddd; padding: 6px 10px; font-size: 12px; color: #666; border-radius: 2px; }
.add svg { width: 16px; height: 16px; }
.add:hover { border-color: #888; color: #222; background: #fafafa; }
.sample { color: #999; font-size: 11px; margin: 23px 0 0; line-height: 1.7; }
.business { display: flex; justify-content: space-between; gap: 25px; border: 1px solid #ddd; min-height: 210px; margin-bottom: 35px; }
.business > div { padding: 29px 32px; flex: 1; }
.business h2 { font-size: 22px; }
.business p { font-size: 13px; line-height: 1.8; color: #777; margin: 11px 0 18px; }
.business button { padding: 8px 15px; background: var(--green); color: #fff; border-radius: 2px; font-size: 12px; }
.business > img { width: 34%; object-fit: cover; object-position: right; }
.notice { display: flex; gap: 27px; align-items: center; border-top: 1px solid #ccc; border-bottom: 1px solid #e5e5e5; padding: 15px 0; font-size: 13px; }
.notice strong { font-weight: 700; }
.notice > span { color: #666; }
.notice button { margin-left: auto; font-size: 12px; color: #999; }
.service { display: grid; grid-template-columns: repeat(3, 1fr); padding: 25px 0 30px; }
.service > div { padding: 0 25px; }
.service > div:first-child { padding-left: 0; }
.service > div + div { border-left: 1px solid #eee; }
.service h3 { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.service p { font-size: 12px; color: #888; line-height: 1.8; margin: 0 0 13px; }
.service button { border: 1px solid #ddd; font-size: 12px; padding: 5px 10px; color: #777; }
footer { background: #f7f7f7; border-top: 1px solid #ddd; }
.footer-inner { max-width: var(--content); padding: 20px 0 28px; margin: auto; }
.footer-links { display: flex; gap: 22px; font-size: 12px; color: #777; }
.footer-body { display: flex; align-items: center; gap: 25px; margin-top: 20px; }
.footer-body .symbol { width: 90px; height: 45px; flex-shrink: 0; }
.footer-body p { color: #888; font-size: 11px; margin: 3px 0; }
.footer-separator { color: #ccc; margin: 0 5px; }
.footer-body small { color: #999; font: 11px Arial, sans-serif; }
.preview-label { margin-left: auto; color: #999; font-size: 11px; }
.quick-menu { position: fixed; right: 20px; top: 42%; background: #fff; width: 65px; border: 1px solid #ddd; }
.quick-menu button { display: flex; flex-direction: column; align-items: center; gap: 5px; border-bottom: 1px solid #eee; padding: 12px 0; width: 100%; font-size: 11px; color: #777; }
.quick-menu svg { width: 20px; height: 20px; }
.quick-menu a { display: block; text-align: center; padding: 10px; font: 11px Arial, sans-serif; color: #777; }
dialog { border: 1px solid #ccc; border-radius: 3px; width: min(550px, calc(100% - 32px)); padding: 30px; }
dialog::backdrop { background: #0006; }
.close { position: absolute; right: 12px; top: 7px; font: 26px Arial, sans-serif; color: #777; }
#detail-content img { width: 100%; height: 250px; object-fit: contain; }
#detail-content h2 { font-size: 21px; margin: 18px 0 10px; }
#detail-content p, #info-text { font-size: 13px; line-height: 1.8; color: #777; white-space: pre-line; }
.quantity { display: flex; align-items: center; gap: 12px; font-size: 13px; margin: 20px 0; }
.quantity input { width: 70px; border: 1px solid #ccc; padding: 7px; }
.primary { display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: #fff; padding: 11px 22px; border-radius: 2px; font-size: 13px; }
.primary:hover { color: #fff; background: #065d2d; }
.primary:disabled { opacity: .45; cursor: default; }
.cart-row { display: flex; justify-content: space-between; gap: 15px; padding: 18px 0; border-bottom: 1px solid #eee; font-size: 13px; }
.cart-row strong { display: block; margin-bottom: 8px; }
.cart-row button { padding: 5px 8px; }
#cart-total { margin: 22px 0; font-size: 16px; font-weight: 700; }
.empty { grid-column: 1/-1; text-align: center; color: #777; padding: 45px 20px; font-size: 14px; }
#toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); background: #333; color: #fff; padding: 12px 20px; font-size: 13px; opacity: 0; pointer-events: none; z-index: 10; }
#toast.show { opacity: 1; }
@media (max-width: 1390px) {
  .quick-menu { display: none; }
  .utility, header, nav, main, .footer-inner { margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 950px) {
  header { gap: 28px; }
  .header-actions { gap: 16px; }
  nav { overflow-x: auto; justify-content: flex-start; gap: 28px; font-size: 13px; }
  nav > button:not(.all-menu) { flex-shrink: 0; }
  nav > a { flex-shrink: 0; }
  .search-wrap { width: 380px; }
  #grid { grid-template-columns: repeat(4, 1fr); gap: 28px 18px; }
  .hero-copy { padding: 42px 32px; }
  h1 { font-size: 32px; }
  .hero { height: 325px; }
}
@media (max-width: 700px) {
  .utility, header, nav, main, .footer-inner { margin-left: 16px; margin-right: 16px; }
  .utility { font-size: 11px; padding: 8px 0; }
  .utility > span { display: none; }
  .utility > div { margin-left: auto; gap: 14px; }
  .utility a:last-child { display: none; }
  header { flex-wrap: wrap; min-height: 0; padding: 3px 0 13px; gap: 5px; }
  .symbol { width: 105px; height: 52px; }
  .header-actions { margin-left: auto; gap: 20px; }
  .header-actions button { font-size: 10px; gap: 4px; }
  .header-actions svg { width: 22px; height: 22px; }
  .search-wrap { order: 3; width: 100%; margin-top: 10px; }
  #search { height: 41px; }
  #search input { font-size: 13px; }
  .search-hints { font-size: 11px; gap: 14px; }
  .search-hints button { font-size: 11px; }
  nav { height: 45px; font-size: 12px; gap: 25px; }
  nav .all-menu { width: 113px; font-size: 12px; }
  .campaign { margin-top: 15px; }
  .hero { height: 365px; }
  .hero-photo { top: auto; height: 175px; }
  .hero-photo img { object-position: right; }
  .hero-copy { padding: 21px 22px; }
  .hero-copy > span { font-size: 12px; }
  h1 { font-size: 26px; letter-spacing: -.5px; margin: 5px 0 7px; }
  .hero-copy p { font-size: 12px; margin: 0 0 11px; line-height: 1.65; }
  .hero-link { font-size: 11px; padding: 6px 11px; }
  .slide-controls { bottom: 10px; right: 10px; gap: 11px; font-size: 11px; }
  .campaign-tabs button { font-size: 10px; padding: 10px 4px; }
  .products { padding-top: 25px; }
  .section-title { gap: 9px; margin-bottom: 15px; }
  h2 { font-size: 20px; }
  #result-count { font-size: 11px; }
  #sort { font-size: 11px; padding: 5px; }
  .tabs { overflow-x: auto; margin-bottom: 19px; }
  .tabs button { padding: 8px 14px; white-space: nowrap; font-size: 11px; }
  #grid { grid-template-columns: repeat(2, 1fr); gap: 27px 16px; }
  .product h3 { font-size: 13px; }
  .product-image img { padding: 7px; }
  .meta { font-size: 11px; }
  .price { font-size: 19px; }
  .add { font-size: 11px; }
  .sample { font-size: 10px; }
  .business { min-height: 0; gap: 0; margin-bottom: 25px; }
  .business > div { padding: 22px; }
  .business h2 { font-size: 19px; }
  .business p { font-size: 12px; margin: 10px 0 15px; }
  .business > img { display: none; }
  .notice { padding: 12px 0; font-size: 11px; gap: 16px; }
  .notice button { font-size: 10px; }
  .service { grid-template-columns: 1fr; padding: 10px 0 20px; }
  .service > div, .service > div:first-child { padding: 15px 0; }
  .service > div + div { border-left: 0; border-top: 1px solid #eee; }
  .service h3 { font-size: 15px; }
  .footer-body { gap: 18px; align-items: flex-start; }
  .footer-body .symbol { width: 70px; height: 35px; }
  .footer-body p { font-size: 10px; }
  .footer-body small { font-size: 10px; }
  .preview-label { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Supplied catalog photos: viewport crops preserve the source files. */
.catalog-photo { display:block; width:100%; background-repeat:no-repeat; background-color:#fafafa; }
.product-image { --photo-height:200px; height:var(--photo-height); aspect-ratio:auto; overflow:hidden; }
.product-image > button:first-child { display:flex; align-items:center; justify-content:center; }
.product-image .catalog-photo { width:min(100%, calc(var(--photo-height) * var(--photo-ratio))); height:auto; }
#detail-content > .catalog-photo { max-width:480px; margin:0 auto; }
.tabs { flex-wrap:wrap; gap:0; }
.tabs button { padding:10px 18px; }
nav { overflow-x:auto; }
nav button, nav a { flex-shrink:0; white-space:nowrap; }
@media(max-width:700px){.tabs button{padding:9px 12px}.tabs{overflow:visible}.product-image{--photo-height:160px}}
.temporary-price { display:inline-block; margin-left:7px; color:#888; font-size:11px; }
#business-help, #service-business, .primary, .hero-link { font-weight:700; }
[hidden] { display:none !important; }
.home-selections { padding-top:38px; }
.selection-section { margin-bottom:48px; }
.selection-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px; }
.selection-heading p { color:#777; font-size:13px; margin:5px 0 0; }
.track-actions,.event-controls { display:flex; align-items:center; gap:12px; }
.track-actions button,.event-controls button { border:1px solid #ddd; width:32px; height:32px; font:24px Arial; }
.product-track { display:flex; gap:24px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:thin; padding:2px 1px 16px; }
.product-track .product { flex:0 0 calc((100% - 96px)/5); scroll-snap-align:start; }
.home-all { display:flex; justify-content:center; gap:18px; padding-bottom:35px; }
.home-all button { border:1px solid #bbb; padding:10px 22px; font-weight:700; }
.hero-photo { left:55%; display:flex; justify-content:center; align-items:center; padding:20px; }
.hero-photo .catalog-photo { max-width:380px; }
.hero { background:#f6f5f0; }
.events { margin:36px 0 48px; }
#event-track { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.event-banner { flex:0 0 100%; min-width:0; height:210px; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:25px 45px; text-align:left; scroll-snap-align:start; }
.event-green { background:#edf2e9; }.event-brown{background:#f2ebe2}.event-red{background:#f7ece9}
.event-banner small { font-size:13px; color:#555; }
.event-banner strong { display:block; font-size:28px; margin:8px 0 14px; }
.event-banner em { font-size:13px; font-style:normal; }
.event-banner > .catalog-photo { width:210px; flex-shrink:0; }
@media(max-width:700px){
 .home-selections{padding-top:26px}.selection-section{margin-bottom:30px}
 .selection-heading h2{font-size:21px}.selection-heading p{font-size:12px}
 .product-track {gap:14px; padding-right:20px;}
 .product-track .product {flex-basis:68%; max-width:245px;}
 .hero-photo {left:0;top:auto;bottom:0;height:180px;padding:8px;width:100%;}
 .hero-photo .catalog-photo {width:160px;}
 .home-all{gap:8px}.home-all button{font-size:12px;padding:10px 14px}
 .event-banner{height:190px;padding:18px;gap:12px}
 .event-banner strong{font-size:20px;line-height:1.5}.event-banner > .catalog-photo{width:110px}
 .events .selection-heading{align-items:flex-start}.events .selection-heading p{max-width:210px;font-size:11px}
}
