:root {
  color-scheme: light;
  --bg: #f7f5f2;
  --panel: #ffffff;
  --ink: #191816;
  --muted: #716c65;
  --line: #e3ded6;
  --soft: #f0ebe4;
  --accent: #b43b55;
  --accent-dark: #742338;
  --gold: #a8792c;
  --danger: #9c2d2d;
  --shadow: 0 18px 42px rgba(39, 30, 24, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Noto Sans JP", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.announcement-bar {
  align-items: center;
  background: var(--ink);
  color: #fff;
  display: flex;
  font-size: 0.82rem;
  font-weight: 750;
  gap: 14px;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  text-align: center;
}

.announcement-bar span + span {
  color: rgba(255, 255, 255, 0.68);
}

.site-header {
  background-color: #fff;
  color: var(--ink);
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(227, 222, 214, 0.82);
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 16px max(22px, calc((100vw - 1500px) / 2 + 22px));
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(23, 20, 18, .08);
  height: 46px;
  object-fit: cover;
  padding: 3px;
  width: 46px;
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong {
  color: var(--ink);
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
}

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

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

.nav-links {
  align-items: center;
  display: flex;
  gap: 8px;
}

.nav-links a,
.primary-action,
.secondary-action,
.floating-line,
.cart-float,
.form-link,
.output-actions a {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  text-decoration: none;
}

.nav-links a {
  color: var(--muted);
}

.nav-links .line-link,
.primary-action,
.floating-line,
.output-actions a {
  background: var(--accent);
  color: #fff;
}

.customer-status {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  min-height: 42px;
  padding: 5px 8px 5px 12px;
}

.customer-status:empty {
  display: none;
}

.customer-status img {
  border-radius: 999px;
  height: 28px;
  object-fit: cover;
  width: 28px;
}

.customer-status span {
  display: grid;
  line-height: 1.05;
}

.customer-status b {
  color: var(--ink);
  font-size: .78rem;
  white-space: nowrap;
}

.customer-status small {
  color: var(--muted);
  font-size: .68rem;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-status a,
.customer-status button {
  background: var(--soft);
  border: 0;
  border-radius: 999px;
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-size: .76rem;
  font-weight: 900;
  min-height: 30px;
  padding: 0 10px;
  text-decoration: none;
}

.customer-status.is-logged-in {
  background: #fff;
}

.customer-status.is-guest {
  background: rgba(255, 247, 249, .9);
}

.owner-preview-bar {
  align-items: center;
  background: #171412;
  box-shadow: 0 12px 30px rgba(23, 20, 18, .18);
  color: #fff;
  display: flex;
  gap: 10px;
  justify-content: center;
  left: 0;
  min-height: 54px;
  padding: 8px 14px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 80;
}

.owner-preview-bar strong {
  font-size: .92rem;
}

.owner-preview-bar a,
.owner-preview-bar button {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 8px;
  color: #171412;
  display: inline-flex;
  font-size: .88rem;
  font-weight: 850;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  text-decoration: none;
}

.owner-preview-bar button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .36);
  color: #fff;
}

@media (max-width: 720px) {
  .owner-preview-bar {
    justify-content: start;
    overflow-x: auto;
  }

  .owner-preview-bar strong,
  .owner-preview-bar a,
  .owner-preview-bar button {
    flex: 0 0 auto;
  }
}

.hero {
  align-items: center;
  display: flex;
  margin: 0 auto;
  max-width: 1500px;
  min-height: 360px;
  padding: 54px 22px 64px;
  overflow: visible;
  position: relative;
}

.hero-copy {
  max-width: 620px;
  position: relative;
  width: 52%;
  z-index: 2;
}

.hero-cart-art {
  bottom: 6%;
  height: auto;
  max-width: 590px;
  pointer-events: none;
  position: absolute;
  right: 18px;
  transform-origin: 50% 78%;
  width: min(45vw, 590px);
  z-index: 1;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.site-header .eyebrow {
  color: var(--accent);
}

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

h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 18px;
  max-width: 660px;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  margin-bottom: 12px;
}

h3 {
  margin-bottom: 8px;
}

.hero p {
  font-size: 0.98rem;
  line-height: 1.75;
  max-width: 560px;
}

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

@keyframes cartRollIn {
  from {
    opacity: 0;
    transform: translateX(42px) translateY(10px) rotate(-1deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(0deg);
  }
}

@keyframes cartSideGlide {
  0% {
    opacity: 1;
    transform: translateX(22px) translateY(0) rotate(0deg);
  }

  45% {
    transform: translateX(-10px) translateY(-4px) rotate(-0.45deg);
  }

  100% {
    opacity: 1;
    transform: translateX(-34px) translateY(1px) rotate(0.25deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cart-art {
    animation: none;
  }
}

.secondary-action {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent-dark);
}

.guide-action {
  color: var(--ink);
}

main {
  margin: 0 auto;
  max-width: 1500px;
  padding: 0 22px 68px;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

body[data-page="cart"] .cart-float,
body[data-page="cart"] .floating-line {
  display: none;
}

.collection-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 24px auto 22px;
  position: relative;
  z-index: 3;
}

.collection-nav a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(39, 30, 24, 0.06);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  min-height: 42px;
  padding: 10px 16px;
  text-decoration: none;
}

.collection-nav a small {
  color: var(--muted);
  font-size: 0.72em;
  margin-left: 6px;
}

.collection-nav .platform-pill {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  margin-left: 14px;
}

.collection-nav .platform-pill small {
  color: rgba(255, 255, 255, 0.72);
}

.collection-nav .brand-pill {
  background: #fff;
}

.collection-nav a:hover {
  border-color: rgba(180, 59, 85, 0.4);
  color: var(--accent-dark);
}

.collection-nav .platform-pill:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.filters,
.cart-card,
.payment-form,
.order-output {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.filters p,
.payment-form p,
.checkout-section p,
.cart-item span,
.cart-item small,
.jp-name,
.quote-note,
.product-source,
.copy-status {
  color: var(--muted);
  line-height: 1.6;
}

.shop-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 260px minmax(0, 1fr);
  margin-top: 18px;
}

.filters {
  display: grid;
  gap: 14px;
  padding: 18px;
  position: sticky;
  top: 14px;
}

.filters [hidden] {
  display: none;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.86rem;
  font-weight: 850;
  gap: 7px;
}

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

textarea {
  line-height: 1.55;
  min-height: auto;
  padding: 12px;
  resize: vertical;
}

button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(180, 59, 85, 0.22);
  outline-offset: 2px;
}

.ghost-button {
  background: var(--soft);
  color: var(--accent-dark);
  min-height: 44px;
}

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

.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  border-color: rgba(180, 59, 85, 0.28);
  box-shadow: 0 18px 36px rgba(39, 30, 24, 0.08);
  transform: translateY(-2px);
}

.product-media {
  aspect-ratio: 4 / 5;
  background: #f8f5f0;
  display: block;
  overflow: hidden;
  position: relative;
}

.product-media img {
  display: block;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  width: 100%;
}

.discount-badge {
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  left: 10px;
  padding: 6px 9px;
  position: absolute;
  top: 10px;
}

.preorder-badge {
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  left: 10px;
  padding: 6px 9px;
  position: absolute;
  top: 10px;
  z-index: 2;
}

.preorder-badge + .discount-badge {
  top: 46px;
}

.image-fallback {
  align-items: center;
  color: var(--accent-dark);
  display: flex;
  flex-direction: column;
  font-weight: 950;
  gap: 10px;
  height: 100%;
  justify-content: center;
  padding: 18px;
  text-align: center;
}

.image-fallback span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}

.product-source {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-card h3 {
  font-size: 1rem;
  line-height: 1.45;
  margin: 0;
}

.jp-name,
.quote-note {
  font-size: 0.82rem;
  margin: 0;
}

.product-code {
  color: var(--muted);
  font-size: 0.76rem;
  margin: -4px 0 0;
}

.preorder-note {
  background: #fff1f3;
  border: 1px solid rgba(180, 59, 85, 0.22);
  border-radius: 6px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.5;
  margin: 0;
  padding: 8px 10px;
}

.price-row {
  align-items: end;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
}

.price-row span {
  color: var(--muted);
  font-weight: 800;
}

.price-row strong {
  color: var(--accent-dark);
  font-size: 1.18rem;
}

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

.variant-row select {
  grid-column: 1 / -1;
}

.variant-row input,
.variant-row select {
  background: #fbfaf8;
  min-height: 38px;
}

.card-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-top: auto;
}

.card-actions a,
.card-actions button,
.primary-button,
.output-actions button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  text-decoration: none;
}

.card-actions a {
  background: #2a2521;
  color: #fff;
  font-weight: 850;
}

.card-actions button {
  background: #fff4f6;
  color: var(--accent-dark);
}

.card-actions button.is-added,
.primary-button,
.output-actions button {
  background: var(--accent);
  color: #fff;
}

.pager {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: center;
  padding: 24px 0 8px;
}

.pager button {
  background: var(--ink);
  color: #fff;
  min-height: 42px;
  padding: 0 18px;
}

.pager span {
  color: var(--muted);
  font-weight: 850;
}

.checkout-section {
  margin-top: 38px;
}

.checkout-intro {
  max-width: 760px;
}

.checkout-intro h1 {
  margin-bottom: 8px;
}

.checkout-steps {
  align-items: center;
  display: flex;
  gap: 0;
  margin-top: 20px;
}

.checkout-steps span {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: .84rem;
  font-weight: 850;
  gap: 7px;
  white-space: nowrap;
}

.checkout-steps span:not(:last-child)::after {
  background: var(--line);
  content: "";
  height: 1px;
  margin: 0 12px;
  width: 44px;
}

.checkout-steps b,
.checkout-block-title > span {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .78rem;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.checkout-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(360px, .82fr) minmax(500px, 1.18fr);
  margin-top: 26px;
}

.cart-card,
.payment-form,
.order-output {
  padding: 22px;
}

.cart-card {
  position: sticky;
  top: 92px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-warning {
  background: #fff1f3;
  border: 1px solid rgba(180, 59, 85, 0.24);
  border-radius: 6px;
  color: var(--accent-dark);
  font-weight: 850;
  line-height: 1.55;
  padding: 10px 12px;
}

.cart-item {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  padding-bottom: 12px;
}

.cart-item img {
  background: var(--soft);
  border-radius: 8px;
  height: 84px;
  object-fit: cover;
  width: 84px;
}

.cart-item strong,
.cart-item span,
.cart-item small {
  display: block;
}

.cart-tag {
  color: var(--accent-dark);
  display: block;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 900;
  margin-top: 3px;
}

.cart-item button {
  background: transparent;
  color: var(--danger);
  padding: 8px;
}

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

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

.cart-summary span {
  color: var(--muted);
}

.cart-summary .total {
  border-top: 1px solid var(--line);
  font-size: 1.18rem;
  padding-top: 12px;
}

.payment-form {
  display: grid;
  gap: 0;
}

.checkout-form-heading {
  padding-bottom: 18px;
}

.checkout-form-heading h2,
.checkout-block-title h3 {
  margin: 0;
}

.checkout-block {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.checkout-block-title {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.checkout-block-title h3 {
  font-size: 1.02rem;
}

.checkout-block-title p {
  font-size: .8rem;
  margin: 2px 0 0;
}

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

.checkout-fields-grid label {
  align-self: start;
  min-width: 0;
}

.checkout-fields-grid input:not([type="file"]) {
  height: 44px;
  min-height: 44px;
}

.checkout-submit {
  font-size: 1rem;
  margin-top: 18px;
  min-height: 54px;
  width: 100%;
}

.checkout-error {
  background: #fff0f2;
  border: 1px solid #c94f67;
  color: #8d1831;
  font-weight: 800;
  margin: 16px 0 0;
  padding: 12px 14px;
}

.identity-modal[hidden] { display: none; }
.identity-modal { inset: 0; position: fixed; z-index: 100; }
.identity-modal-backdrop { background: rgba(20, 18, 17, .62); inset: 0; position: absolute; }
.identity-modal-panel {
  background: #fff;
  left: 50%;
  max-width: 620px;
  padding: 34px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 36px);
}
.identity-modal-panel h1 { font-size: clamp(1.7rem, 4vw, 2.35rem); margin: 4px 0 10px; }
.identity-options { display: grid; gap: 10px; margin-top: 24px; }
.identity-option {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 3px;
  padding: 18px;
  text-align: left;
  text-decoration: none;
}
.identity-option strong { font-size: 1rem; }
.identity-option span { color: var(--muted); font-size: .84rem; }
.line-identity-option { background: #06c755; border-color: #06c755; color: #fff; }
.line-identity-option span { color: rgba(255,255,255,.88); }
.identity-option.is-disabled { background: #d9d9d9; border-color: #d9d9d9; cursor: not-allowed; }
.line-link.is-disabled,
.floating-line.is-disabled { background: #777; cursor: not-allowed; opacity: .72; }

.line-add-friend-button {
  background: #06c755 !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #fff !important;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px !important;
}

.line-bubble-mark {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  color: #06c755;
  display: inline-flex;
  font-size: .68rem;
  font-weight: 950;
  height: 24px;
  justify-content: center;
  letter-spacing: -0.03em;
  min-width: 34px;
}
.identity-availability { color: var(--danger); font-size: .82rem; font-weight: 800; min-height: 1.4em; }
body.modal-open { overflow: hidden; }

.order-success-heading > span { color: #477052; font-size: .78rem; font-weight: 900; }
.order-success-heading h2 { margin: 5px 0; }
.order-customer-detail { display: grid; gap: 8px; margin: 0; }
.order-customer-detail div { display: flex; justify-content: space-between; }
.order-customer-detail dt { color: var(--muted); }
.order-customer-detail dd { font-weight: 850; margin: 0; text-align: right; }
.completed-items { border-block: 1px solid var(--line); display: grid; gap: 12px; padding: 16px 0; }
.completed-items article { align-items: center; display: grid; gap: 12px; grid-template-columns: 62px 1fr; }
.completed-items img { background: var(--soft); height: 62px; object-fit: cover; width: 62px; }
.completed-items span, .completed-items small { color: var(--muted); display: block; margin-top: 3px; }
.completed-total { align-items: center; display: flex; font-size: 1.15rem; justify-content: space-between; }
.cart-card.is-order-complete { position: static; }

@media (max-width: 640px) {
  .identity-modal-panel { padding: 24px 20px; }
  .order-customer-detail div { align-items: flex-start; flex-direction: column; gap: 2px; }
  .order-customer-detail dd { text-align: left; }
}

.delivery-fields {
  border: 0;
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
}

.delivery-fields legend {
  font-size: 1rem;
  font-weight: 900;
  padding: 0 6px;
}

.delivery-fields p {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
  margin: 0;
}

.delivery-fields p a {
  color: var(--accent-dark);
  font-weight: 800;
  margin-left: 5px;
}

.field-note {
  color: var(--muted);
  display: block;
  font-size: .78rem;
  line-height: 1.5;
  margin-top: 5px;
}

.store-map-panel {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.store-map-panel strong {
  display: block;
  font-size: .94rem;
}

.store-map-button,
.secondary-button {
  align-items: center;
  background: var(--ink);
  border: 0;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  text-decoration: none;
  white-space: nowrap;
}

.store-selection-entry {
  display: grid;
  gap: 10px;
}

.store-selection-entry[hidden],
.selected-store-card[hidden],
.store-technical-fields[hidden] { display: none; }

.selected-store-card {
  align-items: center;
  background: #f4faf5;
  border: 1px solid #9fbea7;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px;
}

.selected-store-card span {
  color: #477052;
  display: block;
  font-size: .78rem;
  font-weight: 850;
  margin-bottom: 3px;
}

.selected-store-card strong { display: block; }
.selected-store-card p { margin: 4px 0 0; }

.selected-store-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.selected-store-actions button {
  background: #fff;
  color: var(--ink);
  min-height: 38px;
  padding: 0 12px;
}

.store-technical-fields {
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.secondary-button {
  background: #f4edf0;
  color: var(--accent-dark);
  justify-self: start;
}

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

@media (max-width: 640px) {
  .store-map-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .delivery-grid { grid-template-columns: 1fr; }
  .selected-store-card { align-items: stretch; flex-direction: column; }
  .selected-store-actions button { flex: 1; }
}

.bank-info {
  background: #f7f4f1;
  border: 1px solid #ded6ce;
  border-radius: 6px;
  display: grid;
  gap: 4px;
  padding: 18px;
}

.bank-info span {
  color: var(--muted);
  font-size: .82rem;
}

.bank-info.is-unconfigured {
  background: #fff5f5;
  border-color: #c7727e;
}

.bank-account-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.bank-account-row code {
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.bank-account-row button {
  flex: 0 0 auto;
  padding: 8px 12px;
}

.bank-info small {
  color: var(--muted);
}

.payment-qr-section {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  justify-items: center;
  margin-top: 8px;
  padding-top: 14px;
}

.payment-qr-section[hidden] { display: none; }

.payment-qr-section img,
.payment-qr-preview img {
  image-rendering: crisp-edges;
  background: #fff;
  border: 1px solid var(--line);
  height: auto;
  max-width: 220px;
  padding: 8px;
  width: min(100%, 220px);
}

.payment-qr-preview {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkout-policy-note {
  background: #fff7f1;
  border: 1px solid #edd8c9;
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  line-height: 1.65;
  margin-top: 16px;
  padding: 14px 16px;
}

.checkout-policy-note strong {
  color: var(--ink);
  font-size: 1rem;
}

.checkout-policy-note p {
  margin: 0;
}

.payment-settings-panel {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.payment-settings-grid {
  margin-top: 10px;
}

.proof-preview {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  padding: 10px;
}

.proof-preview img {
  border-radius: 6px;
  height: 74px;
  object-fit: cover;
  width: 74px;
}

.coupon-box {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
}

.coupon-box label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.coupon-box > div {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.coupon-box button {
  min-height: 42px;
  padding: 0 14px;
}

.coupon-status {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

.form-link {
  background: var(--soft);
  color: var(--accent-dark);
}

.order-output {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.order-output[hidden] {
  display: none;
}

.order-output textarea {
  min-height: 260px;
}

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

.empty-state {
  background: #fbfcfa;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
}

.customer-guide {
  background: #f7f4ef;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
  margin-top: 42px;
  padding: 36px max(22px, calc((100vw - 1500px) / 2)) 44px;
}

.guide-heading {
  max-width: 760px;
}

.guide-heading h2 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  margin: 6px 0 10px;
}

.guide-heading p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
}

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

.guide-steps article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 17px;
}

.guide-steps span {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.guide-steps h3 {
  font-size: 1.15rem;
  margin: 0;
}

.guide-steps p {
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
}

.guide-panels {
  display: grid;
  gap: 10px;
}

.guide-panels details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
}

.guide-panels summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
  list-style: none;
  padding: 18px 0;
}

.guide-panels summary::-webkit-details-marker {
  display: none;
}

.guide-panels summary::after {
  content: "+";
  float: right;
  font-weight: 950;
}

.guide-panels details[open] summary::after {
  content: "-";
}

.guide-panels p {
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
  padding: 16px 0 18px;
}

.floating-line,
.cart-float {
  bottom: 22px;
  box-shadow: var(--shadow);
  position: fixed;
  right: 22px;
  z-index: 9;
}

.cart-float {
  background: var(--ink);
  bottom: 76px;
  color: #fff;
}

.cart-float span {
  background: #fff;
  border-radius: 999px;
  color: var(--ink);
  margin-left: 7px;
  min-width: 24px;
  padding: 2px 7px;
  text-align: center;
}

.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
  margin: 0;
  padding: 32px max(22px, calc((100vw - 1500px) / 2)) 42px;
}

.site-footer p {
  color: rgba(255, 255, 255, .58);
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-bottom: 24px;
}

.footer-links a {
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 980px) {
  .shop-layout,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

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

  .filters {
    position: static;
  }

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

  .cart-card { position: static; }
}

@media (max-width: 680px) {
  .topbar {
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
  }

  .brand img {
    height: 38px;
    width: 38px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: .78rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links a:not(.line-link) {
    display: none;
  }

  .customer-status {
    order: -1;
    max-width: calc(100vw - 168px);
    min-height: 36px;
    padding: 4px 6px 4px 10px;
  }

  .customer-status small {
    display: none;
  }

  .customer-status a,
  .customer-status button {
    min-height: 26px;
    padding: 0 8px;
  }

  .hero {
    align-items: flex-start;
    min-height: 330px;
    padding: 34px 18px 116px;
  }

  .hero-cart-art {
    bottom: 14px;
    right: 12px;
    width: min(49vw, 210px);
  }

  .hero-copy {
    max-width: none;
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 11vw, 2.95rem);
    max-width: 8em;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: .86rem;
    max-width: 21em;
  }

  .hero-actions {
    align-items: stretch;
    gap: 10px;
    margin-top: 22px;
  }

  .hero-actions a {
    min-height: 44px;
    padding: 0 15px;
  }

  main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .collection-nav {
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-start;
    margin: 10px auto 16px;
    overflow: visible;
    padding: 0;
  }

  .collection-nav a {
    box-shadow: 0 6px 14px rgba(39, 30, 24, 0.05);
    flex: 0 1 auto;
    font-size: .72rem;
    min-height: 30px;
    padding: 5px 9px;
    white-space: nowrap;
  }

  .collection-nav a small {
    font-size: .68em;
    margin-left: 4px;
  }

  .collection-nav .platform-pill {
    margin-left: 0;
  }

  .checkout-section { margin-top: 26px; }
  .checkout-grid { margin-top: 20px; }
  .cart-card, .payment-form, .order-output { padding: 16px; }
  .checkout-fields-grid { grid-template-columns: 1fr; }
  .checkout-steps { justify-content: space-between; }
  .checkout-steps span { font-size: .74rem; gap: 5px; }
  .checkout-steps span:not(:last-child)::after { margin: 0 7px; width: 16px; }
  .checkout-block { padding: 19px 0; }
  .checkout-block-title { margin-bottom: 14px; }
  .payment-qr-section img { max-width: 200px; width: min(100%, 200px); }

  .customer-guide {
    gap: 20px;
    margin-left: -14px;
    margin-right: -14px;
    margin-top: 36px;
    padding: 36px 14px 42px;
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }

  .guide-steps article {
    padding: 16px;
  }

  .guide-panels details {
    padding: 0 14px;
  }

  .footer-links {
    gap: 10px 16px;
  }

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

  .product-card {
    border-radius: 6px;
  }

  .product-media {
    aspect-ratio: 1 / 1.18;
  }

  .product-media img {
    padding: 8px;
  }

  .discount-badge,
  .preorder-badge {
    font-size: .63rem;
    left: 7px;
    padding: 4px 7px;
    top: 7px;
  }

  .preorder-badge + .discount-badge {
    top: 34px;
  }

  .product-body {
    gap: 6px;
    padding: 9px;
  }

  .product-source {
    font-size: .62rem;
    letter-spacing: 0;
    line-height: 1.25;
  }

  .product-card h3 {
    display: -webkit-box;
    font-size: .82rem;
    line-height: 1.35;
    min-height: 2.7em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .jp-name,
  .quote-note,
  .product-code {
    display: -webkit-box;
    font-size: .68rem;
    line-height: 1.35;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .product-code {
    -webkit-line-clamp: 1;
  }

  .price-row {
    align-items: start;
    display: grid;
    gap: 2px;
    padding-top: 7px;
  }

  .price-row span {
    font-size: .72rem;
  }

  .price-row strong {
    font-size: .96rem;
  }

  .quote-note {
    -webkit-line-clamp: 1;
  }

  .variant-row {
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .variant-row input,
  .variant-row select {
    border-radius: 6px;
    font-size: .72rem;
    min-height: 32px;
    padding: 0 8px;
  }

  .card-actions {
    gap: 6px;
  }

  .card-actions a,
  .card-actions button {
    border-radius: 7px;
    font-size: .72rem;
    min-height: 34px;
    padding: 0 6px;
  }

  .cart-item {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .cart-item button {
    grid-column: 2;
    justify-self: start;
  }

  .floating-line,
  .cart-float {
    border-radius: 10px;
    font-size: .78rem;
    min-height: 34px;
    padding: 0 10px;
    right: 10px;
  }

  .cart-float {
    bottom: 62px;
  }

  .floating-line {
    bottom: 16px;
  }

  .cart-float span {
    min-width: 22px;
    padding: 1px 6px;
  }
}
