:root {
  --brand-purple: #4b1f5f;
  --brand-purple-dark: #32123f;
  --brand-blue: #4d98c8;
  --ink: #171824;
  --muted: #656674;
  --line: #dfe1e7;
  --soft: #f5f7fa;
  --white: #ffffff;
  --content: 1280px;
  --gutter: clamp(22px, 4vw, 64px);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

body,
button,
input,
textarea,
select {
  font-family: inherit;
}

.editorial-storefront {
  overflow: clip;
  background: var(--white);
}

.editorial-storefront header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  width: min(calc(100% - 2 * var(--gutter)), var(--content));
  min-height: 92px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.editorial-storefront .brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.editorial-storefront .brand > *:not(.brand-logo-image) {
  display: none !important;
}

.brand-logo-image {
  display: block;
  width: 172px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
}

.editorial-storefront header nav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 3vw, 52px);
}

.editorial-storefront header nav a {
  position: relative;
  padding: 34px 0 30px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.editorial-storefront header nav a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  background: var(--brand-purple);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transition: 180ms ease;
}

.editorial-storefront header nav a:hover::after,
.editorial-storefront header nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.editorial-storefront .header-actions {
  justify-self: end;
}

.editorial-storefront .language {
  gap: 0;
  border: 0;
  background: transparent;
}

.editorial-storefront .language button {
  min-width: auto;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.editorial-storefront .language button + button {
  border-left: 1px solid var(--line);
}

.editorial-storefront .language button.active {
  color: var(--brand-purple);
}

.editorial-storefront .account-login,
.editorial-storefront .account-trigger {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.editorial-storefront main {
  display: flex;
  flex-direction: column;
}

.editorial-storefront .hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(40px, 6vw, 94px);
  align-items: center;
  width: min(calc(100% - 2 * var(--gutter)), var(--content));
  min-height: min(760px, calc(100vh - 92px));
  margin: 0 auto;
  padding: 68px 0 76px;
}

.editorial-storefront .hero::before {
  position: absolute;
  top: 160px;
  left: -34px;
  width: 2px;
  height: 300px;
  background: var(--line);
  content: "";
}

.editorial-storefront .hero::after {
  position: absolute;
  top: 176px;
  left: -40px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--brand-blue);
  border-radius: 50%;
  background: var(--white);
  content: "";
}

.editorial-storefront .hero-copy {
  max-width: 560px;
  padding-left: 34px;
}

.editorial-storefront .hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(54px, 6vw, 92px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.editorial-storefront .hero-copy h1 span {
  display: block;
}

.editorial-storefront .hero-copy h1 span:last-child {
  color: var(--brand-purple);
}

.editorial-storefront .hero-copy i {
  display: block;
  width: 86px;
  height: 3px;
  margin: 34px 0;
  background: linear-gradient(90deg, var(--brand-purple) 0 48%, var(--brand-blue) 48%);
}

.editorial-storefront .hero-copy p {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.9;
}

.editorial-storefront .hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 42px;
}

.editorial-storefront .btn {
  min-height: 54px;
  padding: 0 28px;
  border-radius: 0;
  font-size: 15px;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}

.editorial-storefront .btn.primary {
  border: 1px solid var(--brand-purple);
  background: var(--brand-purple);
  color: var(--white);
}

.editorial-storefront .btn.ghost {
  border: 1px solid var(--brand-blue);
  background: var(--white);
  color: #247ab2;
}

.editorial-storefront .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(50, 18, 63, 0.13);
}

.editorial-storefront .hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(150px, 0.78fr);
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  min-height: 585px;
}

.editorial-storefront .hero-visual > img:first-of-type {
  grid-row: 1 / 3;
  width: 100%;
  height: 100%;
  min-height: 585px;
  object-fit: cover;
}

.hero-side-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.editorial-storefront .hero-caption {
  position: absolute;
  right: 0;
  bottom: 50px;
  display: flex;
  gap: 16px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--brand-purple);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.editorial-storefront .category-section {
  order: 2;
  width: min(calc(100% - 2 * var(--gutter)), var(--content));
  margin: 0 auto;
  padding: 42px 0 24px;
  border-top: 1px solid var(--line);
}

.editorial-storefront .category-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.editorial-storefront .category-title span,
.editorial-storefront .featured-copy > span,
.editorial-storefront .catalog-head > div > span,
.editorial-storefront .contact-heading > span {
  color: var(--brand-purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.editorial-storefront .category-title h2,
.editorial-storefront .catalog-head h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(34px, 3.4vw, 52px);
  letter-spacing: -0.04em;
}

.editorial-storefront .rail-arrows {
  display: flex;
  gap: 8px;
}

.editorial-storefront .rail-arrows button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--brand-purple);
}

.editorial-storefront .category-rail {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.editorial-storefront .category-item {
  position: relative;
  flex: 0 0 auto;
  min-width: auto;
  padding: 17px 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.editorial-storefront .category-item svg {
  display: none;
}

.editorial-storefront .category-item b {
  font-size: 14px;
  white-space: nowrap;
}

.editorial-storefront .category-item::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 3px;
  background: var(--brand-purple);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transition: 180ms ease;
}

.editorial-storefront .category-item.selected {
  background: transparent;
  color: var(--brand-purple);
}

.editorial-storefront .category-item.selected::after {
  opacity: 1;
  transform: scaleX(1);
}

.editorial-storefront .featured-section {
  order: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  width: min(calc(100% - 2 * var(--gutter)), var(--content));
  min-height: 550px;
  margin: 70px auto 110px;
  background: var(--soft);
}

.editorial-storefront .featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 80px);
}

.editorial-storefront .featured-copy h2 {
  margin: 18px 0 22px;
  color: var(--ink);
  font-size: clamp(38px, 4vw, 64px);
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.editorial-storefront .featured-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.editorial-storefront .featured-copy a {
  width: fit-content;
  margin-top: 28px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--brand-blue);
  color: var(--brand-purple);
  font-weight: 800;
  text-decoration: none;
}

.editorial-storefront .featured-image {
  min-height: 550px;
  border: 0;
  border-radius: 0;
}

.editorial-storefront .featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-storefront .featured-track {
  display: none;
}

.editorial-storefront .catalog {
  order: 4;
  width: min(calc(100% - 2 * var(--gutter)), var(--content));
  margin: 0 auto;
  padding: 0 0 120px;
}

.editorial-storefront .catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.editorial-storefront .catalog-head p {
  margin: 12px 0 0;
  color: var(--muted);
}

.editorial-storefront .catalog-tools {
  display: flex;
  gap: 12px;
}

.editorial-storefront .catalog-tools button {
  padding: 12px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.editorial-storefront .catalog-tools button:first-child,
.editorial-storefront .catalog-tools .active {
  border-bottom-color: var(--brand-purple);
  color: var(--brand-purple);
}

.editorial-storefront .product-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.925fr 0.925fr;
  gap: 30px 18px;
}

.editorial-storefront .product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: var(--white);
  box-shadow: none;
}

.editorial-storefront .product-card:first-child {
  grid-row: span 2;
}

.editorial-storefront .product-card .image-button {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--soft);
  aspect-ratio: 4 / 3;
}

.editorial-storefront .product-card:first-child .image-button {
  flex: 1;
  min-height: 490px;
  aspect-ratio: auto;
}

.editorial-storefront .product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(.2,.7,.2,1);
}

.editorial-storefront .product-card:hover img {
  transform: scale(1.035);
}

.editorial-storefront .product-card .index {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  padding: 9px 11px;
  background: var(--brand-purple);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.editorial-storefront .product-info {
  padding: 18px 0 0;
}

.editorial-storefront .product-info .cat {
  color: var(--brand-purple);
  font-size: 12px;
  font-weight: 750;
}

.editorial-storefront .product-info h3 {
  min-height: 2.8em;
  margin: 8px 0 16px;
  color: var(--ink);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.4;
}

.editorial-storefront .product-info button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--brand-blue);
  background: transparent;
  color: var(--brand-purple);
  font-weight: 800;
}

.editorial-storefront .catalog-load-more {
  display: flex;
  justify-content: center;
  margin-top: 58px;
}

.editorial-storefront .service {
  order: 5;
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: stretch;
  width: min(calc(100% - 2 * var(--gutter)), var(--content));
  min-height: 420px;
  margin: 0 auto 110px;
  overflow: hidden;
  background: var(--soft);
}

.editorial-storefront .service::after {
  grid-column: 2;
  grid-row: 1;
  min-height: 420px;
  background: url("/products/product-101.jpg") center / cover no-repeat;
  content: "";
}

.editorial-storefront .service > div {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 5vw, 78px);
}

.editorial-storefront .service-number {
  color: var(--brand-purple);
  font-size: 12px;
  font-weight: 900;
}

.editorial-storefront .service h2 {
  margin: 16px 0 22px;
  color: var(--ink);
  font-size: clamp(42px, 4.6vw, 72px);
  letter-spacing: -0.05em;
}

.editorial-storefront .service h2::first-letter {
  color: var(--brand-purple);
}

.editorial-storefront .service p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.editorial-storefront .service .btn {
  width: fit-content;
  margin-top: 24px;
}

.editorial-storefront .contact-strip {
  order: 6;
  width: min(calc(100% - 2 * var(--gutter)), var(--content));
  margin: 0 auto;
  padding: 0 0 90px;
}

.editorial-storefront .contact-heading {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: end;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.editorial-storefront .contact-heading h2 {
  max-width: 540px;
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(36px, 4vw, 60px);
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.editorial-storefront .contact-heading h2 strong {
  color: var(--brand-purple);
}

.editorial-storefront .contact-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.editorial-storefront .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 72px;
}

.editorial-storefront .contact-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, padding 160ms ease;
}

.editorial-storefront .contact-grid a:hover {
  padding: 0 12px;
  color: var(--brand-purple);
}

.editorial-storefront footer {
  order: 7;
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 48px;
  align-items: center;
  width: min(calc(100% - 2 * var(--gutter)), var(--content));
  margin: 0 auto;
  padding: 56px 0 70px;
  border-top: 1px solid var(--line);
}

.footer-brand-logo {
  display: block;
  width: min(290px, 100%);
  height: auto;
}

.editorial-storefront footer .brand-mark,
.editorial-storefront footer .brand > span {
  display: none !important;
}

.editorial-storefront .floating {
  right: 24px;
  bottom: 24px;
  border-radius: 0;
  background: var(--brand-purple);
  color: var(--white);
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.7,.2,1);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.modal,
.overlay,
.account-panel,
.payment-modal,
.inquiry-modal,
.admin-shell {
  --brand: var(--brand-purple);
}

@media (max-width: 1024px) {
  .editorial-storefront header {
    grid-template-columns: 1fr auto;
  }

  .editorial-storefront header nav {
    display: none;
  }

  .editorial-storefront .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .editorial-storefront .hero-copy {
    max-width: 720px;
  }

  .editorial-storefront .hero-visual {
    min-height: 480px;
  }

  .editorial-storefront .hero-visual > img:first-of-type {
    min-height: 480px;
  }

  .editorial-storefront .featured-section {
    grid-template-columns: 1fr;
  }

  .editorial-storefront .featured-image {
    min-height: 420px;
  }

  .editorial-storefront .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .editorial-storefront .product-card:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .editorial-storefront .service {
    grid-template-columns: 1fr;
  }

  .editorial-storefront .service > div {
    grid-column: 1;
    background: rgba(245, 247, 250, 0.92);
  }

  .editorial-storefront .service::after {
    grid-column: 1;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 18px;
  }

  .editorial-storefront header {
    min-height: 76px;
  }

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

  .editorial-storefront .language {
    display: none;
  }

  .editorial-storefront .hero {
    min-height: auto;
    gap: 34px;
    padding: 44px 0 50px;
  }

  .editorial-storefront .hero::before,
  .editorial-storefront .hero::after {
    display: none;
  }

  .editorial-storefront .hero-copy {
    padding-left: 0;
  }

  .editorial-storefront .hero-copy h1 {
    font-size: clamp(46px, 14vw, 66px);
  }

  .editorial-storefront .hero-actions {
    flex-direction: column;
  }

  .editorial-storefront .hero-actions .btn {
    width: 100%;
  }

  .editorial-storefront .hero-visual {
    grid-template-columns: 1.4fr 0.8fr;
    min-height: 420px;
  }

  .editorial-storefront .hero-visual > img:first-of-type {
    min-height: 420px;
  }

  .editorial-storefront .category-title h2 {
    font-size: 36px;
  }

  .editorial-storefront .rail-arrows {
    display: none;
  }

  .editorial-storefront .featured-section {
    margin: 34px auto 72px;
  }

  .editorial-storefront .featured-copy {
    padding: 36px 24px;
  }

  .editorial-storefront .featured-image {
    min-height: 320px;
  }

  .editorial-storefront .catalog-head {
    align-items: start;
    flex-direction: column;
  }

  .editorial-storefront .catalog-tools {
    width: 100%;
    overflow-x: auto;
  }

  .editorial-storefront .product-grid {
    grid-template-columns: 1fr;
  }

  .editorial-storefront .product-card:first-child {
    grid-column: auto;
  }

  .editorial-storefront .product-card:first-child .image-button {
    min-height: 390px;
  }

  .editorial-storefront .service {
    margin-bottom: 76px;
  }

  .editorial-storefront .service > div {
    min-height: 420px;
    padding: 36px 24px;
  }

  .editorial-storefront .service h2 {
    font-size: 48px;
  }

  .editorial-storefront .contact-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .editorial-storefront .contact-grid {
    grid-template-columns: 1fr;
  }

  .editorial-storefront footer {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
