:root {
  --blue: #3182f6;
  --blue-dark: #1b64da;
  --ink: #191f28;
  --muted: #6b7684;
  --soft: #f2f4f6;
  --line: #e5e8eb;
  --red: #f04452;
  font-family:
    Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui,
    sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #fff;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  background: #fff;
  padding: 12px 16px;
  z-index: 99;
  border: 2px solid var(--blue);
  border-radius: 10px;
}
.skip-link:focus {
  top: 12px;
}
.loading {
  min-height: 70vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #f1f3f5;
  z-index: 20;
}
.header-inner {
  max-width: 1240px;
  height: 86px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 38px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 22px;
  letter-spacing: -0.8px;
}
.logo > span {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
}
.search-form {
  height: 48px;
  max-width: 560px;
  flex: 1;
  display: flex;
  align-items: center;
  border-radius: 14px;
  background: var(--soft);
  padding: 0 8px 0 16px;
  color: #8b95a1;
}
.search-form input {
  border: 0;
  background: transparent;
  outline: 0;
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  color: var(--ink);
  font-size: 15px;
}
.search-form button {
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #4e5968;
  font-weight: 700;
  padding: 9px 14px;
}
.header-inner > p {
  font-size: 12px;
  color: #8b95a1;
  white-space: nowrap;
}
.category-nav {
  border-bottom: 1px solid #f1f3f5;
  background: #fff;
}
.category-nav > div {
  max-width: 1240px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  gap: 28px;
  overflow: auto;
  scrollbar-width: none;
}
.category-nav button {
  border: 0;
  background: none;
  padding: 17px 0;
  color: #6b7684;
  font-weight: 650;
  white-space: nowrap;
  position: relative;
}
.category-nav button.active {
  color: var(--ink);
  font-weight: 800;
}
.category-nav button.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
}
.category-nav span {
  font-size: 10px;
  color: #adb5bd;
  margin-left: 3px;
}
.main {
  max-width: 1240px;
  margin: auto;
  padding: 32px 24px 80px;
}
.hero {
  min-height: 310px;
  border-radius: 30px;
  background: linear-gradient(135deg, #e9f3ff 0%, #f4f8ff 58%, #e8f7f5 100%);
  padding: 52px 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}
.hero-label {
  font-size: 12px;
  letter-spacing: 2.3px;
  color: var(--blue);
  font-weight: 850;
}
.hero h1 {
  font-size: 43px;
  line-height: 1.23;
  letter-spacing: -2.2px;
  margin: 13px 0 18px;
}
.hero p {
  font-size: 15px;
  line-height: 1.75;
  color: #52606d;
  margin: 0;
}
.hero-visual {
  width: 320px;
  height: 210px;
  position: relative;
}
.hero-visual span {
  position: absolute;
  padding: 20px 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 50px #3d6f9d16;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 1.5px;
  color: #4e5968;
}
.hero-visual span:nth-child(1) {
  top: 5px;
  right: 0;
  transform: rotate(5deg);
}
.hero-visual span:nth-child(2) {
  top: 82px;
  left: 5px;
  transform: rotate(-5deg);
  color: var(--blue);
}
.hero-visual span:nth-child(3) {
  bottom: 4px;
  right: 35px;
  transform: rotate(3deg);
  color: #16a085;
}
.catalog-section {
  padding-top: 58px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-head h2 {
  font-size: 26px;
  letter-spacing: -1.1px;
  margin: 0;
}
.section-head p {
  font-size: 13px;
  color: #8b95a1;
  margin: 8px 0 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 34px 18px;
}
.product-card {
  min-width: 0;
}
.product-image {
  display: block;
  aspect-ratio: 1/1;
  border-radius: 18px;
  background: var(--soft);
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  transition: transform 0.24s;
}
.product-card:hover .product-image img {
  transform: scale(1.025);
}
.image-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #adb5bd;
  font-size: 12px;
  background: var(--soft);
}
.product-copy {
  padding: 14px 4px 0;
}
.product-meta {
  font-size: 11px;
  color: #8b95a1;
  margin: 0 0 6px;
}
.product-copy h3 {
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.3px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}
.product-package {
  font-size: 12px;
  color: #8b95a1;
  margin: 5px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 11px;
  flex-wrap: wrap;
}
.price-row .discount {
  color: var(--red);
  font-size: 17px;
  font-weight: 800;
}
.price-row strong {
  font-size: 19px;
  letter-spacing: -0.6px;
}
.price-row del {
  font-size: 11px;
  color: #adb5bd;
}
.shipping {
  font-size: 11px;
  color: #8b95a1;
  margin: 6px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.catalog-toolbar label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8b95a1;
  font-size: 12px;
}
.catalog-toolbar select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 9px 34px 9px 12px;
  color: #333d4b;
}
.load-more {
  display: block;
  margin: 45px auto 0;
  width: min(340px, 100%);
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-weight: 750;
  color: #4e5968;
}
.load-more:hover {
  background: var(--soft);
}
.empty {
  text-align: center;
  padding: 90px 20px;
  background: #f8f9fa;
  border-radius: 24px;
}
.empty h2 {
  margin: 0 0 10px;
}
.empty p {
  color: var(--muted);
}
.empty button,
.error-page a {
  display: inline-flex;
  margin-top: 20px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
}
footer {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 30px;
  font-size: 11px;
  color: #8b95a1;
  line-height: 1.8;
}
footer b {
  font-size: 16px;
  color: #333d4b;
}
footer p {
  margin: 4px 0;
}
footer nav {
  display: flex;
  gap: 14px;
}
footer a {
  color: #4e5968;
  font-weight: 650;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #8b95a1;
  margin-bottom: 24px;
}
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 68px;
}
.gallery-main {
  aspect-ratio: 1/1;
  border-radius: 24px;
  background: var(--soft);
  overflow: hidden;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.thumbs button {
  width: 72px;
  height: 72px;
  border: 2px solid transparent;
  border-radius: 13px;
  background: #fff;
  padding: 0;
  overflow: hidden;
}
.thumbs button.active {
  border-color: var(--blue);
}
.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail-info {
  padding-top: 18px;
}
.category-pill {
  display: inline-flex;
  border-radius: 100px;
  background: #edf6ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  padding: 7px 10px;
}
.detail-brand {
  font-size: 13px;
  color: #6b7684;
  margin: 25px 0 7px;
}
.detail-info h1 {
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: -1.2px;
  margin: 0;
}
.detail-package {
  color: #8b95a1;
  font-size: 14px;
  margin: 10px 0 0;
}
.detail-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.detail-price .discount {
  font-size: 25px;
  color: var(--red);
  font-weight: 850;
}
.detail-price strong {
  font-size: 31px;
}
.detail-price del {
  font-size: 13px;
  color: #adb5bd;
}
.info-line {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid #f1f3f5;
  font-size: 13px;
}
.info-line span {
  color: #8b95a1;
  width: 64px;
}
.info-line b {
  font-weight: 650;
}
.buy-button {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 15px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.buy-button:hover {
  background: var(--blue-dark);
}
.buy-button:disabled {
  opacity: 0.7;
  cursor: wait;
}
.buy-note {
  text-align: center;
  color: #8b95a1;
  font-size: 11px;
  line-height: 1.6;
}
.detail-description {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  padding-top: 38px;
}
.detail-description h2 {
  font-size: 23px;
}
.detail-description p {
  white-space: pre-wrap;
  line-height: 1.9;
  color: #4e5968;
}
.mobile-buy {
  display: none;
}
dialog {
  width: min(430px, calc(100% - 32px));
  border: 0;
  border-radius: 24px;
  padding: 34px;
  text-align: center;
  box-shadow: 0 24px 80px #0003;
}
dialog::backdrop {
  background: #0007;
}
.modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  border: 0;
  background: none;
  font-size: 25px;
  color: #8b95a1;
}
.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  background: #fff0f1;
  color: var(--red);
  font-size: 24px;
  font-weight: 800;
}
.modal-icon.neutral {
  background: #edf6ff;
  color: var(--blue);
}
dialog h2 {
  font-size: 22px;
  margin: 0;
}
dialog p {
  color: #6b7684;
  line-height: 1.7;
}
.similar-button {
  display: flex;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 13px;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-weight: 750;
  margin-top: 22px;
}
.error-page {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.error-page p {
  color: var(--muted);
}
@media (max-width: 1050px) {
  .header-inner > p {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero-visual {
    width: 250px;
  }
  .detail {
    gap: 38px;
  }
}
@media (max-width: 760px) {
  .site-header {
    position: relative;
  }
  .header-inner {
    height: auto;
    padding: 17px 16px 14px;
    display: grid;
    grid-template-columns: 1fr;
  }
  .logo {
    font-size: 20px;
  }
  .logo > span {
    width: 34px;
    height: 34px;
  }
  .search-form {
    height: 46px;
    max-width: none;
  }
  .search-form button {
    display: none;
  }
  .category-nav > div {
    padding: 0 16px;
    gap: 22px;
  }
  .category-nav button {
    padding: 14px 0;
    font-size: 13px;
  }
  .main {
    padding: 22px 15px 110px;
  }
  .hero {
    min-height: 225px;
    padding: 30px 24px;
    border-radius: 22px;
  }
  .hero h1 {
    font-size: 31px;
  }
  .hero p {
    font-size: 12px;
  }
  .hero p br {
    display: none;
  }
  .hero-visual {
    display: none;
  }
  .catalog-section {
    padding-top: 40px;
  }
  .section-head {
    align-items: flex-start;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 11px;
  }
  .product-image {
    border-radius: 14px;
  }
  .product-copy {
    padding: 11px 2px 0;
  }
  .product-copy h3 {
    font-size: 13px;
    min-height: 38px;
  }
  .product-package,
  .shipping {
    font-size: 10px;
  }
  .price-row {
    gap: 4px;
    margin-top: 8px;
  }
  .price-row .discount {
    font-size: 15px;
  }
  .price-row strong {
    font-size: 17px;
  }
  .catalog-toolbar {
    display: flex;
    gap: 14px;
  }
  .catalog-toolbar label {
    width: 100%;
    justify-content: space-between;
  }
  .catalog-toolbar select {
    flex: 1;
  }
  .popular-section .product-grid .product-card:nth-child(n + 5) {
    display: none;
  }
  footer {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 55px;
  }
  footer nav {
    order: 2;
  }
  .detail-main {
    padding-bottom: 130px;
  }
  .breadcrumb {
    margin-bottom: 16px;
  }
  .detail {
    display: block;
  }
  .gallery-main {
    border-radius: 18px;
  }
  .detail-info {
    padding-top: 24px;
  }
  .detail-info h1 {
    font-size: 23px;
  }
  .detail-price .discount {
    font-size: 21px;
  }
  .detail-price strong {
    font-size: 26px;
  }
  .detail-info > .buy-button,
  .detail-info > .buy-note {
    display: none;
  }
  .mobile-buy {
    position: fixed;
    display: flex;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 11px 15px calc(11px + env(safe-area-inset-bottom));
    gap: 12px;
    align-items: center;
  }
  .mobile-buy span {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 10px;
    color: #8b95a1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-buy b {
    font-size: 17px;
    color: var(--ink);
  }
  .mobile-buy button {
    border: 0;
    border-radius: 13px;
    background: var(--blue);
    color: #fff;
    height: 50px;
    padding: 0 20px;
    font-weight: 800;
  }
  .detail-description {
    margin-top: 45px;
  }
  .related {
    padding-top: 45px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
