:root {
  --ink: #122019;
  --deep: #07110d;
  --leaf: #2f6f4f;
  --aloe: #89b95f;
  --mint: #dcefd4;
  --paper: #f7f6f2;
  --cream: #f7f6f2;
  --coral: #d56f57;
  --line: rgba(18, 32, 25, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  letter-spacing: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

.product-header {
  align-items: center;
  background: rgba(247, 246, 242, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 28px;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(20px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.product-logo {
  align-items: center;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 58px;
}

.product-logo img {
  filter: brightness(0) saturate(100%) invert(12%) sepia(20%) saturate(799%) hue-rotate(89deg) brightness(94%) contrast(93%);
  height: 42px;
  object-fit: contain;
  width: 42px;
}

.product-header nav {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  font-size: 14px;
  font-weight: 800;
}

.quick-actions {
  bottom: clamp(22px, 4vw, 42px);
  display: grid;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: clamp(18px, 3.6vw, 44px);
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 24;
}

body.quick-always .quick-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.quick-action {
  align-items: center;
  background: rgba(247, 246, 242, 0.68);
  border: 1px solid rgba(18, 32, 25, 0.14);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
  color: var(--ink);
  display: inline-flex;
  height: 54px;
  justify-content: center;
  width: 54px;
  backdrop-filter: blur(18px);
}

.quick-action svg {
  fill: none;
  height: 25px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 25px;
}

.product-header nav a {
  opacity: 0.58;
}

.product-header nav a.is-active,
.product-header nav a:hover {
  opacity: 1;
}

.instagram-link {
  align-items: center;
  color: inherit;
  display: inline-flex;
  flex: 0 0 auto;
  height: 32px;
  justify-content: center;
  margin-left: auto;
  opacity: 0.72;
  transition: opacity 180ms ease, transform 180ms ease;
  width: 32px;
}

.instagram-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.instagram-link svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

.instagram-link svg circle:last-child {
  fill: currentColor;
  stroke: none;
}

.language-menu {
  position: relative;
}

.language-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.language-toggle::after {
  content: "⌄";
  font-size: 11px;
  margin-left: 6px;
}

.language-panel {
  background: rgba(247, 246, 242, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(15, 31, 24, 0.14);
  display: grid;
  gap: 2px;
  min-width: 152px;
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: calc(100% + 18px);
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.language-menu.is-open .language-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-panel button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 9px 10px;
  text-align: left;
}

.language-panel button:hover,
.language-panel button.is-active {
  background: rgba(47, 111, 79, 0.12);
}

.product-menu-button {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: none;
  height: 42px;
  padding: 0;
  width: 42px;
}

.product-menu-button span {
  background: currentColor;
  display: block;
  height: 1px;
  margin: 6px auto;
  width: 22px;
}

.store-banner {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 17, 13, 0.34) 0%, rgba(7, 17, 13, 0.08) 38%, rgba(7, 17, 13, 0) 66%),
    url("assets/store-coming-soon-banner.png") center / cover;
  display: flex;
  height: min(48svh, 420px);
  justify-content: flex-start;
  margin: 112px auto 56px;
  max-width: 1480px;
  overflow: hidden;
  padding: clamp(34px, 6vw, 86px);
  width: min(92vw, 1480px);
}

.store-banner p {
  color: #fff;
  font-size: clamp(42px, 6vw, 92px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}

.store-banner + .category-section {
  margin-top: 0;
}

.category-section {
  display: grid;
  gap: clamp(18px, 2.4vw, 34px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 112px auto 78px;
  max-width: 1480px;
  width: min(92vw, 1480px);
}

.category-card {
  aspect-ratio: 3 / 4.25;
  background: #dde6d5;
  color: #fff;
  display: block;
  overflow: hidden;
  position: relative;
}

.category-card::after {
  background: linear-gradient(180deg, rgba(7, 17, 13, 0.18), rgba(7, 17, 13, 0.18) 38%, rgba(7, 17, 13, 0.56));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.category-card img {
  height: 100%;
  object-fit: cover;
  width: 100%;
  transition: transform 380ms ease;
}

.category-card:hover img {
  transform: scale(1.045);
}

.category-card div {
  left: clamp(24px, 3vw, 52px);
  position: absolute;
  top: clamp(24px, 3vw, 52px);
  z-index: 2;
}

.category-card h2 {
  font-size: clamp(44px, 5vw, 82px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 24px;
}

.category-card p {
  font-size: clamp(17px, 1.8vw, 26px);
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}

.category-card-face img {
  filter: saturate(0.9);
}

body.is-category-store .store-banner,
body.is-category-store .detail-footer {
  display: none;
}

body.is-category-store {
  overflow: hidden;
}

body.is-category-store .category-section {
  gap: clamp(10px, 1.2vw, 18px);
  margin: 104px auto 24px;
}

body.is-category-store .category-card {
  aspect-ratio: 16 / 4.7;
}

body.is-category-store .category-card div {
  left: clamp(18px, 2vw, 32px);
  top: 50%;
  transform: translateY(-50%);
}

body.is-category-store .category-card h2 {
  font-size: clamp(24px, 2.8vw, 42px);
  margin-bottom: 10px;
}

body.is-category-store .category-card p {
  font-size: clamp(12px, 1.1vw, 16px);
}

body.is-category-store .category-card-hair img,
body.is-category-store .category-card-body img,
body.is-category-store .category-card-face img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
}

body.is-category-store .catalog-section {
  padding: 0 clamp(22px, 5vw, 76px) 24px;
}

.detail-hero {
  align-items: center;
  background:
    radial-gradient(circle at 80% 30%, rgba(137, 185, 95, 0.24), transparent 34%),
    linear-gradient(120deg, #0b1711, #315f43 58%, #e3efd7);
  color: #fff;
  display: grid;
  gap: clamp(36px, 7vw, 108px);
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.7fr);
  min-height: 100svh;
  overflow: hidden;
  padding: 120px clamp(48px, 7vw, 128px) 142px;
  position: relative;
}

.detail-copy {
  max-width: 720px;
}

.eyebrow {
  color: var(--mint);
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.detail-copy h1 {
  font-size: clamp(54px, 5.2vw, 96px);
  line-height: 1;
  margin: 0 0 28px;
}

.detail-copy p:not(.eyebrow):not(.product-meta) {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.78;
  margin: 0;
}

.product-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  margin: 34px 0 0;
  padding-top: 18px;
}

.detail-visual {
  align-self: end;
  min-height: 520px;
  position: relative;
}

.detail-visual img {
  filter: drop-shadow(0 34px 42px rgba(0, 0, 0, 0.28));
  height: min(70vh, 650px);
  margin: 0 auto;
  object-fit: contain;
  width: 100%;
}

.product-arrow {
  align-items: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 44px;
  height: 68px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 68px;
  z-index: 5;
  backdrop-filter: blur(10px);
}

.product-arrow-prev {
  left: 28px;
}

.product-arrow-next {
  right: 28px;
}

.product-thumbs {
  align-items: center;
  bottom: 28px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  left: clamp(48px, 7vw, 128px);
  position: absolute;
  right: clamp(48px, 7vw, 128px);
  z-index: 4;
}

.product-thumbs button {
  align-items: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: 44px 1fr;
  min-height: 74px;
  padding: 10px;
  text-align: left;
  backdrop-filter: blur(10px);
}

.product-thumbs button.is-active {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.56);
  color: #fff;
}

.product-thumbs img {
  height: 54px;
  object-fit: contain;
  width: 44px;
}

.product-thumbs span {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.catalog-section {
  background: var(--cream);
  padding: clamp(72px, 8vw, 112px) clamp(22px, 5vw, 76px);
}

.catalog-head {
  margin: 0 auto;
  max-width: 1120px;
  text-align: center;
}

.catalog-head h2 {
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.1;
  margin: 0 0 34px;
}

.catalog-layout {
  margin: 0 auto;
  max-width: 1480px;
}

.catalog-category-panel {
  display: none;
}

.catalog-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  max-width: 1120px;
}

.catalog-section.is-category-view .catalog-head {
  display: none;
}

.catalog-section.is-category-view .catalog-layout {
  align-items: start;
  display: grid;
  gap: clamp(20px, 2.3vw, 36px);
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.8fr);
}

.catalog-section.is-category-view .catalog-category-panel {
  background: #aebbaa;
  color: #fff;
  display: block;
  height: calc(100svh - 214px);
  min-height: 520px;
  overflow: hidden;
  padding: clamp(30px, 4vw, 64px);
  position: sticky;
  top: 96px;
}

.catalog-section.is-category-view .catalog-category-panel::after {
  background: linear-gradient(180deg, rgba(9, 16, 12, 0.14), rgba(9, 16, 12, 0.2) 42%, rgba(9, 16, 12, 0.5));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.category-panel-copy {
  position: relative;
  z-index: 2;
}

.category-panel-copy h2 {
  font-size: clamp(64px, 7vw, 118px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 0 clamp(24px, 3vw, 44px);
}

.category-panel-copy p {
  font-size: clamp(23px, 2.4vw, 42px);
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.catalog-category-panel img {
  height: 100%;
  inset: 0;
  left: 0;
  max-width: none;
  object-fit: cover;
  object-position: center;
  position: absolute;
  transform: none;
  width: 100%;
  z-index: 0;
}

.catalog-section.is-category-view .catalog-grid {
  align-content: start;
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 340px));
  justify-content: start;
  margin: 0;
  max-width: none;
  max-height: calc(100svh - 214px);
  overflow-y: auto;
  padding: 0 10px 96px 0;
}

.catalog-section.is-category-view .catalog-card {
  align-items: flex-start;
  min-height: 430px;
  overflow: hidden;
  padding: 18px 22px 24px;
  width: 100%;
}

.catalog-section.is-category-view .catalog-category {
  display: inline-flex;
}

.catalog-section.is-category-view .catalog-card img {
  height: clamp(170px, 16vw, 230px);
  margin: 0 auto 16px;
}

.catalog-section.is-category-view .catalog-card h3 {
  font-size: 15px;
  width: 100%;
}

.catalog-section.is-category-view .catalog-card p,
.catalog-section.is-category-view .buy-button {
  font-size: 13px;
}

.catalog-section.is-category-view .catalog-card p {
  width: 100%;
}

.catalog-section.is-category-view .buy-button {
  align-self: stretch;
  margin-top: 12px;
  min-height: 38px;
  padding-inline: 14px;
  width: 100%;
}

.catalog-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 22px;
}

.catalog-category {
  background: rgba(47, 111, 79, 0.1);
  border-radius: 999px;
  color: var(--leaf);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 14px;
  padding: 7px 12px;
}

.catalog-card img {
  height: 248px;
  margin: 0 auto 14px;
  object-fit: contain;
  width: 100%;
}

.catalog-card h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 8px;
  text-align: center;
}

.catalog-card.product-strongMist h3 {
  font-size: clamp(15px, 1.1vw, 18px);
  white-space: nowrap;
}

.catalog-card.product-hairColor h3 {
  font-size: clamp(15px, 1.1vw, 18px);
  white-space: nowrap;
}

.catalog-card.product-aloeHairColor h3 {
  font-size: clamp(15px, 1.1vw, 18px);
  white-space: nowrap;
}

.catalog-card.product-limeMintSet h3 {
  font-size: clamp(15px, 1.1vw, 18px);
  white-space: nowrap;
}

.catalog-card.product-bodySet h3 {
  font-size: clamp(15px, 1.1vw, 18px);
  white-space: nowrap;
}

.catalog-card p {
  color: rgba(18, 32, 25, 0.62);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
  margin: 0;
  text-align: center;
}

.buy-button {
  align-items: center;
  border: 1px solid rgba(18, 32, 25, 0.22);
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  margin-top: auto;
  min-height: 44px;
  padding: 0 18px;
  width: 100%;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.buy-button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.buy-button.is-disabled {
  background: rgba(18, 32, 25, 0.08);
  border-color: rgba(18, 32, 25, 0.12);
  color: rgba(18, 32, 25, 0.46);
  cursor: default;
  pointer-events: none;
  transform: none;
}

.catalog-empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-column: 1 / -1;
  padding: clamp(36px, 6vw, 72px);
  text-align: center;
}

.catalog-empty h3 {
  font-size: clamp(26px, 3vw, 42px);
  margin: 0 0 16px;
}

.catalog-empty p {
  color: rgba(18, 32, 25, 0.62);
  font-weight: 800;
  line-height: 1.7;
  margin: 0;
}

.detail-footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  padding: 34px clamp(22px, 5vw, 76px);
}

.detail-footer p {
  margin: 4px 0;
}

@media (max-width: 980px) {
  .product-header nav {
    background: transparent;
    border-radius: 0;
    color: inherit;
    display: flex;
    opacity: 1;
    pointer-events: auto;
    position: static;
    transform: none;
  }

  .instagram-link {
    margin-left: auto;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .category-section {
    grid-template-columns: 1fr;
  }

  .category-card {
    aspect-ratio: 16 / 10;
  }

  .detail-visual {
    min-height: 360px;
  }

  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-thumbs {
    grid-template-columns: repeat(5, minmax(86px, 1fr));
    left: 24px;
    right: 24px;
  }

  .product-thumbs button {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-section.is-category-view .catalog-layout {
    display: block;
  }

  .catalog-section.is-category-view .catalog-category-panel {
    margin: 0 auto 22px;
    min-height: 560px;
    position: relative;
    top: auto;
  }

  .catalog-section.is-category-view .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 320px));
    justify-content: center;
    margin-inline: auto;
    width: 100%;
  }

  .catalog-section.is-category-view .catalog-card {
    flex-basis: min(300px, 76vw);
    min-height: 520px;
  }
}

@media (max-width: 560px) {
  .product-header {
    gap: 8px;
    padding-inline: 12px;
  }

  .product-logo {
    flex: 0 0 42px;
    width: 42px;
  }

  .product-logo img {
    height: 36px;
    width: 36px;
  }

  .product-header nav {
    flex: 1 1 auto;
    gap: 12px;
    justify-content: center;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .product-header nav::-webkit-scrollbar {
    display: none;
  }

  .product-header nav a {
    flex: 0 0 auto;
    font-size: 12px;
    white-space: nowrap;
  }

  .instagram-link {
    height: 28px;
    width: 28px;
  }

  .language-toggle {
    font-size: 11px;
    white-space: nowrap;
  }

  .detail-hero {
    padding-top: 108px;
  }

  .store-banner {
    height: 260px;
    margin-top: 96px;
  }

  .category-card {
    aspect-ratio: 4 / 5;
  }

  .catalog-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-section.is-category-view .catalog-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    padding-right: 0;
  }

  .catalog-card,
  .catalog-section.is-category-view .catalog-card {
    min-height: 360px;
    padding: 12px 10px 14px;
  }

  .catalog-card img,
  .catalog-section.is-category-view .catalog-card img {
    height: 150px;
    margin-bottom: 12px;
  }

  .catalog-category {
    font-size: 10px;
    margin-bottom: 10px;
    padding: 5px 9px;
  }

  .catalog-card h3,
  .catalog-section.is-category-view .catalog-card h3,
  .catalog-card.product-strongMist h3,
  .catalog-card.product-hairColor h3,
  .catalog-card.product-aloeHairColor h3,
  .catalog-card.product-limeMintSet h3,
  .catalog-card.product-bodySet h3 {
    font-size: 13px;
    white-space: normal;
  }

  .catalog-card p,
  .catalog-section.is-category-view .catalog-card p {
    font-size: 11px;
  }

  .buy-button,
  .catalog-section.is-category-view .buy-button {
    font-size: 12px;
    min-height: 38px;
    padding-inline: 8px;
  }

  .product-thumbs {
    display: flex;
    overflow-x: auto;
  }

  .product-thumbs button {
    flex: 0 0 132px;
  }
}
