:root {
  color-scheme: light;
  scrollbar-gutter: stable;
  --heading: #17251d;
  --brand-green: #03c75a;
  --accent: #08783f;
  --ink: #26322a;
  --muted: #58665d;
  --line: #e3ebe5;
  --ivory: #f3f6f3;
  --wash: #e4f7eb;
  --paper: #fff;
  --gutter: clamp(24px, 4vw, 52px);
  --width: 1160px;
  --content-width: min(calc(100% - 2 * var(--gutter)), var(--width));
  font-family: var(--duremarket-font, "Pretendard Variable", sans-serif);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

.dm-native-chrome *, .dm-native-chrome *::before, .dm-native-chrome *::after { box-sizing: border-box; }
.dm-native-chrome :is(a, button, input) { font: inherit; }
.dm-native-chrome a { text-decoration: none; }
.dm-native-chrome button { cursor: pointer; }
.dm-native-chrome svg { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.dm-native-chrome :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dm-native-chrome [hidden] { display: none !important; }
.dm-native-chrome .primary-nav a, .dm-native-chrome .section-nav a { outline-offset: -2px; }

.wrap {
  width: var(--content-width);
  margin-inline: auto;
}

html:has(.site-head) {
  --site-head-default-height: 127px;
  scroll-padding-block-start: calc(var(--site-head-height, var(--site-head-default-height)) + 10px);
}

/* Let the native header stick within the page while notices scroll with the content. */
.dm-native > .dm-native-chrome:not(.dm-native-tail) { display: contents; }

.site-head {
  position: sticky;
  z-index: 10;
  inset-block-start: 0;
  flex: none;
  background: var(--paper);
}

.header-row {
  display: grid;
  grid-template-areas: "brand primary search actions";
  grid-template-columns: auto minmax(105px, 1fr) minmax(230px, 356px) auto;
  gap: clamp(14px, 2.7vw, 34px);
  align-items: center;
  min-height: 73px;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  gap: 9px;
  flex: 0 0 auto;
  align-items: center;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}

.brand-emblem { display: block; flex: 0 0 auto; width: 46px; height: 38px; object-fit: contain; }
.brand-name { font-size: 25px; font-weight: 850; letter-spacing: -.075em; }

.primary-nav {
  grid-area: primary;
  display: flex;
  gap: clamp(17px, 2.1vw, 27px);
  align-items: center;
  align-self: stretch;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-inline: 2px;
  color: var(--muted);
  font-family: var(--duremarket-font);
  font-size: 17px;
  font-weight: 650;
  white-space: nowrap;
}

.primary-nav a:hover, .primary-nav a[aria-current='page'] { color: var(--accent); }
.primary-nav a[aria-current='page'] { font-weight: 800; }

.search-form {
  grid-area: search;
  display: grid;
  grid-template-areas: "input submit";
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--brand-green);
  border-radius: 8px;
  background: var(--paper);
}

.search-form:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.search-form button svg { width: 21px; height: 21px; }

.search-form input {
  grid-area: input;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: inherit;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}

.search-form input:focus-visible { outline: 0; }
.search-form input::placeholder { color: #66756b; opacity: 1; }

.search-form button {
  grid-area: submit;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--accent);
}

.search-form button:hover { color: #065b30; }
.search-form button:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }

.header-actions {
  grid-area: actions;
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--ink);
}

.header-actions a, .header-actions button {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.header-actions svg { width: 24px; height: 24px; }
.header-actions :is(a, button):hover { border-radius: 8px; background: #ecf8ef; color: var(--accent); }
.header-row > .mobile-menu-toggle,
.header-actions .mobile-search-toggle,
.mobile-section-nav { display: none; }

.section-frame { position: relative; border-block: 1px solid var(--line); }

.section-row {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.8vw, 36px);
}

.section-row > .category-menu { padding-inline-end: clamp(13px, 1.7vw, 22px); border-inline-end: 1px solid var(--line); }

.section-nav {
  display: flex;
  align-items: stretch;
  gap: clamp(18px, 2.5vw, 32px);
  min-width: 0;
  min-height: 49px;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-nav a {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.section-nav a:hover, .section-nav a[aria-current] { color: var(--accent); }
.section-nav a[aria-current] { font-weight: 800; }
.section-nav a[aria-current]::after {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--brand-green);
  content: '';
}

.footer {
  --footer-text: #edfff3;
  --footer-strong: #fff;
  --footer-line: #4c9870;
  color: var(--footer-text);
  background: var(--accent, #08783f);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px clamp(24px, 5vw, 64px);
  padding-block: 34px 30px;
  font-size: 13px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--footer-strong);
  line-height: 1.15;
}

.footer-brand .brand-emblem { width: 43px; height: 35px; }
.footer-brand-name { font-size: 20px; font-weight: 850; letter-spacing: -.065em; }

.footer-business-name, .footer-business-details {
  display: flex;
  flex-wrap: wrap;
  column-gap: 14px;
  row-gap: 3px;
  line-height: 1.55;
}

.footer-business-name { margin: 14px 0 5px; }
.footer-business-name b { color: var(--footer-strong); font-weight: 650; }
.footer-business-details { margin: 0; }
.footer-business-details > div { display: flex; gap: 5px; }
.footer-business-details dd { margin: 0; }
.footer-copyright { grid-column: 1 / -1; margin: 0; color: var(--footer-text); font-size: 12px; }

.footer-heading {
  display: block;
  margin: 0 0 9px;
  color: var(--footer-strong);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.4;
}

.footer-links {
  display: grid;
  justify-items: start;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links :is(a, .legal-policy-trigger) {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  color: var(--footer-text);
  line-height: 1.45;
}

.footer-links :is(a, .legal-policy-trigger):hover { color: var(--footer-strong); text-decoration: underline; text-underline-offset: 3px; }
.footer-links .legal-policy-trigger { color: var(--footer-strong); }
.footer-links :focus-visible { outline-color: var(--footer-strong); }
.mobile-dock { display: none; }

.mobile-menu:not([open]) { display: none; }
:is(html, body):has(.mobile-menu[open]) { overflow: hidden; }
.mobile-menu {
  position: fixed;
  inset: 0 auto 0 0;
  box-sizing: border-box;
  width: min(86vw, 380px);
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 8px 0 32px rgb(23 39 29 / .12);
}
.mobile-menu[open] { display: flex; flex-direction: column; }
.mobile-menu::backdrop { background: rgb(12 26 18 / .48); }
.mobile-menu svg { flex: 0 0 auto; width: 20px; height: 20px; }
.mobile-menu a { color: inherit; text-decoration: none; }
.mobile-menu :focus-visible { outline-offset: -2px; }
.mobile-drawer-head {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  padding: calc(9px + env(safe-area-inset-top)) 14px 9px max(18px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
}
.mobile-menu .mobile-drawer-brand {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--heading);
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -.07em;
}
.mobile-drawer-brand img { display: block; width: 39px; height: 34px; object-fit: contain; }
.mobile-drawer-head form { margin: 0; }
.mobile-drawer-close {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--heading);
  background: var(--ivory);
}
.mobile-drawer-scroll {
  flex: 1;
  min-height: 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow: auto;
  overscroll-behavior: contain;
}
.mobile-drawer-account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mobile-drawer-account-actions[hidden] { display: none; }
.mobile-drawer-account-actions a {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--heading);
  font-size: 14px;
  font-weight: 720;
}
.mobile-drawer-account-actions .mobile-drawer-account-primary {
  border-color: var(--accent);
  color: var(--paper);
  background: var(--accent);
}
.mobile-drawer-account-actions svg { width: 16px; height: 16px; }
.mobile-drawer-navigation { margin-top: 16px; border-top: 1px solid var(--line); }
.mobile-drawer-navigation > :is(a, details) { border-bottom: 1px solid var(--line); }
.mobile-drawer-row,
.mobile-drawer-categories > a,
.mobile-drawer-department > summary {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  line-height: 1.4;
  cursor: pointer;
}
.mobile-drawer-row { min-height: 49px; padding: 8px 7px; font-size: 16px; font-weight: 760; }
.mobile-drawer-row > svg:last-child { width: 14px; height: 14px; margin-inline-start: auto; color: var(--muted); }
.mobile-drawer-section[open] > summary > svg:last-child { transform: rotate(90deg); }
.mobile-menu summary { list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-drawer-submenu, .mobile-drawer-categories { margin: 0 0 10px; padding: 4px 8px; border-radius: 8px; background: #f5f8f6; }
.mobile-drawer-submenu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mobile-drawer-submenu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}
.mobile-drawer-categories > a, .mobile-drawer-department > summary {
  min-height: 44px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 690;
}
.mobile-drawer-categories svg { width: 17px; height: 17px; color: var(--accent); }
.mobile-drawer-department > summary::after {
  width: 7px;
  height: 7px;
  margin-inline: auto 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  content: "";
}
.mobile-drawer-department[open] > summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.mobile-drawer-department .mobile-drawer-submenu { margin: 0 4px 5px; padding: 4px; background: var(--paper); }
.mobile-drawer-navigation :is(a, summary):hover { color: var(--accent); }
.mobile-drawer-navigation :is(a, summary):active { background: var(--wash); }

body[data-page='shop'] .shortcut .shortcut-art { border-radius: 17px; }

.result-description { margin-block: 8px 16px; color: var(--muted); font-size: 14px; }
.empty-link { grid-column: 1 / -1; justify-self: start; padding-block: 4px; color: var(--accent); font-size: 14px; font-weight: 750; }
.empty-link:hover { text-decoration: underline; }

@media (max-width: 890px) {
  .header-row { gap: 16px; min-height: 65px; }
  .brand-name { font-size: 22px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  html:has(.site-head) { --site-head-default-height: 100px; }

  .header-row {
    grid-template-areas: "menu brand actions" "search search search";
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: 54px auto;
    gap: 0;
    min-height: auto;
  }

  .header-row .brand { justify-self: center; gap: 7px; }
  .brand-emblem { width: 36px; height: 30px; }
  .brand-name { font-size: 20px; }

  .site-head .primary-nav { display: none; }

  .header-row > .mobile-menu-toggle {
    grid-area: menu;
    display: grid;
    width: 44px;
    height: 44px;
    margin-inline-start: -8px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
  }
  .header-row > .mobile-menu-toggle svg { width: 22px; height: 22px; }

  .site-head[data-header-ready]:not([data-mobile-search-open]) .search-form { display: none; }
  .search-form { margin-block: 0 8px; }
  .search-form input { font-size: 16px; }
  .search-form input::placeholder { font-size: 14px; }
  .header-actions { justify-self: end; gap: 0; margin-inline-end: -8px; }
  .header-actions a, .header-actions button { min-width: 44px; min-height: 44px; }
  .header-actions svg { width: 22px; height: 22px; }
  .header-actions :is(a, button):hover { background: transparent; }
  .header-actions .account-action, .header-actions [aria-label="찜 목록"] { display: none; }
  .site-head[data-header-ready] .mobile-search-toggle { display: inline-flex; }
  .mobile-search-toggle > span { display: inline-flex; }
  .mobile-search-toggle[aria-expanded="false"] .mobile-search-close-icon,
  .mobile-search-toggle[aria-expanded="true"] .mobile-search-open-icon { display: none; }

  .section-row > :is(.category-menu, .section-nav) { display: none; }
  .mobile-section-nav {
    display: flex;
    flex: 1 1 auto;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding-inline: clamp(2px, 2vw, 14px);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .mobile-section-nav a {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 44px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 680;
    white-space: nowrap;
  }
  .mobile-section-nav a[aria-current] { color: var(--accent); font-weight: 780; }
  .mobile-section-nav a[aria-current]::after {
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: var(--brand-green);
    content: "";
  }
  .mobile-section-nav a:focus-visible { outline-offset: -2px; }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    padding-block: 24px 30px;
  }

  .footer-identity { grid-column: 1 / -1; padding-bottom: 15px; border-bottom: 1px solid var(--footer-line); }
  .footer-brand .brand-emblem { width: 37px; height: 31px; }
  .footer-brand-name { font-size: 19px; }
  .footer-links :is(a, .legal-policy-trigger) { min-height: 32px; }

  .mobile-dock {
    position: fixed;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: calc(62px + env(safe-area-inset-bottom));
    padding: 4px 8px env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 -3px 19px rgb(14 48 41 / .045);
  }

  .mobile-dock :is(a, button) {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    min-width: 0;
    min-height: 53px;
    padding: 0 2px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.3;
    text-align: center;
  }

  .mobile-dock svg { width: 24px; height: 24px; }
  .mobile-dock :is(a, button):hover, .mobile-dock :is([aria-current], [aria-expanded="true"]) { color: var(--accent); }
  .mobile-dock :is([aria-current], [aria-expanded="true"]) { font-weight: 800; }
  .mobile-dock :focus-visible { outline-offset: -3px; }

}

@media (max-width: 370px) {
  .header-row .brand { gap: 5px; }
  .brand-emblem { width: 28px; height: 25px; }
  .brand-name { font-size: 17px; }
  .header-actions a, .header-actions button { min-width: 40px; }
  .mobile-section-nav { gap: 8px; padding-inline: 2px; }
  .mobile-section-nav a { font-size: 14px; }
}

