:root {
  --ink: #1a1a1a;
  --muted: #8b8b8b;
  --footer: #e5e5e5;
  --wine: #574c4b;
  --shell: 1545px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Poppins, "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; font: inherit; }
.ui-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.page-shell { width: calc(100% - 120px); max-width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; padding: 10px 14px; background: #111; color: #fff; }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 20; background: #fff; }
.utility-bar {
  height: 74px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 22px;
  padding-bottom: 16px;
  color: #6f6f6f;
  font-size: 12px;
}
.utility-bar a:hover, .utility-bar a:focus-visible { color: #000; }
.brand-row { height: 140px; display: grid; grid-template-columns: minmax(260px, 1fr) auto 190px; align-items: center; gap: 45px; }
.brand img { width: 400px; height: auto; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 3vw, 55px); white-space: nowrap; font-size: 16px; }
.primary-nav a { position: relative; padding-block: 12px; }
.primary-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 4px; height: 1px; background: #111; transition: .2s ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { left: 0; right: 0; }
.quick-nav { display: flex; justify-content: flex-end; gap: 24px; font-size: 30px; line-height: 1; }
.quick-nav a { display: grid; place-items: center; width: 38px; height: 38px; }
.mobile-topbar, .mobile-categories, .mobile-drawer { display: none; }

.hero { position: relative; overflow: hidden; }
.hero-track { position: relative; aspect-ratio: 1680 / 712; background: #eee; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide picture, .hero-slide img { width: 100%; height: 100%; }
.hero-slide img { object-fit: cover; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 28px; height: 28px; border: 0; border-bottom: 1px solid rgba(255,255,255,.6); background: transparent; color: rgba(255,255,255,.75); cursor: pointer; }
.hero-dots button.is-active { border-color: #fff; color: #fff; font-weight: 700; }

.products { padding-block: 130px 115px; }
.products h1 { margin: 0 0 44px; font-size: 34px; font-weight: 400; line-height: 1.2; }
.product-scroller { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.product-card { min-width: 0; }
.product-card a { display: block; }
.product-card img { width: 100%; aspect-ratio: 546 / 680; object-fit: cover; }
.product-card h2 { margin: 24px 0 4px; font-size: 20px; font-weight: 500; }
.product-card p { margin: 0; color: #9a9a9a; font-size: 13px; }
.product-card a:hover img { filter: brightness(.96); }

.custom-order { padding: 75px 30px 80px; background: var(--wine); color: #fff; text-align: center; }
.custom-order h2 { margin: 0 0 22px; font-size: 28px; font-weight: 400; }
.custom-order p { margin: 0; color: rgba(255,255,255,.75); font-size: 16px; }
.backup-note { margin-top: 46px; padding: 18px 22px; border: 1px solid #dedede; color: #777; display: flex; gap: 22px; align-items: baseline; }
.backup-note b { flex: none; color: #333; font-size: 12px; letter-spacing: .06em; }
.backup-note p { margin: 0; }
.backup-note a { text-decoration: underline; text-underline-offset: 3px; }

.site-footer { margin-top: 135px; padding: 115px 0 80px; background: var(--footer); }
.footer-shell { position: relative; }
.footer-brand img { width: 400px; }
.footer-links { position: absolute; top: 20px; right: 0; display: flex; gap: 34px; }
.footer-grid { margin-top: 65px; display: grid; grid-template-columns: .9fr 1.5fr; gap: 90px; }
.footer-grid section { min-width: 0; }
.footer-grid h2 { margin: 0 0 18px; font-size: 15px; }
.footer-grid dl, .footer-grid p { margin: 0; font-size: 13px; }
.footer-grid dl div { margin-bottom: 14px; }
.footer-grid dt { font-weight: 700; }
.footer-grid dd { margin: 2px 0 0; }
.payment-title { margin-top: 32px !important; }
.company-info { text-align: right; }
.company-info p { margin-bottom: 10px; }
.sns-title { margin-top: 35px !important; }
.sns-links { display: flex; justify-content: flex-end; gap: 12px; }
.sns-links a { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #b6b6b6; border-radius: 50%; color: #969696; font-size: 11px; }
.copyright { margin: 40px 0 0; text-align: right; color: #b6b6b6; font-size: 11px; }
.mobile-bottom { display: none; }

@media (max-width: 1500px) {
  .page-shell { width: calc(100% - 100px); }
  .brand-row { grid-template-columns: minmax(220px, 1fr) auto 145px; gap: 30px; }
  .brand img, .footer-brand img { width: 300px; }
  .primary-nav { gap: 34px; font-size: 14px; }
}

@media (max-width: 1050px) {
  .primary-nav { gap: 20px; font-size: 13px; }
  .quick-nav { gap: 12px; }
  .products { padding-top: 90px; }
}

@media (max-width: 767px) {
  body { padding-bottom: 58px; font-size: 12px; overflow-x: hidden; }
  .page-shell { width: 100%; max-width: none; }
  .utility-bar, .brand-row { display: none; }
  .mobile-topbar { height: 62px; display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; border-bottom: 1px solid #f1f1f1; }
  .icon-button { width: 50px; height: 50px; display: grid; place-items: center; border: 0; background: transparent; font-size: 24px; cursor: pointer; }
  .mobile-logo { justify-self: center; width: 145px; }
  .mobile-categories { height: 48px; display: flex; align-items: center; gap: 26px; padding-inline: 14px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid #f2f2f2; white-space: nowrap; }
  .mobile-categories::-webkit-scrollbar { display: none; }
  .mobile-categories a { flex: none; font-size: 12px; }
  .mobile-drawer { position: fixed; inset: 0 auto 0 0; z-index: 100; width: min(82vw, 330px); padding: 22px; background: #fff; box-shadow: 10px 0 30px rgba(0,0,0,.16); }
  .mobile-drawer[hidden] { display: none; }
  .mobile-drawer:not([hidden]) { display: block; }
  .drawer-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid #ddd; }
  .drawer-head button { width: 38px; height: 38px; border: 0; background: transparent; font-size: 28px; }
  .mobile-drawer > a { display: block; padding: 16px 2px; border-bottom: 1px solid #eee; font-size: 14px; }

  .hero-track { aspect-ratio: 720 / 536; }
  .hero-dots { bottom: 10px; }
  .hero-dots button { width: 24px; height: 24px; font-size: 10px; }

  .products { padding: 52px 0 58px; }
  .products h1 { margin: 0 0 22px; padding-inline: 15px; font-size: 21px; }
  .product-scroller { display: flex; gap: 12px; overflow-x: auto; padding: 0 15px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .product-scroller::-webkit-scrollbar { display: none; }
  .product-card { flex: 0 0 78vw; max-width: 310px; scroll-snap-align: start; }
  .product-card h2 { margin: 15px 0 3px; font-size: 15px; }
  .product-card p { font-size: 11px; }

  .custom-order { width: calc(100% - 30px); padding: 40px 15px 42px; }
  .custom-order h2 { margin-bottom: 13px; font-size: 19px; }
  .custom-order p { font-size: 12px; }
  .backup-note { width: calc(100% - 30px); margin-top: 30px; padding: 15px; display: block; }
  .backup-note p { margin-top: 7px; font-size: 11px; }

  .site-footer { margin-top: 50px; padding: 48px 15px 58px; }
  .footer-shell { width: 100%; }
  .footer-brand img { width: 160px; }
  .footer-links { position: static; margin-top: 34px; display: flex; flex-wrap: wrap; gap: 9px 20px; font-size: 10px; }
  .footer-grid { margin-top: 34px; display: flex; flex-direction: column-reverse; gap: 42px; }
  .footer-grid h2 { font-size: 13px; margin-bottom: 14px; }
  .footer-grid dl, .footer-grid p { font-size: 10px; }
  .company-info { text-align: left; }
  .sns-links { justify-content: flex-start; }
  .copyright { margin-top: 38px; text-align: left; font-size: 9px; line-height: 1.5; }
  .mobile-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: 58px; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.97); border-top: 1px solid #ddd; box-shadow: 0 -4px 18px rgba(0,0,0,.08); }
  .mobile-bottom a, .mobile-bottom button { min-width: 0; display: grid; place-items: center; border: 0; background: transparent; font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
}
