:root {
  --paper: #fbfaf7;
  --porcelain: #ffffff;
  --ink: #24302f;
  --muted: #687371;
  --line: #e6dfd6;
  --pearl: #f6efe6;
  --champagne: #c49858;
  --coral: #b86155;
  --jade: #547d76;
  --deep: #172927;
  --shadow: 0 18px 50px rgba(42, 51, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(251, 250, 247, 0.88);
  border-bottom: 1px solid rgba(230, 223, 214, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.cart-button,
.main-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  width: fit-content;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--porcelain);
  background: var(--deep);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.main-nav {
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

.main-nav a {
  padding: 8px 2px;
}

.main-nav a:hover {
  color: var(--deep);
}

.cart-button {
  justify-self: end;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--deep);
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.cart-icon {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  color: var(--champagne);
}

.cart-button strong {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  color: var(--porcelain);
  background: var(--coral);
  border-radius: 999px;
  font-size: 12px;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.94) 0%, rgba(251, 250, 247, 0.75) 35%, rgba(251, 250, 247, 0.05) 74%),
    linear-gradient(0deg, rgba(251, 250, 247, 0.96), rgba(251, 250, 247, 0) 28%);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(580px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding: 66px 0 96px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 94px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-content p:not(.eyebrow) {
  max-width: 520px;
  margin-bottom: 30px;
  color: #47514f;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link,
.secondary-link,
.newsletter button,
.cart-summary button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 760;
}

.primary-link,
.newsletter button,
.cart-summary button {
  color: var(--porcelain);
  background: var(--deep);
  border: 1px solid var(--deep);
}

.secondary-link {
  color: var(--deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.as-button {
  cursor: pointer;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.trust-strip span {
  display: grid;
  min-height: 64px;
  place-items: center;
  padding: 12px;
  color: var(--deep);
  background: #f8f4ed;
  font-size: 14px;
}

.section-shell,
.newsletter,
.feature-band {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section-shell {
  padding: 78px 0;
}

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

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.shop-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  background: #eee8de;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.segmented button {
  min-width: 58px;
  min-height: 34px;
  padding: 7px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.segmented button.is-active {
  color: var(--deep);
  background: var(--porcelain);
  box-shadow: 0 6px 16px rgba(36, 48, 47, 0.08);
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
}

.sort-control select {
  color: var(--deep);
  background: transparent;
  border: 0;
  outline: 0;
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(42, 51, 48, 0.07);
}

.product-art {
  position: relative;
  display: grid;
  min-height: 230px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 58% 38%, rgba(255, 255, 255, 0.92) 0 8px, transparent 9px),
    radial-gradient(circle at 45% 49%, rgba(246, 239, 230, 0.95) 0 14px, transparent 15px),
    linear-gradient(145deg, var(--tile-a), var(--tile-b));
}

.product-art::before {
  content: "";
  width: var(--shape-size);
  height: var(--shape-size);
  border: 9px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--shape-radius);
  box-shadow:
    inset 0 0 0 1px rgba(196, 152, 88, 0.42),
    0 22px 36px rgba(35, 48, 46, 0.18);
}

.product-art.has-image {
  background: #f8f4ed;
}

.product-art.has-image::before,
.product-art.has-image::after {
  content: none;
}

.product-art img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.product-art::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #ffffff 0 5px, transparent 6px),
    radial-gradient(circle at 44% 40%, #fff9f0, #e7d6c4 70%);
  box-shadow: 28px 22px 0 -16px rgba(255, 250, 241, 0.96);
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.product-body h3 {
  margin-bottom: 0;
  font-size: 19px;
  line-height: 1.25;
}

.product-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.product-foot strong {
  font-size: 20px;
}

.product-foot button {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--deep);
  background: #eef4f1;
  border: 1px solid #d7e4dd;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 720;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(22px, 5vw, 78px);
  align-items: center;
  padding: clamp(36px, 7vw, 76px);
  color: var(--porcelain);
  background:
    linear-gradient(135deg, rgba(23, 41, 39, 0.96), rgba(84, 125, 118, 0.9)),
    url("assets/hero-pearl-jewelry.png") center / cover;
  background-blend-mode: multiply;
}

.feature-copy p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.feature-copy .eyebrow {
  color: #e6c999;
}

.feature-copy .primary-link {
  background: var(--porcelain);
  border-color: var(--porcelain);
  color: var(--deep);
}

.set-panel {
  padding: 26px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.set-kicker {
  color: #e6c999;
  font-size: 13px;
  font-weight: 760;
}

.set-panel h3 {
  margin: 10px 0 12px;
  font-size: clamp(24px, 3vw, 34px);
}

.set-panel p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.set-panel strong {
  font-size: 30px;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.care-grid article {
  padding: 24px;
  background: #f2f6f4;
  border: 1px solid #d8e4df;
  border-radius: 8px;
}

.care-grid h3 {
  margin-bottom: 10px;
  color: var(--deep);
}

.care-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 20px;
  align-items: end;
  padding: 34px;
  margin-bottom: 72px;
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.newsletter form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.newsletter label {
  color: var(--muted);
  font-size: 14px;
}

.newsletter input {
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
}

.newsletter input:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 4px rgba(84, 125, 118, 0.12);
}

.newsletter button {
  cursor: pointer;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.cart-drawer.is-open {
  pointer-events: auto;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 41, 39, 0);
  transition: background 180ms ease;
}

.cart-drawer.is-open .cart-backdrop {
  background: rgba(23, 41, 39, 0.34);
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(420px, 100%);
  height: 100%;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(104%);
  transition: transform 220ms ease;
}

.cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  font-size: 24px;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--deep);
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 18px;
}

.empty-cart {
  margin: 24px 0;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.cart-line {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--tile-a), var(--tile-b));
}

.cart-thumb-image {
  object-fit: cover;
}

.cart-line h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

.cart-line p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.qty-tools {
  display: grid;
  grid-template-columns: 28px 28px 28px;
  align-items: center;
  gap: 2px;
}

.qty-tools button {
  width: 28px;
  height: 28px;
  background: #f2f6f4;
  border: 1px solid #d8e4df;
  border-radius: 50%;
  cursor: pointer;
}

.qty-tools span {
  text-align: center;
  font-size: 13px;
}

.cart-summary {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
}

.cart-summary button {
  width: 100%;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: calc(100% - 36px);
  padding: 12px 16px;
  color: var(--porcelain);
  background: var(--deep);
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 54px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

  .main-nav {
    display: none;
  }

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

  .feature-band,
  .newsletter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
    padding-inline: 14px;
  }

  .cart-button span:not(.cart-icon) {
    display: none;
  }

  .hero {
    min-height: 640px;
    align-items: end;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.86) 42%, rgba(251, 250, 247, 0.1) 100%),
      linear-gradient(90deg, rgba(251, 250, 247, 0.58), rgba(251, 250, 247, 0));
  }

  .hero-image {
    height: 62%;
    object-position: 68% 0;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-inline: 14px;
    padding-bottom: 44px;
  }

  h1 {
    max-width: 9ch;
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-shell {
    padding: 54px 0;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .shop-tools {
    justify-content: start;
  }

  .segmented {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row;
  }

  .segmented button {
    min-width: 0;
    padding-inline: 6px;
    font-size: 13px;
  }

  .sort-control {
    width: 100%;
    justify-content: space-between;
  }

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

  .feature-band {
    width: 100%;
    padding: 36px 18px;
  }

  .newsletter {
    padding: 24px 18px;
  }

  .newsletter form {
    grid-template-columns: 1fr;
  }

  .newsletter button {
    width: 100%;
  }

  .site-footer {
    display: grid;
  }
}
