:root {
  color-scheme: light;
  --paper: #f8f5ed;
  --surface: #fffdf7;
  --ink: #261d16;
  --muted: #65594e;
  --line: #dfd7c8;
  --red: #9f3027;
  --deep-red: #78251e;
  --warm-white: #fff6e4;
  --serif: "Noto Serif KR", "Nanum Myeongjo", Batang, "AppleMyungjo", Georgia, serif;
  font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; word-break: keep-all; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--red); }
img { display: block; max-width: 100%; }
input, select, button, textarea { color: inherit; font: inherit; }
input, textarea, select { min-width: 0; width: 100%; padding: .65rem .8rem; border: 1px solid #bfb29f; background: var(--surface); border-radius: .3rem; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 2px solid #1f5e83; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { line-height: 1.23; letter-spacing: -.052em; }
h1 { font-family: var(--serif); font-size: clamp(2.15rem, 4.6vw, 4.5rem); }
h2 { font-size: clamp(1.42rem, 3vw, 2.1rem); }
h3 { line-height: 1.4; letter-spacing: -.034em; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 3; left: 1rem; top: 1rem; padding: .6rem; background: white; }
.shell { width: min(1180px, calc(100% - 4rem)); margin-inline: auto; }
.status-bar { text-align: center; padding: .39rem 1rem; font-size: .77rem; font-weight: 600; letter-spacing: .03em; background: #73281f; color: var(--warm-white); }
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; flex-shrink: 0; color: var(--ink); line-height: 1.03; text-decoration: none; }
.brand > span { color: var(--red); font-family: var(--serif); font-size: .84rem; letter-spacing: .12em; }
.brand strong { font-family: var(--serif); font-weight: 900; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.09em; margin-top: .32rem; }
.brand strong span { color: var(--red); margin-left: .13rem; }
.search { width: min(39%, 440px); position: relative; }
.search input { border-radius: 100px; padding: .68rem 3.1rem .68rem 1rem; background: var(--paper); font-size: .88rem; }
.search input::placeholder { color: var(--muted); }
.search button { position: absolute; top: 2px; right: .4rem; bottom: 2px; width: 38px; border: 0; background: transparent; }
.search-icon { display: inline-block; position: relative; width: 14px; height: 14px; border: 1.6px solid currentColor; border-radius: 100%; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: currentColor; transform: rotate(45deg); bottom: -2px; right: -4px; }
.user-links, .nav { display: flex; gap: 1.3rem; align-items: center; }
.user-links a, .nav a { text-decoration: none; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.counter { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .2rem; background: var(--red); color: white; border-radius: 100px; font-size: .7rem; }
.nav { border-top: 1px solid var(--line); justify-content: space-between; gap: .6rem; min-height: 3rem; padding: 0 .1rem; }
.nav a { padding: .7rem 0; }
.nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -2px var(--red); }
.hero { margin-top: 1.7rem; display: grid; grid-template-columns: .93fr 1.34fr; min-height: 434px; background: var(--red); color: var(--warm-white); overflow: hidden; border-radius: .4rem; }
.hero-copy { padding: clamp(2.1rem, 5vw, 4.6rem); padding-right: 1.2rem; align-self: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.7rem); }
.hero img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; object-position: 56% center; }
.hero-japanese { font-family: var(--serif); letter-spacing: .19em; color: #ffdbb4; font-size: .9rem; margin-bottom: 1rem; }
.hero-copy h1 + p { font-size: clamp(.95rem, 1.5vw, 1.15rem); margin: 1.4rem 0 1.65rem; }
.button { display: inline-flex; gap: .9rem; align-items: center; justify-content: center; padding: .59rem 1rem; min-height: 43px; border: 1px solid transparent; border-radius: .27rem; color: white; background: var(--red); text-decoration: none; font-weight: 700; font-size: .88rem; }
.button:hover:not(:disabled) { background: var(--deep-red); color: white; }
.button.light { color: var(--ink); background: var(--warm-white); }
.button.light:hover { background: white; color: var(--deep-red); }
.button.secondary { color: var(--deep-red); background: var(--surface); border-color: #cbb6a3; }
.button.secondary:hover:not(:disabled) { background: #f0e8dc; color: var(--deep-red); }
.section { margin-top: 2.65rem; margin-bottom: 3.3rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .95rem; }
.text-link { color: var(--deep-red); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.category-grid, .catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .95rem; }
.category { position: relative; min-height: 131px; padding: 1.05rem .95rem 1.1rem; text-decoration: none; overflow: hidden; border-radius: .35rem; border: 1px solid rgba(54, 38, 20, .1); }
.category:hover { color: var(--ink); border-color: #a75c44; }
.category-title, .category-description { position: relative; z-index: 1; display: block; }
.category-title { font-weight: 850; font-size: 1.14rem; }
.category-description { color: #4f453b; margin-top: .25rem; font-size: .77rem; max-width: 86%; }
.category-japanese { position: absolute; right: .23rem; bottom: -.45rem; line-height: 1; opacity: .22; color: #79614a; font: 900 3.7rem/1 var(--serif); }
.category-arrow { position: absolute; bottom: .4rem; left: 1rem; }
.pantry { background: #f0e0c9; color: #713c23; }
.snacks { background: #f2e1db; color: #8b3d36; }
.noodles { background: #f1e9d2; color: #79592c; }
.drinks { background: #e4e8d8; color: #4f673f; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: .36rem; overflow: hidden; min-width: 0; }
.product-visual { display: grid; aspect-ratio: 1.45; background: #f3eee5; text-decoration: none; overflow: hidden; }
.product-visual img { object-fit: contain; width: 100%; height: 100%; max-height: 480px; }
.product-fallback { display: grid; place-content: center; justify-items: center; text-align: center; gap: .25rem; padding: .9rem; }
.product-fallback > span { font: 700 clamp(2.1rem, 4.9vw, 4.15rem)/1 var(--serif); letter-spacing: -.12em; }
.product-fallback small { font-size: .7rem; letter-spacing: .06em; }
.product-copy { padding: .8rem .95rem 1rem; }
.product-copy h3 a { text-decoration: none; }
.product-brand, .product-japanese { color: var(--muted); font-size: .82rem; }
.product-japanese { margin-top: .25rem; overflow-wrap: anywhere; }
.product-price { margin-top: .47rem; font-size: .93rem; color: var(--deep-red); font-weight: 800; }
.product-copy .button { margin-top: .65rem; }
.inner { min-height: 42vh; }
.inner h1 { margin-bottom: 1rem; }
.inner h2 { margin: 1.2rem 0 .6rem; }
.breadcrumb { color: var(--muted); font-size: .82rem; margin-bottom: .85rem; }
.intro { color: var(--muted); margin-bottom: 1rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.3rem 0; }
.filter-row a { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 40px; text-decoration: none; font-size: .86rem; }
.filter-row a[aria-current="page"] { background: var(--red); color: white; border-color: var(--red); }
.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.3rem, 6vw, 5rem); }
.product-detail .product-visual { border-radius: .4rem; aspect-ratio: 1.15; }
.product-detail h1 { font-size: clamp(2rem, 4.2vw, 3.65rem); }
.product-detail .intro { margin-bottom: .55rem; }
.detail-price { color: var(--deep-red); font-size: 1.3rem; font-weight: 900; margin: .4rem 0 1rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: end; margin: 1.1rem 0; }
.detail-actions input { width: 5rem; }
.facts { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .7rem; margin: 1rem 0; }
.facts strong { display: inline-block; width: 3.5rem; }
.narrow { width: min(720px, calc(100% - 4rem)); }
.panel { background: var(--surface); padding: 1.25rem; border: 1px solid var(--line); border-radius: .4rem; margin-bottom: 1rem; min-width: 0; }
.panel p + p, .panel p + form { margin-top: .6rem; }
.panel h2:first-child { margin-top: 0; }
.empty { text-align: center; padding-block: 2.4rem; }
.empty a { margin-top: .8rem; }
.login-panel { max-width: 420px; }
.auth-form, .field-grid { display: grid; gap: .7rem; }
.auth-form { margin: 1rem 0 .4rem; }
.provider { display: block; width: 100%; min-height: 44px; font-weight: 750; border-radius: .28rem; padding: .5rem .75rem; border: 1px solid var(--line); background: white; }
.provider.line, .provider.naver { background: #08773b; color: white; border-color: #08773b; }
.provider.kakao { background: #fee500; color: #251d00; border-color: #e1cb00; }
label { font-size: .92rem; font-weight: 650; }
.field-grid label:not(.check) { display: grid; gap: .22rem; }
.field-grid button { justify-self: start; }
.check { display: flex; gap: .65rem; align-items: start; font-weight: 500; margin-block: .45rem; }
.check input { width: auto; margin-top: .29rem; }
.help { color: var(--muted); font-size: .87rem; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.notice { padding: .7rem 1rem; background: #f3e6d4; border-left: 3px solid var(--red); margin-top: 1rem; }
.feedback { position: fixed; bottom: 1rem; right: 1rem; z-index: 4; max-width: calc(100vw - 2rem); padding: .65rem 1rem; background: #32251c; color: white; border-radius: .3rem; }
.checkout-layout { display: grid; grid-template-columns: 1.2fr .8fr; align-items: start; gap: 1rem; }
.cart-line, .total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); padding: .45rem 0; }
.cart-line input { width: 4.15rem; }
.cart-line button { border: 0; background: transparent; color: var(--deep-red); text-decoration: underline; padding: .5rem .1rem; }
.cart-total { margin-bottom: 1rem; }
.order-list { margin: 0 0 1rem; list-style: none; padding: 0; display: grid; gap: .5rem; }
.order-list a { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .85rem; padding: .8rem 1rem; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: .3rem; }
.order-list small { color: var(--muted); overflow-wrap: anywhere; }
.admin-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.admin-summary strong { display: block; }
.admin-nav, .table-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.table-tools { justify-content: space-between; }
.table-tools label { flex: 0 1 320px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; background: var(--surface); font-size: .88rem; }
th, td { padding: .6rem .75rem; border: 1px solid var(--line); }
th { background: #f0e6d7; white-space: nowrap; }
.research { display: grid; grid-template-columns: auto 1fr; gap: .4rem .7rem; font-size: .9rem; }
.research dt { font-weight: 700; }
.research dd { margin: 0; }
.footer { padding: 2rem 0 2.65rem; background: #eee6d8; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: .85fr 1.05fr 1.85fr .75fr; gap: 1.1rem; color: #514438; font-size: .8rem; }
.footer-inner p { margin-block: .22rem; }
.footer-business { overflow-wrap: anywhere; }
.footer-nav { display: flex; flex-direction: column; gap: .25rem; }
@media (max-width: 800px) {
  .shell, .narrow { width: calc(100% - 2rem); }
  .masthead-inner { flex-wrap: wrap; gap: .75rem; padding: .9rem 0; }
  .search { order: 3; width: 100%; }
  .nav { overflow: auto; gap: 1.3rem; }
  .hero { min-height: 355px; }
  .hero-copy { padding: 1.65rem 1.05rem 1.65rem 1.4rem; }
  .hero h1 { font-size: clamp(2.05rem, 6vw, 3.5rem); }
  .desktop-break { display: none; }
  .category-grid, .catalog-grid, .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 530px) {
  .hero { grid-template-columns: 1fr; }
  .hero img { height: 240px; object-position: center 53%; }
  .hero-copy { padding: 1.4rem; }
  .hero-japanese { margin-bottom: .62rem; }
  .hero-copy h1 + p { margin-block: .8rem 1rem; }
  .user-links { gap: .55rem; flex-wrap: wrap; }
  .user-links a { font-size: .77rem; }
  .section { margin-block: 1.85rem 2.3rem; }
  .category-grid, .catalog-grid { gap: .65rem; }
  .category { min-height: 122px; padding: .78rem; }
  .checkout-layout, .product-detail { grid-template-columns: 1fr; }
  .product-copy { padding: .72rem; }
  .admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-business { grid-column: 1 / -1; }
  .footer-nav { grid-column: 1 / -1; flex-wrap: wrap; flex-direction: row; gap: .7rem; }
}
