:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --ink: #121212;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --brand: #111111;
  --accent: #e11d2e;
  --accent-soft: #fff1f2;
  --green: #0f8a5f;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --font: "Noto Sans", "Noto Sans Thai", "Noto Sans KR", sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 0.45rem; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 0.85rem; }
.container { width: min(var(--container), calc(100% - 2rem)); margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

/* Hide number input spinner arrows */
input[type="number"] {
  -moz-appearance: textfield;
  -webkit-appearance: none;
  appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
  margin: 0;
}

/* —— Promo / announcement (Revibe-style) —— */
.promo-bar {
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 0.55rem 1rem;
  text-transform: uppercase;
}
.promo-bar strong { color: #ffd166; }

/* —— Header —— */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 0.85rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand:hover { opacity: 0.88; }

.nb-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.nb-logo img {
  display: block;
  height: 2.75rem;
  width: auto;
}
.nb-logo img.nb-logo-dark { display: none; }
.nb-logo--invert img.nb-logo-light { display: none; }
.nb-logo--invert img.nb-logo-dark { display: block; }
.brand .nb-logo img { height: 2.9rem; }
.nb-logo--lg img { height: 5.5rem; }
.footer-brand .nb-logo { margin-bottom: 0.35rem; }
.footer-brand .nb-logo img { height: 3.1rem; }

/* —— About process story —— */
.about-banner .about-hero-title {
  letter-spacing: -0.03em;
}
.about-process {
  padding-top: 1rem;
  padding-bottom: 3.5rem;
  background: linear-gradient(180deg, #fff 0%, #fafafa 40%, #fff 100%);
}
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3.25rem;
}
.process-step {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.process-step.is-in {
  opacity: 1;
  transform: translateY(0);
}
.process-step--flip {
  grid-template-columns: 0.85fr 1.15fr;
}
.process-step--flip .process-media { order: 2; }
.process-step--flip .process-copy { order: 1; }
.process-media {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #eee;
  aspect-ratio: 4 / 3;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}
.process-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.process-step.is-in .process-media img {
  transform: scale(1);
}
.process-copy {
  padding: 0.4rem 0.2rem;
}
.process-num {
  display: inline-block;
  font-family: "Barlow Condensed", "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: #aaa;
  margin-bottom: 0.55rem;
}
.process-copy h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
}
.process-copy p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 28rem;
}
.process-highlight {
  display: inline-block;
  margin: 0.15rem 0 0 !important;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #111;
  color: #fff !important;
  font-size: 0.86rem !important;
  font-weight: 700;
}
.about-cta {
  margin-top: 3.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-cta.is-in {
  opacity: 1;
  transform: translateY(0);
}
.about-cta p {
  margin-bottom: 0.9rem;
  font-size: 1.1rem;
  font-weight: 600;
}
@media (max-width: 860px) {
  .process-step,
  .process-step--flip {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .process-step--flip .process-media,
  .process-step--flip .process-copy {
    order: initial;
  }
  .process-list { gap: 2.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .process-step,
  .about-cta,
  .process-media img {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
.header-search {
  display: flex;
  align-items: center;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  overflow: hidden;
  background: #fafafa;
  max-width: 560px;
  width: 100%;
  justify-self: center;
}
.header-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.7rem 1rem;
  font: inherit;
  outline: none;
}
.header-search button {
  border: 0;
  background: transparent;
  padding: 0 1rem;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.header-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  margin-left: 0.15rem;
}
.lang-switch select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  font: inherit;
  background: #fff;
}

.nav-bar {
  border-top: 1px solid var(--line);
  background: #fff;
}
.nav-inner {
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  padding: 0.15rem 0;
}
.nav-item {
  white-space: nowrap;
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #333;
}
.nav-item:hover { color: var(--accent); }
.nav-item.is-soon {
  color: #999;
  cursor: default;
}
.nav-item.is-soon em {
  font-style: normal;
  font-size: 0.65rem;
  margin-left: 0.2rem;
  background: #eee;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
}

.delivery-banner {
  background: #f3f3f3;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 0.86rem;
  padding: 0.65rem 1rem;
}
.delivery-banner strong { color: var(--accent); }

/* —— Trust row —— */
.trust-row {
  padding: 1.4rem 0 0.4rem;
  border-bottom: 1px solid var(--line);
}
.trust-row-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.trust-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-align: left;
  padding: 0.6rem;
}
.trust-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f2f2f2;
  position: relative;
  flex-shrink: 0;
}
.trust-icon::before {
  content: "";
  position: absolute;
  background: #222;
}
.trust-warranty::before {
  width: 0.95rem;
  height: 1.1rem;
  border: 2px solid #222;
  border-radius: 0.2rem 0.2rem 0.55rem 0.55rem;
  background: transparent;
  top: 0.55rem;
}
.trust-delivery::before {
  width: 1.1rem;
  height: 0.7rem;
  border-radius: 0.15rem;
  top: 0.75rem;
  box-shadow: 0.45rem 0.15rem 0 0 #222;
}
.trust-return::before {
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid #222;
  border-radius: 50%;
  border-left-color: transparent;
  background: transparent;
  top: 0.7rem;
}
.trust-pill strong { font-size: 0.95rem; }

/* —— Sections —— */
.section { padding: 1.75rem 0 2rem; }
.section-soft { background: var(--bg-soft); }
.section-title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
}
.section-title.center { text-align: center; margin-bottom: 1.25rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.section-head-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.hot-deals-count {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.hot-deals-grid .empty-state {
  grid-column: 1 / -1;
}
.see-all {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.series-block {
  margin-bottom: 2rem;
}
.series-block:last-child {
  margin-bottom: 0;
}
.series-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

/* Hot Deals — slider with 4 visible cards */
.slider-controls {
  display: flex;
  gap: 0.45rem;
}
.slider-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.slider-btn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}
.slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.deal-slider {
  overflow: hidden;
  width: 100%;
  margin-top: -6px;
  padding-top: 6px;
  container-type: inline-size;
  container-name: deals;
}
.deal-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.35s ease;
  will-change: transform;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.deal-track:active {
  cursor: grabbing;
}
.deal-track .deal-card {
  flex: 0 0 calc((100cqi - 3rem) / 4);
  min-width: 0;
  pointer-events: auto;
}
.deal-track a,
.deal-track img {
  -webkit-user-drag: none;
  user-select: none;
}
.deal-card .product-media {
  position: relative;
}

/* Hot Deals — actual inventory units */
.deal-card .deal-badge,
.product-media .deal-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  width: 2.9rem;
  height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  padding: 0;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  letter-spacing: -0.02em;
}
.product-media .deal-badge--hot {
  width: 3.7rem;
  height: 3.85rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 2px 6px rgba(180, 20, 20, 0.35));
}
.product-media .deal-badge--hot .deal-badge-flame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  z-index: 0;
}
.product-media .deal-badge--hot .deal-badge-text {
  position: relative;
  z-index: 1;
  margin-top: 0.7rem;
  color: #6b0008;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow:
    -1.2px -1.2px 0 #fff,
     1.2px -1.2px 0 #fff,
    -1.2px  1.2px 0 #fff,
     1.2px  1.2px 0 #fff,
     0 0 5px rgba(255, 255, 255, 0.95),
     0 1px 2px rgba(80, 0, 0, 0.35);
}
.deal-was {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.deal-was span {
  text-decoration: line-through;
}
.deal-save {
  margin: 0.2rem 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}
.deal-now .sale {
  font-size: 1.2rem;
  color: var(--accent);
}
.deal-now .label {
  color: var(--accent);
  font-weight: 700;
}

/* Certified Renewed — model categories + price range */
.price-range-block .label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.price-range-block .price-range {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 750;
  color: var(--ink);
}

/* —— Category icon row (Revibe "Shop Certified Renewed") —— */
.cat-icon-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.1rem 1.5rem;
}
.cat-circle {
  width: 96px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  position: relative;
}
.cat-circle-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.45rem;
  border-radius: 50%;
  background: #f1f1f1;
  border: 1px solid #e5e5e5;
  display: block;
  position: relative;
}
.cat-circle-icon::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 8px;
  background: #222;
}
.cat-ipad::after { inset: 14px 20px; border-radius: 6px; }
.cat-laptop::after { inset: 22px 12px 16px; border-radius: 4px; }
.cat-galaxy::after { border-radius: 12px; }
.cat-deals::after {
  inset: 20px;
  border-radius: 50%;
  background: var(--accent);
}
.cat-circle.is-soon { opacity: 0.55; }
.cat-circle.is-soon em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  color: var(--accent);
}

/* —— Product cards (Revibe grid) —— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.product-card {
  position: relative;
  z-index: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover {
  z-index: 2;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.product-card.is-hot-deal {
  border: 2px solid var(--accent);
  animation: hot-deal-glow 2.2s ease-in-out infinite;
}
.product-card.is-hot-deal:hover {
  animation: hot-deal-glow 1.6s ease-in-out infinite;
}
@keyframes hot-deal-glow {
  0%, 100% { border-color: #c41020; }
  50% { border-color: #ff5a66; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card.is-hot-deal,
  .product-card.is-hot-deal:hover {
    animation: none;
    border-color: var(--accent);
  }
}
.product-media {
  background-color: #f7f7f7;
  padding: 0;
  margin: 0;
  line-height: 0;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  vertical-align: top;
  transition: transform 0.35s ease;
}
.product-card:hover .product-media img {
  transform: scale(1.06);
}
.product-card.is-hot-deal .product-media img {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border-radius: 6px;
}
.product-card.is-hot-deal:hover .product-media img {
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .product-media img {
    transition: none;
  }
  .product-card:hover .product-media img {
    transform: none;
  }
}
.product-body { padding: 0.85rem 0.95rem 1.05rem; }
.product-brand {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.product-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  min-height: 0;
}
.product-title-name,
.product-title-storage {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.product-card.is-hot-deal .product-title {
  color: var(--accent);
  animation: hot-deal-title 2.2s ease-in-out infinite;
}
@keyframes hot-deal-title {
  0%, 100% {
    color: #c41020;
    text-shadow: 0 0 4px rgba(225, 29, 46, 0.28);
  }
  35% {
    color: #ff3b4a;
    text-shadow: 0 0 6px rgba(255, 70, 80, 0.45);
  }
  55% {
    color: #e11d2e;
    text-shadow: 0 0 3px rgba(225, 29, 46, 0.22);
  }
  75% {
    color: #ff5a45;
    text-shadow: 0 0 6px rgba(255, 90, 70, 0.4);
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-card.is-hot-deal .product-title {
    animation: none;
    color: var(--accent);
    text-shadow: 0 0 6px rgba(225, 29, 46, 0.25);
  }
}
.product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.35rem;
}
.product-price .label,
.product-price .price-label {
  width: 100%;
  margin: 0 0 0.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
.product-price .price-label {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.product-card:not(.is-hot-deal) .product-price .price-label {
  color: var(--ink);
}
.product-card:not(.is-hot-deal) .product-price .sale {
  color: var(--ink);
}
.product-price .sale {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.product-card.is-hot-deal .product-price .sale {
  color: var(--accent);
}
.product-price .range {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.product-compare {
  margin-top: 0.2rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 0.4rem;
}
.product-compare .compare-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}
.product-compare .was {
  justify-self: end;
  text-decoration: line-through;
  color: #9a9a9a;
  font-size: 0.82rem;
  white-space: nowrap;
}
.product-compare .new-tag {
  font-size: 0.75rem;
  color: var(--muted);
}
.product-compare .off-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.installment-box {
  margin: 0.85rem 0 1.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
}
.installment-title {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.installment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.installment-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 0.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.installment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.installment-option.is-selected {
  border-color: #111;
  border-width: 2px;
  padding: calc(0.75rem - 1px) calc(0.8rem - 1px);
}
.installment-option--lump {
  grid-column: 1 / -1;
}
.installment-term {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.installment-down {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.installment-down-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}
.installment-down-amount {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.installment-amount {
  font-size: 0.86rem;
  font-weight: 500;
  color: #888;
  white-space: nowrap;
}
.installment-amount em {
  font-style: normal;
  font-weight: 500;
  color: #aaa;
  font-size: 0.78rem;
  margin-left: 0.12rem;
}
.stock-note, .meta, .muted, .page-note {
  color: var(--muted);
  font-size: 0.82rem;
}
.stock-note { display: block; margin-top: 0.35rem; }
.badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.45rem;
  border-radius: 4px;
}
.img-fallback {
  color: var(--muted);
  text-align: center;
  font-weight: 600;
  padding: 1rem;
}

/* —— Verify / trust block —— */
.verify-section {
  background: #111;
  color: #fff;
}
.verify-section .section-title { color: #fff; margin-bottom: 1.5rem; }
.verify-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.verify-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1.1rem;
}
.verify-card h3 { font-size: 1rem; margin-bottom: 0.45rem; }
.verify-card p { color: rgba(255,255,255,0.72); font-size: 0.88rem; margin: 0; }
.trust-footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffd166;
}

.trade-band { padding-top: 0; }
.trade-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
}
.trade-band-inner p { margin: 0; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn-dark { background: #111; color: #fff; }
.btn-dark:hover { background: #333; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

/* —— Inner pages —— */
.page-banner {
  padding: 1.4rem 0 0.4rem;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}
.page-banner h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.breadcrumb { color: var(--muted); font-size: 0.86rem; margin-bottom: 0.5rem; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 2px; }
.page-banner-split {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 1.25rem;
  align-items: end;
}
.official-thumb {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem;
  max-width: 220px;
  justify-self: end;
}
.official-thumb img { width: 100%; object-fit: contain; }
.chip {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  background: #e9f7f1;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}
.banner-price { margin-top: 0.5rem; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.filter-bar select,
.form-control,
.form-select {
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  min-width: 150px;
  background: #fff;
}

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: 1.5rem 0;
}
.gallery {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
  align-content: start;
}
.gallery-stage {
  position: relative;
  width: min(100%, 520px);
}
.gallery-viewport {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #f7f7f7;
}
.gallery-viewport.gallery-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
}
.gallery-track {
  position: absolute;
  inset: 0;
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
  touch-action: pan-y;
}
.gallery-slide {
  margin: 0;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #fff;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.gallery-nav:hover { background: #fff; }
.gallery-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.gallery-nav-prev { left: 0.65rem; }
.gallery-nav-next { right: 0.65rem; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
  width: min(100%, 520px);
}
.gallery-thumb {
  margin: 0;
  padding: 0;
  aspect-ratio: 1 / 1;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--ink);
}
.gallery-note {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0;
  width: min(100%, 520px);
}
@media (max-width: 980px) {
  .gallery-stage,
  .gallery-thumbs,
  .gallery-note { width: 100%; }
  .gallery-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  }
}

.unit-quality {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, #fafafa 0%, #fff 48%);
  padding-top: 3rem;
  padding-bottom: 3.25rem;
}
.unit-quality-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}
.unit-quality-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.unit-quality-lead {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}
.unit-quality-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}
.unit-quality-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.unit-quality-media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ececec;
}
.unit-quality-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.unit-quality-item:hover .unit-quality-media img {
  transform: scale(1.04);
}
.unit-quality-copy {
  padding: 1rem 1.05rem 1.15rem;
  flex: 1;
}
.unit-quality-item.is-accent {
  border-color: #111;
  background: #111;
  color: #fff;
}
.unit-quality-item.is-accent p { color: rgba(255, 255, 255, 0.78); }
.unit-quality-num {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.unit-quality-item.is-accent .unit-quality-num { color: rgba(255, 255, 255, 0.55); }
.unit-quality-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.unit-quality-item p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}
.unit-quality-tag {
  display: inline-block;
  margin-top: 0.75rem !important;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  font-size: 0.74rem !important;
  font-weight: 700;
}
.unit-quality-foot {
  margin-top: 1.5rem;
}
@media (max-width: 1100px) {
  .unit-quality-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .unit-quality-grid { grid-template-columns: 1fr; }
  .unit-quality-media { aspect-ratio: 16 / 10; }
}

.product-unique-no {
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.product-info > .product-brand {
  margin-top: 0.15rem;
}
.price-panel.lump-sum {
  margin: 0.35rem 0 0.85rem;
}
.price-panel.lump-sum .price-panel-caption {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.price-panel.lump-sum .banner-price {
  margin-top: 0;
}
.price-panel.lump-sum .banner-price .sale {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.price-panel.lump-sum.is-hot-deal .banner-price .sale {
  color: var(--accent);
}
.price-panel.lump-sum .product-compare {
  margin-top: 0.35rem;
}
.price-panel.lump-sum .product-compare .was {
  text-decoration: line-through;
  color: #9a9a9a;
  font-size: 0.86rem;
}
.price-panel.lump-sum .product-compare .off-tag {
  font-size: 0.78rem;
}

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 1.2rem 0;
}
.spec-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  background: #fff;
}
.spec-list dt { color: var(--muted); font-size: 0.75rem; margin-bottom: 0.15rem; }
.spec-list dd { margin: 0; font-weight: 700; }
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.85rem 0 0;
}
.product-actions .btn-line-inquire {
  width: 100%;
  gap: 0.55rem;
  justify-content: center;
  text-align: center;
  background: #06c755;
  color: #fff;
  box-shadow: 0 2px 8px rgba(6, 199, 85, 0.28);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.product-actions .btn-line-inquire:hover {
  background: #05b34c;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.34);
}
.product-actions .btn-line-inquire:active {
  transform: translateY(1px);
}
.product-actions .btn-line-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}
.promise-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}
.promise-list.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.promise-list.inline li {
  background: #f3f3f3;
  color: #333;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.product-benefits {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
}
.product-benefits-title {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.product-benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.product-benefits-list li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.55rem;
  align-items: baseline;
  padding: 0.7rem 0.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.product-benefits-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.product-benefits-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
@media (max-width: 520px) {
  .product-benefits-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.aside-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.trade-promo {
  padding-top: 1.25rem;
  padding-bottom: 3.25rem;
}
.trade-hero {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #111;
  width: 100%;
  height: 260px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  animation: trade-hero-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.trade-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: trade-img-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.trade-hero-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.25rem, 4vw, 2.4rem);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.62) 55%, rgba(0, 0, 0, 0.78) 100%);
  color: #fff;
  animation: trade-caption-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.trade-hero-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.trade-hero-caption h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.trade-hero-caption p {
  margin: 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.5;
}
.trade-consult {
  margin-top: 2rem;
  text-align: center;
  animation: trade-caption-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}
.trade-consult h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}
.trade-consult > p {
  margin: 0 0 1.15rem;
  color: var(--muted);
}
.trade-consult-actions {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.trade-consult-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 11rem;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.trade-consult-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.trade-consult-icon {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
}
.trade-consult-facebook { background: #1877F2; }
.trade-consult-line { background: #06C755; }

.trade-credit {
  margin-top: 2.75rem;
  padding: 1.5rem 1.35rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.03);
}
.trade-credit-head {
  text-align: center;
  margin-bottom: 1.25rem;
}
.trade-credit-head h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}
.trade-credit-head p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.trade-credit-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.trade-filter {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  min-width: min(100%, 220px);
}
.trade-filter select {
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
}
.trade-credit-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.trade-credit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.trade-credit-table th,
.trade-credit-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.trade-credit-table th {
  background: #fafafa;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.trade-credit-table tbody tr:last-child td {
  border-bottom: 0;
}
.trade-credit-table tbody tr:hover td {
  background: #fcfcfc;
}
.trade-credit-amount {
  font-weight: 700;
}
.trade-credit-empty {
  margin: 0;
  padding: 1.4rem 1rem;
  text-align: center;
  color: var(--muted);
}
@keyframes trade-hero-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes trade-img-in {
  from { transform: scale(1.1); }
  to { transform: scale(1.04); }
}
@keyframes trade-caption-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 720px) {
  .trade-hero { height: 220px; }
  .trade-hero-caption h2 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .trade-hero,
  .trade-hero img,
  .trade-hero-caption,
  .trade-consult {
    animation: none !important;
  }
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.form-grid .full { grid-column: 1 / -1; }
.check-row { flex-direction: row !important; align-items: center; gap: 0.5rem !important; }
.trade-aside { padding: 1.25rem; }
.trade-aside ol { color: var(--muted); }
.aside-card {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-soft);
}
.messages { padding-top: 1rem; }
.flash {
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
}
.flash-success { background: #e9f7f1; color: #0f8a5f; }
.flash-error { background: #ffe8ea; color: #a30f1d; }
.errorlist { color: #a30f1d; font-size: 0.8rem; margin: 0.2rem 0 0; padding-left: 1rem; }
.empty-state { color: var(--muted); }

/* —— Footer —— */
.site-footer {
  background: #111;
  color: #cfcfcf;
  padding: 2.5rem 0 1.25rem;
  margin-top: 1rem;
}
.footer-brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
}
.footer-copy { color: #9a9a9a; max-width: 22rem; font-size: 0.9rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 1.25rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.92rem;
  margin-bottom: 0.7rem;
}
.site-footer a {
  display: block;
  color: #bdbdbd;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}
.site-footer a:hover { color: #fff; }
.footer-hours { color: #8f8f8f; font-size: 0.84rem; margin: 0.4rem 0 0; }
.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #8a8a8a;
}
.legal-bar {
  background: #111;
  color: #cfcfcf;
  padding: 0.4rem 0 1.6rem;
}
.legal-bar img {
  display: block;
  height: 2.6rem;
  width: auto;
}
.legal-bar p {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
}
.legal-bar a {
  color: #cfcfcf;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-bar a:hover { color: #fff; }
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
}
.legal-doc {
  max-width: 46rem;
  padding-bottom: 1.5rem;
}
.legal-doc h2 {
  margin: 1.7rem 0 0.35rem;
  font-size: 1.05rem;
}
.legal-doc p,
.legal-doc li {
  margin: 0.3rem 0;
  line-height: 1.75;
}
.legal-doc ol {
  margin: 0.15rem 0 0;
  padding-left: 1.25rem;
}
.legal-updated {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .header-top { grid-template-columns: 1fr auto; }
  .header-search { grid-column: 1 / -1; order: 3; justify-self: stretch; max-width: none; }
  .trust-row-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .deal-track .deal-card {
    flex: 0 0 calc((100cqi - 1rem) / 2);
  }
  .verify-grid,
  .footer-grid,
  .page-banner-split,
  .product-layout { grid-template-columns: 1fr; }
  .official-thumb { justify-self: start; }
  .trade-band-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .product-grid,
  .form-grid,
  .spec-list { grid-template-columns: 1fr; }
  .nav-item { padding: 0.65rem 0.6rem; font-size: 0.85rem; }
  .deal-track .deal-card {
    flex: 0 0 100cqi;
  }
}

/* Floating consultation buttons */
.chat-float {
  position: fixed;
  right: 0;
  bottom: 5.5rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}
.chat-float-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border-radius: 10px 0 0 10px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition: filter 0.18s ease, box-shadow 0.18s ease;
}
.chat-float-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
.chat-float-btn svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}
.chat-float-facebook {
  background: #1877f2;
}
.chat-float-line {
  background: #06c755;
}
.chat-float-line svg {
  width: 1.55rem;
  height: 1.55rem;
}

@media (max-width: 560px) {
  .chat-float {
    bottom: 4.5rem;
  }
  .chat-float-btn {
    min-height: 2.35rem;
    padding: 0.35rem 0.7rem 0.35rem 0.6rem;
    font-size: 0.82rem;
  }
}

/* —— Collection (Revibe-style product list) —— */
.container-wide {
  width: min(1480px, calc(100% - 2.5rem));
}
.collection-banner .page-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.collection-trust {
  padding-bottom: 1rem;
}
.collection-section {
  padding-top: 1.25rem;
}
.collection-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.collection-filters {
  width: 100%;
}
.refine-form {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem 1.15rem;
  background: #fff;
  width: 100%;
}
.refine-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.refine-head {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin: 0;
}
.refine-head h2 {
  font-size: 1rem;
  margin: 0;
}
.collection-main.is-loading,
.collection-main .is-loading,
[data-collection-results].is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.refine-clear {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.sort-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.sort-inline select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font: inherit;
  background: #fff;
}
.refine-count {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.refine-rows {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.refine-group {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.refine-label {
  flex: 0 0 100px;
  margin: 0;
  padding: 0.4rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}
.refine-group > .price-row,
.refine-group > .refine-chip-list,
.refine-group > .color-swatch-list {
  flex: 1 1 auto;
  min-width: 0;
}
.price-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.price-inputs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.price-inputs label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
  min-width: 140px;
}
.price-inputs input {
  width: 5.5rem;
  border: 0;
  outline: none;
  font: inherit;
  color: var(--ink);
  min-width: 0;
  -moz-appearance: textfield;
  -webkit-appearance: none;
  appearance: textfield;
}
.price-inputs input::-webkit-outer-spin-button,
.price-inputs input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
  margin: 0;
}
.price-to {
  font-size: 0.8rem;
  color: var(--muted);
}
.refine-apply {
  width: auto;
  margin: 0;
  font-size: 0.84rem;
  padding: 0.45rem 0.9rem;
}
.refine-chip-list,
.color-swatch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.refine-chip-list > li,
.color-swatch-list > li {
  display: inline-flex;
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}
.refine-chip {
  position: relative;
  display: inline-flex;
  width: auto;
  cursor: pointer;
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.3;
  user-select: none;
}
.refine-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.refine-chip span {
  display: inline-block;
  white-space: nowrap;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, font-weight 0.15s ease;
}
.refine-chip:hover span {
  color: #000;
  border-color: #111;
}
.refine-chip.is-active span,
.refine-chip:has(input:checked) span {
  font-weight: 700;
  color: #fff;
  background: #111;
  border-color: #111;
}
.color-swatch {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  cursor: pointer;
}
.color-swatch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.color-swatch-dot {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.color-swatch.is-light .color-swatch-dot {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}
.color-swatch:hover .color-swatch-dot,
.color-swatch.is-active .color-swatch-dot,
.color-swatch:has(input:focus-visible) .color-swatch-dot {
  transform: scale(1.06);
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3.5px #111,
    inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.collection-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.collection-results {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.collection-results strong {
  color: var(--ink);
}
.sort-form label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.sort-form select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font: inherit;
  background: #fff;
}
.collection-grid .meta {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.shop-now {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.collection-grid .empty-state {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .refine-group {
    flex-direction: column;
    gap: 0.4rem;
  }
  .refine-label {
    flex-basis: auto;
    padding-top: 0;
  }
  .refine-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* —— Auth (login / signup) —— */
.header-logout { display: inline; margin: 0; }
.header-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.header-user {
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

body.page-auth {
  background: #fff;
}
.auth-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 3.25rem 1.25rem 4.5rem;
  background: #fff;
}
.auth-glow {
  position: absolute;
  inset: auto 50% 20% auto;
  width: min(480px, 88vw);
  height: 240px;
  transform: translateX(50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.035), transparent 72%);
  pointer-events: none;
  z-index: 0;
  animation: auth-glow 1.4s ease both;
}
.auth-panel {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 1.75rem 1.85rem 1.85rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.045);
  animation: auth-panel-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Apple-style circular logo intro */
.auth-logo-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0.2rem 0 1.4rem;
}
.auth-logo-orb {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  animation: auth-logo-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-logo-wordmark {
  display: flex;
  justify-content: center;
  animation: auth-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}
.auth-logo-stage--simple {
  margin-bottom: 1.1rem;
  animation: auth-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.auth-ring-track,
.auth-ring-arc {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.auth-ring-track {
  stroke: rgba(0, 0, 0, 0.08);
}
.auth-ring-arc {
  stroke: #111;
  stroke-dasharray: 339.292; /* 2πr, r=54 */
  stroke-dashoffset: 339.292;
  animation: auth-ring-draw 1.15s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
}
.auth-logo-mark {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.auth-body {
  animation: auth-body-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.95s both;
}
.auth-anim {
  --d: 0ms;
  animation: auth-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.95s + var(--d));
}
@keyframes auth-panel-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes auth-logo-pop {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes auth-ring-draw {
  0% {
    stroke-dashoffset: 339.292;
    opacity: 1;
  }
  78% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.55;
  }
}
@keyframes auth-body-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes auth-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes auth-glow {
  from { opacity: 0; transform: translateX(50%) scale(0.9); }
  to { opacity: 1; transform: translateX(50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-panel,
  .auth-anim,
  .auth-glow,
  .auth-logo-orb,
  .auth-ring-arc,
  .auth-body {
    animation: none !important;
  }
  .auth-ring-arc {
    stroke-dashoffset: 0;
    opacity: 0.55;
  }
}
.auth-title {
  font-size: clamp(1.55rem, 3vw, 1.8rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  text-align: center;
}
.auth-lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
  line-height: 1.45;
  text-align: center;
}
.auth-form {
  display: grid;
  gap: 0.9rem;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3a3a3a;
}
.auth-field .form-control {
  width: 100%;
  min-width: 0;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #fff;
  font-size: 0.98rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-field .form-control:hover {
  border-color: #bbb;
}
.auth-field .form-control:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}
.auth-form .errorlist {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #a30f1d;
  font-size: 0.78rem;
  font-weight: 500;
}
.auth-submit {
  width: 100%;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.auth-submit:hover {
  background: #2a2a2a;
}
.auth-submit:active {
  transform: scale(0.99);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.5rem 0 1.1rem;
  color: #8a8a8a;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: lowercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd;
}
.social-login {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.social-btn {
  height: 3rem;
  border-radius: 12px;
  border: 1px solid #d8d8d8;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.social-btn:hover {
  border-color: #bbb;
  background: #fafafa;
}
.social-apple {
  color: #111;
}
.auth-switch {
  text-align: center;
  margin: 1.6rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.auth-switch a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-switch a:hover {
  color: var(--accent);
}

@media (max-width: 480px) {
  .auth-shell {
    padding: 1.5rem 1rem 2.5rem;
  }
  .auth-panel {
    padding: 1.5rem 1.15rem 1.35rem;
  }
}

.line-inquire-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 12px);
  z-index: 1000;
  max-width: min(92vw, 28rem);
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.line-inquire-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.line-inquire-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(17, 17, 17, 0.46);
}
.line-inquire-card {
  position: relative;
  width: min(100%, 26rem);
  max-height: min(92vh, 40rem);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.2rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}
.line-inquire-card h2 {
  margin: 0 2rem 0.45rem 0;
  font-size: 1.15rem;
}
.line-inquire-help {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.line-inquire-text {
  width: 100%;
  min-height: 7.5rem;
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  resize: vertical;
  font: inherit;
  line-height: 1.45;
  background: #fafafa;
}
.line-inquire-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.line-inquire-actions .btn {
  width: 100%;
  justify-content: center;
}
.line-inquire-actions .btn-line-inquire {
  background: #06c755;
  color: #fff;
}
.line-inquire-actions .btn-line-inquire:hover {
  background: #05b34c;
}
.line-inquire-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
}
.line-inquire-qr img {
  width: 168px;
  height: 168px;
  image-rendering: pixelated;
}
.line-inquire-qr span {
  font-size: 0.82rem;
  color: var(--muted);
}
.line-inquire-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #f3f3f3;
  cursor: pointer;
}
.line-inquire-close::before,
.line-inquire-close::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.95rem;
  width: 0.9rem;
  height: 2px;
  background: #222;
}
.line-inquire-close::before { transform: rotate(45deg); }
.line-inquire-close::after { transform: rotate(-45deg); }
