/* Citrus Cloud Mac Store — Pure White macOS Design System */

:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --surface-soft: #fbfcfd;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --ink: #111827;
  --ink-secondary: #4b5563;
  --muted: #6b7280;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-soft: #fff7ed;
  --accent-border: #fed7aa;
  --btn-dark: #18181b;
  --btn-dark-hover: #27272a;
  --success: #15803d;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --warning: #9a3412;
  --warning-bg: #fff7ed;
  --warning-border: #fed7aa;
  --info: #1d4ed8;
  --info-bg: #eff6ff;
  --info-border: #bfdbfe;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.05), 0 1px 2px rgba(17, 24, 39, 0.03);
  --shadow-md: 0 12px 32px rgba(17, 24, 39, 0.07), 0 2px 6px rgba(17, 24, 39, 0.04);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang HK", "PingFang TC", "Hiragino Sans GB", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  color: inherit;
}

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

button:disabled,
select:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: #ffedd5;
  color: var(--ink);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

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

svg {
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--btn-dark);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

/* Top Bar — Pure Light Hairline */
.top-bar {
  background: #f8f9fb;
  border-bottom: 1px solid #ebedf0;
  color: #525866;
  font-size: 12px;
}

.top-bar > .container {
  min-height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.store-meta {
  color: var(--muted);
  font-size: 11.5px;
}

/* Sticky Translucent White Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-main {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.logo-img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.logo-word {
  display: flex;
  flex-direction: column;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.logo-word > small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 40px;
  flex: 1;
  min-width: 160px;
  max-width: 380px;
  margin-left: auto;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.search-form:focus-within {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0 6px 0 16px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
}

.search-form input::placeholder {
  color: #9ca3af;
}

.search-form button {
  border: 0;
  background: transparent;
  width: 40px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.15s;
}

.search-form button:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  white-space: nowrap;
}

.orders-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.orders-link:hover {
  background: var(--surface);
  color: var(--ink);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px 6px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 550;
  transition: border-color 0.15s, background 0.15s;
}

.cart-link:hover {
  background: #ffffff;
  border-color: var(--line-strong);
}

.cart-link .icon {
  width: 16px;
  height: 16px;
  color: var(--ink-secondary);
}

.cart-link b {
  font-size: 11px;
  font-weight: 700;
  background: var(--btn-dark);
  color: #ffffff;
  border-radius: 999px;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-link b[data-has-items="true"] {
  background: var(--accent);
}

.language-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 550;
  color: var(--ink-secondary);
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.language-link:hover {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.desktop-nav {
  border-top: 1px solid #f1f3f5;
}

.desktop-nav > .container {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 44px;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-nav > .container::-webkit-scrollbar {
  display: none;
}

.desktop-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  line-height: 42px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.desktop-nav a:hover {
  color: var(--ink);
}

.desktop-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 8px 24px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.mobile-menu a {
  display: block;
  border-bottom: 1px solid #f1f3f5;
  padding: 13px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

/* Shared Primitives */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.button .icon {
  width: 16px;
  height: 16px;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(234, 88, 12, 0.2);
}

.button.primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.button.dark {
  background: var(--btn-dark);
  color: #ffffff;
}

.button.dark:hover:not(:disabled) {
  background: var(--btn-dark-hover);
}

.button.outline {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.button.outline:hover:not(:disabled) {
  background: var(--surface);
  border-color: #9ca3af;
}

.button.subtle {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.button.subtle:hover:not(:disabled) {
  background: #eef0f4;
}

.button.small {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 7px;
}

.block {
  display: flex;
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.15s;
}

.text-link .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.15s;
}

.text-link:hover {
  color: var(--accent-hover);
}

.text-link:hover .icon {
  transform: translateX(2px);
}

.text-button {
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 6px 0;
}

.text-button:hover {
  color: var(--ink);
}

/* Home Hero — Spacious Pure White Canvas */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-block: 64px 72px;
}

.hero-copy h1 {
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 14px 0 20px;
}

.hero-description {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--ink-secondary);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.hero-chip .icon {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

/* Elevated White Spotlight Card */
.spotlight {
  display: block;
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.spotlight:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.09), 0 4px 10px rgba(17, 24, 39, 0.04);
}

.spotlight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 18px;
}

.spotlight-top h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: 6px;
}

.spotlight-top p {
  font-size: 13px;
  color: var(--ink-secondary);
  margin-top: 4px;
  line-height: 1.5;
}

.spotlight-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(17, 24, 39, 0.1));
}

.spotlight-image {
  margin: 0 20px 20px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid #eef0f3;
  overflow: hidden;
}

.spotlight-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 8px;
}

.spotlight-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 15px 26px;
  background: var(--surface-soft);
  font-size: 13px;
}

.spotlight-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.spotlight-price-wrap strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.spotlight-price-wrap small {
  font-size: 11.5px;
  color: var(--muted);
}

.spotlight-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-hover);
}

.spotlight-cta .icon {
  width: 15px;
  height: 15px;
}

/* 4-Column Trust Strip */
.trust-strip {
  background: #fafbfc;
  border-block: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-block: 26px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.trust-icon .icon {
  width: 18px;
  height: 18px;
}

.trust-item h2 {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.35;
}

.trust-item p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 3px;
}

/* Sections */
.section {
  padding-block: 64px;
}

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

.section-heading h2,
.collections h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
}

.section-heading .eyebrow,
.collections .eyebrow {
  margin-bottom: 8px;
}

.section-heading p:not(.eyebrow) {
  font-size: 14px;
  color: var(--ink-secondary);
  margin-top: 8px;
  line-height: 1.65;
}

.section-heading > .text-link {
  flex-shrink: 0;
  padding-bottom: 4px;
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.product-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.product-art {
  height: 152px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fb;
  border-bottom: 1px solid #f0f2f5;
}

.product-art > img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(17, 24, 39, 0.08));
  transition: transform 0.2s;
}

.product-card:hover .product-art > img {
  transform: scale(1.04);
}

.platform-mini {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
  line-height: 1.5;
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
  line-height: 1.4;
}

.card-body h3 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 5px;
}

.card-body h3 a:hover {
  color: var(--accent-hover);
}

.card-body > p {
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-top: 6px;
  min-height: 40px;
}

.card-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.price {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.2;
}

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

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.icon-button:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.icon-button .icon {
  width: 16px;
  height: 16px;
}

/* 4-Category Work Collections */
.collections {
  background: #fafbfc;
  border-block: 1px solid var(--line);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.collection-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.collection-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.collection-meta {
  min-width: 0;
}

.collection-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 2px 10px;
}

.collection-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: 10px;
}

.collection-card p {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.65;
  max-width: 340px;
  margin-top: 7px;
}

.collection-card .text-link {
  margin-top: 16px;
  font-size: 13px;
}

.collection-icons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.collection-icon-tile {
  width: 58px;
  height: 58px;
  border-radius: 13px;
  background: #f8f9fb;
  border: 1px solid #eef0f3;
  display: grid;
  place-items: center;
  padding: 8px;
}

.collection-icon-tile img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

/* Help & Support Strip */
.help-strip-wrap {
  padding-block: 52px;
}

.help-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.help-strip h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.help-strip p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-secondary);
  margin-top: 6px;
  max-width: 620px;
}

.help-strip-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Breadcrumbs & Page Heading */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  padding-block: 22px 18px;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.breadcrumbs [aria-current] {
  color: var(--ink);
  font-weight: 500;
}

.page-heading {
  margin-top: 4px;
  margin-bottom: 28px;
}

.page-heading h1 {
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

.page-heading p {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.75;
  margin-top: 10px;
  max-width: 720px;
}

/* Catalog Filters */
.catalog-filters {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--surface-soft);
}

.catalog-filters label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.catalog-filters select {
  height: 40px;
  padding: 0 32px 0 12px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 13px;
  width: 100%;
}

.catalog-filters .button {
  min-height: 40px;
  padding: 8px 18px;
}

.filter-reset {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding-inline: 6px;
  white-space: nowrap;
}

.filter-reset:hover {
  color: var(--ink);
}

.catalog-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  margin-block: 24px 18px;
  color: var(--muted);
}

.catalog-grid {
  padding-bottom: 64px;
}

/* Product Detail Page */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
  padding: 6px 0 52px;
}

.product-visual {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  overflow: hidden;
  min-width: 0;
}

.product-brand-display {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 38px 28px 28px;
  text-align: center;
}

.product-brand-display > img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 18px rgba(17, 24, 39, 0.1));
}

.product-visual-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-brand-display h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-secondary);
}

.product-compat-line {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
}

.product-preview-frame {
  margin: 0 22px 22px;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.product-screenshot {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.visual-credit {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.category-label {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--accent-hover);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 3px 11px;
}

.product-buy h1 {
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 12px;
}

.product-tagline {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.65;
  margin-top: 10px;
}

.detail-price {
  margin-block: 22px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-price > span {
  font-size: 11.5px;
  font-weight: 550;
  color: var(--muted);
  display: block;
}

.detail-price strong {
  display: block;
  font-size: 30px;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  margin-top: 4px;
  line-height: 1.15;
}

.detail-price p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

legend {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.variant-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.variant-options label {
  position: relative;
  cursor: pointer;
}

.variant-options input {
  position: absolute;
  left: 14px;
  top: 17px;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
}

.variant-options label > span {
  display: block;
  padding: 14px 14px 14px 36px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.variant-options input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}

.variant-options input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.variant-options small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
  margin-top: 4px;
}

.quantity-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.quantity-field > label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: 112px;
  height: 36px;
  background: #ffffff;
  flex-shrink: 0;
}

.quantity-control button {
  height: 100%;
  width: 34px;
  border: 0;
  background: #ffffff;
  flex-shrink: 0;
  font-size: 16px;
  color: var(--ink);
}

.quantity-control button:hover:not(:disabled) {
  background: var(--surface);
}

.quantity-control input {
  min-width: 0;
  width: 44px;
  text-align: center;
  border: 0;
  padding: 0;
  background: #ffffff;
  -moz-appearance: textfield;
  appearance: textfield;
  height: 100%;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.buy-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.form-message {
  font-size: 12px;
  color: var(--muted);
  min-height: 0;
  margin-top: 8px;
}

.buy-trust-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.buy-trust-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 12px;
}

.buy-trust-note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.buy-trust-note a:hover {
  color: var(--accent-hover);
}

/* Product Information & Requirements */
.product-information {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 64px;
  border-top: 1px solid var(--line);
  padding-top: 44px;
}

.product-reading h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 30px 0 12px;
}

.product-reading h2:first-child {
  margin-top: 0;
}

.product-reading > p {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.85;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.feature-list .icon {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: var(--accent);
}

.purchase-guide {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  align-self: start;
  background: var(--surface-soft);
}

.purchase-guide h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.purchase-guide > p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 8px;
}

.purchase-guide dl {
  font-size: 12.5px;
  margin: 18px 0;
}

.purchase-guide dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.purchase-guide dt {
  color: var(--muted);
  flex-shrink: 0;
}

.purchase-guide dd {
  margin: 0;
  text-align: right;
  font-weight: 550;
  color: var(--ink);
}

.guide-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.guide-links .text-link {
  font-size: 13px;
}

.related-section {
  padding-top: 52px;
}

/* Checkout Stepper & Shopping Flow */
.checkout-steps {
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 10px 0 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.checkout-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.checkout-steps li > span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 700;
  width: 26px;
  height: 26px;
  background: #ffffff;
}

.checkout-steps li.current {
  color: var(--ink);
  font-weight: 650;
}

.checkout-steps li.current > span {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.checkout-steps li.done {
  color: var(--ink-secondary);
}

.checkout-steps li.done > span {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}

.flow-page {
  padding-bottom: 68px;
  min-height: 540px;
}

.shopping-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

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

.section-bar h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-bar h2 span {
  font-weight: 400;
  color: var(--muted);
  font-size: 14px;
}

.section-bar > a {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-secondary);
}

.section-bar > a:hover {
  color: var(--accent-hover);
}

.cart-items {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid #eef0f3;
  padding: 7px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.cart-item-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info h3 {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}

.cart-item-info h3 a:hover {
  color: var(--accent-hover);
}

.cart-item-info p {
  font-size: 12px;
  color: var(--ink-secondary);
  margin-top: 3px;
}

.cart-item-info > span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}

.remove-button {
  padding: 0;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.remove-button:hover {
  color: var(--danger);
}

.line-total {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink);
}

.line-quantity {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.order-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface-soft);
}

.order-summary h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-secondary);
  margin-top: 13px;
}

.summary-row strong {
  font-weight: 600;
  color: var(--ink);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
  font-size: 14.5px;
  font-weight: 600;
}

.summary-total strong {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.summary-currency {
  font-size: 11.5px;
  color: var(--muted);
  text-align: right;
  margin: 5px 0 20px;
}

.empty-state {
  text-align: center;
  padding: 58px 24px 66px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.empty-state h2 {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.empty-state p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-secondary);
  margin: 12px auto 22px;
  max-width: 480px;
}

.empty-symbol {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  margin: 0 auto 18px;
}

.compact-items {
  margin-top: 18px;
}

.compact-items .cart-item {
  padding: 14px 16px;
  gap: 12px;
}

.compact-items .cart-item-icon {
  width: 42px;
  height: 42px;
  padding: 5px;
}

.compact-items .cart-item-icon img {
  width: 30px;
  height: 30px;
}

.compact-items .cart-item-info h3 {
  font-size: 13px;
}

.compact-items .cart-item-info > span {
  display: none;
}

.compact-items .line-total {
  font-size: 13px;
}

/* Checkout & Payment Panels */
.checkout-panel,
.payment-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: #ffffff;
}

.checkout-panel > h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-field > label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.form-field > input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  padding: 10px 14px;
  color: var(--ink);
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-field > input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.form-field input[aria-invalid="true"] {
  border-color: var(--danger);
}

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

.field-error,
.form-error {
  color: var(--danger);
  font-size: 12.5px;
  line-height: 1.6;
  margin-top: 6px;
}

.form-error {
  padding: 12px 15px;
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-sm);
  background: var(--danger-bg);
  margin: 0 0 20px;
}

.notice-banner {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}

.notice-banner.notice-info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: #1e40af;
}

.notice-banner.notice-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning);
}

.notice-banner.notice-danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}

.notice-banner.notice-success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}

.collection-notice {
  padding: 15px 18px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--line);
}

.collection-notice p {
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.7;
}

.collection-notice a {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-field {
  margin: 20px 0 22px;
}

.consent-field label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.7;
  cursor: pointer;
}

.consent-field input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.consent-field a {
  text-decoration: underline;
  color: var(--ink);
  font-weight: 550;
  text-underline-offset: 3px;
}

.turnstile-slot {
  margin: 16px 0;
}

.customer-details {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.customer-details dt {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 5px;
}

.customer-details dd {
  margin: 0;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.payment-order-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
  overflow-wrap: anywhere;
}

.payment-order-meta strong {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--ink);
}

.payment-panel form {
  margin-top: 24px;
}

.payment-panel fieldset {
  margin-bottom: 22px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  margin-top: 10px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.payment-option:hover {
  border-color: #9ca3af;
}

.payment-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}

.payment-option input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}

.payment-mark {
  min-width: 58px;
  height: 32px;
  padding: 0 8px;
  flex-shrink: 0;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.payment-mark-card {
  background: #f3f4f6;
  color: #1f2937;
  border-color: #d1d5db;
}

.payment-mark-alipay {
  background: #eff6ff;
  color: #1677ff;
  border-color: #bfdbfe;
}

.payment-mark-wechat {
  background: #f0fdf4;
  color: #07c160;
  border-color: #bbf7d0;
}

.payment-option-copy {
  min-width: 0;
}

.payment-option strong {
  display: block;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 650;
  color: var(--ink);
}

.payment-option small {
  display: block;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 2px;
}

.stripe-security-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.stripe-security-note .icon {
  width: 16px;
  height: 16px;
  color: var(--success);
  margin-top: 2px;
}

.payment-unavailable {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--warning-border);
  border-radius: 10px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.cancel-order {
  display: block;
  margin: 14px auto 0;
  font-size: 12.5px;
}

/* Order Result, Status Tags, Licence Keys & Receipt */
.order-result {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 30px 24px;
  margin-bottom: 24px;
  background: var(--surface-soft);
}

.order-result.is-fulfilled {
  background: var(--success-bg);
  border-color: var(--success-border);
}

.result-icon {
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink-secondary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 14px;
}

.order-result.is-fulfilled .result-icon {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

.order-result-note {
  font-size: 13px;
  color: var(--ink-secondary);
  margin-top: 10px;
  max-width: 560px;
  margin-inline: auto;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ink-secondary);
  background: #f3f4f6;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
}

.status-tag.pending {
  color: var(--warning);
  background: var(--warning-bg);
  border-color: var(--warning-border);
}

.status-tag.fulfilled,
.status-tag.paid {
  color: var(--success);
  background: var(--success-bg);
  border-color: var(--success-border);
}

.status-tag.cancelled,
.status-tag.expired {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: var(--danger-border);
}

.status-tag.refunded {
  color: var(--info);
  background: var(--info-bg);
  border-color: var(--info-border);
}

/* Personal Mac Licence & Download Card */
.license-card {
  border: 1px solid var(--success-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 26px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.license-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.license-card-head h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.license-card-head p {
  font-size: 13px;
  color: var(--ink-secondary);
  margin-top: 4px;
}

.license-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.license-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--surface-soft);
}

.license-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.license-item-app {
  display: flex;
  align-items: center;
  gap: 12px;
}

.license-item-app img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.license-item-app h3 {
  font-size: 15px;
  font-weight: 650;
}

.license-item-app span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.license-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.license-key-code {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  word-break: break-all;
}

.license-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.install-guide {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.install-guide h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 7px;
  counter-reset: install-step;
}

.install-steps li {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
  padding-left: 26px;
  position: relative;
}

.install-steps li::before {
  counter-increment: install-step;
  content: counter(install-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
  display: grid;
  place-items: center;
}

/* Receipt */
.receipt {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: #ffffff;
}

.receipt-meta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.receipt-meta span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 5px;
}

.receipt-meta strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.receipt-order-no {
  font-family: var(--mono);
}

.receipt .customer-details {
  margin-bottom: 24px;
}

.receipt .cart-items {
  border-inline: 0;
  border-radius: 0;
}

.receipt .cart-item {
  padding-inline: 0;
}

.receipt-totals {
  margin: 22px 0 0 auto;
  max-width: 420px;
}

.receipt-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  margin-top: 12px;
  color: var(--ink-secondary);
}

.receipt-totals strong {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.receipt-totals > div:last-child {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 14px;
}

.order-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.session-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
  max-width: 680px;
  margin: 20px auto 0;
}

/* My Orders & Cross-Device Lookup */
.orders-page {
  min-height: 600px;
  padding-bottom: 68px;
}

.orders-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.order-history {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.order-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.order-history-item:last-child {
  border-bottom: 0;
}

.order-history-item h2 {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
  line-height: 1.5;
  margin-top: 10px;
}

.order-history-item p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 4px;
}

.history-action {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.history-action strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lookup-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--surface-soft);
}

.lookup-card h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lookup-card > p {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.65;
  margin: 8px 0 20px;
}

.info-note {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.data-tools {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.data-tools [role="status"] {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
}

/* Prose, FAQ & Policy Pages */
.prose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 64px;
  padding: 8px 0 72px;
}

.prose .page-heading {
  margin-top: 10px;
  margin-bottom: 20px;
}

.updated {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}

.prose section {
  margin-top: 28px;
}

.prose section h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 10px;
}

.prose section p {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.88;
}

.prose section p + p {
  margin-top: 12px;
}

.company-info {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: var(--radius);
  padding: 26px;
  align-self: start;
  margin-top: 26px;
  position: sticky;
  top: 140px;
}

.company-info h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 16px;
}

.company-info > strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.company-info > p {
  font-size: 13px;
  color: var(--ink-secondary);
  margin-top: 4px;
}

.company-info .support-hours {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
}

.company-info > a:not(.text-link) {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-hover);
  margin-top: 14px;
  overflow-wrap: anywhere;
}

.company-info address {
  font-size: 12px;
  font-style: normal;
  line-height: 1.75;
  color: var(--muted);
  margin: 16px 0 18px;
}

.company-info-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 12px;
  background: #ffffff;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span {
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.15s;
}

.faq-item[open] summary span {
  transform: rotate(45deg);
}

.faq-item > p {
  padding: 0 20px 18px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.8;
}

.local-data-control {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 32px;
}

.local-data-control p {
  font-size: 12.5px;
  margin-top: 10px;
  color: var(--muted);
}

.local-data-control > a {
  display: inline-block;
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin-top: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contact Page */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: #ffffff;
  min-width: 0;
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  border-radius: 10px;
  margin-bottom: 18px;
  color: var(--accent);
}

.contact-card h2 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 14px;
}

.email-big {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-hover);
  overflow-wrap: anywhere;
}

.email-big:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-card p {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.75;
  margin-top: 12px;
  max-width: 440px;
}

.contact-card .button {
  margin-top: 22px;
}

.contact-card > strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.contact-card address {
  font-size: 13px;
  font-style: normal;
  line-height: 1.8;
  color: var(--ink-secondary);
  margin: 18px 0 22px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* Error & Loading */
.error-page {
  padding-block: 88px;
  min-height: 480px;
}

.error-page h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 18px 0 14px;
}

.error-page h1 > span {
  color: var(--muted);
}

.error-page > p:not(.eyebrow) {
  font-size: 15px;
  color: var(--ink-secondary);
}

.loading-copy {
  font-size: 14px;
  color: var(--muted);
  padding: 36px 0;
}

/* Payment Badges Strip (Stripe + Card Networks + Alipay + WeChat Pay) */
.payment-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.payment-badges-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-right: 4px;
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.pay-badge svg {
  height: 15px;
  width: auto;
  flex-shrink: 0;
}

.pay-badge-stripe {
  border-color: #e0e7ff;
  background: #f8faff;
  color: #4f46e5;
}

.pay-badge-alipay {
  border-color: #dbeafe;
  background: #f8fbff;
  color: #1677ff;
}

.pay-badge-wechat {
  border-color: #dcfce7;
  background: #f7fef9;
  color: #07c160;
}

/* Footer — Light Stripe-Compliant Layout */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fafbfc;
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.9fr 1.35fr;
  gap: 40px;
}

.footer-intro .logo-word {
  font-size: 17px;
}

.footer-intro > p {
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.75;
  margin-top: 16px;
  max-width: 280px;
}

.currency-label {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.08em;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  margin-top: 16px;
}

.footer-grid > div > h2 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 4px 0 16px;
}

.footer-grid > div > a:not(.logo) {
  display: block;
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-top: 10px;
  transition: color 0.15s;
}

.footer-grid a:hover {
  color: var(--accent-hover);
}

.footer-company > p {
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-secondary);
  margin-top: 8px;
}

.footer-company .footer-company-name {
  font-weight: 650;
  color: var(--ink);
  margin-top: 0;
}

.footer-company .support-hours {
  font-size: 11.5px;
  color: var(--muted);
}

.footer-company .address-small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-payments {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-payments-note {
  font-size: 11.5px;
  color: var(--muted);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Toast & Global Notices */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 20px;
  background: var(--btn-dark);
  color: #ffffff;
  border-radius: 12px;
  z-index: 80;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.2);
  max-width: calc(100% - 32px);
  font-size: 13px;
}

.toast > a {
  font-size: 12.5px;
  font-weight: 600;
  color: #fdba74;
  white-space: nowrap;
}

.toast > a:hover {
  color: #ffedd5;
}

.storage-warning,
.noscript-notice {
  margin: 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--warning-bg);
  color: var(--warning);
  padding: 12px 24px;
  font-size: 13px;
  line-height: 1.6;
  border-top: 1px solid var(--warning-border);
  text-align: center;
}

.storage-warning {
  bottom: auto;
  top: 0;
  border-top: 0;
  border-bottom: 1px solid var(--warning-border);
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .container {
    width: calc(100% - 48px);
  }

  .header-main {
    gap: 16px;
  }

  .orders-link > span {
    display: none;
  }

  .home-hero {
    gap: 40px;
  }

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

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

  .product-detail {
    gap: 36px;
  }

  .product-information {
    gap: 40px;
  }

  .footer-grid {
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .header-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    min-height: auto;
    padding-block: 14px;
  }

  .search-form {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    width: 100%;
    margin-left: 0;
  }

  .header-actions {
    justify-content: flex-end;
    gap: 10px;
  }

  .orders-link,
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0;
  }

  .menu-toggle span {
    width: 16px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.15s;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.25px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 44px 52px;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-information {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .shopping-layout,
  .orders-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .prose-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .company-info {
    position: static;
    margin-top: 0;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-company {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .top-bar > .container > span:first-child {
    display: none;
  }

  .top-bar > .container {
    justify-content: center;
    min-height: 32px;
  }

  .cart-link > span {
    display: none;
  }

  .cart-link {
    padding: 6px 9px;
  }

  .home-hero {
    padding-block: 32px 40px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section {
    padding-block: 44px;
  }

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

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

  .product-art {
    height: 128px;
  }

  .product-art > img {
    width: 62px;
    height: 62px;
  }

  .card-body {
    padding: 14px;
  }

  .card-body h3 {
    font-size: 14.5px;
  }

  .card-body > p {
    font-size: 11.5px;
  }

  .price {
    font-size: 16px;
  }

  .collection-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }

  .help-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .catalog-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .variant-options,
  .buy-actions {
    grid-template-columns: 1fr;
  }

  .checkout-steps {
    gap: 8px;
    justify-content: space-between;
  }

  .checkout-steps li {
    flex-direction: column;
    font-size: 11px;
    gap: 5px;
    text-align: center;
  }

  .checkout-panel,
  .payment-panel,
  .receipt,
  .license-card {
    padding: 20px;
  }

  .customer-details,
  .receipt-meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cart-item {
    flex-wrap: wrap;
    padding: 16px;
  }

  .order-history-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .history-action {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-intro {
    grid-column: auto;
  }

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

@media (max-width: 400px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .top-bar,
  .site-header,
  .site-footer,
  .breadcrumbs,
  .checkout-steps,
  .order-actions,
  .toast,
  .storage-warning,
  .session-note,
  .skip-link,
  .license-actions {
    display: none !important;
  }

  .container {
    width: 100%;
    margin: 0;
  }

  .flow-page {
    padding: 0;
  }

  .receipt,
  .license-card {
    border: 1px solid #d1d5db;
    box-shadow: none;
  }

  .receipt-meta,
  .customer-details,
  .cart-item,
  .license-item,
  .receipt-totals {
    break-inside: avoid;
  }

  body {
    font-size: 11pt;
  }
}
