:root {
  --ink: #172033;
  --muted: #5f6b7a;
  --line: #d8dee8;
  --paper: #f7f8fb;
  --white: #ffffff;
  --navy: #0d2e63;
  --navy-deep: #071a38;
  --gold: #c7963a;
  --gold-soft: #f3dfb4;
  --teal: #26736b;
  --rose: #ba4a4a;
  --shop-orange: #ee4d2d;
  --shop-orange-soft: #fff1ec;
  --shadow: 0 18px 50px rgba(18, 31, 53, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Noto Sans TC",
    "Microsoft JhengHei",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

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

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

.cart-panel [hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(320px, 1fr);
  min-height: 78px;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 14px clamp(18px, 2vw, 30px);
  border: 0;
  border-bottom: 1px solid #dce5f1;
  border-radius: 0;
  color: var(--navy-deep);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(18, 31, 53, 0.08);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  color: var(--navy-deep);
}

.brand-symbol {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-soft);
  font-weight: 900;
}

.brand-mark strong,
.brand-mark small {
  display: block;
  line-height: 1.25;
}

.brand-mark strong {
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  letter-spacing: 0;
}

.brand-mark small {
  color: var(--muted);
  font-size: 0.77rem;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid #dce5f1;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.top-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 18px;
  color: #24364f;
  font-size: 0.95rem;
  font-weight: 900;
}

.header-pill,
.header-cart-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #dfe7f1;
  padding: 9px 16px;
  color: var(--navy-deep);
  background: var(--white);
  font-size: 0.95rem;
  font-weight: 900;
  white-space: nowrap;
}

.top-nav a:hover {
  color: var(--navy);
  background: #edf4fc;
}

.top-nav a.active {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 8px 18px rgba(13, 46, 99, 0.22);
}

.header-cart-link {
  gap: 8px;
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
}

.header-cart-link strong {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
}

.seller-center-pill {
  order: 20;
}

.language-toggle {
  min-width: 76px;
  min-height: 42px;
  border: 1px solid #dfe7f1;
  border-radius: 999px;
  cursor: pointer;
  color: var(--navy-deep);
  background: var(--white);
  font-weight: 900;
}

.language-toggle:hover {
  background: #edf4fc;
}

.hero {
  position: relative;
  min-height: calc(82vh - 72px);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: end;
  padding: clamp(58px, 10vw, 110px) clamp(22px, 6vw, 80px) clamp(42px, 8vw, 82px);
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: center 43%;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 26, 56, 0.88) 0%, rgba(7, 26, 56, 0.62) 42%, rgba(7, 26, 56, 0.18) 100%),
    linear-gradient(0deg, rgba(7, 26, 56, 0.54) 0%, rgba(7, 26, 56, 0.06) 45%);
}

.hero-content {
  width: min(690px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero .eyebrow {
  color: var(--gold-soft);
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.45rem, 7vw, 5.9rem);
  line-height: 1.02;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.25);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.15;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.75;
}

.hero-actions,
.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(18, 31, 53, 0.18);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.button.primary {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.hero .button.primary {
  color: var(--navy-deep);
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary.solid-light {
  color: var(--shop-orange);
  border-color: #ffd1c7;
  background: #fff1ec;
}

.button.ghost {
  color: var(--navy);
  border-color: var(--line);
}

.button.danger {
  color: var(--rose);
  border-color: #e8c8c8;
  background: #fff7f7;
}

.button.wide {
  width: 100%;
}

.home-cover {
  min-height: clamp(560px, 58svh, 700px);
  align-items: stretch;
  margin: 0;
  padding: clamp(18px, 2vw, 32px) clamp(18px, 2vw, 32px) clamp(112px, 10vw, 148px);
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  color: var(--navy);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.72) 44%, rgba(97, 139, 185, 0.35) 100%),
    var(--hz-cover-soft-image, url("assets/cover-soft-blue-marble.png")) center / cover no-repeat,
    #e8f2fb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78);
}

.home-cover::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(130px, 16vw, 220px);
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(247, 248, 251, 0) 0%, rgba(247, 248, 251, 0.7) 62%, var(--paper) 100%);
}

.home-cover::before {
  position: absolute;
  inset: clamp(16px, 2vw, 28px);
  border: 1px solid rgba(199, 150, 58, 0.34);
  border-radius: 18px;
  pointer-events: none;
  content: "";
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 290px minmax(420px, 1fr) minmax(320px, 470px);
  gap: clamp(24px, 3vw, 42px);
  align-items: start;
  width: 100%;
  padding: 10px 18px;
}

.hero-brand-card {
  display: grid;
  width: min(100%, 280px);
  aspect-ratio: 1;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--navy);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 36px rgba(18, 31, 53, 0.16);
}

.hero-brand-card img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.home-cover .hero-content {
  width: 100%;
  padding-top: 16px;
}

.home-cover .eyebrow {
  display: inline-flex;
  margin-bottom: 20px;
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(18, 31, 53, 0.08);
}

.home-cover h1 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: clamp(2.5rem, 4.6vw, 4.8rem);
  line-height: 1.05;
  text-shadow: none;
}

.hero-company-en {
  margin: 0 0 16px;
  color: #1d5c9f;
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  font-weight: 600;
}

.home-cover .hero-copy {
  max-width: 650px;
  margin-bottom: 18px;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  color: #183c68;
  background: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.8;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-metrics div,
.hero-shop-button {
  min-width: 108px;
  border: 1px solid rgba(199, 150, 58, 0.34);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.88);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--navy);
  font-size: 1.45rem;
}

.hero-metrics span {
  color: var(--muted);
}

.home-cover .button.primary {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.home-cover .hero-shop-button {
  min-width: 154px;
  min-height: auto;
  align-self: stretch;
  box-shadow: none;
  text-align: center;
}

.hero-search-panel {
  align-self: start;
  margin-top: 26px;
  border: 1px solid #dfe7f1;
  border-radius: 18px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 42px rgba(18, 31, 53, 0.13);
}

.hero-search-panel strong {
  display: block;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 1.12rem;
}

.hero-search-panel p {
  margin-bottom: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.hero-search-row input {
  min-height: 44px;
  border-radius: 10px;
}

.hero-search-row .button {
  min-height: 44px;
}

.home-info-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: clamp(-154px, -10vw, -112px) 0 0;
  padding: 0 clamp(18px, 2vw, 28px) 18px;
  background: transparent;
}

.home-info-grid article {
  min-height: 118px;
  border: 1px solid #dfe7f1;
  border-radius: 16px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(18, 31, 53, 0.09);
  backdrop-filter: blur(14px);
}

.home-info-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy-deep);
  font-size: 1.1rem;
}

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

.home-shop-tools {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 clamp(18px, 2vw, 28px) 24px;
  background: var(--paper);
}

.home-market-toolbar {
  max-width: none;
  margin: 0;
  border: 1px solid #dfe7f1;
  border-radius: 20px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(18, 31, 53, 0.07);
}

.home-quick-products {
  max-width: none;
  margin: 0;
  border: 1px solid #dfe7f1;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(18, 31, 53, 0.07);
}

.home-quick-products .product-card {
  cursor: pointer;
}

.home-quick-products .product-card:hover {
  border-color: #bfcfe1;
  box-shadow: 0 14px 30px rgba(18, 31, 53, 0.11);
}

.story-section {
  min-height: calc(100vh - 120px);
  margin: 0 clamp(12px, 2vw, 28px) 18px;
  border: 1px solid #dfe7f1;
  border-radius: 24px;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(236, 246, 255, 0.78)),
    var(--hz-cover-soft-image, url("assets/cover-soft-blue-marble.png")) center / cover no-repeat;
  box-shadow: 0 18px 42px rgba(18, 31, 53, 0.08);
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
}

.story-logo-card {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  margin: 0;
  border: 2px solid var(--navy);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 36px rgba(18, 31, 53, 0.14);
}

.story-logo-card img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.story-content {
  display: grid;
  gap: 14px;
}

.story-content article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 4px 16px;
  border: 1px solid rgba(13, 46, 99, 0.12);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.story-content article span {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
  font-weight: 900;
}

.story-content article strong {
  color: var(--navy);
  font-size: 1.12rem;
}

.story-content article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.brand-story-page + .section-heading,
.brand-story-page ~ .story-layout {
  display: none;
}

.story-section {
  min-height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: #f3f7fb;
  box-shadow: none;
}

.brand-story-page {
  display: grid;
  gap: 26px;
  padding: clamp(18px, 2.6vw, 34px);
}

.brand-story-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  min-height: clamp(520px, 66vh, 720px);
  overflow: hidden;
  border: 1px solid rgba(207, 179, 102, 0.45);
  border-radius: 24px;
  padding: clamp(26px, 5vw, 62px);
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 40%, rgba(207, 225, 242, 0.55) 100%),
    var(--hz-cover-soft-image, url("assets/cover-soft-blue-marble.png")) center / cover no-repeat;
  box-shadow: 0 24px 58px rgba(18, 31, 53, 0.12);
}

.brand-story-hero::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(207, 179, 102, 0.55);
  border-radius: 18px;
  content: "";
  pointer-events: none;
}

.brand-story-logo {
  position: relative;
  z-index: 1;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  margin: 0;
  border: 2px solid var(--navy);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 44px rgba(13, 46, 99, 0.18);
}

.brand-story-logo img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.brand-story-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 820px;
  gap: 18px;
}

.brand-story-eyebrow {
  justify-self: start;
  margin: 0;
  border: 1px solid rgba(207, 179, 102, 0.5);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 900;
}

.brand-story-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 1.05;
}

.brand-story-subtitle {
  margin: 0;
  color: #185796;
  font-size: clamp(1.2rem, 2.1vw, 2rem);
  font-weight: 900;
  line-height: 1.45;
}

.brand-story-intro {
  max-width: 760px;
  margin: 0;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  color: #18365b;
  background: rgba(255, 255, 255, 0.88);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.85;
}

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

.brand-value-card {
  min-height: 150px;
  border: 1px solid #dfe7f1;
  border-radius: 16px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(18, 31, 53, 0.08);
}

.brand-value-card span {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  font-weight: 900;
}

.brand-value-card h3,
.brand-story-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.28rem;
}

.brand-value-card p,
.brand-story-card p,
.brand-story-section-title p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.82;
}

.brand-story-timeline-shell {
  display: grid;
  gap: 18px;
  border: 1px solid #dfe7f1;
  border-radius: 20px;
  padding: clamp(20px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 38px rgba(18, 31, 53, 0.08);
}

.brand-story-section-title {
  max-width: 760px;
}

.brand-story-section-title h2 {
  margin: 6px 0 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.brand-story-timeline {
  display: grid;
  gap: 18px;
}

.brand-story-card {
  display: grid;
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dfe7f1;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 14px 32px rgba(18, 31, 53, 0.07);
}

.brand-story-card:nth-child(even) .brand-story-media {
  order: 2;
}

.brand-story-media {
  display: grid;
  min-height: 260px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(251, 219, 185, 0.72), rgba(255, 250, 228, 0.84)),
    var(--hz-cover-soft-image, url("assets/cover-soft-blue-marble.png")) center / cover no-repeat;
}

.brand-story-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.brand-story-media span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  color: var(--shop-orange);
  background: rgba(255, 255, 255, 0.94);
  font-size: 1.25rem;
  font-weight: 1000;
  text-align: center;
}

.brand-story-card-content {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(22px, 4vw, 44px);
}

.brand-story-year {
  color: var(--shop-orange);
  font-size: 0.95rem;
  font-weight: 900;
}

.story-section {
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 255, 255, 0.96), transparent 30%),
    linear-gradient(135deg, #eef4fb, #fbfdff 48%, #edf5ff);
}

.brand-story-page {
  width: min(1280px, 94vw);
  margin: 0 auto;
  padding: 34px 0 70px;
}

.brand-story-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 34px;
  min-height: 520px;
  border-color: rgba(202, 167, 90, 0.28);
  border-radius: 34px;
  padding: clamp(32px, 4vw, 56px);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0.18)),
    var(--hz-cover-soft-image, url("assets/cover-soft-blue-marble.png")) center / cover no-repeat;
  box-shadow: 0 20px 50px rgba(7, 41, 91, 0.12);
}

.brand-story-hero::before {
  display: none;
}

.brand-story-logo {
  order: 2;
  border: 2px solid transparent;
  border-radius: 34px;
  padding: 18px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #d9b155, #072b5c, #e5c978) border-box;
  box-shadow: 0 22px 50px rgba(7, 41, 91, 0.18);
}

.brand-story-logo img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
}

.brand-story-hero-copy {
  order: 1;
  gap: 0;
}

.brand-story-eyebrow,
.brand-story-section-title .eyebrow {
  border: 0;
  padding: 0;
  color: var(--shop-orange);
  background: transparent;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.brand-story-hero h1 {
  margin: 0 0 14px;
  color: #062a5a;
  font-size: clamp(46px, 7vw, 92px);
  letter-spacing: 0.08em;
}

.brand-story-subtitle {
  margin: 0 0 22px;
  color: #1e5594;
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 1000;
}

.brand-story-intro {
  max-width: 840px;
  border-left: 5px solid var(--gold);
  border-radius: 16px;
  padding: 18px 20px;
  color: #233a59;
  background: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  font-weight: 850;
  line-height: 2;
}

.brand-story-section-title {
  max-width: none;
  margin: 18px 0 6px;
  text-align: center;
}

.brand-story-section-title h2 {
  margin: 0;
  color: #062a5a;
  font-size: clamp(30px, 3vw, 38px);
}

.brand-story-section-title p:not(.eyebrow) {
  max-width: 780px;
  margin-inline: auto;
  font-weight: 760;
}

.brand-story-timeline-shell,
.brand-story-values-shell {
  display: grid;
  gap: 22px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.brand-story-card {
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.15fr);
  gap: 26px;
  align-items: stretch;
  border-color: var(--line);
  border-radius: 28px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(30, 62, 108, 0.08);
}

.brand-story-card:nth-child(even) {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.9fr);
}

.brand-story-card:nth-child(even) .brand-story-media {
  order: 2;
}

.brand-story-media {
  min-height: 310px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, #eaf3ff, #fff);
  color: #062a5a;
  font-size: 36px;
  font-weight: 1000;
}

.brand-story-media img {
  min-height: 310px;
  border-radius: 0;
}

.brand-story-media span {
  width: auto;
  height: auto;
  padding: 12px 18px;
  border-radius: 999px;
  color: #062a5a;
  background: transparent;
  font-size: 36px;
}

.brand-story-card-content {
  align-self: center;
  gap: 0;
  padding: 22px 14px;
}

.brand-story-year {
  display: inline-flex;
  justify-self: start;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--shop-orange);
  background: #fff4ef;
  font-weight: 1000;
}

.brand-story-card h3 {
  margin: 0 0 14px;
  color: #17243a;
  font-size: clamp(26px, 3vw, 34px);
}

.brand-story-card p {
  margin: 0;
  color: #52627a;
  font-size: 18px;
  font-weight: 820;
  line-height: 1.95;
}

.brand-story-values {
  gap: 18px;
}

.brand-story-values-shell {
  position: relative;
  z-index: 2;
  margin-top: -10px;
  border: 1px solid rgba(202, 167, 90, 0.22);
  border-radius: 30px;
  padding: clamp(24px, 3.2vw, 42px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.82)),
    radial-gradient(circle at 8% 15%, rgba(202, 167, 90, 0.13), transparent 28%),
    radial-gradient(circle at 92% 16%, rgba(30, 85, 148, 0.1), transparent 30%);
  box-shadow: 0 24px 60px rgba(7, 41, 91, 0.11);
}

.brand-story-values-shell .brand-story-section-title {
  margin-top: 0;
}

.brand-story-values-shell .brand-story-section-title h2 {
  margin-bottom: 18px;
}

.brand-value-card {
  min-height: auto;
  border-color: var(--line);
  border-radius: 24px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)),
    linear-gradient(135deg, rgba(202, 167, 90, 0.1), transparent);
  box-shadow: 0 18px 34px rgba(30, 62, 108, 0.08);
}

.brand-value-card span {
  display: block;
  width: auto;
  height: auto;
  margin-bottom: 12px;
  color: var(--gold);
  background: transparent;
  font-size: 30px;
}

.brand-value-card h3 {
  color: #062a5a;
  font-size: 26px;
}

.brand-value-card p {
  color: #52627a;
  font-weight: 820;
}

.product-description-panel {
  display: grid;
  gap: 18px;
  margin: 22px 0;
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  padding: clamp(18px, 2.8vw, 30px);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(18, 31, 53, 0.06);
}

.product-description-head {
  border-bottom: 1px solid #edf1f6;
  padding-bottom: 14px;
}

.product-description-head h2 {
  margin: 6px 0 0;
  color: var(--navy);
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
  line-height: 1.35;
}

.product-description-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr) minmax(240px, 0.9fr);
  gap: 16px;
}

.product-description-grid article {
  border: 1px solid #e5edf6;
  border-radius: 10px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.product-description-grid h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.08rem;
}

.product-description-grid p,
.product-description-grid li {
  color: #52627a;
  font-weight: 760;
  line-height: 1.85;
}

.product-description-grid p {
  margin: 0;
}

.product-description-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-description-grid li {
  position: relative;
  padding-left: 18px;
}

.product-description-grid li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--shop-orange);
}

.story-upload-field {
  align-content: start;
}

.story-upload-preview {
  width: min(100%, 220px);
  aspect-ratio: 16 / 10;
  border: 1px solid #dfe7f1;
  border-radius: 14px;
  object-fit: cover;
  background: #eef4fb;
}

.story-upload-field small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 116px;
  padding: clamp(20px, 4vw, 32px);
  background: var(--white);
}

.intro-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--gold-soft);
  font-weight: 900;
}

.intro-item strong {
  display: block;
  margin-bottom: 6px;
}

.intro-item p,
.section-heading p,
.cart-empty p,
.cart-tip,
.form-status {
  color: var(--muted);
  line-height: 1.7;
}

.section {
  padding: clamp(44px, 7vw, 82px) clamp(18px, 5vw, 58px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 26px;
}

.products-section {
  background: #f4f5f7;
}

.market-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.2fr);
  gap: 14px;
  max-width: 1440px;
  margin: 0 auto 18px;
  align-items: end;
}

.market-product {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  gap: 28px;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(18, 31, 53, 0.08);
}

.gallery-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.gallery-main {
  display: grid;
  min-height: 520px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #eef0f4;
  background: #f6f2ea;
}

.detail-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-art {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 420px;
  place-items: center;
  overflow: hidden;
  padding: 28px;
  color: #1a3157;
  background:
    linear-gradient(140deg, rgba(243, 223, 180, 0.78), rgba(255, 255, 255, 0.5)),
    repeating-linear-gradient(0deg, rgba(13, 46, 99, 0.08) 0 1px, transparent 1px 26px),
    #efe4ce;
  text-align: center;
}

.showcase-art::before,
.showcase-art::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: rgba(238, 77, 45, 0.12);
}

.showcase-art::before {
  width: 260px;
  height: 260px;
  left: -72px;
  top: -62px;
}

.showcase-art::after {
  right: -60px;
  bottom: -70px;
  width: 220px;
  height: 220px;
}

.showcase-art strong,
.showcase-art small,
.showcase-icon,
.showcase-badge {
  position: relative;
  z-index: 1;
}

.showcase-art strong {
  max-width: 88%;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.1;
}

.showcase-art small {
  color: #596980;
  font-weight: 800;
}

.showcase-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  border-radius: 4px;
  padding: 7px 10px;
  color: var(--white);
  background: var(--navy);
  font-weight: 900;
}

.showcase-icon {
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  border-radius: 999px;
  color: var(--shop-orange);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(18, 31, 53, 0.14);
  font-size: 3rem;
  font-weight: 900;
}

.showcase-art.compact {
  min-height: 0;
  padding: 10px;
}

.showcase-art.compact strong {
  font-size: 1rem;
}

.showcase-art.compact small,
.showcase-art.compact .showcase-badge {
  display: none;
}

.showcase-art.compact .showcase-icon {
  width: 54px;
  height: 54px;
  font-size: 1.5rem;
}

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

.thumbnail-button {
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  background: #f7f8fb;
}

.thumbnail-button.active {
  border-color: var(--shop-orange);
}

.thumbnail-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 10px;
  color: var(--muted);
}

.share-row button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: var(--white);
  background: #2374e1;
  font-weight: 900;
}

.share-row .facebook-share-button {
  background: #2374e1;
}

.share-row .copy-link-button {
  display: inline-flex;
  width: auto;
  min-width: 96px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--navy);
  background: var(--white);
  font-size: 0.9rem;
  line-height: 1;
}

.share-row .copy-link-button:hover {
  background: #edf4fc;
}

.share-row .favorite-chip {
  display: inline-flex;
  width: auto;
  height: auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: 16px;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--shop-orange);
  background: transparent;
  font-weight: 800;
  font-size: 1rem;
}

.share-row .favorite-chip.active {
  color: #e6452e;
}

.share-row .favorite-chip:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.detail-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.title-line {
  display: grid;
  gap: 8px;
}

.choice-badge {
  width: max-content;
  border-radius: 3px;
  padding: 4px 7px;
  color: var(--white);
  background: var(--shop-orange);
  font-size: 0.9rem;
  font-weight: 900;
}

.title-line h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.42;
}

.rating-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.rating-score {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 1.1rem;
}

.stars {
  color: #f5a400;
  font-size: 0.95rem;
}

.rating-line strong {
  color: var(--ink);
}

.rating-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
}

.report-button {
  margin-left: auto;
  border: 0;
  cursor: pointer;
  color: #7d8794;
  background: transparent;
}

.price-banner {
  padding: 22px 28px;
  color: var(--shop-orange);
  background: #fafafa;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 500;
}

.info-table {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px 28px;
  color: var(--muted);
}

.info-table p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.info-table small {
  display: block;
  color: var(--muted);
}

.info-table a {
  margin-left: 22px;
  color: #0055b8;
}

.line-icon {
  margin-right: 8px;
  color: #11a493;
  font-weight: 900;
}

.line-icon.red {
  color: var(--shop-orange);
}

.variant-block {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px 28px;
  align-items: start;
}

.variant-label {
  color: var(--muted);
}

.variant-list {
  display: grid;
  max-height: clamp(380px, 58vh, 720px);
  overflow-y: auto;
  padding-right: 10px;
  gap: 10px;
  scrollbar-gutter: stable;
}

.variant-button {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  padding: 10px 14px;
  color: #3f4652;
  background: var(--white);
  text-align: left;
  word-break: break-word;
}

.variant-thumb {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.variant-thumb.fallback-thumb {
  opacity: 0.72;
}

.variant-button span,
.variant-button small {
  min-width: 0;
}

.variant-button.no-thumb {
  grid-template-columns: minmax(0, 1fr);
}

.variant-button small {
  color: var(--muted);
  font-weight: 800;
}

.variant-button.active {
  border-color: var(--shop-orange);
  color: var(--shop-orange);
}

.variant-button.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  content: "✓";
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--white);
  background: var(--shop-orange);
  font-size: 0.75rem;
}

.variant-empty {
  color: var(--muted);
}

.buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.detail-quantity {
  display: grid;
  grid-template-columns: 52px 78px 52px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.detail-quantity button {
  min-height: 44px;
  border: 0;
  cursor: pointer;
  background: var(--white);
  font-size: 1.4rem;
}

.detail-quantity strong {
  display: grid;
  place-items: center;
  border-inline: 1px solid var(--line);
  color: var(--shop-orange);
  font-size: 1.2rem;
}

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

.detail-actions .button {
  min-width: 180px;
}

.seller-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.48fr) minmax(420px, 1fr);
  gap: 28px;
  max-width: 1440px;
  margin: 18px auto 0;
  padding: 28px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(18, 31, 53, 0.08);
}

.seller-profile {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-right: 1px solid var(--line);
}

.seller-avatar {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef4f2;
}

.seller-avatar .product-media,
.seller-avatar .showcase-art {
  height: 100%;
  aspect-ratio: 1;
}

.seller-avatar .showcase-icon {
  width: 50px;
  height: 50px;
  font-size: 1.4rem;
}

.seller-profile h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.seller-profile p {
  margin-bottom: 12px;
  color: var(--muted);
}

.seller-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seller-actions .line-inquiry-button {
  background: #06c755;
  border-color: #06c755;
}

.seller-actions .button.secondary {
  color: var(--navy);
  border-color: var(--line);
  background: var(--white);
}

.seller-actions .button.secondary.active {
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
}

.seller-line-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.seller-line-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  max-width: 420px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.seller-line-card img {
  width: 86px;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
}

.seller-line-card strong,
.contact-line-qr strong {
  display: block;
  color: var(--navy);
  font-weight: 700;
}

.seller-line-card span,
.contact-line-qr span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.seller-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr) auto);
  gap: 14px 18px;
  align-content: center;
  color: var(--muted);
}

.seller-stats strong {
  color: var(--shop-orange);
  font-weight: 600;
}

.review-panel {
  max-width: 1440px;
  margin: 18px auto 0;
  padding: 28px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(18, 31, 53, 0.08);
}

.review-summary {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.review-summary h2 {
  margin: 4px 0 10px;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.review-average {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  color: var(--shop-orange);
}

.review-average strong {
  font-size: 2.2rem;
}

.review-average small {
  color: var(--muted);
  font-weight: 700;
}

.review-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.review-filter button,
.review-star-input button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  background: var(--white);
  font-weight: 800;
}

.review-filter button {
  padding: 0 18px;
}

.review-filter button.active {
  border-color: var(--shop-orange);
  color: var(--shop-orange);
  background: #fff4ee;
}

.review-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.review-form-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: space-between;
}

.review-form-head span {
  color: var(--muted);
}

.review-star-input {
  display: flex;
  gap: 8px;
}

.review-star-input button {
  width: 42px;
  color: #c8ced8;
  font-size: 1.15rem;
}

.review-star-input button.active {
  border-color: #f5a400;
  color: #f5a400;
  background: #fff8e9;
}

.review-order-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.review-order-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.review-order-field select:disabled {
  color: var(--muted);
  background: #f5f7fa;
}

.review-form textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  font: inherit;
  color: var(--ink);
}

.review-submit-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.review-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.review-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
  font-weight: 900;
}

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

.review-item-stars {
  color: #f5a400;
  letter-spacing: 0;
}

.review-order-tag {
  display: inline-flex;
  width: max-content;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #f1f4f8;
  font-weight: 800;
}

.review-item p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.75;
}

.review-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfcfe;
}

.quick-products {
  max-width: 1440px;
  margin: 18px auto 0;
  padding: 22px;
  background: var(--white);
}

.quick-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.quick-heading h3 {
  margin: 0;
  font-size: 1.25rem;
}

.quick-heading p {
  margin: 0;
  color: var(--muted);
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: clamp(20px, 4vw, 34px);
  align-items: start;
}

.product-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  gap: 14px;
  margin-bottom: 18px;
  align-items: end;
}

.search-box,
.note-field,
.contact-form label {
  display: grid;
  gap: 8px;
}

.search-box span,
.note-field span,
.contact-form span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(38, 115, 107, 0.13);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  padding: 9px 14px;
  color: var(--muted);
  background: var(--white);
  font-weight: 800;
}

.tab-button.active,
.tab-button:hover {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

.tab-button small,
.subcategory-tabs small {
  font-size: 0.76rem;
  opacity: 0.76;
}

.subcategory-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subcategory-tabs button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  padding: 7px 12px;
  color: var(--muted);
  background: var(--white);
  font-weight: 800;
}

.subcategory-tabs button.active,
.subcategory-tabs button:hover {
  color: var(--shop-orange);
  border-color: #ffd1c7;
  background: #fff1ec;
}

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

.product-card {
  display: grid;
  min-height: 360px;
  align-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(18, 31, 53, 0.06);
}

.product-card.selected {
  border-color: var(--shop-orange);
  box-shadow: 0 0 0 1px var(--shop-orange);
}

.product-top {
  display: grid;
  gap: 10px;
}

.product-media {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eef4f2;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 8px;
  color: var(--navy);
  background: var(--gold-soft);
  font-size: 1.75rem;
  font-weight: 900;
}

.product-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

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

.product-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #f8faf7;
}

.product-price-row strong {
  color: var(--navy);
  font-size: 1.1rem;
}

.product-price-row span {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 800;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-specs span {
  border: 1px solid #dbe8e5;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--teal);
  background: #f2faf8;
  font-size: 0.82rem;
  font-weight: 800;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-meta span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #3f5066;
  background: #eef1f5;
  font-size: 0.82rem;
  font-weight: 700;
}

.product-card .button {
  width: 100%;
}

.cart-panel {
  position: sticky;
  top: 94px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.cart-panel-wide {
  position: static;
  max-width: 1440px;
  margin: 18px auto 0;
  box-shadow: 0 1px 2px rgba(18, 31, 53, 0.08);
}

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.cart-header h2 {
  margin-bottom: 0;
  font-size: 1.65rem;
}

.cart-count {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--teal);
  background: #eaf4f2;
  font-weight: 900;
}

.cart-empty {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
}

.cart-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
}

.cart-item strong {
  display: block;
  margin-bottom: 4px;
}

.cart-item small {
  display: block;
  color: var(--muted);
}

.quantity-control {
  display: grid;
  grid-template-columns: 34px 38px 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.quantity-control button {
  width: 34px;
  height: 34px;
  border: 0;
  cursor: pointer;
  color: var(--navy);
  background: transparent;
  font-weight: 900;
}

.quantity-control span {
  text-align: center;
  font-weight: 900;
}

.remove-item {
  grid-column: 2;
  border: 0;
  cursor: pointer;
  color: var(--rose);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 800;
}

.note-field {
  margin-top: 14px;
}

.cart-total {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius);
  color: var(--navy);
  background: #f3f6fb;
  font-weight: 900;
}

.cart-actions {
  margin-top: 14px;
}

.cart-actions .button {
  flex: 1 1 96px;
}

.cart-tip {
  min-height: 28px;
  margin: 12px 0 0;
  font-size: 0.93rem;
}

.cart-page {
  min-height: calc(100vh - 78px);
  padding: clamp(28px, 4vw, 48px) clamp(16px, 4vw, 56px);
  background: #f4f5f7;
}

.cart-page-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.cart-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 22px 24px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(18, 31, 53, 0.06);
}

.cart-page-title h2 {
  margin: 0;
  font-size: 1.8rem;
}

.cart-table {
  overflow: hidden;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(18, 31, 53, 0.06);
}

.cart-table-head,
.cart-item {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) 150px 160px 150px 100px;
  gap: 16px;
  align-items: center;
}

.cart-table-head {
  min-height: 56px;
  padding: 0 22px;
  color: var(--muted);
  font-weight: 800;
}

.cart-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.cart-item {
  padding: 18px 22px;
  border: 0;
  border-top: 1px solid #eef1f5;
  border-radius: 0;
  background: var(--white);
}

.cart-product-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.cart-product-media {
  display: grid;
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #edf1f6;
  border-radius: 6px;
  background: #f6f8fb;
}

.cart-product-media .product-image,
.cart-product-media .showcase-art {
  width: 100%;
  height: 100%;
}

.cart-product-media .showcase-art {
  min-height: 0;
  padding: 8px;
}

.cart-product-media .showcase-art strong,
.cart-product-media .showcase-art small,
.cart-product-media .showcase-art .showcase-badge {
  display: none;
}

.cart-product-cell strong {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 6px;
  font-size: 1rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cart-product-cell small {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.cart-price-cell,
.cart-line-total {
  color: var(--navy);
  font-weight: 900;
}

.cart-line-total {
  color: var(--shop-orange);
}

.cart-item .remove-item {
  grid-column: auto;
  justify-self: start;
  padding: 8px 0;
  font-size: 0.95rem;
}

.cart-note-field {
  margin: 14px 0 0;
  padding: 18px 22px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  background: var(--white);
}

.cart-checkout-bar {
  position: sticky;
  bottom: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) minmax(180px, 240px);
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 18px 22px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 28px rgba(18, 31, 53, 0.08);
  backdrop-filter: blur(14px);
}

.cart-checkout-summary {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.cart-checkout-summary #cartTotal {
  color: var(--shop-orange);
  font-size: 1.25rem;
  font-weight: 900;
}

.cart-checkout-summary .cart-tip {
  min-height: 0;
  margin: 0;
  color: var(--muted);
}

.cart-checkout-button {
  min-height: 50px;
  font-size: 1.05rem;
}

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

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

.cart-page-empty {
  margin-bottom: 14px;
}

.cart-page-empty .button {
  margin-top: 12px;
}

.contact-section {
  background: var(--white);
}

.manager-section {
  background: #edf3f1;
}

.account-section {
  background: #f7f9fb;
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 18px;
}

.account-tabs button {
  border: 1px solid #dfe7f1;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(18, 31, 53, 0.06);
  cursor: pointer;
  font-weight: 900;
}

.account-tabs button.active {
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
}

.account-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin-inline: auto;
}

.account-panel[hidden] {
  display: none !important;
}

.member-profile-card {
  grid-column: 1 / -1;
}

.account-status {
  max-width: 980px;
  margin: 14px auto 0;
  text-align: center;
}

.member-profile-hint {
  margin: 0;
  color: var(--muted);
  font-weight: 760;
}

.account-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(18, 31, 53, 0.08);
}

.account-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.18rem;
}

.account-card label {
  display: grid;
  gap: 7px;
}

.account-card span {
  color: var(--muted);
  font-weight: 800;
}

.seller-login-card {
  max-width: 520px;
  margin-inline: auto;
}

.seller-login-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.checkout-member-panel {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  padding: 18px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}

.checkout-member-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-member-head strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.checkout-member-head span,
.checkout-member-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 760;
}

.checkout-member-head a {
  color: var(--shop-orange);
  font-weight: 900;
}

.checkout-member-panel dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.checkout-member-panel dl div {
  border: 1px solid #edf1f6;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.checkout-member-panel dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.checkout-member-panel dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.5;
}

.backend-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
  background: #f6f7f9;
}

.backend-sidebar {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  padding: 28px 0;
  border-right: 1px solid #edf0f3;
  background: var(--white);
}

.backend-group {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.backend-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  padding: 0 28px;
  color: #9aa2ad;
  background: transparent;
  font-size: 1.25rem;
  font-weight: 900;
}

.backend-link {
  display: block;
  padding: 10px 28px 10px 42px;
  color: #232d3a;
  font-size: 1.1rem;
}

.backend-link.active {
  color: var(--shop-orange);
  font-weight: 900;
}

.backend-content {
  min-width: 0;
  padding: 24px;
}

.backend-view {
  display: none;
}

.backend-view.active {
  display: block;
}

.brand-story-form {
  display: grid;
  gap: 20px;
}

.brand-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 1px solid #dfe7f1;
  border-radius: 18px;
  padding: 22px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(18, 31, 53, 0.06);
}

.brand-editor-grid label,
.story-editor-card label {
  display: grid;
  gap: 8px;
}

.brand-editor-grid span,
.story-editor-card span {
  color: var(--muted);
  font-weight: 900;
}

.brand-editor-grid textarea,
.story-editor-card textarea {
  min-height: 96px;
  resize: vertical;
}

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

.brand-editor-panel {
  display: grid;
  gap: 16px;
  border: 1px solid #dfe7f1;
  border-radius: 18px;
  padding: 22px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(18, 31, 53, 0.06);
}

.editor-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.editor-panel-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
}

.editor-panel-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.story-editor-list {
  display: grid;
  gap: 14px;
}

.story-editor-card {
  display: grid;
  grid-template-columns:
    minmax(120px, 0.45fr)
    minmax(170px, 0.75fr)
    minmax(240px, 1.15fr)
    minmax(200px, 0.9fr)
    minmax(180px, 0.8fr);
  gap: 14px;
  border: 1px solid #e7edf5;
  border-radius: 14px;
  padding: 16px;
  background: #f9fbfd;
}

.value-editor-list .story-editor-card {
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.4fr);
}

.brand-story-actions {
  justify-content: flex-start;
  border: 1px solid #dfe7f1;
  border-radius: 18px;
  padding: 16px;
  background: var(--white);
}

.backend-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  border-bottom: 1px solid #e6e8ec;
  background: var(--white);
}

.backend-tabs button {
  position: relative;
  border: 0;
  cursor: pointer;
  padding: 16px 0 22px;
  color: #4d5662;
  background: transparent;
  font-size: 1rem;
}

.backend-tabs button.active {
  color: var(--shop-orange);
}

.backend-tabs button.active::after {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  content: "";
  background: var(--shop-orange);
}

.notice-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 4px;
  border-radius: 999px;
  background: #ff7b65;
  box-shadow: 0 0 0 4px #ffe2dc;
}

.backend-filter-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(180px, 1fr) auto auto;
  gap: 14px;
  padding: 22px 0;
}

.backend-filter-row input,
.backend-filter-row select {
  min-height: 48px;
  border-color: #e3e6eb;
  color: #6f7784;
  background: var(--white);
}

.outline-orange {
  color: var(--shop-orange);
  border-color: var(--shop-orange);
  background: var(--white);
}

.compact-button {
  min-width: 48px;
  padding-inline: 10px;
}

.backend-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0 22px;
}

.backend-summary-row h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.backend-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.bulk-panel {
  display: none;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #ffd1c7;
  border-radius: 6px;
  background: #fff8f6;
}

.bulk-panel.open {
  display: grid;
}

.bulk-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.bulk-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.bulk-fields label {
  display: grid;
  gap: 7px;
}

.bulk-fields span {
  color: var(--muted);
  font-weight: 800;
}

.admin-table {
  overflow-x: auto;
  border-radius: 4px;
  background: var(--white);
}

.admin-table-head,
.admin-main-row,
.admin-variant-row {
  display: grid;
  grid-template-columns: minmax(480px, 1.9fr) 110px 170px 150px 120px;
  gap: 16px;
  align-items: start;
}

.admin-table-head {
  padding: 18px 24px;
  color: #6c7480;
  background: #f1f2f4;
}

.admin-table-head label {
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin-product-row {
  border-bottom: 1px solid #f0f1f3;
}

.admin-main-row {
  padding: 28px 24px 16px;
}

.admin-check {
  position: absolute;
  margin-top: 28px;
}

.admin-product-cell {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  padding-left: 46px;
}

.admin-product-thumb,
.admin-variant-thumb {
  width: 74px;
  height: 74px;
  overflow: hidden;
  background: #eef1f5;
}

.admin-variant-thumb {
  width: 48px;
  height: 48px;
}

.admin-product-thumb .product-media,
.admin-variant-thumb .product-media,
.admin-product-thumb .showcase-art,
.admin-variant-thumb .showcase-art {
  height: 100%;
  aspect-ratio: 1;
}

.admin-product-thumb .showcase-icon,
.admin-variant-thumb .showcase-icon {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.admin-product-cell h3 {
  margin: 0 0 8px;
  display: -webkit-box;
  overflow: hidden;
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-product-cell small,
.admin-variant-product small {
  display: block;
  color: #8d96a3;
  line-height: 1.55;
}

.content-ok {
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-ok i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #19b5a5;
}

.admin-actions {
  display: grid;
  gap: 12px;
}

.admin-actions button {
  border: 0;
  cursor: pointer;
  color: #2374d4;
  background: transparent;
  text-align: left;
}

.admin-actions .danger-link {
  color: var(--shop-orange);
  font-weight: 900;
}

.admin-variant-list {
  display: grid;
  padding: 0 24px 24px 98px;
  background: #fcfcfd;
}

.admin-variant-row {
  min-height: 86px;
  padding: 10px 0;
}

.admin-variant-product {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.admin-variant-product strong {
  display: block;
  margin-bottom: 3px;
  color: #384252;
  font-weight: 500;
}

.sold-out {
  color: var(--shop-orange);
}

.admin-empty,
.empty-backend {
  padding: 48px;
  color: var(--muted);
  background: var(--white);
  text-align: center;
}

.empty-backend h2 {
  color: var(--ink);
}

.backend-orders {
  display: grid;
  gap: 14px;
}

.sales-status {
  margin: 0 0 14px;
}

.sales-search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 0.35fr) auto auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 14px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(18, 31, 53, 0.04);
}

.sales-search-panel label {
  display: grid;
  gap: 7px;
}

.sales-search-panel span {
  color: var(--muted);
  font-weight: 900;
}

.sales-search-panel input,
.sales-search-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

.sales-search-panel input:focus,
.sales-search-panel select:focus {
  border-color: var(--navy);
  outline: 3px solid rgba(13, 46, 99, 0.12);
}

.order-card,
.buyer-card {
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(18, 31, 53, 0.05);
}

.order-card {
  overflow: hidden;
  padding: 0;
}

.order-shop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid #e8ebef;
  background: #fafafa;
}

.order-buyer {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.order-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #58707f;
  background: #dce8ee;
  font-size: 0.82rem;
  font-weight: 900;
}

.order-buyer strong {
  display: block;
  color: #384252;
  font-size: 1.08rem;
}

.order-buyer small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.order-simple-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.18fr) minmax(210px, 0.28fr);
  gap: 24px;
  align-items: start;
  padding: 20px;
}

.order-spec-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.order-spec-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 110px;
  gap: 16px;
  align-items: start;
}

.order-spec-main {
  min-width: 0;
}

.order-spec-main span {
  display: block;
  margin-bottom: 4px;
  color: #8993a0;
  font-size: 0.92rem;
  font-weight: 800;
}

.order-spec-main strong {
  display: block;
  color: #56606e;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.45;
}

.order-spec-qty {
  color: #424c5a;
  font-size: 1.08rem;
  font-weight: 800;
}

.order-spec-price {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 900;
  white-space: nowrap;
}

.order-simple-side {
  display: grid;
  gap: 6px;
}

.order-simple-side strong {
  color: var(--ink);
  font-size: 1.12rem;
}

.order-simple-side small {
  color: var(--muted);
}

.order-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf0f3;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.order-card-head strong,
.buyer-card strong {
  display: block;
  color: var(--navy);
  font-size: 1.02rem;
}

.order-card-head small,
.buyer-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.order-status-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--shop-orange);
  background: var(--shop-orange-soft);
  font-weight: 900;
}

.order-status-badge.shipping {
  color: #a06400;
  background: #fff6df;
}

.order-status-badge.shipped {
  color: var(--teal);
  background: #eaf8f3;
}

.order-status-badge.canceled {
  color: var(--rose);
  background: #fff1f1;
}

.order-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px 20px;
}

.order-card dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
}

.order-card dt {
  color: var(--muted);
  font-weight: 800;
}

.order-card dd {
  margin: 0;
  color: var(--ink);
}

.order-card dd span {
  display: block;
  line-height: 1.6;
}

.order-items-table {
  overflow: hidden;
  border: 1px solid #e7ecf3;
  border-radius: 6px;
  background: #fbfcfe;
}

.order-items-head,
.order-item-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(170px, 1.2fr) minmax(72px, 0.35fr) minmax(100px, 0.45fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.order-items-head {
  color: var(--muted);
  background: #f1f4f8;
  font-size: 0.92rem;
  font-weight: 900;
}

.order-item-row + .order-item-row {
  border-top: 1px solid #edf0f3;
}

.order-item-row span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.order-item-row strong {
  color: var(--navy);
}

.order-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  border-top: 0;
  background: transparent;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.order-action-button {
  min-height: 38px;
  padding: 8px 14px;
}

.order-action-note {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--teal);
  background: #f5fbf8;
  font-weight: 900;
}

.danger-text {
  color: var(--rose);
  background: #fff7f7;
}

.buyer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.buyer-card span {
  display: block;
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

.compact-heading {
  margin-bottom: 18px;
}

.add-product-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  background: var(--white);
}

.add-product-form label {
  display: grid;
  gap: 7px;
}

.add-product-form span {
  color: var(--muted);
  font-weight: 800;
}

.add-product-form .manager-spec-field {
  grid-column: 1 / -2;
}

.add-product-form .button {
  align-self: end;
}

.manager-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.manager-status {
  min-height: 28px;
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

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

.manager-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(18, 31, 53, 0.07);
}

.manager-card-head {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.manager-card-head h3 {
  margin: 0 0 8px;
}

.manager-card-head p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.manager-preview {
  display: grid;
  width: 112px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eef4f2;
}

.manager-preview .product-media {
  height: 100%;
  aspect-ratio: 1;
}

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

.manager-fields label,
.file-field {
  display: grid;
  gap: 7px;
}

.manager-fields span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.manager-spec-field,
.manager-desc-field,
.file-field {
  grid-column: 1 / -1;
}

.manager-variants {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  border: 1px solid #e8ebef;
  border-radius: 6px;
  background: #fbfcfd;
}

.manager-variant-list {
  display: grid;
  gap: 10px;
}

.manager-variant-head,
.manager-variant-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.95fr) minmax(240px, 1.1fr) 110px 110px minmax(174px, auto);
  gap: 8px;
  align-items: center;
}

.manager-variant-row {
  padding: 10px;
  border: 1px solid #e8ebef;
  border-radius: 6px;
  background: var(--white);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.manager-variant-row.dragging {
  opacity: 0.58;
  border-color: var(--shop-orange);
  box-shadow: 0 14px 30px rgba(15, 47, 91, 0.16);
}

.manager-variant-row.manager-variant-moved {
  border-color: rgba(239, 78, 49, 0.45);
  box-shadow: 0 10px 22px rgba(239, 78, 49, 0.12);
}

.manager-variant-head {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  padding: 0 10px;
}

.manager-variant-row input {
  min-height: 40px;
  padding: 9px 10px;
}

.manager-variant-image-cell {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.manager-variant-preview {
  display: grid;
  width: 64px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.manager-variant-preview .product-media,
.manager-variant-preview .showcase-art,
.manager-variant-preview .product-image {
  width: 100%;
  height: 100%;
}

.manager-variant-upload {
  display: grid;
  gap: 5px;
}

.manager-variant-upload span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.manager-variant-upload input {
  width: 100%;
  min-height: 36px;
  padding: 6px;
  font-size: 0.82rem;
}

.manager-variant-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.manager-variant-handle,
.manager-variant-move {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font-weight: 900;
  line-height: 1;
}

.manager-variant-handle {
  cursor: grab;
  user-select: none;
}

.manager-variant-handle:active {
  cursor: grabbing;
}

.manager-variant-move {
  cursor: pointer;
}

.manager-variant-handle:hover,
.manager-variant-move:hover {
  border-color: var(--shop-orange);
  color: var(--shop-orange);
}

.manager-variant-remove {
  min-height: 40px;
  white-space: nowrap;
}

.file-field input {
  padding: 10px;
}

.manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.manager-actions .button {
  flex: 1 1 132px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(20px, 4vw, 34px);
}

.contact-info-layout {
  grid-template-columns: minmax(260px, 780px);
  justify-content: center;
}

.contact-details {
  display: grid;
  gap: 12px;
  align-content: start;
}

.contact-line {
  display: grid;
  gap: 7px;
  padding: 18px;
  border-left: 4px solid var(--gold);
  background: #f8faf7;
}

.contact-line span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-line strong {
  font-size: 1.08rem;
}

.contact-line-qr {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.contact-line-qr img {
  width: 150px;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.form-status {
  min-height: 28px;
  margin: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 28px 18px;
  color: rgba(255, 255, 255, 0.75);
  background: var(--navy-deep);
}

.site-footer strong {
  color: var(--white);
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .brand-mark,
  .top-nav,
  .header-actions {
    justify-self: stretch;
  }

  .top-nav,
  .header-actions {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .hero-layout {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  }

  .hero-search-panel {
    grid-column: 1 / -1;
    margin-top: 0;
  }

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

  .story-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

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

  .market-toolbar,
  .market-product,
  .seller-panel,
  .review-summary {
    grid-template-columns: 1fr;
  }

  .gallery-main {
    min-height: 420px;
  }

  .seller-profile {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
  }

  .seller-stats {
    grid-template-columns: repeat(2, minmax(120px, 1fr) auto);
  }

  .review-filter {
    justify-content: flex-start;
  }

  .cart-panel {
    position: static;
  }

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

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

  .backend-shell {
    grid-template-columns: 1fr;
  }

  .backend-sidebar {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
  }

  .backend-filter-row,
  .bulk-fields,
  .add-product-form {
    grid-template-columns: 1fr 1fr;
  }

  .brand-story-card {
    grid-template-columns: 1fr;
  }

  .brand-story-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .story-editor-card {
    grid-template-columns: 1fr 1fr;
  }

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

  .checkout-member-panel dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-story-card:nth-child(even) .brand-story-media {
    order: 0;
  }

  .story-editor-card label:nth-child(3),
  .story-editor-card label:nth-child(4),
  .story-editor-card label:nth-child(5) {
    grid-column: 1 / -1;
  }

  .admin-table-head,
  .admin-main-row,
  .admin-variant-row {
    min-width: 1180px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    align-items: stretch;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
    padding: 12px;
  }

  .brand-mark {
    min-width: 0;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .header-actions {
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
  }

  .header-actions > * {
    min-width: 0;
  }

  .language-toggle,
  .header-pill,
  .header-cart-link {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .seller-center-pill {
    max-width: 100%;
  }

  .home-cover {
    min-height: auto;
    margin: 0;
    padding: 14px 14px 74px;
  }

  .home-cover::before {
    inset: 12px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0;
  }

  .hero-brand-card {
    width: min(100%, 220px);
  }

  .home-cover h1 {
    font-size: 2.35rem;
  }

  .hero-company-en {
    font-size: 1.2rem;
  }

  .hero-search-row {
    grid-template-columns: 1fr;
  }

  .home-info-grid {
    grid-template-columns: 1fr;
    margin-top: -46px;
    padding: 0 14px 14px;
  }

  .home-shop-tools {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 14px 18px;
  }

  .home-shop-tools > * {
    min-width: 0;
  }

  .story-section {
    margin-inline: 0;
    padding: 0;
  }

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

  .brand-story-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px;
  }

  .brand-story-hero,
  .brand-story-values,
  .product-description-grid,
  .checkout-member-panel dl,
  .brand-editor-grid,
  .story-editor-card,
  .value-editor-list .story-editor-card {
    grid-template-columns: 1fr;
  }

  .brand-story-hero {
    min-height: auto;
    padding: 22px;
  }

  .brand-story-hero::before {
    inset: 10px;
  }

  .brand-story-logo {
    width: min(100%, 230px);
  }

  .brand-story-card {
    grid-template-columns: 1fr;
  }

  .brand-story-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .brand-story-card:nth-child(even) .brand-story-media {
    order: 0;
  }

  .brand-story-media,
  .brand-story-media img {
    min-height: 210px;
  }

  .brand-story-media {
    width: 100%;
    overflow: hidden;
  }

  .brand-story-media img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
  }

  .brand-story-card-content {
    padding: 18px;
  }

  .editor-panel-heading {
    display: grid;
  }

  .story-logo-card {
    max-width: 220px;
  }

  .story-content article {
    grid-template-columns: 1fr;
  }

  .story-content article span {
    grid-row: auto;
  }

  .intro-band,
  .product-toolbar,
  .market-toolbar,
  .contact-layout,
  .account-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-product,
  .seller-panel,
  .review-panel,
  .quick-products,
  .cart-panel-wide {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding: 16px;
  }

  .home-market-toolbar,
  .home-quick-products,
  .quick-heading,
  .product-grid,
  .product-card,
  .search-box,
  .category-tabs,
  .subcategory-tabs {
    max-width: 100%;
  }

  .home-market-toolbar {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .quick-heading {
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quick-heading p {
    width: 100%;
    margin: 0;
  }

  .cart-page {
    padding: 16px 12px 24px;
  }

  .cart-page-title {
    align-items: flex-start;
    padding: 18px;
  }

  .cart-table-head {
    display: none;
  }

  .cart-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .cart-product-cell {
    align-items: flex-start;
  }

  .cart-product-media {
    width: 74px;
    height: 74px;
    flex-basis: 74px;
  }

  .cart-price-cell::before {
    content: "單價：";
    color: var(--muted);
    font-weight: 700;
  }

  .cart-line-total::before {
    content: "小計：";
    color: var(--muted);
    font-weight: 700;
  }

  .cart-checkout-bar {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .cart-checkout-summary {
    justify-items: start;
    text-align: left;
  }

  .gallery-main {
    min-height: 330px;
  }

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

  .rating-line {
    align-items: flex-start;
  }

  .review-submit-row {
    grid-template-columns: 1fr;
  }

  .report-button {
    width: 100%;
    margin-left: 0;
    padding: 0;
    text-align: left;
  }

  .info-table,
  .variant-block {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .info-table a {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }

  .seller-profile {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .seller-avatar {
    width: 78px;
    height: 78px;
  }

  .seller-stats {
    grid-template-columns: minmax(120px, 1fr) auto;
  }

  .seller-line-card,
  .contact-line-qr {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .seller-line-card img,
  .contact-line-qr img {
    width: 132px;
  }

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

  .product-grid > *,
  .product-card,
  .product-top,
  .product-media,
  .product-price-row,
  .product-specs {
    min-width: 0;
    max-width: 100%;
  }

  .product-card {
    width: 100%;
  }

  .product-card h3,
  .product-card p,
  .product-specs span {
    overflow-wrap: anywhere;
  }

  .manager-card-head,
  .manager-fields {
    grid-template-columns: 1fr;
  }

  .manager-variant-head {
    display: none;
  }

  .manager-variant-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .manager-variant-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .manager-variant-image-cell {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .manager-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .category-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .tab-button {
    flex: 0 0 auto;
  }

  .backend-sidebar {
    grid-template-columns: 1fr;
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid #edf0f3;
    padding: 12px;
  }

  .backend-group {
    gap: 4px;
    margin-bottom: 0;
    border: 1px solid #edf0f3;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
  }

  .backend-group-title {
    padding: 0;
    font-size: 1rem;
  }

  .backend-link {
    padding: 8px 0 8px 8px;
    font-size: 0.95rem;
  }

  .backend-content {
    padding: 12px;
  }

  .brand-story-form {
    gap: 14px;
  }

  .brand-editor-grid,
  .brand-editor-panel,
  .brand-story-actions {
    border-radius: 14px;
    padding: 14px;
    box-shadow: none;
  }

  .editor-panel-heading {
    gap: 6px;
  }

  .editor-panel-heading h3 {
    font-size: 1.05rem;
  }

  .editor-panel-heading p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .story-editor-list {
    gap: 10px;
  }

  .story-editor-card {
    gap: 10px;
    border-radius: 12px;
    padding: 12px;
  }

  .brand-editor-grid textarea,
  .story-editor-card textarea {
    min-height: 82px;
  }

  .story-upload-preview {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
  }

  .story-upload-field input[type="file"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 0.86rem;
  }

  .brand-story-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .brand-story-actions .button {
    width: 100%;
  }

  .backend-filter-row,
  .sales-search-panel,
  .bulk-fields,
  .add-product-form {
    grid-template-columns: 1fr;
  }

  .add-product-form .manager-spec-field {
    grid-column: auto;
  }

  .backend-summary-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .backend-tools {
    justify-content: flex-start;
  }

  .order-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .order-card-head,
  .order-shop-head,
  .order-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-simple-body {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .order-spec-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf0f3;
  }

  .order-spec-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .order-spec-qty::before {
    content: "數量：";
    color: var(--muted);
    font-weight: 800;
  }

  .order-spec-price::before {
    content: "金額：";
    color: var(--muted);
    font-weight: 800;
  }

  .order-footer,
  .order-actions,
  .order-action-button,
  .order-action-note {
    width: 100%;
  }

  .order-items-head {
    display: none;
  }

  .order-item-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .order-item-row span:nth-child(3)::before {
    content: "數量：";
    color: var(--muted);
    font-weight: 800;
  }

  .order-item-row span:nth-child(4)::before {
    content: "單價：";
    color: var(--muted);
    font-weight: 800;
  }

  .buyer-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .buyer-card span {
    text-align: left;
  }
}

@media print {
  .site-header,
  .hero,
  .intro-band,
  .product-area,
  .manager-section,
  .contact-section,
  .site-footer,
  .cart-actions,
  .note-field,
  .cart-empty {
    display: none !important;
  }

  .section {
    padding: 0;
  }

  .shop-layout {
    display: block;
  }

  .cart-panel {
    border: 0;
    box-shadow: none;
  }
}
