:root {
  --ink: #3f342a;
  --muted: #817464;
  --soft: #f9f3e8;
  --line: #e7dac6;
  --lavender: #c3a06a;
  --lavender-dark: #8b673a;
  --pink: #f2dfd2;
  --blue: #e6ede7;
  --mint: #e7efe5;
  --gold: #d4aa64;
  --panel: rgba(255, 253, 248, 0.9);
  --shadow: 0 24px 60px rgba(105, 79, 45, 0.15);
}

/* Editorial homepage: selected concept 2 */
body {
  background: #f7f4ed;
}

body::before,
body::after {
  display: none;
}

.site-shell {
  max-width: 1600px;
  padding-bottom: 0;
}

.topbar {
  min-height: 72px;
  padding: 0 42px;
  border-color: #ded8cc;
  background: rgba(250, 248, 243, 0.94);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ad8245;
  box-shadow: none;
}

.brand strong {
  font-size: 22px;
}

.brand small {
  display: none;
}

.nav-links {
  gap: 30px;
  color: #413b33;
  font-size: 13px;
  font-weight: 500;
}

.nav-links a::after {
  height: 1px;
  background: #9c7439;
}

.nav-cta,
.primary-button {
  border-radius: 2px;
  background: #aa7d3c;
  box-shadow: none;
}

.nav-cta::before,
.nav-cta::after {
  content: none;
}

.home-editorial {
  color: #2e2a25;
  background: #fbfaf7;
}

.editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(410px, 0.96fr);
  min-height: 528px;
  margin: 0 -24px;
  border-bottom: 1px solid #e1ddd4;
}

.editorial-hero-media {
  position: relative;
  min-height: 528px;
  margin: 0;
  overflow: hidden;
  background: #e9e5dc;
}

.editorial-hero-media > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 528px;
  object-fit: cover;
  object-position: center;
}

.editorial-hero-media figcaption {
  position: absolute;
  left: 28px;
  bottom: 26px;
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  color: #39332d;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 4px;
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: blur(12px);
}

.editorial-hero-media figcaption span {
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  font-weight: 700;
}

.editorial-hero-media figcaption b {
  color: #746c62;
  font-size: 11px;
}

.editorial-hero-copy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 62px clamp(42px, 6vw, 100px);
  background: #f7f4ed;
}

.editorial-hero-copy h1 {
  max-width: 600px;
  font-size: clamp(44px, 4.4vw, 66px);
  line-height: 1.28;
  font-weight: 700;
}

body[data-language="en"] .editorial-hero-copy h1 {
  max-width: 640px;
  font-size: clamp(42px, 4.2vw, 62px);
}

body[data-language="ja"] .editorial-hero-copy h1 {
  max-width: 620px;
  font-size: clamp(40px, 4vw, 58px);
}

.editorial-hero-copy .hero-text {
  max-width: 500px;
  margin: 26px 0 28px;
  color: #696258;
  font-size: 15px;
  line-height: 1.9;
}

.editorial-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-height: 46px;
  padding: 0 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: 0;
  border-radius: 2px;
  background: #3e503a;
  transition: background 180ms ease, transform 180ms ease;
}

.editorial-primary:hover {
  background: #2d3d2b;
  transform: translateY(-1px);
}

.hero-assurance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 520px;
  margin: 38px 0 0;
  padding-top: 20px;
  border-top: 1px solid #d8d1c4;
}

.hero-assurance div {
  margin: 0;
}

.hero-assurance dt {
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  font-weight: 700;
}

.hero-assurance dd {
  margin: 5px 0 0;
  color: #82796d;
  font-size: 11px;
}

.intention-section,
.signature-section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 26px;
  padding: 34px 32px;
}

.signature-section {
  padding-top: 26px;
  border-top: 1px solid #e3ded3;
}

.editorial-section-intro {
  align-self: start;
  padding-top: 8px;
}

.editorial-section-intro h2,
.home-customizer h2 {
  font-size: 28px;
  line-height: 1.35;
}

.editorial-section-intro > p:not(.eyebrow) {
  margin: 18px 0;
  color: #7c7469;
  font-size: 12px;
  line-height: 1.75;
}

.editorial-section-intro a {
  display: inline-block;
  margin-top: 18px;
  color: #8d642d;
  font-size: 12px;
  font-weight: 700;
}

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

.intention-card {
  position: relative;
  min-height: 240px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border: 0;
  border-radius: 0;
  background: #ddd8cd;
}

.intention-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 320ms ease;
}

.intention-card::after,
.theme-card::after {
  position: absolute;
  inset: 35% 0 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(20, 18, 16, 0.72));
}

.intention-card:hover img {
  transform: scale(1.035);
}

.intention-card > span {
  position: absolute;
  left: 20px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  gap: 4px;
  color: #fff;
}

.intention-card b {
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
}

.intention-card small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

.home-editorial .theme-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 170px;
  gap: 7px;
}

.home-editorial .theme-card {
  position: relative;
  grid-column: span 5;
  min-height: 170px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #ded9cf;
  box-shadow: none;
}

.home-editorial .theme-card:first-child {
  grid-column: span 7;
  grid-row: span 2;
}

.home-editorial .theme-card:nth-child(n + 4) {
  grid-column: span 4;
}

.home-editorial .theme-card .theme-visual {
  position: absolute;
  inset: 0;
  height: auto;
}

.home-editorial .theme-card .theme-visual img {
  height: 100%;
}

.home-editorial .theme-card .theme-visual.has-image::after {
  display: none;
}

.home-editorial .theme-card .body {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 2;
  padding: 0;
  color: #fff;
}

.home-editorial .theme-card .body h3 {
  font-size: 22px;
}

.home-editorial .theme-card:first-child .body h3 {
  font-size: 30px;
}

.home-editorial .theme-card .body p {
  max-width: 480px;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

.home-editorial .theme-card .mini-tags {
  display: none;
}

.home-editorial .theme-card button {
  width: auto;
  min-height: 30px;
  margin-top: 10px;
  padding: 0 13px;
  color: #2f2b27;
  font-size: 11px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.88);
}

.home-customizer {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(330px, 1.15fr) minmax(250px, .8fr);
  align-items: stretch;
  min-height: 390px;
  margin: 24px 0 0;
  background: #e9e9e1;
}

.home-customizer-copy {
  padding: 50px 38px;
  color: #f9f7f0;
  background: #485944;
}

.home-customizer-copy .eyebrow {
  color: #d7bd8e;
}

.home-customizer-copy p:not(.eyebrow) {
  margin: 22px 0 26px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.8;
}

.home-customizer-copy ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-customizer-copy li {
  padding-left: 18px;
  font-size: 12px;
  border-left: 1px solid #c8a769;
}

.home-customizer-preview {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: #e2dfd6;
}

.home-customizer-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  transition: opacity 160ms ease, transform 260ms ease;
}

.home-customizer-preview span {
  position: absolute;
  left: 20px;
  bottom: 18px;
  padding: 8px 10px;
  color: #fff;
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  background: rgba(28, 28, 25, 0.6);
}

.home-customizer-controls {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
  padding: 40px 32px;
  background: #f7f4ed;
}

.home-customizer-controls fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.home-customizer-controls legend {
  margin-bottom: 12px;
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  font-weight: 700;
}

.home-material-options,
.home-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.home-material-options button {
  width: 42px;
  height: 42px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid #d9d3c7;
  border-radius: 50%;
  background: #fff;
}

.home-material-options button.active {
  border-color: #a77a3d;
  box-shadow: 0 0 0 2px #f7f4ed, 0 0 0 3px #a77a3d;
}

.home-material-options img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.home-size-options button {
  min-width: 66px;
  min-height: 34px;
  color: #5f584f;
  border: 1px solid #cfc7ba;
  border-radius: 999px;
  background: transparent;
}

.home-size-options button.active {
  color: #6f4e1d;
  border-color: #b5833d;
  background: #f5e7c5;
}

.home-customizer-controls .editorial-primary {
  align-self: flex-start;
  min-width: 156px;
  background: #aa7d3c;
}

.home-service-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #ded8cc;
  border-bottom: 1px solid #ded8cc;
}

.home-service-row > span {
  display: grid;
  gap: 4px;
  padding: 22px 30px;
  border-right: 1px solid #ded8cc;
}

.home-service-row > span:last-child {
  border-right: 0;
}

.home-service-row b {
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
}

.home-service-row small {
  color: #81796e;
  font-size: 10px;
}

.site-footer {
  margin-top: 0;
  padding: 30px 8px;
  background: #f7f4ed;
}

@media (max-width: 1080px) {
  .editorial-hero {
    grid-template-columns: 1fr 1fr;
  }

  .editorial-hero-copy {
    padding: 44px 36px;
  }

  .editorial-hero-copy h1 {
    font-size: 46px;
  }

  .intention-section,
  .signature-section {
    grid-template-columns: 1fr;
  }

  .editorial-section-intro {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .editorial-section-intro .eyebrow,
  .editorial-section-intro > p:not(.eyebrow) {
    grid-column: 1 / -1;
  }

  .editorial-section-intro a {
    margin: 0;
  }

  .home-customizer {
    grid-template-columns: 1fr 1.15fr;
  }

  .home-customizer-controls {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 0 14px;
  }

  .cart-button b {
    display: none;
  }

  .editorial-hero {
    grid-template-columns: 1fr;
    margin: 0 -14px;
  }

  .editorial-hero-media,
  .editorial-hero-media > img {
    min-height: 370px;
  }

  .editorial-hero-copy {
    padding: 38px 22px 42px;
  }

  .editorial-hero-copy h1,
  body[data-language="en"] .editorial-hero-copy h1,
  body[data-language="ja"] .editorial-hero-copy h1 {
    font-size: 40px;
  }

  .hero-assurance {
    margin-top: 28px;
  }

  .intention-section,
  .signature-section {
    padding: 32px 0;
  }

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

  .intention-card,
  .intention-card img {
    min-height: 210px;
  }

  .home-editorial .theme-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .home-editorial .theme-card,
  .home-editorial .theme-card:first-child,
  .home-editorial .theme-card:nth-child(n + 4) {
    grid-column: auto;
    grid-row: auto;
  }

  .home-customizer {
    grid-template-columns: 1fr;
    margin: 10px -14px 0;
  }

  .home-customizer-copy {
    padding: 38px 24px;
  }

  .home-customizer-preview,
  .home-customizer-preview img {
    min-height: 330px;
  }

  .home-customizer-controls {
    grid-column: auto;
    display: flex;
    align-items: stretch;
    padding: 32px 24px;
  }

  .home-customizer-controls .editorial-primary {
    align-self: stretch;
  }

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

  .home-service-row > span:nth-child(2) {
    border-right: 0;
  }

  .home-service-row > span:nth-child(-n + 2) {
    border-bottom: 1px solid #ded8cc;
  }
}

@media (max-width: 430px) {
  .topbar .nav-cta {
    display: none;
  }

  .editorial-hero-copy h1,
  body[data-language="en"] .editorial-hero-copy h1,
  body[data-language="ja"] .editorial-hero-copy h1 {
    font-size: 34px;
  }

  .intention-card,
  .intention-card img {
    min-height: 180px;
  }

  .intention-card > span {
    left: 14px;
    bottom: 14px;
  }

  .home-service-row {
    grid-template-columns: 1fr;
  }

  .home-service-row > span {
    border-right: 0;
    border-bottom: 1px solid #ded8cc;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 6% 10%, rgba(238, 221, 193, 0.72), transparent 24rem),
    radial-gradient(circle at 88% 18%, rgba(229, 235, 221, 0.72), transparent 28rem),
    linear-gradient(180deg, #fffdf8 0%, #f7f0e3 48%, #fffaf1 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  content: "";
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

body::before {
  width: 18rem;
  height: 18rem;
  left: -6rem;
  bottom: 7rem;
  background: radial-gradient(circle, rgba(214, 226, 207, 0.46), transparent 70%);
}

body::after {
  width: 22rem;
  height: 22rem;
  right: -8rem;
  bottom: -5rem;
  background: radial-gradient(circle, rgba(231, 207, 174, 0.54), transparent 70%);
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.page-view[hidden] {
  display: none !important;
}

.page-view {
  animation: pageEnter .28s ease both;
}

.page-view.is-active {
  scroll-margin-top: 104px;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  margin: 0 -24px;
  padding: 0 52px;
  border-bottom: 1px solid rgba(226, 210, 184, 0.82);
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  font-family: "Noto Serif SC", serif;
  font-weight: 900;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #fff 0 8%, transparent 9%), linear-gradient(145deg, #d6ba86, #8b673a);
  box-shadow: 0 12px 26px rgba(139, 103, 58, 0.24);
}

.brand strong {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #5a4938;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  content: "";
  border-radius: 10px;
  background: var(--lavender);
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  color: #fff;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d2b47c, #a47b43 58%, #d8b993);
  box-shadow: 0 14px 30px rgba(139, 103, 58, 0.24);
}

.nav-cta::before,
.nav-cta::after {
  content: "+";
  margin: 0 7px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-switcher > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.language-switcher select {
  min-width: 84px;
  min-height: 42px;
  padding: 0 28px 0 11px;
  color: #665541;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: rgba(255,253,248,.86);
}

.language-switcher select:focus {
  border-color: #b58d54;
  box-shadow: 0 0 0 3px rgba(195,160,106,.16);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  color: #665541;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
}

.cart-button b {
  font-size: inherit;
}

.cart-button .cart-icon {
  font-size: 16px;
  line-height: 1;
}

.cart-button #cartCount {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: #fff;
  border-radius: 999px;
  background: #a77d45;
}

.cart-button.has-items {
  color: var(--lavender-dark);
  border-color: #d8c39f;
  box-shadow: 0 8px 22px rgba(139,103,58,.12);
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: 34px;
  min-height: 500px;
  padding: 58px 0 36px;
}

.hero-section::before {
  position: absolute;
  inset: 18px -24px 0;
  z-index: -1;
  content: "";
  border-radius: 0 0 34px 34px;
  background:
    radial-gradient(circle at 8% 28%, rgba(255, 255, 255, 0.9), transparent 5rem),
    linear-gradient(90deg, rgba(255, 253, 248, 0.96), rgba(246, 238, 223, 0.78));
}

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

.hero-copy {
  align-self: center;
  padding-left: 38px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 520px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.12;
}

.hero-text {
  max-width: 500px;
  margin: 22px 0 26px;
  color: #5f5a82;
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions,
.wish-pills,
.tag-row,
.tab-row,
.tool-row,
.view-toggle,
.charm-row,
.energy-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.secondary-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  color: var(--lavender-dark);
  font-weight: 700;
  border: 1px solid rgba(181, 141, 84, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

body[data-language="en"] .hero-copy h1 {
  max-width: 560px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  line-height: 1.08;
}

body[data-language="ja"] .hero-copy h1 {
  max-width: 560px;
  font-size: 54px;
  line-height: 1.18;
}

.wish-pills {
  margin-top: 28px;
}

.wish-pills button,
.tag-row button,
.tab-row button,
.view-toggle button,
.energy-tags span {
  min-height: 34px;
  padding: 0 14px;
  color: #6b638c;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.wish-pills button:hover,
.tag-row button:hover,
.tab-row button.active,
.view-toggle button.active {
  color: var(--lavender-dark);
  border-color: transparent;
  background: #f3eadb;
}

.hero-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, #fff7fb, #edf6ff 54%, #fbf4ff);
  box-shadow: inset 0 0 0 1px rgba(229, 220, 244, 0.6), var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.48), transparent 42%),
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.75), transparent 8rem);
}

.hero-glow-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  gap: 5px;
  min-width: 210px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 8px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 18px 38px rgba(105, 79, 45, 0.14);
  backdrop-filter: blur(14px);
}

.hero-glow-card strong {
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
}

.hero-glow-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.bead,
.mini-beads span,
.sequence-bead,
.poster-bead {
  position: absolute;
  display: block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,.98) 0 10%, transparent 11%),
    radial-gradient(circle at 68% 72%, rgba(83,64,43,.16), transparent 34%),
    conic-gradient(from 30deg, rgba(255,255,255,.35), transparent 14%, rgba(255,255,255,.45) 27%, transparent 42%, rgba(255,255,255,.4) 58%, transparent 72%, rgba(255,255,255,.32)),
    var(--bead-bg);
  box-shadow:
    inset -10px -12px 16px rgba(58, 47, 38, 0.16),
    inset 8px 8px 14px rgba(255, 255, 255, 0.86),
    0 12px 22px rgba(91, 68, 42, 0.17);
}

.bead::before,
.material-gem::before,
.guide-gem::before {
  position: absolute;
  inset: 15%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle at 30% 26%, rgba(255,255,255,.95), transparent 22%), linear-gradient(135deg, rgba(255,255,255,.38), transparent);
}

.feature-strip,
.studio-grid,
.theme-grid,
.crystal-guide,
.gallery-grid,
.gift-section {
  display: grid;
  gap: 16px;
}

.feature-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: -20px;
}

.feature-strip article,
.panel,
.theme-card,
.guide-card,
.gallery-card,
.gift-section article {
  border: 1px solid rgba(225, 218, 240, 0.9);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(92, 75, 144, 0.09);
  backdrop-filter: blur(18px);
}

.feature-strip article {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 18px;
}

.feature-icon {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--lavender-dark);
  font-size: 25px;
  border-radius: 16px;
  background: #f3eadb;
}

.feature-strip h2,
.theme-card h3,
.guide-card h3,
.gallery-card h3 {
  font-size: 17px;
}

.feature-strip p,
.theme-card p,
.guide-card p,
.gallery-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.section-block,
.designer-section {
  padding-top: 46px;
}

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

.section-heading h2 {
  font-size: 30px;
}

.section-heading a {
  color: #6f64a0;
  font-size: 14px;
  font-weight: 700;
}

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

.theme-card {
  overflow: hidden;
}

.theme-visual,
.gallery-visual {
  position: relative;
  height: 135px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--theme-a), var(--theme-b));
}

.theme-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.theme-card:hover .theme-visual img {
  transform: scale(1.035);
}

.theme-visual.has-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(255,255,255,0) 52%, rgba(35,24,79,.18));
  pointer-events: none;
}

.theme-visual:not(.has-image)::before,
.gallery-visual::before {
  position: absolute;
  inset: 20px 18px;
  content: "";
  border-radius: 999px;
  border: 18px dotted rgba(255, 255, 255, 0.82);
  filter: drop-shadow(0 16px 18px rgba(82, 61, 124, 0.18));
}

.theme-card .body,
.gallery-card .body {
  padding: 16px;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.mini-tags span {
  padding: 4px 9px;
  color: #806a4e;
  font-size: 12px;
  border-radius: 999px;
  background: #f8f1e6;
}

.theme-card button {
  width: 100%;
  min-height: 36px;
  margin-top: 14px;
  color: #fff;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #a58fe2, #7560c5);
}

.step-indicator {
  display: flex;
  gap: 10px;
  color: #8a84a9;
  font-size: 13px;
}

.step-indicator span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}

.step-indicator .active,
.step-indicator .done {
  color: var(--lavender-dark);
  border-color: transparent;
  background: #f3eadb;
}

.studio-grid {
  grid-template-columns: 1.02fr 1.42fr 0.98fr;
  align-items: stretch;
}

.ai-designer-panel {
  display: grid;
  grid-template-columns: 1.25fr 1.35fr auto auto 1.1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(225, 218, 240, 0.9);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(248,245,255,.76));
  box-shadow: 0 16px 42px rgba(92, 75, 144, 0.09);
}

.ai-designer-panel h3 {
  font-size: 19px;
}

.ai-designer-panel p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.ai-prompt {
  display: grid;
  gap: 6px;
}

.ai-prompt span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ai-prompt input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
}

.ai-choice-row {
  display: flex;
  gap: 8px;
}

.ai-choice-row button {
  min-height: 34px;
  padding: 0 13px;
  color: #706894;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}

.ai-choice-row button.active {
  color: var(--lavender-dark);
  border-color: rgba(195,160,106,.58);
  background: #f3eadb;
}

.ai-result-card {
  display: grid;
  gap: 5px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}

.ai-result-card strong {
  font-size: 13px;
}

.ai-result-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.panel {
  min-width: 0;
  padding: 20px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title h3 {
  font-size: 20px;
}

.panel-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-box {
  position: relative;
  display: block;
  margin: 14px 0 12px;
}

.material-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
}

.material-mode-toggle button {
  min-height: 34px;
  color: #706894;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.material-mode-toggle button.active {
  color: #fff;
  background: linear-gradient(135deg, #c9a86f, #8b673a);
  box-shadow: 0 10px 22px rgba(139, 103, 58, .18);
}

.bead-size-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.bead-size-toggle button {
  min-height: 34px;
  color: #706894;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}

.bead-size-toggle button.active {
  color: var(--lavender-dark);
  border-color: rgba(195,160,106,.58);
  background: #f3eadb;
}

.search-box span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.search-box input,
.summary-panel select {
  width: 100%;
  min-height: 42px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
}

.search-box input {
  padding: 0 14px;
}

.summary-panel select {
  padding: 0 12px;
}

.material-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 14px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.material-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.68);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.material-card:hover {
  transform: translateY(-2px);
  border-color: rgba(195, 160, 106, 0.52);
  box-shadow: 0 14px 28px rgba(105, 79, 45, 0.12);
}

.material-gem,
.guide-gem {
  position: relative;
  width: 50px;
  height: 50px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 26% 22%, rgba(255,255,255,.98) 0 10%, transparent 11%),
    linear-gradient(120deg, rgba(255,255,255,.55), transparent 24% 38%, rgba(255,255,255,.34) 47%, transparent 62%),
    conic-gradient(from 20deg, rgba(255,255,255,.5), transparent 13%, rgba(255,255,255,.42) 24%, transparent 37%, rgba(255,255,255,.5) 52%, transparent 66%, rgba(255,255,255,.32) 82%, transparent),
    var(--bead-bg);
  box-shadow:
    inset -8px -10px 12px rgba(65, 51, 38, .14),
    inset 8px 8px 12px rgba(255,255,255,.9),
    0 10px 18px rgba(105, 79, 45, .12);
}

.material-card .material-gem {
  margin: 0;
}

.material-gem::after,
.guide-gem::after,
.bead::after {
  position: absolute;
  inset: 16%;
  content: "";
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  clip-path: polygon(50% 0, 86% 24%, 86% 74%, 50% 100%, 14% 74%, 14% 24%);
  opacity: .72;
}

.gem-image {
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,.42), transparent 18%),
    var(--bead-image) var(--bead-image-x, 50%) var(--bead-image-y, 50%) / var(--bead-image-size, 118%) var(--bead-image-size, 118%) no-repeat;
}

.gem-image::before {
  display: none;
}

.gem-image::after {
  display: none;
}

.flying-bead {
  position: fixed;
  z-index: 100;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: left 520ms cubic-bezier(.2,.8,.2,1), top 520ms cubic-bezier(.2,.8,.2,1), transform 520ms cubic-bezier(.2,.8,.2,1), opacity 520ms ease;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,.98) 0 10%, transparent 11%),
    radial-gradient(circle at 68% 72%, rgba(83,64,43,.16), transparent 34%),
    conic-gradient(from 30deg, rgba(255,255,255,.35), transparent 14%, rgba(255,255,255,.45) 27%, transparent 42%, rgba(255,255,255,.4) 58%, transparent 72%, rgba(255,255,255,.32)),
    var(--bead-bg);
  box-shadow: 0 16px 30px rgba(105, 79, 45, 0.2);
}

@keyframes beadPop {
  0% {
    transform: scale(.42);
    opacity: .35;
  }
  68% {
    transform: scale(1.18);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.material-card strong {
  display: block;
  font-size: 14px;
}

.material-card small {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.material-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
  color: #7a6c9d;
  font-size: 11px;
}

.material-meta span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f8f1e6;
}

.add-dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  color: var(--lavender-dark);
  border: 1px solid #ddc9a8;
  border-radius: 50%;
}

.canvas-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.workbench-hud {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
}

.workbench-hud > div,
.workbench-hud .size-chip {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}

.workbench-hud span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.workbench-hud strong {
  color: var(--ink);
  font-size: 14px;
}

.size-chip {
  cursor: pointer;
}

.canvas-note {
  color: var(--lavender-dark);
  font-size: 14px;
  font-weight: 700;
}

.bracelet-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin: 8px auto 4px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f1f3f6 52%, #fafafa 100%);
  box-shadow: inset 0 0 0 1px rgba(214, 216, 224, .72);
  transition: border-radius 260ms ease, background 260ms ease, box-shadow 220ms ease;
}

.bracelet-stage::before {
  position: absolute;
  inset: 10%;
  content: "";
  opacity: .18;
  background:
    repeating-linear-gradient(118deg, transparent 0 76px, rgba(118, 121, 132, .16) 77px, transparent 80px);
  pointer-events: none;
}

.bracelet-stage::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 36% 18%, rgba(255,255,255,.74), transparent 12rem);
  opacity: .52;
  pointer-events: none;
}

.wrist-guide {
  position: absolute;
  inset: 18%;
  display: grid;
  place-items: center;
  color: #8a7bae;
  font-size: 12px;
  font-weight: 800;
  border: 1px dashed rgba(128, 105, 190, 0.12);
  border-radius: 50%;
  background: transparent;
  opacity: .22;
}

.product-photo-stage {
  box-shadow: inset 0 0 0 1px rgba(214,216,224,.68), 0 22px 54px rgba(72, 78, 96, .12);
}

.view-front .wrist-guide {
  border-color: transparent;
  background: transparent;
}

.view-front .wrist-guide span {
  opacity: 0;
}

.view-front .gem-image {
  background:
    var(--bead-image) var(--bead-image-x, 50%) var(--bead-image-y, 50%) / var(--bead-image-size, 142%) var(--bead-image-size, 142%) no-repeat;
}

.view-side {
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(238,241,248,.86)),
    repeating-linear-gradient(112deg, transparent 0 76px, rgba(112, 113, 124, .05) 77px 80px, transparent 81px 152px);
}

.view-side .wrist-guide {
  inset: 34% 12%;
  border-radius: 50%;
  transform: perspective(420px) rotateX(62deg);
}

.view-side::before {
  inset: 10%;
  border-radius: 0;
  filter: none;
  transform: none;
}

.view-side::after {
  inset: 0;
  height: auto;
  opacity: .42;
}

.bracelet-stage.is-adding {
  box-shadow: inset 0 0 0 1px rgba(229,216,194,.76), 0 0 0 8px rgba(195,160,106,.14), 0 24px 60px rgba(105,79,45,.12);
}

.bracelet-stage.is-dragging {
  box-shadow: inset 0 0 0 1px rgba(195,160,106,.52), 0 0 0 6px rgba(195,160,106,.12), 0 24px 60px rgba(105,79,45,.13);
}

.bracelet-ring {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.bracelet-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.bracelet-stage.is-dragging .bracelet-canvas {
  cursor: grabbing;
}

.bead {
  width: var(--size);
  height: var(--size);
  left: calc(50% + var(--x) - var(--size) / 2);
  top: calc(50% + var(--y) - var(--size) / 2);
  transition: transform 180ms ease, filter 180ms ease, width 220ms ease, height 220ms ease, left 220ms ease, top 220ms ease, box-shadow 220ms ease;
}

.bead:hover {
  transform: scale(1.08);
}

.view-front .bead {
  box-shadow:
    8px 16px 18px rgba(54, 73, 122, 0.18);
}

.view-front .bead.gem-image,
.view-side .bead.gem-image,
.material-gem.gem-image,
.guide-gem.gem-image,
.sequence-bead.gem-image,
.mini-beads .gem-image,
.poster-bead.gem-image {
  box-shadow: 0 10px 18px rgba(54, 73, 122, 0.14);
}

.view-side .bead {
  box-shadow:
    inset -10px -12px 16px rgba(52, 35, 88, 0.18),
    inset 8px 8px 14px rgba(255, 255, 255, 0.86),
    0 14px 18px rgba(67, 83, 135, 0.22);
}

.bead.is-new {
  animation: beadPop 420ms cubic-bezier(.2, .8, .2, 1);
}

.bead.charm {
  display: grid;
  place-items: center;
  color: #8b76c8;
  font-family: "Noto Serif SC", serif;
  font-weight: 900;
  background: linear-gradient(145deg, #fff, #efe9ff);
}

.tool-row {
  justify-content: center;
  margin-top: 8px;
}

.tool-row button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 15px;
  color: #605887;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.74);
}

.view-toggle {
  justify-content: center;
  margin: 14px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.8);
}

.view-toggle button {
  min-width: 90px;
  border-color: transparent;
  background: transparent;
}

.sequence-bar {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 58px;
  gap: 6px;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}

.hidden-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.size-summary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
}

.size-summary-button b {
  color: var(--lavender-dark);
  font-size: 12px;
}

.ledger-list {
  display: grid;
  gap: 8px;
  max-height: 150px;
  overflow: auto;
  padding-right: 4px;
}

.ledger-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.68);
}

.ledger-item strong {
  display: block;
  font-size: 13px;
}

.ledger-item span {
  color: var(--muted);
  font-size: 11px;
}

.ledger-item b {
  color: var(--ink);
  font-size: 13px;
}

.checkout-dock {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(229,216,194,.94);
  border-radius: 8px;
  background: rgba(255,253,248,.88);
  box-shadow: 0 18px 46px rgba(105, 79, 45, 0.14);
  backdrop-filter: blur(18px);
}

.checkout-dock div {
  display: grid;
  gap: 3px;
}

.checkout-dock span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.checkout-dock strong {
  font-size: 18px;
}

.sequence-bead,
.mini-beads span,
.poster-bead {
  position: static;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
}

.sequence-bead {
  cursor: grab;
}

.sequence-bead.is-dragging {
  opacity: .48;
  cursor: grabbing;
}

.mini-beads {
  display: flex;
  gap: 8px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.66);
}

.field-label {
  display: block;
  margin: 16px 0 8px;
  color: #48406f;
  font-size: 13px;
  font-weight: 800;
}

.size-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.energy-tags span:nth-child(1) { background: #ffeaf1; color: #bd6184; }
.energy-tags span:nth-child(2) { background: #e9f8f2; color: #4c8e79; }
.energy-tags span:nth-child(3) { background: #eef2ff; color: #6c64a8; }

.outline-button {
  width: 100%;
  margin-top: 10px;
  min-height: 38px;
}

.charm-row button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #8b76c8;
  font-weight: 900;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.74);
}

.charm-row button.active {
  border-color: var(--lavender);
  box-shadow: 0 0 0 3px rgba(195,160,106,.18);
}

.quantity-row,
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.quantity-row div {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}

.quantity-row button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #f3eadb;
}

.price-row strong {
  font-size: 28px;
  font-weight: 900;
}

.full {
  width: 100%;
  margin-top: 16px;
}

.service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.service-cards span {
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}

.service-cards b {
  color: var(--ink);
}

.crystal-guide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 124px;
  padding: 18px;
}

.guide-gem {
  width: 70px;
  height: 70px;
  margin: 0;
}

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

.gallery-card {
  overflow: hidden;
}

.gallery-visual {
  height: 120px;
}

.gallery-card .body {
  padding: 13px;
}

.gift-section {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 46px;
}

.gift-section article {
  min-height: 168px;
  padding: 26px;
  background:
    radial-gradient(circle at 75% 36%, rgba(255,255,255,.78), transparent 6rem),
    linear-gradient(135deg, var(--theme-a), var(--theme-b));
}

.gift-section span {
  color: #7b68aa;
  font-weight: 800;
}

.gift-section h2 {
  max-width: 280px;
  margin: 12px 0 24px;
  font-size: 24px;
  line-height: 1.35;
}

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

.about-grid article {
  min-height: 188px;
  padding: 24px;
  border: 1px solid rgba(229,216,194,.94);
  border-radius: 8px;
  background: rgba(255,253,248,.8);
  box-shadow: 0 14px 38px rgba(105, 79, 45, 0.08);
}

.about-grid h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.about-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

/* Redesign v1: standalone DIY workbench based on the generated concept. */
body[data-active-page="designer"] {
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 235, 244, .72), transparent 26rem),
    radial-gradient(circle at 90% 8%, rgba(230, 241, 255, .72), transparent 30rem),
    linear-gradient(180deg, #fff 0%, #f8f8fc 48%, #fff 100%);
}

.designer-section {
  padding-top: 24px;
}

.designer-section > .section-heading {
  display: none;
}

.designer-section > .section-heading h2 {
  font-size: 26px;
}

.designer-section > .section-heading .eyebrow {
  margin-bottom: 6px;
}

.studio-layout-shell {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(500px, 1fr) minmax(300px, 330px);
  gap: 14px;
  align-items: stretch;
}

.designer-section .ai-designer-panel {
  display: none;
}

.designer-section .ai-designer-panel h3 {
  font-size: 15px;
}

.designer-section .ai-designer-panel p:not(.eyebrow),
.designer-section .ai-result-card {
  display: none;
}

.designer-section .ai-prompt input {
  min-height: 36px;
}

.designer-section .ai-choice-row button {
  min-height: 32px;
}

.designer-section #generateDesignButton {
  min-height: 38px;
  white-space: nowrap;
}

.studio-layout-shell > .panel {
  border: 1px solid rgba(226, 218, 242, .92);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 22px 60px rgba(73, 63, 116, .10);
  backdrop-filter: blur(18px);
}

.material-library-panel,
.design-summary-panel {
  display: flex;
  flex-direction: column;
  min-height: 720px;
}

.material-library-panel .panel-title,
.design-summary-panel .panel-title,
.preview-stage-header {
  min-height: 48px;
}

.material-library-panel .panel-title h3,
.design-summary-panel .panel-title h3,
.preview-stage-header h3 {
  font-size: 20px;
  letter-spacing: 0;
}

.material-library-panel .material-mode-toggle {
  grid-template-columns: 1fr auto;
  max-width: 100%;
  border-radius: 8px;
}

.material-library-panel .material-mode-toggle button {
  border-radius: 6px;
}

.material-library-panel .tab-row,
.material-library-panel .tag-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.material-library-panel .tab-row button,
.material-library-panel .tag-row button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
}

.material-library-panel .material-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: 565px;
  margin-top: 14px;
  padding: 0 4px 4px 0;
}

.material-library-panel .material-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 70px minmax(0, 1fr);
  gap: 6px;
  align-content: stretch;
  min-height: 148px;
  padding: 10px;
  overflow: hidden;
  border-color: rgba(226, 218, 242, .95);
  background: rgba(255,255,255,.72);
}

.material-library-panel .material-visual {
  display: grid;
  place-items: center;
  min-height: 0;
}

.material-library-panel .material-card > .material-gem {
  align-self: center;
}

.material-library-panel .material-card .material-gem {
  width: 64px;
  height: 64px;
  margin: 0 auto;
}

.material-library-panel .material-copy {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  min-height: 0;
  padding-right: 28px;
  overflow: hidden;
}

.material-library-panel .material-card > span:not(.material-visual):not(.material-gem):not(.add-dot) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.material-library-panel .material-card strong {
  font-size: 15px;
  line-height: 1.25;
}

.material-library-panel .material-card small {
  min-height: 15px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.material-library-panel .material-meta {
  display: none;
}

.material-library-panel .material-meta span {
  padding: 2px 6px;
  font-size: 10px;
}

.material-library-panel .add-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,.9);
}

.preview-workstation {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 720px;
  padding: 0;
  overflow: hidden;
}

.preview-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(226,218,242,.78);
}

.preview-stage-header .eyebrow {
  margin-bottom: 4px;
}

.preview-stage-header .tool-row {
  margin: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
}

.preview-stage-header .tool-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 68px;
  min-height: 36px;
  padding: 0 8px;
  white-space: nowrap;
  background: rgba(255,255,255,.88);
}

.preview-stage-header .tool-row button span {
  font-size: 11px;
  font-weight: 800;
}

.preview-workstation .bracelet-stage {
  width: 100%;
  height: clamp(430px, 44vw, 540px);
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px rgba(214,216,224,.55);
  background:
    radial-gradient(circle at 44% 28%, rgba(255,255,255,.85), transparent 14rem),
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(236,238,243,.86)),
    repeating-linear-gradient(118deg, transparent 0 86px, rgba(139, 143, 154, .12) 87px, transparent 90px);
}

.preview-workstation .bracelet-stage::before {
  inset: 0;
  opacity: .22;
  background:
    repeating-linear-gradient(118deg, transparent 0 84px, rgba(120, 124, 138, .16) 86px, transparent 90px),
    repeating-linear-gradient(26deg, transparent 0 140px, rgba(180, 183, 194, .08) 142px, transparent 146px);
}

.preview-workstation .bracelet-stage::after {
  opacity: .62;
  background:
    radial-gradient(circle at 36% 18%, rgba(255,255,255,.78), transparent 15rem),
    linear-gradient(180deg, rgba(255,255,255,0), rgba(237,239,245,.22));
}

.stage-control-bar {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 6;
  transform: translateX(-50%);
}

.stage-control-bar .view-toggle {
  flex-wrap: nowrap;
  width: min(330px, calc(100vw - 96px));
  margin: 0;
  box-shadow: 0 12px 28px rgba(64, 54, 104, .12);
}

.stage-control-bar .view-toggle button {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}

.preview-workstation .workbench-hud {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr) minmax(0, .7fr);
  margin: 0;
  padding: 16px 22px 10px;
}

.preview-workstation .workbench-hud > div,
.preview-workstation .workbench-hud .size-chip {
  min-height: 48px;
  background: rgba(255,255,255,.72);
}

.preview-workstation .canvas-note {
  padding: 0 22px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.preview-workstation .sequence-bar {
  margin: 0 22px 22px;
  width: auto;
  border-color: rgba(226,218,242,.95);
  background: rgba(255,255,255,.72);
}

.design-summary-panel {
  padding: 22px 20px;
  overflow: hidden;
}

.design-summary-panel .mini-beads {
  flex-wrap: wrap;
  min-height: 86px;
  align-items: center;
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255,255,255,.74);
}

.design-summary-panel .field-label {
  margin-top: 18px;
}

.design-summary-panel .size-summary-button {
  min-height: 48px;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,.84);
}

.design-summary-panel .size-summary-button span {
  min-width: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.design-summary-panel .size-summary-button b {
  flex: 0 0 auto;
}

.design-summary-panel .bead-size-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 0;
}

.design-summary-panel .bead-size-toggle button {
  min-width: 0;
  min-height: 40px;
  padding: 0 6px;
  border-radius: 8px;
  background: rgba(255,255,255,.78);
}

@media (max-width: 1360px) {
  .preview-stage-header .tool-row button {
    width: 64px;
  }
}

.design-summary-panel .ledger-list {
  max-height: 128px;
}

.design-summary-panel .price-row {
  margin-top: 18px;
  padding: 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}

.design-summary-panel .price-row strong {
  font-size: 34px;
}

.design-summary-panel .primary-button.full,
.design-summary-panel .secondary-button.full {
  min-height: 54px;
  border-radius: 8px;
}

.design-summary-panel .primary-button.full {
  font-size: 18px;
}

.designer-section .checkout-dock {
  border-radius: 8px;
  background: rgba(255,255,255,.86);
}

.gift-section a {
  font-weight: 800;
  color: var(--lavender-dark);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 52px;
  padding: 28px 0 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.copyright {
  font-size: 12px;
}

.poster-dialog {
  width: min(520px, calc(100vw - 36px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.size-dialog {
  width: min(520px, calc(100vw - 36px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.size-dialog::backdrop {
  background: rgba(58, 43, 28, 0.32);
  backdrop-filter: blur(8px);
}

.size-card {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(229, 216, 194, .92);
  border-radius: 8px;
  background: linear-gradient(145deg, #fffdf8, #f4eddf);
  box-shadow: var(--shadow);
}

.size-card h2 {
  font-size: 28px;
}

.size-card p:not(.eyebrow) {
  margin: 10px 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

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

.size-grid button {
  display: grid;
  gap: 3px;
  place-items: center;
  min-height: 54px;
  color: var(--ink);
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}

.size-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.size-grid button:disabled {
  color: rgba(39, 33, 82, .34);
  cursor: not-allowed;
  background: rgba(244, 242, 248, .54);
}

.size-grid button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #c9a86f, #8b673a);
  box-shadow: 0 12px 24px rgba(139,103,58,.22);
}

.size-grid button.active small {
  color: rgba(255,255,255,.82);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  padding: 12px 18px;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(33, 24, 79, 0.9);
  box-shadow: 0 16px 32px rgba(33,24,79,.24);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.poster-dialog::backdrop {
  background: rgba(58, 43, 28, 0.36);
  backdrop-filter: blur(8px);
}

.poster-card {
  position: relative;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(229, 220, 244, .9);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.96), transparent 9rem),
    linear-gradient(145deg, #fff8fc, #f0f7ff);
  box-shadow: var(--shadow);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.poster-bracelet {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 26px 0;
}

.poster-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.poster-tags span {
  padding: 6px 12px;
  color: var(--lavender-dark);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}

.preview-3d-panel {
  width: min(980px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.preview-3d-panel::backdrop {
  background: rgba(52, 42, 31, 0.36);
  backdrop-filter: blur(10px);
}

.preview-3d-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(229, 220, 244, .92);
  border-radius: 8px;
  background:
    radial-gradient(circle at 74% 16%, rgba(255,255,255,.94), transparent 13rem),
    linear-gradient(145deg, #fffdf8 0%, #f3eee4 54%, #ffffff 100%);
  box-shadow: 0 30px 90px rgba(74, 55, 35, 0.2);
}

.preview-3d-copy {
  max-width: 690px;
}

.preview-3d-copy h2 {
  margin: 6px 0 8px;
  font-family: "Noto Serif SC", serif;
  font-size: 30px;
  line-height: 1.24;
}

.preview-3d-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.preview-3d-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.preview-3d-meta span {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}

.preview-3d-meta b {
  color: var(--ink);
  font-size: 18px;
}

.preview-3d-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(226, 218, 242, .86);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 52% 64%, rgba(67, 96, 146, .18), transparent 18rem),
    linear-gradient(132deg, rgba(255,255,255,.96), rgba(238,242,247,.96));
}

.preview-3d-stage::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .22;
  background:
    repeating-linear-gradient(118deg, transparent 0 68px, rgba(150, 154, 166, .2) 69px, transparent 71px);
  pointer-events: none;
}

.three-preview-canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 520px;
  cursor: grab;
}

.three-preview-canvas:active {
  cursor: grabbing;
}

.preview-3d-hint {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  padding: 8px 12px;
  color: #5f5686;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(226, 218, 242, .92);
  border-radius: 999px;
  background: rgba(255,255,255,.76);
}

.checkout-page {
  padding: 42px 0 24px;
}

.checkout-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto 26px;
}

.checkout-heading h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.18;
}

.checkout-heading > div > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.checkout-back {
  flex: 0 0 auto;
  padding-bottom: 6px;
  color: var(--lavender-dark);
  font-size: 14px;
  font-weight: 800;
  border-bottom: 1px solid #b9aae6;
}

.checkout-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1180px;
  margin: 0 auto 22px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}

.checkout-progress li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.checkout-progress li + li::before {
  position: absolute;
  left: 0;
  width: 1px;
  height: 24px;
  content: "";
  background: var(--line);
}

.checkout-progress span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #d9d0ec;
  border-radius: 50%;
}

.checkout-progress li.active,
.checkout-progress li.done {
  color: var(--ink);
}

.checkout-progress li.active span {
  color: #fff;
  border-color: var(--lavender-dark);
  background: var(--lavender-dark);
}

.checkout-progress li.done span {
  color: var(--lavender-dark);
  border-color: #dcc8a7;
  background: #f4ead9;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: start;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.checkout-form,
.checkout-summary {
  border: 1px solid rgba(229,216,194,.96);
  border-radius: 8px;
  background: rgba(255,253,248,.9);
  box-shadow: 0 20px 52px rgba(105, 79, 45, .10);
}

.checkout-form {
  overflow: hidden;
}

.checkout-form-section {
  padding: 26px;
}

.checkout-form-section + .checkout-form-section {
  border-top: 1px solid var(--line);
}

.checkout-section-title,
.checkout-section-title > div {
  display: flex;
  align-items: center;
}

.checkout-section-title {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.checkout-section-title > div {
  gap: 10px;
}

.checkout-section-title > div > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--lavender-dark);
  font-size: 11px;
  font-weight: 800;
  border: 1px solid #dcc8a7;
  border-radius: 50%;
  background: #f7efe2;
}

.checkout-section-title h2,
.checkout-summary h2 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
}

.checkout-section-title small {
  color: var(--muted);
  font-size: 11px;
}

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

.checkout-fields label,
.checkout-summary-head label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.checkout-fields label > span,
.checkout-summary-head label > span {
  color: #514971;
  font-size: 12px;
  font-weight: 800;
}

.checkout-fields .field-wide {
  grid-column: 1 / -1;
}

.checkout-fields input,
.checkout-fields select,
.checkout-summary-head select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid #ddd5ec;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.checkout-fields input:focus,
.checkout-fields select:focus,
.checkout-summary-head select:focus {
  border-color: #b58d54;
  box-shadow: 0 0 0 3px rgba(195,160,106,.16);
}

.delivery-options,
.payment-methods {
  display: grid;
  gap: 10px;
}

.delivery-options button,
.payment-methods button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 66px;
  gap: 18px;
  padding: 12px 14px;
  color: var(--ink);
  text-align: left;
  border: 1px solid #ded6ed;
  border-radius: 8px;
  background: #fff;
}

.delivery-options button.active,
.payment-methods button.active {
  border-color: #b58d54;
  background: #fdf9f1;
  box-shadow: 0 0 0 3px rgba(195,160,106,.14);
}

.delivery-options button > span,
.payment-methods button > span {
  display: grid;
  gap: 4px;
}

.delivery-options small,
.payment-methods small {
  color: var(--muted);
  font-size: 11px;
}

.delivery-options b,
.payment-methods b {
  flex: 0 0 auto;
  color: #4e456f;
  font-size: 13px;
}

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

.express-payments button {
  min-height: 46px;
  color: #fff;
  font-weight: 800;
  border: 0;
  border-radius: 8px;
  background: #15131c;
}

.express-payments button:nth-child(2) {
  color: #302f34;
  border: 1px solid #dad8df;
  background: #fff;
}

.express-payments button.paypal {
  color: #183b73;
  background: #ffc439;
}

.express-payments button.active {
  outline: 3px solid rgba(195,160,106,.28);
}

.payment-divider {
  position: relative;
  margin: 20px 0;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

.payment-divider::before {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  content: "";
  background: var(--line);
}

.payment-divider span {
  position: relative;
  padding: 0 12px;
  background: #fff;
}

.payment-element-shell {
  min-height: 96px;
  margin-top: 12px;
  padding: 16px;
  border: 1px dashed #cfc4e6;
  border-radius: 8px;
  background: #faf9fc;
}

.payment-element-placeholder {
  display: flex;
  align-items: center;
  gap: 13px;
}

.secure-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: #fff;
  font-weight: 900;
  border-radius: 8px;
  background: #635bff;
}

.payment-element-placeholder p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.checkout-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 26px 16px;
  color: #5c547b;
  font-size: 12px;
  line-height: 1.6;
}

.checkout-consent input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--lavender-dark);
}

.checkout-pay-button {
  justify-content: space-between;
  width: calc(100% - 52px);
  min-height: 56px;
  margin: 0 26px;
  padding: 0 20px;
  border-radius: 8px;
}

.checkout-security-note {
  margin: 12px 26px 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.checkout-summary {
  position: sticky;
  top: 104px;
  padding: 22px;
}

.checkout-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.checkout-summary-head .eyebrow {
  margin-bottom: 6px;
}

.checkout-summary-head label {
  width: 92px;
}

.checkout-summary-head select {
  min-height: 38px;
  padding: 0 8px;
}

.checkout-product {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.checkout-product > div:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.checkout-product span,
.checkout-product small {
  color: var(--muted);
  font-size: 11px;
}

.checkout-product > b {
  font-size: 13px;
}

.checkout-bracelet {
  position: relative;
  width: 108px;
  height: 108px;
  border: 1px solid #ece7f3;
  border-radius: 8px;
  background: linear-gradient(145deg, #fff, #f0f2f6);
}

.checkout-bead {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px;
  border-radius: 50%;
  background: var(--bead-bg);
  background-image: var(--bead-image);
  background-position: var(--bead-image-x, 50%) var(--bead-image-y, 50%);
  background-size: var(--bead-image-size, cover);
  transform: rotate(var(--angle)) translateY(-38px);
  box-shadow: 0 3px 7px rgba(45,42,72,.18);
}

.checkout-totals {
  display: grid;
  gap: 12px;
  margin: 0;
}

.checkout-totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.checkout-totals dt,
.checkout-totals dd {
  margin: 0;
}

.checkout-totals .total {
  align-items: baseline;
  margin-top: 4px;
  padding-top: 16px;
  color: var(--ink);
  font-weight: 800;
  border-top: 1px solid var(--line);
}

.checkout-totals .total dd {
  font-size: 24px;
}

.checkout-assurance {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.checkout-assurance span {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
}

.checkout-assurance b {
  color: #4d456d;
  font-size: 12px;
}

.checkout-confirmation {
  max-width: 720px;
  margin: 28px auto 60px;
  padding: 48px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,253,248,.94);
  box-shadow: var(--shadow);
}

.confirmation-check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  color: #fff;
  font-size: 26px;
  border-radius: 50%;
  background: #9b7541;
}

.checkout-confirmation h2 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 34px;
}

.checkout-confirmation > p:not(.eyebrow) {
  max-width: 560px;
  margin: 14px auto 24px;
  color: var(--muted);
  line-height: 1.7;
}

.checkout-confirmation > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.checkout-confirmation > div span {
  display: grid;
  gap: 5px;
  padding: 12px;
  color: var(--muted);
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf9fd;
}

.checkout-confirmation > div b {
  color: var(--ink);
  font-size: 13px;
}

@media (max-width: 1040px) {
  .topbar {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .hero-section,
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .material-library-panel,
  .preview-workstation,
  .design-summary-panel {
    min-height: auto;
  }

  .preview-workstation .bracelet-stage {
    height: min(76vw, 560px);
  }

  .ai-designer-panel {
    grid-template-columns: 1fr 1fr;
  }

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

  .feature-strip,
  .theme-grid,
  .crystal-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
    grid-row: 1;
  }
}

@media (max-width: 680px) {
  .site-shell {
    padding: 0 14px 36px;
  }

  .topbar {
    min-height: 72px;
    margin: 0 -14px;
    padding: 0 14px;
  }

  .brand small,
  .nav-cta::before,
  .nav-cta::after {
    display: none;
  }

  .nav-cta {
    padding: 0 12px;
  }

  .topbar-actions {
    gap: 4px;
  }

  .topbar .brand {
    gap: 6px;
  }

  .topbar .brand-mark {
    width: 32px;
    height: 32px;
  }

  .topbar .brand strong {
    font-size: 16px;
    white-space: nowrap;
  }

  .language-switcher select {
    min-width: 64px;
    width: 64px;
    padding-left: 7px;
    padding-right: 20px;
  }

  .cart-button {
    padding: 0 6px;
    font-size: 11px;
  }

  .cart-button b {
    white-space: nowrap;
  }

  .cart-button::before {
    content: none;
  }

  .cart-button #cartCount {
    min-width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .topbar .nav-cta {
    min-height: 42px;
    padding: 0 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  body[data-language="en"] .hero-copy h1,
  body[data-language="ja"] .hero-copy h1 {
    font-size: 40px;
  }

  .hero-section {
    padding-top: 34px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-bracelet {
    transform: scale(.67) rotate(-8deg);
    transform-origin: top left;
  }

  .feature-strip,
  .theme-grid,
  .crystal-guide,
  .gallery-grid,
  .gift-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .step-indicator {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
  }

  .ai-designer-panel {
    grid-template-columns: 1fr;
  }

  .preview-3d-shell {
    padding: 20px;
  }

  .preview-3d-meta {
    grid-template-columns: 1fr;
  }

  .preview-3d-stage {
    min-height: 420px;
  }

  .three-preview-canvas {
    height: 420px;
  }

  .material-card {
    grid-template-columns: 50px minmax(0, 1fr) auto;
  }

  .material-library-panel .material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .workbench-hud,
  .checkout-dock {
    grid-template-columns: 1fr;
  }

  .material-library-panel .material-grid {
    grid-template-columns: 1fr;
    max-height: 460px;
    overflow-y: auto;
  }

  .preview-workstation {
    order: 1;
  }

  .material-library-panel {
    order: 2;
  }

  .design-summary-panel {
    order: 3;
  }

  .material-library-panel .material-card {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    min-height: 78px;
    padding: 10px;
    gap: 10px;
  }

  .material-library-panel .material-visual {
    min-height: 0;
  }

  .material-library-panel .material-copy {
    align-content: center;
    padding-right: 0;
  }

  .material-library-panel .material-card .material-gem {
    width: 54px;
    height: 54px;
    margin: 0;
  }

  .material-library-panel .add-dot {
    position: static;
  }

  .preview-stage-header,
  .preview-workstation .workbench-hud {
    padding-left: 14px;
    padding-right: 14px;
  }

  .preview-stage-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-workstation .bracelet-stage {
    height: 420px;
  }

  .stage-control-bar {
    bottom: 14px;
  }

  .checkout-dock {
    position: static;
  }

  .tool-row button span {
    display: none;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-page {
    padding-top: 28px;
  }

  .checkout-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .checkout-progress {
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(112px, 1fr));
  }

  .checkout-form-section {
    padding: 20px 16px;
  }

  .checkout-section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .checkout-fields {
    grid-template-columns: 1fr;
  }

  .checkout-fields .field-wide {
    grid-column: auto;
  }

  .express-payments {
    grid-template-columns: 1fr;
  }

  .checkout-consent {
    margin-left: 16px;
    margin-right: 16px;
  }

  .checkout-pay-button {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }

  .checkout-security-note {
    margin-left: 16px;
    margin-right: 16px;
  }

  .checkout-summary {
    padding: 16px;
  }

  .checkout-product {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .checkout-product > b {
    grid-column: 2;
  }

  .checkout-bracelet {
    width: 92px;
    height: 92px;
  }

  .checkout-bead {
    width: 16px;
    height: 16px;
    margin: -8px;
    transform: rotate(var(--angle)) translateY(-32px);
  }

  .checkout-confirmation {
    padding: 34px 18px;
  }

  .checkout-confirmation > div {
    grid-template-columns: 1fr;
  }
}

/* Keep the selected editorial shell above legacy shared-page rules. */
body {
  background: #f7f4ed;
}

body::before,
body::after {
  display: none;
}

.site-shell {
  max-width: 1600px;
  padding-bottom: 0;
}

.topbar {
  min-height: 72px;
  padding: 0 42px;
  border-color: #ded8cc;
  background: rgba(250, 248, 243, 0.94);
}

.topbar .brand-mark {
  width: 32px;
  height: 32px;
  background: #ad8245;
  box-shadow: none;
}

.topbar .brand strong {
  font-size: 22px;
}

.topbar .brand small {
  display: none;
}

.nav-links {
  gap: 30px;
  color: #413b33;
  font-size: 13px;
  font-weight: 500;
}

.topbar .nav-cta {
  border-radius: 2px;
  background: #aa7d3c;
  box-shadow: none;
}

.topbar .nav-cta::before,
.topbar .nav-cta::after {
  content: none;
}

.site-footer {
  margin-top: 0;
  padding: 30px 8px;
  background: #f7f4ed;
}

@media (max-width: 760px) {
  .topbar {
    min-height: 72px;
    margin: 0 -14px;
    padding: 0 14px;
  }

  .topbar .brand strong {
    font-size: 17px;
  }
}

@media (max-width: 430px) {
  .topbar .nav-cta {
    display: none;
  }
}

/* Storefront redesign */
:root {
  --store-ink: #292620;
  --store-muted: #756d61;
  --store-paper: #fcfbf8;
  --store-warm: #f2ece1;
  --store-line: #ddd5c7;
  --store-gold: #a77b37;
  --store-blue: #dce8eb;
}

html { scroll-behavior: smooth; }
body { color: var(--store-ink); background: var(--store-paper); }
.site-shell { max-width: none; width: 100%; overflow: clip; background: var(--store-paper); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  min-height: 70px;
  border-bottom: 1px solid rgba(80, 69, 52, .14);
  background: rgba(252, 251, 248, .94);
  backdrop-filter: blur(16px);
}
.topbar .brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #9a7134;
  font-size: 18px;
  border: 0;
  background: transparent;
}
.topbar-actions { gap: 10px; }
.language-switcher { border-radius: 2px; background: #fff; }
.cart-button { border-radius: 2px; }
.topbar .nav-cta { min-height: 38px; padding: 0 18px; }
.page-view { width: 100%; }
.store-home { padding: 0; background: var(--store-paper); }

.store-hero {
  position: relative;
  min-height: min(720px, calc(100vh - 70px));
  overflow: hidden;
  background: #eee9e1;
}
.store-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.store-hero::after { content: ""; position: absolute; inset: 0; width: 58%; background: linear-gradient(90deg, rgba(248,245,239,.96) 0%, rgba(248,245,239,.75) 58%, rgba(248,245,239,0) 100%); }
.store-hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: inherit; width: min(1280px, calc(100% - 80px)); margin: 0 auto; padding-bottom: 42px; }
.store-hero-copy h1 { max-width: 570px; margin: 14px 0 12px; font-family: "Noto Serif SC", serif; font-size: clamp(54px, 6vw, 88px); line-height: 1.12; letter-spacing: 0; font-weight: 500; }
.store-hero-copy > p:not(.eyebrow) { margin: 0 0 34px; color: #514b43; font-family: "Noto Serif SC", serif; font-size: 20px; }
.store-hero-actions { display: flex; gap: 12px; }
.store-primary,.store-secondary { display: inline-flex; align-items: center; justify-content: center; min-width: 132px; min-height: 46px; padding: 0 22px; font-size: 14px; font-weight: 700; border: 1px solid var(--store-gold); border-radius: 2px; }
.store-primary { color: #fff; background: var(--store-gold); }
.store-secondary { color: #3e372e; background: rgba(255,255,255,.52); }
.hero-product-note { position: absolute; z-index: 1; right: 28px; bottom: 24px; padding: 8px 12px; color: #5e574d; font-size: 11px; background: rgba(255,255,255,.72); backdrop-filter: blur(8px); }

.store-section { width: min(1320px, calc(100% - 64px)); margin: 0 auto; padding: 84px 0; }
.store-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.store-section-head h2 { margin: 6px 0 0; font-family: "Noto Serif SC", serif; font-size: clamp(28px, 3vw, 42px); font-weight: 500; }
.store-section-head > a { padding-bottom: 4px; color: #5d554a; font-size: 13px; border-bottom: 1px solid #aaa091; }
.eyebrow { color: #967039; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.collection-showcase { padding-bottom: 60px; }
.collection-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.collection-tile { position: relative; min-width: 0; padding: 0; overflow: hidden; color: #fff; text-align: left; border: 0; border-radius: 2px; background: #ddd; cursor: pointer; }
.collection-tile::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(0deg, rgba(22,20,18,.68), transparent); }
.collection-tile img { display: block; width: 100%; aspect-ratio: .76; object-fit: cover; transition: transform .5s ease; }
.collection-tile:hover img { transform: scale(1.025); }
.collection-tile span { position: absolute; z-index: 1; right: 14px; bottom: 16px; left: 14px; display: grid; gap: 4px; }
.collection-tile strong { font-family: "Noto Serif SC", serif; font-size: 19px; }
.collection-tile small { color: rgba(255,255,255,.8); }
.collection-tile i { margin-top: 8px; font-size: 11px; font-style: normal; opacity: .86; }

.bestsellers { width: 100%; padding: 72px max(32px, calc((100% - 1320px) / 2)); background: #f5f1e9; }
.store-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; }
.home-product-grid { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.store-product-card { min-width: 0; background: transparent; }
.store-product-image { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 2px; background: #ece8e1; cursor: pointer; }
.store-product-image img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .45s ease; }
.store-product-image:hover img { transform: scale(1.025); }
.store-product-image > span { position: absolute; top: 10px; left: 10px; padding: 5px 8px; color: #5c5142; font-size: 10px; background: rgba(255,255,255,.82); }
.store-product-body { padding: 15px 2px 0; }
.store-product-body > button { display: grid; gap: 3px; padding: 0; text-align: left; border: 0; background: transparent; cursor: pointer; }
.store-product-body small { color: #8b8173; font-size: 10px; }
.store-product-body strong { font-family: "Noto Serif SC", serif; font-size: 17px; font-weight: 600; }
.store-product-body > p { min-height: 18px; margin: 7px 0 12px; overflow: hidden; color: #847b6f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.store-product-body > div { display: flex; align-items: center; justify-content: space-between; }
.store-product-body > div b { font-size: 14px; }
.store-quick-add { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: #fff; font-size: 18px; border: 0; border-radius: 50%; background: #33302b; cursor: pointer; }

.material-story,.gift-story { display: grid; grid-template-columns: 1fr 1.4fr; min-height: 480px; background: #ebe6dc; }
.material-story-copy,.gift-story > div { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(48px, 7vw, 112px); }
.material-story h2,.gift-story h2 { margin: 10px 0 20px; font-family: "Noto Serif SC", serif; font-size: clamp(34px, 4vw, 52px); font-weight: 500; }
.material-story p,.gift-story p { max-width: 520px; color: #6b6257; line-height: 1.9; }
.material-story a,.gift-story a { margin-top: 20px; padding-bottom: 4px; color: #403a32; border-bottom: 1px solid #81786c; }
.material-story > img,.gift-story > img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.gift-story { grid-template-columns: 1.3fr 1fr; background: #f3e9e4; }
.store-trust { display: grid; grid-template-columns: repeat(5,1fr); width: min(1320px, calc(100% - 64px)); margin: 0 auto; padding: 38px 0; border-bottom: 1px solid var(--store-line); }
.store-trust span { display: grid; gap: 5px; padding: 0 24px; border-right: 1px solid var(--store-line); }
.store-trust span:last-child { border: 0; }
.store-trust b { font-family: "Noto Serif SC", serif; font-size: 14px; }
.store-trust small { color: var(--store-muted); font-size: 10px; }

.store-page,.product-page { min-height: 75vh; padding-bottom: 96px; background: var(--store-paper); }
.store-page-hero { padding: 74px max(32px, calc((100% - 1320px) / 2)) 54px; border-bottom: 1px solid var(--store-line); background: #f1ece2; }
.store-page-hero h1 { margin: 9px 0 12px; font-family: "Noto Serif SC", serif; font-size: clamp(38px, 5vw, 64px); font-weight: 500; }
.store-page-hero > p:last-child { max-width: 620px; color: var(--store-muted); line-height: 1.8; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; width: min(1320px, calc(100% - 64px)); margin: 30px auto; }
.shop-filters { display: flex; gap: 4px; }
.shop-filters button,.shop-toolbar select { min-height: 38px; padding: 0 15px; color: #62594e; border: 1px solid var(--store-line); border-radius: 2px; background: #fff; }
.shop-filters button.active { color: #fff; border-color: #3f3a33; background: #3f3a33; }
.shop-toolbar label { display: flex; align-items: center; gap: 8px; color: var(--store-muted); font-size: 12px; }
.shop-product-grid { width: min(1320px, calc(100% - 64px)); margin: 0 auto; }

.collection-editorial-grid { width: min(1320px, calc(100% - 64px)); margin: 60px auto 0; }
.collection-editorial { display: grid; grid-template-columns: 1.35fr 1fr; min-height: 500px; border-bottom: 1px solid var(--store-line); }
.collection-editorial.is-reverse { grid-template-columns: 1fr 1.35fr; }
.collection-editorial.is-reverse img { order: 2; }
.collection-editorial img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; }
.collection-editorial > div { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(44px, 7vw, 96px); background: #f6f2ea; }
.collection-editorial h2 { margin: 9px 0 20px; font-family: "Noto Serif SC",serif; font-size: 42px; font-weight: 500; }
.collection-editorial p { color: var(--store-muted); line-height: 1.9; }
.collection-editorial > div > span { margin-top: 16px; color: #8e836f; font-size: 11px; }
.collection-editorial button { margin-top: 26px; padding: 0 0 5px; color: #3e382f; border: 0; border-bottom: 1px solid #82776a; background: transparent; cursor: pointer; }

.product-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(420px,.75fr); min-height: calc(100vh - 70px); }
.product-gallery { position: sticky; top: 70px; align-self: start; height: calc(100vh - 70px); overflow: hidden; background: #efebe4; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery > span { position: absolute; right: 18px; bottom: 16px; padding: 7px 10px; color: #756b5e; font-size: 10px; background: rgba(255,255,255,.78); }
.product-buybox { align-self: start; padding: 64px clamp(34px,5vw,82px); }
.product-buybox h1 { margin: 8px 0 12px; font-family: "Noto Serif SC",serif; font-size: 46px; font-weight: 500; }
.product-subtitle { color: var(--store-muted); line-height: 1.8; }
.product-price { display: block; margin: 22px 0; font-size: 22px; }
.product-benefits { display: flex; gap: 16px; margin-bottom: 30px; padding: 13px 0; color: #6e655a; font-size: 11px; border-top: 1px solid var(--store-line); border-bottom: 1px solid var(--store-line); }
.product-buybox fieldset { margin: 0 0 25px; padding: 0; border: 0; }
.product-buybox legend { display: flex; justify-content: space-between; width: 100%; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.product-buybox legend small { color: #8b8175; font-weight: 400; }
.product-buybox legend button { padding: 0; color: #8b673a; border: 0; background: transparent; cursor: pointer; }
.product-option-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.product-option-row button,.product-buybox select { min-height: 44px; border: 1px solid var(--store-line); border-radius: 2px; background: #fff; }
.product-option-row button.active { color: #fff; border-color: #3b3731; background: #3b3731; }
.product-buybox select { width: 100%; padding: 0 13px; }
#productFitAdvice { margin: 8px 0 0; color: #81776a; font-size: 11px; }
.gift-option { display: flex; gap: 12px; margin: 0 0 24px; padding: 14px; border: 1px solid var(--store-line); background: #fbf8f2; }
.gift-option span { display: grid; gap: 3px; }
.gift-option b { font-size: 12px; }
.gift-option small { color: var(--store-muted); font-size: 10px; }
.product-add,.product-buy-now { width: 100%; min-height: 50px; margin-bottom: 9px; border-radius: 2px; font-weight: 700; cursor: pointer; }
.product-add { display: flex; justify-content: space-between; padding: 0 20px; color: #fff; border: 1px solid #a77b37; background: #a77b37; }
.product-buy-now { color: #3a352e; border: 1px solid #49433a; background: #fff; }
.product-details { margin: 28px 0 0; }
.product-details div { display: grid; grid-template-columns: 92px 1fr; padding: 12px 0; border-bottom: 1px solid var(--store-line); }
.product-details dt { font-weight: 700; }
.product-details dd { margin: 0; color: var(--store-muted); }
.related-products { padding-bottom: 0; }
.checkout-bracelet.has-product-image { border-radius: 2px; overflow: hidden; }
.checkout-bracelet.has-product-image img { width: 100%; height: 100%; object-fit: cover; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 28px; width: 100%; padding: 52px max(32px, calc((100% - 1320px) / 2)); border-top: 1px solid var(--store-line); background: #eee8dd; }

@media (max-width: 1100px) {
  .nav-links { gap: 16px; }
  .language-switcher span,.cart-button b { display: none; }
  .collection-strip { grid-template-columns: repeat(3,1fr); }
  .collection-tile img { aspect-ratio: 1.05; }
  .home-product-grid { grid-template-columns: repeat(3,1fr); }
  .store-product-grid { grid-template-columns: repeat(3,1fr); }
  .product-layout { grid-template-columns: 1.15fr .85fr; }
}

@media (max-width: 760px) {
  .topbar { margin: 0; padding: 0 16px; }
  .topbar-actions { margin-left: auto; }
  .nav-links { position: fixed; right: 0; bottom: 0; left: 0; z-index: 110; display: grid; grid-template-columns: repeat(5,1fr); gap: 0; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--store-line); background: rgba(252,251,248,.97); }
  .nav-links a { display: none; padding: 6px 2px; text-align: center; font-size: 10px; }
  .nav-links a[href="#home"],.nav-links a[href="#shop"],.nav-links a[href="#collections"],.nav-links a[href="#crystals"],.nav-links a[href="#gift"] { display: block; }
  .nav-links a::after { display: none; }
  .language-switcher {
    display: inline-flex;
    flex: 0 0 auto;
  }
  .language-switcher select {
    width: 76px;
    min-width: 76px;
    min-height: 38px;
    padding: 0 22px 0 8px;
    font-size: 11px;
  }
  .topbar .nav-cta { display: none; }
  .cart-button {
    min-width: 54px;
    min-height: 38px;
    padding: 0 7px;
  }
  .cart-button .cart-icon {
    display: inline-block;
  }
  .store-hero { min-height: 640px; }
  .store-hero::after { width: 100%; background: linear-gradient(90deg,rgba(248,245,239,.9),rgba(248,245,239,.15)); }
  .store-hero > img { object-position: 62% center; }
  .store-hero-copy { width: calc(100% - 36px); justify-content: flex-end; padding-bottom: 82px; }
  .store-hero-copy h1 { max-width: 330px; font-size: 48px; }
  .store-hero-copy > p:not(.eyebrow) { font-size: 17px; }
  .hero-product-note { display: none; }
  .store-section { width: calc(100% - 32px); padding: 54px 0; }
  .store-section-head { align-items: start; }
  .store-section-head h2 { font-size: 28px; }
  .collection-strip { display: flex; margin-right: -16px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .collection-tile { flex: 0 0 72vw; scroll-snap-align: start; }
  .collection-tile img { aspect-ratio: .88; }
  .bestsellers { width: 100%; padding: 54px 16px; }
  .home-product-grid,.store-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 10px; }
  .material-story,.gift-story { grid-template-columns: 1fr; }
  .material-story > img { order: -1; }
  .material-story > img,.gift-story > img { min-height: 340px; }
  .material-story-copy,.gift-story > div { padding: 46px 22px; }
  .store-trust { grid-template-columns: 1fr 1fr; width: calc(100% - 32px); }
  .store-trust span { padding: 18px 12px; border-bottom: 1px solid var(--store-line); }
  .store-page-hero { padding: 52px 18px 40px; }
  .shop-toolbar { align-items: flex-start; flex-direction: column; width: calc(100% - 32px); gap: 14px; }
  .shop-filters { width: 100%; overflow-x: auto; }
  .shop-filters button { flex: 0 0 auto; }
  .shop-product-grid,.collection-editorial-grid { width: calc(100% - 32px); }
  .collection-editorial,.collection-editorial.is-reverse { grid-template-columns: 1fr; min-height: 0; }
  .collection-editorial.is-reverse img { order: 0; }
  .collection-editorial img { min-height: 340px; }
  .collection-editorial > div { padding: 38px 24px 48px; }
  .collection-editorial h2 { font-size: 34px; }
  .product-layout { grid-template-columns: 1fr; }
  .product-gallery { position: relative; top: 0; height: auto; aspect-ratio: 1; }
  .product-buybox { padding: 38px 18px 54px; }
  .product-buybox h1 { font-size: 38px; }
  .site-footer { grid-template-columns: 1fr; padding: 42px 18px 92px; }
}

/* Fashion editorial homepage */
:root {
  --fashion-ink: #191817;
  --fashion-ivory: #f5f0e7;
  --fashion-paper: #fbf8f2;
  --fashion-wine: #71283a;
  --fashion-silver: #c7d2d4;
}

.store-home {
  color: var(--fashion-ink);
  background: var(--fashion-paper);
}

.store-home .store-hero {
  min-height: calc(100svh - 70px);
  isolation: isolate;
  background: #dedbd4;
}

.store-home .store-hero > img {
  animation: fashion-image-reveal 1.1s cubic-bezier(.2,.7,.2,1) both;
  object-position: center 56%;
}

.store-home .store-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.62);
}

.store-home .store-hero::after {
  z-index: 0;
  width: 72%;
  background: linear-gradient(90deg, rgba(246,241,232,.98) 0%, rgba(246,241,232,.9) 38%, rgba(246,241,232,.36) 69%, rgba(246,241,232,0) 100%);
}

.store-home .store-hero-copy {
  z-index: 2;
  width: min(1380px, calc(100% - 112px));
  padding: 104px 0 72px;
  animation: fashion-copy-reveal .8s .15s cubic-bezier(.2,.7,.2,1) both;
}

.store-home .store-hero-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--fashion-wine);
  letter-spacing: .2em;
}

.store-home .store-hero-copy .eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
}

.store-home .store-hero-copy h1 {
  max-width: 660px;
  margin: 24px 0 22px;
  color: #171513;
  font-size: 82px;
  line-height: 1.08;
  font-weight: 500;
}

body[data-language="en"] .store-home .store-hero-copy h1 {
  max-width: 720px;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 84px;
  line-height: .95;
}

body[data-language="ja"] .store-home .store-hero-copy h1 {
  font-size: 68px;
}

.store-home .store-hero-copy > p:not(.eyebrow) {
  margin-bottom: 38px;
  color: #504941;
  font-size: 18px;
}

.store-home .store-primary,
.store-home .store-secondary {
  min-width: 150px;
  min-height: 48px;
  border-color: var(--fashion-ink);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.store-home .store-primary {
  background: var(--fashion-ink);
}

.store-home .store-primary:hover,
.store-home .store-secondary:hover {
  transform: translateY(-2px);
}

.store-home .store-primary:hover {
  border-color: var(--fashion-wine);
  background: var(--fashion-wine);
}

.store-home .store-secondary {
  background: rgba(250,247,241,.64);
}

.hero-edition {
  position: absolute;
  z-index: 2;
  top: 38px;
  right: 52px;
  display: flex;
  gap: 22px;
  color: rgba(32,29,26,.72);
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-edition span + span::before {
  content: "/";
  margin-right: 22px;
  color: var(--fashion-wine);
}

.hero-proof {
  display: flex;
  gap: 28px;
  margin-top: 46px;
  padding-top: 16px;
  color: #655d54;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-top: 1px solid rgba(48,43,38,.2);
}

.hero-product-note {
  z-index: 2;
  right: 52px;
  bottom: 38px;
  padding: 0 0 5px;
  color: #312d28;
  font-family: "Noto Serif SC", serif;
  font-size: 11px;
  background: transparent;
  border-bottom: 1px solid rgba(49,45,40,.5);
  backdrop-filter: none;
}

.fashion-ticker {
  width: 100%;
  overflow: hidden;
  color: #f7f2e9;
  background: var(--fashion-ink);
}

.fashion-ticker > div {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  min-height: 42px;
  padding-left: 34px;
  animation: fashion-ticker 28s linear infinite;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
}

.fashion-ticker i {
  color: #b98896;
  font-style: normal;
}

.store-home .store-section {
  width: min(1380px, calc(100% - 80px));
  padding: 104px 0;
}

.store-home .store-section-head {
  margin-bottom: 42px;
}

.store-home .store-section-head h2 {
  font-size: 46px;
  line-height: 1.2;
}

.store-home .store-section-head > a,
.store-home .material-story a,
.store-home .gift-story a {
  transition: color 180ms ease, border-color 180ms ease;
}

.store-home .store-section-head > a:hover,
.store-home .material-story a:hover,
.store-home .gift-story a:hover {
  color: var(--fashion-wine);
  border-color: var(--fashion-wine);
}

.store-home .collection-strip {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(270px, 30vw, 410px);
  gap: 10px;
}

.store-home .collection-tile {
  border-radius: 0;
}

.store-home .collection-tile:nth-child(1),
.store-home .collection-tile:nth-child(6) { grid-column: span 4; }
.store-home .collection-tile:nth-child(2),
.store-home .collection-tile:nth-child(5) { grid-column: span 3; }
.store-home .collection-tile:nth-child(3),
.store-home .collection-tile:nth-child(4) { grid-column: span 5; }

.store-home .collection-tile img {
  height: 100%;
  aspect-ratio: auto;
  filter: saturate(.88) contrast(1.03);
  transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}

.store-home .collection-tile:hover img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.02);
}

.store-home .collection-tile::after {
  inset: 32% 0 0;
  background: linear-gradient(0deg, rgba(18,17,16,.78), rgba(18,17,16,0));
}

.store-home .collection-tile span {
  right: 22px;
  bottom: 24px;
  left: 22px;
}

.store-home .collection-tile strong {
  font-size: 24px;
  font-weight: 500;
}

.store-home .bestsellers {
  width: 100%;
  padding: 104px max(40px, calc((100% - 1380px) / 2)) 126px;
  background: #e9e3d8;
}

.store-home .home-product-grid {
  gap: 18px;
}

.store-home .home-product-grid .store-product-card:nth-child(even) {
  transform: translateY(38px);
}

.store-home .store-product-image,
.store-home .store-product-image img {
  border-radius: 0;
}

.store-home .store-product-image > span {
  top: 14px;
  left: 14px;
  color: #fff;
  letter-spacing: .08em;
  background: rgba(25,24,23,.76);
}

.store-home .store-quick-add {
  border-radius: 0;
  background: var(--fashion-ink);
  transition: background 180ms ease;
}

.store-home .store-quick-add:hover {
  background: var(--fashion-wine);
}

.store-home .material-story,
.store-home .gift-story {
  min-height: 620px;
}

.store-home .material-story {
  color: #f5f1e9;
  background: var(--fashion-ink);
}

.store-home .material-story-copy,
.store-home .gift-story > div {
  position: relative;
  overflow: hidden;
}

.store-home .material-story h2,
.store-home .gift-story h2 {
  max-width: 620px;
  font-size: 52px;
  line-height: 1.28;
}

.store-home .material-story p:not(.eyebrow) {
  color: #b9b2a8;
}

.store-home .material-story a {
  color: #f3eee5;
  border-color: #847d74;
}

.store-home .material-story .eyebrow {
  color: #c6a66f;
}

.store-home .gift-story {
  color: #271b1e;
  background: #ead9d9;
}

.store-home .material-story > img,
.store-home .gift-story > img {
  min-height: 620px;
  filter: saturate(.9) contrast(1.03);
}

.story-index {
  position: absolute;
  top: 28px;
  right: 38px;
  color: rgba(255,255,255,.08);
  font-family: "Cormorant Garamond", serif;
  font-size: 148px;
  line-height: 1;
}

.gift-story .story-index {
  color: rgba(113,40,58,.1);
}

.store-home .store-trust {
  width: min(1380px, calc(100% - 80px));
  padding: 48px 0;
}

@keyframes fashion-image-reveal {
  from { opacity: .3; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fashion-copy-reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fashion-ticker {
  to { transform: translateX(-50%); }
}

@media (max-width: 1100px) {
  .store-home .store-hero-copy h1,
  body[data-language="en"] .store-home .store-hero-copy h1 { font-size: 68px; }
  body[data-language="ja"] .store-home .store-hero-copy h1 { font-size: 58px; }
  .store-home .collection-strip { grid-auto-rows: 330px; }
  .store-home .home-product-grid .store-product-card:nth-child(even) { transform: translateY(24px); }
}

@media (max-width: 760px) {
  .topbar {
    background: rgba(252,251,248,.99);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .store-home .store-hero { min-height: 680px; }
  .store-home .store-hero::before { inset: 10px; }
  .store-home .store-hero::after { width: 100%; background: linear-gradient(180deg,rgba(246,241,232,.1) 18%,rgba(246,241,232,.9) 69%,rgba(246,241,232,.98) 100%); }
  .store-home .store-hero > img { object-position: 57% 24%; }
  .store-home .store-hero-copy { width: calc(100% - 42px); justify-content: flex-end; padding: 260px 0 66px; }
  .store-home .store-hero-copy h1,
  body[data-language="en"] .store-home .store-hero-copy h1,
  body[data-language="ja"] .store-home .store-hero-copy h1 { max-width: 390px; margin: 14px 0; font-size: 48px; line-height: 1.08; }
  .store-home .store-hero-copy > p:not(.eyebrow) { margin-bottom: 24px; font-size: 15px; }
  .hero-edition { top: 24px; right: 25px; font-size: 10px; }
  .hero-edition span + span { display: none; }
  .hero-proof { gap: 14px; margin-top: 24px; font-size: 8px; }
  .store-home .hero-product-note { display: none; }
  .fashion-ticker > div { min-height: 36px; }
  .store-home .store-section { width: calc(100% - 32px); padding: 68px 0; }
  .store-home .store-section-head { margin-bottom: 28px; }
  .store-home .store-section-head h2 { font-size: 32px; }
  .store-home .collection-strip { display: flex; grid-auto-rows: auto; gap: 8px; margin-right: -16px; }
  .store-home .collection-tile { flex-basis: 78vw; height: 470px; }
  .store-home .home-product-grid .store-product-card:nth-child(even) { transform: none; }
  .store-home .bestsellers { padding: 68px 16px; }
  .store-home .material-story,
  .store-home .gift-story { min-height: 0; }
  .store-home .material-story h2,
  .store-home .gift-story h2 { font-size: 38px; }
  .store-home .material-story > img,
  .store-home .gift-story > img { min-height: 390px; }
  .store-home .material-story-copy,
  .store-home .gift-story > div { padding: 68px 24px; }
  .story-index { top: 18px; right: 22px; font-size: 92px; }
  .store-home .store-trust { width: calc(100% - 32px); padding: 24px 0 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .store-home .store-hero > img,
  .store-home .store-hero-copy,
  .fashion-ticker > div { animation: none; }
}

/* Gift storefront */
.gift-page { padding: 0 0 86px; background: var(--store-paper); }
.gift-hero { position: relative; min-height: 610px; overflow: hidden; background: #eadfd8; }
.gift-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.gift-hero::after { content: ""; position: absolute; inset: 0; width: 62%; background: linear-gradient(90deg,rgba(249,244,238,.97),rgba(249,244,238,.76) 58%,rgba(249,244,238,0)); }
.gift-hero > div { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: min(1320px,calc(100% - 64px)); min-height: 610px; margin: 0 auto; }
.gift-hero h1 { max-width: 680px; margin: 12px 0 18px; font-family: "Noto Serif SC",serif; font-size: clamp(48px,5.5vw,76px); line-height: 1.2; letter-spacing: 0; font-weight: 500; }
.gift-hero > div > p:not(.eyebrow) { max-width: 520px; margin: 0 0 30px; color: #62594f; font-size: 16px; line-height: 1.9; }
.gift-hero > div > div { display: flex; gap: 10px; }
.gift-hero > ul { position: absolute; z-index: 1; right: max(32px,calc((100% - 1320px)/2)); bottom: 24px; display: flex; gap: 26px; margin: 0; padding: 12px 16px; color: #675e53; font-size: 11px; list-style: none; background: rgba(255,255,255,.76); backdrop-filter: blur(10px); }
.gift-recipient .store-section-head > p { max-width: 390px; color: var(--store-muted); line-height: 1.7; }
.gift-recipient-tabs { display: flex; gap: 5px; margin: -4px 0 28px; padding-bottom: 10px; overflow-x: auto; }
.gift-recipient-tabs button { flex: 0 0 auto; min-height: 40px; padding: 0 18px; color: #62594e; border: 1px solid var(--store-line); border-radius: 2px; background: #fff; cursor: pointer; }
.gift-recipient-tabs button.active { color: #fff; border-color: #3d3933; background: #3d3933; }
.gift-product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.gift-product-card .store-product-body > p { min-height: 38px; white-space: normal; line-height: 1.7; }
.gift-card-action { min-height: 32px; padding: 0 12px; color: #fff; font-size: 11px; border: 0; border-radius: 2px; background: #a77b37; cursor: pointer; }

.gift-occasions { padding: 76px max(32px,calc((100% - 1320px)/2)); background: #f1ece3; }
.gift-occasions > header { margin-bottom: 28px; }
.gift-occasions h2 { margin: 7px 0 0; font-family: "Noto Serif SC",serif; font-size: clamp(30px,3.2vw,44px); font-weight: 500; }
.gift-occasions > div { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.gift-occasions button { position: relative; min-height: 360px; padding: 0; overflow: hidden; color: #fff; text-align: left; border: 0; border-radius: 2px; background: #ddd; cursor: pointer; }
.gift-occasions button::after { content: ""; position: absolute; inset: 44% 0 0; background: linear-gradient(0deg,rgba(25,21,18,.7),transparent); }
.gift-occasions img { display: block; width: 100%; height: 360px; object-fit: cover; transition: transform .45s ease; }
.gift-occasions button:hover img { transform: scale(1.025); }
.gift-occasions button span { position: absolute; z-index: 1; right: 18px; bottom: 18px; left: 18px; display: grid; gap: 5px; }
.gift-occasions button b { font-family: "Noto Serif SC",serif; font-size: 22px; }
.gift-occasions button small { color: rgba(255,255,255,.82); }

.gift-service-section { display: grid; grid-template-columns: 1.15fr .85fr; width: min(1320px,calc(100% - 64px)); margin: 86px auto; background: #eee5dc; }
.gift-service-copy { padding: clamp(48px,7vw,94px); }
.gift-service-copy h2 { max-width: 620px; margin: 8px 0 18px; font-family: "Noto Serif SC",serif; font-size: clamp(34px,4vw,50px); line-height: 1.35; font-weight: 500; }
.gift-service-copy > p:last-of-type { color: var(--store-muted); line-height: 1.9; }
.gift-service-copy dl { margin: 34px 0 0; }
.gift-service-copy dl div { display: grid; grid-template-columns: 110px 1fr; padding: 14px 0; border-top: 1px solid #d2c6b8; }
.gift-service-copy dt { font-weight: 700; }
.gift-service-copy dd { margin: 0; color: #776d60; }
.gift-wrap-panel { align-self: center; margin: 38px; padding: 28px; border: 1px solid #d9cdbf; background: rgba(255,255,255,.72); }
.gift-wrap-panel > p { margin: 0 0 14px; font-family: "Noto Serif SC",serif; font-size: 20px; font-weight: 700; }
#giftWrapOptions { display: grid; gap: 7px; }
#giftWrapOptions button { display: flex; justify-content: space-between; min-height: 46px; padding: 0 14px; border: 1px solid var(--store-line); border-radius: 2px; background: #fff; cursor: pointer; }
#giftWrapOptions button.active { color: #fff; border-color: #3f3931; background: #3f3931; }
.gift-wrap-panel label { position: relative; display: grid; gap: 8px; margin-top: 22px; font-weight: 700; }
.gift-wrap-panel textarea { min-height: 112px; padding: 12px; resize: vertical; font: inherit; line-height: 1.6; border: 1px solid var(--store-line); border-radius: 2px; background: #fff; }
.gift-wrap-panel label small { position: absolute; right: 9px; bottom: 8px; color: #8c8377; font-weight: 400; }

.gift-fit-help { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; width: min(1180px,calc(100% - 64px)); margin: 0 auto 86px; padding: 54px 0; border-top: 1px solid var(--store-line); border-bottom: 1px solid var(--store-line); }
.gift-fit-help h2 { margin: 8px 0 17px; font-family: "Noto Serif SC",serif; font-size: 38px; line-height: 1.35; font-weight: 500; }
.gift-fit-help p { color: var(--store-muted); line-height: 1.9; }
.gift-fit-help > div:last-child { display: grid; align-content: center; gap: 13px; }
.gift-fit-help span { display: grid; gap: 3px; padding-bottom: 12px; border-bottom: 1px solid var(--store-line); }
.gift-fit-help span small { color: var(--store-muted); }
.gift-fit-help button { justify-self: start; margin-top: 8px; padding: 0 0 5px; border: 0; border-bottom: 1px solid #70665a; background: transparent; cursor: pointer; }

.gift-delivery { display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px; width: min(1180px,calc(100% - 64px)); margin: 0 auto; padding: 60px; background: #e8eff0; }
.gift-delivery h2 { margin: 8px 0 15px; font-family: "Noto Serif SC",serif; font-size: 34px; line-height: 1.4; font-weight: 500; }
.gift-delivery p { color: #687577; line-height: 1.8; }
.gift-delivery form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; }
.gift-delivery label { display: grid; gap: 7px; color: #596466; font-size: 11px; font-weight: 700; }
.gift-delivery select,.gift-delivery input { min-height: 46px; padding: 0 12px; border: 1px solid #c7d1d2; border-radius: 2px; background: #fff; }
.gift-delivery form button { grid-column: 1/-1; min-height: 46px; color: #fff; border: 0; border-radius: 2px; background: #46595c; cursor: pointer; }
.gift-delivery output { grid-column: 2; padding-top: 16px; color: #536164; border-top: 1px solid #c3cdce; line-height: 1.7; }
.gift-delivery output b { display: block; color: #354648; }
.gift-assurance { display: grid; grid-template-columns: repeat(4,1fr); width: min(1180px,calc(100% - 64px)); margin: 46px auto 0; }
.gift-assurance span { display: grid; gap: 5px; padding: 8px 24px; border-right: 1px solid var(--store-line); }
.gift-assurance span:last-child { border: 0; }
.gift-assurance small { color: var(--store-muted); font-size: 10px; }

@media (max-width: 760px) {
  .gift-page { padding-bottom: 92px; }
  .gift-hero { min-height: 650px; }
  .gift-hero::after { width: 100%; background: linear-gradient(90deg,rgba(249,244,238,.93),rgba(249,244,238,.18)); }
  .gift-hero > img { object-position: 60% center; }
  .gift-hero > div { justify-content: flex-end; width: calc(100% - 36px); min-height: 650px; padding-bottom: 102px; }
  .gift-hero h1 { max-width: 350px; font-size: 43px; }
  .gift-hero > div > p:not(.eyebrow) { max-width: 330px; font-size: 14px; }
  .gift-hero > ul { right: 18px; bottom: 18px; left: 18px; justify-content: space-between; gap: 6px; padding: 10px; font-size: 9px; }
  .gift-recipient .store-section-head { display: grid; }
  .gift-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gift-occasions { padding: 54px 16px; }
  .gift-occasions > div { display: flex; margin-right: -16px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .gift-occasions button { flex: 0 0 76vw; min-height: 360px; scroll-snap-align: start; }
  .gift-service-section { grid-template-columns: 1fr; width: 100%; margin: 54px 0; }
  .gift-service-copy { padding: 46px 20px; }
  .gift-wrap-panel { margin: 0 16px 30px; padding: 20px; }
  .gift-fit-help { grid-template-columns: 1fr; gap: 26px; width: calc(100% - 36px); margin-bottom: 54px; padding: 42px 0; }
  .gift-fit-help h2 { font-size: 32px; }
  .gift-delivery { grid-template-columns: 1fr; gap: 24px; width: 100%; padding: 44px 18px; }
  .gift-delivery form { grid-template-columns: 1fr; }
  .gift-delivery form button,.gift-delivery output { grid-column: 1; }
  .gift-assurance { grid-template-columns: 1fr 1fr; width: calc(100% - 36px); }
  .gift-assurance span { padding: 16px 10px; border-bottom: 1px solid var(--store-line); }
}

/* Accounts and order operations */
.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  color: #514b43;
  text-decoration: none;
  border: 1px solid #ded7cc;
  border-radius: 2px;
  background: #fff;
}
.account-button > span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 15px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.account-button b { font-size: 12px; }
.account-button.is-signed-in { color: #fff; border-color: #70624d; background: #70624d; }
.account-form[hidden],
.account-auth-layout[hidden],
.account-dashboard[hidden],
.account-logout[hidden],
#adminOrdersLink[hidden] { display: none !important; }

.account-page,
.admin-page {
  min-height: 76vh;
  padding: 72px max(32px, calc((100% - 1180px) / 2)) 100px;
  background: #f8f5ee;
}
.account-heading,
.admin-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid #dcd4c8;
}
.account-heading h1,
.admin-heading h1 {
  margin: 8px 0 10px;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 500;
}
.account-heading > div > p:last-child,
.admin-heading > div > p:last-child {
  max-width: 680px;
  margin: 0;
  color: #736b60;
  line-height: 1.8;
}
.account-logout,
.admin-heading > a {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  color: #554e45;
  text-decoration: none;
  border: 1px solid #cec5b8;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}
.admin-heading > a { display: inline-flex; align-items: center; }

.account-auth-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 520px;
  margin-top: 42px;
  border: 1px solid #dcd4c8;
  background: #fff;
}
.account-auth-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 7vw, 86px);
  color: #f9f7f1;
  background: #5c675d;
}
.account-auth-copy h2 {
  max-width: 520px;
  margin: 10px 0 18px;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 500;
}
.account-auth-copy > p:not(.eyebrow) {
  max-width: 530px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.9;
}
.account-auth-copy ul {
  display: grid;
  gap: 11px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.account-auth-copy li::before { content: "✓"; margin-right: 10px; color: #e5cf9a; }
.account-auth-panel {
  align-self: center;
  width: min(430px, calc(100% - 64px));
  margin: 42px auto;
}
.account-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
  border-bottom: 1px solid #ddd5ca;
}
.account-auth-tabs button {
  min-height: 46px;
  color: #847a6e;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
}
.account-auth-tabs button.active { color: #342f29; border-bottom-color: #907347; font-weight: 700; }
.account-form { display: grid; gap: 17px; }
.account-form label { display: grid; gap: 7px; color: #655d53; font-size: 12px; font-weight: 700; }
.account-form input,
.admin-toolbar input,
.admin-toolbar select,
.admin-order-table select {
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
  color: #342f29;
  font: inherit;
  border: 1px solid #d5ccbf;
  border-radius: 2px;
  background: #fff;
}
.account-form label small { color: #93897d; font-weight: 400; }
.account-form .primary-button { min-height: 48px; margin-top: 4px; border: 0; cursor: pointer; }
.account-form button:disabled,
.checkout-pay-button:disabled { opacity: .58; cursor: wait; }
.account-name-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-form-message { min-height: 22px; margin: 14px 0 0; color: #9b463b; font-size: 12px; line-height: 1.7; }

.account-dashboard {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 52px;
  padding-top: 48px;
}
.account-profile { align-self: start; position: sticky; top: 96px; }
.account-avatar {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 25px;
  background: #667064;
  border-radius: 50%;
}
.account-profile h2 { margin: 18px 0 5px; font-family: "Noto Serif SC", serif; font-size: 24px; }
.account-profile p { margin: 0; color: #756d63; word-break: break-word; }
.account-verification {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #dfcfac;
  background: #fbf6e9;
  color: #6d5a36;
  font-size: 11px;
  line-height: 1.6;
}
.account-verification[hidden] { display: none !important; }
.account-verification button {
  justify-self: start;
  padding: 0;
  border: 0;
  color: #765a2c;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.account-verification button:disabled { opacity: 0.5; cursor: wait; }
.account-profile a { display: inline-block; margin-top: 24px; color: #705b3e; font-size: 12px; font-weight: 700; }
.account-orders-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.account-orders-head h2 { margin: 5px 0 0; font-family: "Noto Serif SC", serif; font-size: 34px; font-weight: 500; }
.account-orders-head button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #d1c8bb;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}
.account-order-list { display: grid; gap: 10px; }
.account-order-card {
  padding: 22px;
  border: 1px solid #ddd5c9;
  border-radius: 2px;
  background: #fff;
}
.account-order-card header,
.account-order-card footer,
.account-order-product { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.account-order-card header { padding-bottom: 15px; border-bottom: 1px solid #eee8df; }
.account-order-card header div,
.account-order-product > div { display: grid; gap: 4px; }
.account-order-card small,
.account-order-card footer { color: #837a6e; font-size: 11px; }
.account-order-card header > span,
.admin-status {
  padding: 5px 8px;
  color: #665d52;
  font-size: 10px;
  border: 1px solid #d8cfc2;
  background: #f8f5ee;
}
.account-order-card [data-status="paid"],
.account-order-card [data-status="completed"],
.admin-status[data-status="paid"],
.admin-status[data-status="completed"] { color: #3f684e; border-color: #b9cfbf; background: #edf5ef; }
.account-order-card [data-status="cancelled"],
.admin-status[data-status="cancelled"],
.admin-status[data-status="failed"] { color: #8f443d; border-color: #dfc2bd; background: #fbefed; }
.account-order-product { padding: 20px 0; }
.account-order-card footer { justify-content: flex-start; padding-top: 13px; border-top: 1px solid #eee8df; }
.account-empty { padding: 56px 28px; text-align: center; border: 1px solid #ddd5c9; background: #fff; }
.account-empty p { color: #7a7166; }
.account-empty a { color: #715c3e; font-weight: 700; }

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 88px;
  gap: 12px;
  align-items: end;
  padding: 30px 0 18px;
}
.admin-toolbar label { display: grid; gap: 7px; color: #6c645a; font-size: 11px; font-weight: 700; }
.admin-toolbar button {
  min-height: 46px;
  color: #fff;
  border: 0;
  border-radius: 2px;
  background: #5c675d;
  cursor: pointer;
}
.admin-order-table-wrap { overflow-x: auto; border: 1px solid #d9d0c3; background: #fff; }
.admin-order-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.admin-order-table th,
.admin-order-table td { padding: 14px; text-align: left; border-bottom: 1px solid #ece6dd; }
.admin-order-table th { color: #81776b; font-size: 10px; text-transform: uppercase; background: #f5f1e9; }
.admin-order-table td { color: #4f4941; font-size: 12px; }
.admin-order-table td:first-child,
.admin-order-table td:nth-child(2) { display: table-cell; }
.admin-order-table td strong,
.admin-order-table td span,
.admin-order-table td small { display: block; }
.admin-order-table td small { margin-top: 4px; color: #8b8276; }
.admin-order-table select { min-height: 36px; min-width: 130px; font-size: 11px; }

@media (max-width: 760px) {
  .account-button {
    width: 40px;
    min-width: 40px;
    padding: 0;
  }
  .account-button b { display: none; }
  .account-page,
  .admin-page { padding: 44px 16px 92px; }
  .account-heading,
  .admin-heading { align-items: start; }
  .account-heading h1,
  .admin-heading h1 { font-size: 38px; }
  .account-heading > div > p:last-child,
  .admin-heading > div > p:last-child { font-size: 13px; }
  .account-auth-layout { grid-template-columns: 1fr; min-height: 0; margin-top: 28px; }
  .account-auth-copy { padding: 42px 22px; }
  .account-auth-copy h2 { font-size: 34px; }
  .account-auth-panel { width: calc(100% - 36px); margin: 30px auto 36px; }
  .account-name-fields { grid-template-columns: 1fr; }
  .account-dashboard { grid-template-columns: 1fr; gap: 34px; padding-top: 32px; }
  .account-profile { position: static; display: grid; grid-template-columns: 58px 1fr; column-gap: 14px; }
  .account-avatar { grid-row: 1 / 4; width: 58px; height: 58px; font-size: 20px; }
  .account-profile h2 { margin: 2px 0 1px; font-size: 20px; }
  .account-profile a { margin-top: 9px; }
  .account-orders-head h2 { font-size: 28px; }
  .account-order-card { padding: 17px; }
  .account-order-product { align-items: start; }
  .admin-toolbar { grid-template-columns: 1fr; }
  .admin-heading > a { display: none; }
}
