:root {
  --ink: #171717;
  --muted: #74706a;
  --line: #dedbd6;
  --bg: #f7f5f1;
  --paper: #fffdfa;
  --charcoal: #202326;
  --mint: #8db7aa;
  --coral: #d88672;
  --amber: #c4924c;
  --silver: #c9c9c7;
  --shadow: 0 18px 46px rgba(22, 22, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  color: #fff;
  background: #000;
  clip: auto;
  border-radius: 6px;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  background: rgba(255, 253, 250, 0.92);
  border-bottom: 1px solid rgba(23, 23, 23, 0.1);
  backdrop-filter: blur(16px);
}

.store-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 78px;
  padding: 0 clamp(16px, 3vw, 44px);
}

.nav-center {
  position: absolute;
  left: 50%;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  transform: translateX(-50%);
}

.category-group {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2vw, 34px);
  white-space: nowrap;
  color: #3a3732;
  font-size: 15px;
  font-weight: 600;
}

.category-group.left {
  justify-content: flex-end;
}

.category-group.right {
  justify-content: flex-start;
}

.category-group a,
.account-link {
  transition: color 160ms ease;
}

.category-group a:hover,
.account-link:hover {
  color: var(--coral);
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 58px;
}

.brand-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.account-link {
  color: #514d47;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-actions .account-link:nth-child(2) {
  margin-right: 12px;
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 50%;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.icon-button:hover {
  background: #fff;
  border-color: rgba(23, 23, 23, 0.24);
  transform: translateY(-1px);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.cart-count {
  position: absolute;
  right: -3px;
  top: -4px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  color: #fff;
  background: var(--coral);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.search-bar {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 0 clamp(16px, 3vw, 44px) 16px;
  background: rgba(255, 253, 250, 0.96);
}

.search-bar.is-open {
  display: flex;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-bar button,
.product-bottom button {
  height: 40px;
  padding: 0 16px;
  color: #fff;
  background: var(--charcoal);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.mobile-menu {
  display: none;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: clamp(460px, 68vh, 760px);
  overflow: hidden;
  background: #eee8df;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.05) 56%, rgba(0, 0, 0, 0.16));
  pointer-events: none;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide:nth-child(3) img {
  object-position: center 65%;
}

.slide-copy {
  position: absolute;
  z-index: 2;
  left: clamp(26px, 8vw, 128px);
  top: 50%;
  width: min(520px, calc(100% - 96px));
  color: #fff;
  transform: translateY(-50%);
}

.slide-copy.light {
  color: #fff;
}

.slide-copy.dark {
  color: #fff;
}

.slide-copy p {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.slide-copy h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: 0;
}

.shop-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 24px;
  padding: 0 18px;
  color: #fff;
  background: var(--coral);
  border-radius: 8px;
  font-weight: 800;
}

.slider-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 64px;
  padding: 0;
  color: #fff;
  background: rgba(23, 23, 23, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, transform 160ms ease;
}

.slider-arrow:hover {
  background: rgba(23, 23, 23, 0.68);
  transform: translateY(-50%) scale(1.02);
}

.slider-arrow svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.slider-arrow.prev {
  left: 22px;
}

.slider-arrow.next {
  right: 22px;
}

.slider-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 22px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 34px;
  height: 4px;
  padding: 0;
  background: rgba(255, 255, 255, 0.56);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.slider-dots button.active {
  background: #fff;
}

.quick-category {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 0;
  gap: 12px;
}

.quick-category a {
  min-height: 116px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 23, 23, 0.06);
}

.quick-category span,
.section-head p,
.store-band p,
.product-type {
  display: block;
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-category strong {
  font-size: 22px;
}

.store-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head h2,
.store-band h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  min-height: 390px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(23, 23, 23, 0.08);
}

.product-visual {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: #eee8df;
  border-radius: 8px;
}

.product-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 132px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.05) 24%, rgba(0, 0, 0, 0.14) 82%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  transform: translate(-50%, -50%);
}

.product-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 28px;
  width: 38px;
  height: 30px;
  background: rgba(18, 18, 18, 0.86);
  border-radius: 14px 14px 10px 10px;
  transform: translateX(-50%);
}

.product-visual.graphite {
  background: linear-gradient(135deg, #ddd6cc, #373c3f);
}

.product-visual.mint {
  background: linear-gradient(135deg, #e6f2ec, #7aaea1);
}

.product-visual.coral {
  background: linear-gradient(135deg, #f4d4c9, #d88672);
}

.product-visual.silver {
  background: linear-gradient(135deg, #f3f1ec, #b8b8b6);
}

.product-card h3 {
  margin: 0;
  font-size: 22px;
}

.product-desc {
  min-height: 48px;
  margin: 10px 0 18px;
  color: var(--muted);
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-bottom strong {
  font-size: 18px;
}

.store-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto 76px;
  width: min(1180px, calc(100% - 40px));
  padding: 34px;
  color: #fff;
  background: var(--charcoal);
  border-radius: 8px;
}

.store-band span {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.76);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer p {
  margin: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(216, 134, 114, 0.38);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .nav-center {
    left: clamp(24px, 37vw, 420px);
    transform: translateX(-42%);
  }
}

@media (max-width: 980px) {
  .store-nav {
    min-height: 68px;
  }

  .nav-center {
    left: 50%;
    grid-template-columns: auto;
    transform: translateX(-50%);
  }

  .category-group {
    display: none;
  }

  .brand-logo {
    width: 58px;
    height: 52px;
  }

  .brand-logo img {
    width: 50px;
    height: 50px;
  }

  .account-link {
    display: none;
  }

  .nav-actions .account-link:nth-child(2) {
    margin-right: 0;
  }

  .mobile-menu.is-open {
    position: fixed;
    inset: 68px 0 auto;
    z-index: 30;
    display: grid;
    gap: 0;
    padding: 10px 24px 22px;
    background: rgba(255, 253, 250, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .mobile-menu a {
    padding: 15px 0;
    border-bottom: 1px solid rgba(23, 23, 23, 0.08);
    font-weight: 700;
  }

  .hero-slider {
    height: clamp(420px, 62vh, 640px);
  }

  .slide-copy {
    width: min(460px, calc(100% - 88px));
  }

  .quick-category,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .store-nav {
    padding: 0 12px;
  }

  .brand-logo img {
    width: 44px;
    height: 44px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .hero-slider {
    height: 480px;
  }

  .slide-copy {
    left: 22px;
    top: auto;
    bottom: 72px;
    width: calc(100% - 44px);
    transform: none;
  }

  .slide-copy h1 {
    font-size: 34px;
  }

  .slider-arrow {
    width: 40px;
    height: 52px;
  }

  .slider-arrow.prev {
    left: 10px;
  }

  .slider-arrow.next {
    right: 10px;
  }

  .quick-category,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .quick-category,
  .store-section,
  .store-band,
  .footer {
    width: calc(100% - 28px);
  }

  .store-section {
    padding: 64px 0;
  }

  .store-band,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
