/* MOBO — Luxury Minimal Design System */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600&display=swap");

:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-100: #f5f5f5;
  --color-gray-300: #e5e5e5;
  --color-gray-600: #666666;
  --color-gray-500: #999999;
  --color-accent: #111111;
  --container-width: 1440px;
  --container-wide: 1600px;
  --radius: 0;
  --transition: all 0.3s ease;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 48px;
  --space-xl: 80px;
  --space-xxl: 120px;
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
  --header-height: 72px;
  --section-inset: clamp(40px, 7vw, 120px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-black);
  background: var(--color-white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

@media (min-width: 1600px) {
  .container {
    max-width: var(--container-wide);
  }
}

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

/* Typography */
h1,
.h1 {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2,
.h2 {
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 400;
  line-height: 1.2;
}

h3,
.h3 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
}

.label {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--color-gray-500);
}

.text-secondary {
  color: var(--color-gray-600);
}

.section {
  padding: var(--space-xxl) 0;
}

.section--large {
  padding: 160px 0;
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header--center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-300);
  transition: var(--transition);
  /* 共用 front-header.css 為 .site-header 加了 backdrop-filter: blur(20px)。
     依照 CSS 規範，有 backdrop-filter 的元素會成為 position: fixed 後代的
     定位基準（containing block），令手機抽屜（.site-nav 的 top/bottom）
     被困在 73px 高的 header 之內，只顯示一小條。MOBO 的 header 是不透明
     白色，模糊背景本來就沒有視覺效果，故此明確撤銷。 */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--color-gray-300);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .site-header__inner {
    padding: 0 24px;
  }
}

.site-logo img {
  height: 28px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-l);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

.mobo-mobile-nav {
  display: none;
}

.site-nav__link {
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-xs) 0;
  position: relative;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-black);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease-out);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  transform: scaleX(1);
}

.lang-switch {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-black);
  transition: transform 0.4s var(--ease-out), opacity 0.3s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--mobo-header-offset, var(--header-height));
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: var(--space-l) 24px var(--space-xl);
    gap: var(--space-m);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav.is-open .site-nav__link {
    animation: fade-up 0.5s var(--ease-out) both;
  }

  .site-nav.is-open .site-nav__list li:nth-child(1) .site-nav__link { animation-delay: 0.05s; }
  .site-nav.is-open .site-nav__list li:nth-child(2) .site-nav__link { animation-delay: 0.1s; }
  .site-nav.is-open .site-nav__list li:nth-child(3) .site-nav__link { animation-delay: 0.15s; }
  .site-nav.is-open .site-nav__list li:nth-child(4) .site-nav__link { animation-delay: 0.2s; }
  .site-nav.is-open .site-nav__list li:nth-child(5) .site-nav__link { animation-delay: 0.25s; }

  .site-nav__list {
    flex-direction: column;
    gap: var(--space-m);
  }

  .site-nav__link {
    font-size: 24px;
  }

  .site-nav--extended .site-nav__link,
  .site-nav--extended .site-nav__drop-toggle {
    font-size: 24px;
  }

  .site-nav--extended {
    overflow-x: hidden;
  }

  .site-nav__list--extended {
    flex-wrap: wrap;
    width: 100%;
  }

  .site-nav__list--extended > li {
    width: 100%;
  }

  .site-nav__drop-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav__dropdown::after {
    display: none;
  }

  .site-nav__submenu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: var(--space-xs);
    padding: 0;
    border: none;
    box-shadow: none;
    transform: none;
    pointer-events: auto;
    display: none;
  }

  .site-nav__dropdown.is-open .site-nav__submenu {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .site-nav__dropdown:hover .site-nav__submenu {
    display: none;
  }

  .site-nav__dropdown.is-open:hover .site-nav__submenu {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .site-nav__submenu a {
    padding: 10px 0 10px var(--space-m);
    font-size: 18px;
  }

  .site-nav__dropdown {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
}

/* Main offset */
main {
  padding-top: var(--header-height);
}

.has-extended-header main {
  padding-top: 128px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 16px 32px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--color-black);
  background: transparent;
  color: var(--color-black);
  cursor: pointer;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  font-family: inherit;
}

.btn:hover {
  background: var(--color-black);
  color: var(--color-white);
  opacity: 1;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--filled {
  background: var(--color-black);
  color: var(--color-white);
}

.btn--filled:hover {
  background: var(--color-accent);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
}

/* Hero */
.hero--stacked {
  display: flex;
  flex-direction: column;
}

.hero--stacked .hero__bg {
  position: relative;
  width: 100%;
  height: min(80vh, 900px);
  min-height: 420px;
  flex-shrink: 0;
  overflow: hidden;
}

.hero--stacked .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform, opacity;
}

.hero--stacked .hero__caption {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-xl) 0;
  width: 100%;
}

.hero--stacked .hero__caption .container {
  max-width: 800px;
  padding-left: var(--section-inset);
  padding-right: var(--section-inset);
}

.hero--stacked .label,
.hero--stacked .hero__label {
  color: var(--color-gray-500);
}

.hero--stacked .hero__title {
  margin-bottom: var(--space-s);
  color: var(--color-white);
}

.hero--stacked .hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: var(--space-l);
  color: rgba(255, 255, 255, 0.9);
}

.hero--stacked .hero__caption .btn {
  border-color: var(--color-white);
  color: var(--color-white);
}

.hero--stacked .hero__caption .btn:hover {
  background: var(--color-white);
  color: var(--color-black);
  opacity: 1;
}

.hero--stacked .hero__caption .btn--filled {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

.hero--stacked .hero__caption .btn--filled:hover {
  background: transparent;
  color: var(--color-white);
}

.hero--stacked.hero--about .hero__bg {
  height: min(55vh, 720px);
  min-height: 320px;
}

.hero--stacked.hero--about .hero__subtitle {
  margin-bottom: 0;
}

/* Inner page hero — text over image (legacy) */
.hero--page {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero--page .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero--page .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--page .hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
}

.hero--page .hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-xxl) 0;
  color: var(--color-white);
}

.hero--page .hero__content .container {
  max-width: 800px;
}

.hero--page .label {
  color: rgba(255, 255, 255, 0.85);
}

.hero--page .hero__title,
.hero--page .hero__subtitle,
.hero--page .label {
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.55),
    0 1px 4px rgba(0, 0, 0, 0.75);
}

.hero--page .hero__title {
  margin-bottom: var(--space-s);
}

.hero--page .hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: var(--space-l);
  color: rgba(255, 255, 255, 0.95);
}

.hero--page .hero__content .btn {
  border-color: var(--color-white);
  color: var(--color-white);
}

.hero--page .hero__content .btn:hover {
  background: var(--color-white);
  color: var(--color-black);
  opacity: 1;
}

.hero--page .hero__content .btn--filled {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

.hero--page .hero__content .btn--filled:hover {
  background: transparent;
  color: var(--color-white);
}

/* Editorial split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

.split--reverse .split__content {
  order: 1;
}

@media (max-width: 1024px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }

  .split--reverse .split__media,
  .split--reverse .split__content {
    order: unset;
  }
}

.split__media {
  overflow: hidden;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.split__media:hover img {
  transform: scale(1.03);
}

.split__media--full img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
}

.split__media--full:hover img {
  transform: none;
}

/* Slider */
.slider {
  position: relative;
  overflow: hidden;
}

.slider__track {
  display: flex;
  transition: transform 0.7s var(--ease-in-out);
}

.slider__slide {
  min-width: 100%;
  flex-shrink: 0;
}

.slider__slide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.slider__dots {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-m);
}

.slider__dot {
  width: 32px;
  height: 2px;
  background: var(--color-gray-300);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.slider__dot.is-active {
  background: var(--color-black);
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-m);
}

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.strength-card {
  padding: var(--space-l) var(--space-m);
  background: var(--color-gray-100);
  transition: background 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.strength-card:hover {
  background: var(--color-gray-300);
  transform: translateY(-4px);
}

.strength-card__num {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--color-gray-500);
  margin-bottom: var(--space-m);
}

.strength-card__title {
  font-size: 20px;
  margin-bottom: var(--space-s);
}

.strength-card__desc {
  font-size: 15px;
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* Product showcase */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-s);
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.product-item {
  overflow: hidden;
  position: relative;
  transition: transform 0.45s var(--ease-out);
}

.product-item:hover {
  transform: translateY(-4px);
}

.product-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-item:hover img {
  transform: scale(1.03);
}

/* Full bleed image block */
.full-bleed {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.full-bleed__bg {
  position: absolute;
  inset: 0;
}

.full-bleed__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.full-bleed__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.full-bleed__content {
  position: relative;
  z-index: 1;
  width: 100%;
  color: var(--color-white);
  padding: var(--space-xxl) 0;
}

.full-bleed__content .container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-inset);
  padding-right: var(--section-inset);
  box-sizing: border-box;
}

.full-bleed__content .container > * {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.full-bleed__content .feature-list {
  max-width: 520px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-m) var(--space-l);
  margin-top: var(--space-l);
}

@media (max-width: 600px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

.feature-list li {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.feature-list li::before {
  content: "—";
  margin-right: var(--space-xs);
}

/* Global presence */
.global-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

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

.office-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

.office-item h3 {
  margin-bottom: var(--space-xs);
}

.office-item p {
  color: var(--color-gray-600);
  font-size: 15px;
}

.map-visual {
  aspect-ratio: 16 / 9;
  background: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-visual svg {
  width: 90%;
  max-height: 280px;
  opacity: 0.15;
}

.map-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--color-black);
  border-radius: 0;
  transform: translate(-50%, -50%);
}

.map-pin::after {
  content: attr(data-label);
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.map-pin--hk { top: 42%; left: 72%; }
.map-pin--usa { top: 38%; left: 22%; }
.map-pin--mx { top: 48%; left: 18%; }

/* CTA band */
.cta-band {
  background: var(--color-black);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-xxl) 0;
}

.cta-band .container {
  padding-left: var(--section-inset);
  padding-right: var(--section-inset);
  box-sizing: border-box;
}

.cta-band h2 {
  margin-bottom: var(--space-m);
}

.cta-band p {
  max-width: 560px;
  margin: 0 auto var(--space-l);
  opacity: 0.85;
}

.cta-band .btn {
  border-color: var(--color-white);
  color: var(--color-white);
}

.cta-band .btn:hover {
  background: var(--color-white);
  color: var(--color-black);
}

/* Coming soon */
.coming-soon {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl) 0;
}

.coming-soon__visual {
  width: 100%;
  max-width: 600px;
  margin-bottom: var(--space-xl);
  overflow: hidden;
}

.coming-soon__visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  animation: pulse-subtle 4s ease-in-out infinite;
}

@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}

.coming-soon h1 {
  margin-bottom: var(--space-m);
}

.coming-soon p {
  color: var(--color-gray-600);
  max-width: 480px;
}

/* News */
.section--news {
  padding-bottom: var(--space-xxl);
}

.section--news .section-header {
  margin-bottom: var(--space-l);
}

.news-showcase {
  width: 100%;
  background: var(--color-white);
}

.news-showcase__item {
  margin: 0;
  display: block;
  line-height: 0;
  background: var(--color-gray-100);
}

.news-showcase__item + .news-showcase__item {
  border-top: 1px solid var(--color-gray-300);
}

.news-showcase__item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.news-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-l);
  margin-bottom: var(--space-xl);
}

@media (max-width: 1024px) {
  .news-featured {
    grid-template-columns: 1fr;
  }
}

.news-featured__image {
  overflow: hidden;
}

.news-featured__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-featured:hover .news-featured__image img {
  transform: scale(1.02);
}

.news-featured__meta {
  margin-bottom: var(--space-s);
}

.news-featured h2 {
  margin-bottom: var(--space-m);
}

.news-featured--text {
  grid-template-columns: 1fr;
  max-width: 800px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l) var(--space-m);
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.news-card__image {
  overflow: hidden;
  margin-bottom: var(--space-m);
}

.news-card__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card__image img {
  transform: scale(1.03);
}

.news-card__date {
  margin-bottom: var(--space-xs);
}

.news-card h3 {
  font-size: 18px;
  margin-bottom: var(--space-xs);
}

.news-card p {
  font-size: 14px;
  color: var(--color-gray-600);
  line-height: 1.6;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  font-size: 13px;
  letter-spacing: 0.05em;
  border: 1px solid var(--color-gray-300);
}

.pagination a.is-active,
.pagination span.is-active {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

/* Partner wall */
.partner-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-l);
  align-items: center;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-gray-300);
  border-bottom: 1px solid var(--color-gray-300);
}

@media (max-width: 1024px) {
  .partner-wall {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .partner-wall {
    grid-template-columns: repeat(2, 1fr);
  }
}

.partner-wall img {
  max-height: 48px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: var(--transition);
}

.partner-wall img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
}

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

.contact-info dl {
  display: grid;
  gap: var(--space-m);
}

.contact-info dt {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  margin-bottom: 4px;
}

.contact-info dd {
  color: var(--color-gray-600);
}

.contact-info dd a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  display: grid;
  gap: var(--space-m);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-m);
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
  color: var(--color-gray-600);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-gray-300);
  font-family: inherit;
  font-size: 15px;
  background: var(--color-white);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-black);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-success {
  display: none;
  padding: var(--space-m);
  background: var(--color-gray-100);
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
}

.form-success.is-visible {
  display: block;
  animation: fade-up 0.6s var(--ease-out) forwards;
}

.contact-map-section {
  padding-top: 0;
}

.contact-map-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.6fr);
  gap: var(--space-m);
  align-items: stretch;
}

.contact-map-info {
  padding: var(--space-l);
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-300);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-m);
}

.contact-map-info h2 {
  margin: 0;
}

.contact-map-info p {
  color: var(--color-gray-600);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.contact-map-embed {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--color-gray-300);
  background: var(--color-gray-100);
}

.contact-map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1024px) {
  .contact-map-grid {
    grid-template-columns: 1fr;
  }

  .contact-map-embed {
    min-height: 360px;
    order: -1;
  }
}

.offices-section {
  background: var(--color-gray-100);
}

.office-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
}

@media (max-width: 1024px) {
  .office-cards {
    grid-template-columns: 1fr;
  }
}

.office-card {
  padding: var(--space-l);
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.office-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.office-card h3 {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin-bottom: var(--space-m);
  padding-bottom: var(--space-s);
  border-bottom: 1px solid var(--color-gray-300);
}

.office-flag {
  width: 32px;
  height: 22px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--color-gray-300);
  display: block;
}

.office-card p {
  font-size: 14px;
  color: var(--color-gray-600);
  margin-bottom: var(--space-xs);
}

/* Footer */
.site-footer {
  background: var(--color-gray-100);
  color: var(--color-black);
  padding: var(--space-xxl) 0 var(--space-l);
}

.site-footer a:hover {
  opacity: 0.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-l);
  }
}

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

.footer-brand p {
  margin-top: var(--space-m);
  font-size: 14px;
  color: var(--color-gray-500);
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-m);
  color: var(--color-gray-500);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.footer-col li,
.footer-col a {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.76);
}

.social-icons {
  display: flex;
  gap: var(--space-m);
  margin-top: var(--space-s);
}

.social-icons a,
.social-icons .social-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.78);
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.social-icons a:hover,
.social-icons .social-icon:hover {
  color: var(--color-black);
  border-color: rgba(0, 0, 0, 0.45);
  background-color: var(--color-white);
}

.social-icons svg {
  display: block;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: var(--space-l);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-s);
  font-size: 13px;
  color: var(--color-gray-500);
}

.mobo-footer-credit a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Motion */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

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

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes hero-zoom-in {
  from {
    opacity: 0;
    transform: scale(1.05);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

body.is-loaded .hero--stacked .hero__bg img,
body.is-loaded .hero--stacked.hero--about .hero__bg img {
  animation: hero-zoom-in 1.25s var(--ease-out) both;
}

body.is-loaded .hero--stacked .hero__caption,
body.is-loaded .hero--stacked.hero--about .hero__caption {
  animation: fade-up 0.9s var(--ease-out) 0.2s both;
}

/* Scroll reveal — shop / product pages stay visible (content loaded via JS) */
.section--pdp .reveal,
.section:has(#shop-grid) .reveal {
  opacity: 1;
  transform: none;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--scale {
  transform: translateY(24px) scale(0.98);
}

.reveal--scale.is-visible {
  transform: translateY(0) scale(1);
}

.reveal-delay-1 { --reveal-delay: 0.1s; }
.reveal-delay-2 { --reveal-delay: 0.2s; }
.reveal-delay-3 { --reveal-delay: 0.3s; }
.reveal-delay-4 { --reveal-delay: 0.4s; }
.reveal-delay-5 { --reveal-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Vision list */
.vision-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-m);
  margin-top: var(--space-l);
}

@media (max-width: 600px) {
  .vision-list {
    grid-template-columns: 1fr;
  }
}

.vision-list li {
  padding: var(--space-m);
  border-left: 2px solid var(--color-black);
  font-size: 15px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-s);
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}

/* Extended header / footer / shop / cart */
.site-header--extended {
  height: auto;
  min-height: var(--header-height);
  overflow: visible;
}

.site-header__inner--extended {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  /* 行距（標誌一行與導覽一行之間）收窄一半，欄距維持 18px 不變。
     連同導覽連結的上下留白，兩行之間的空白由約 29px 收窄至約 15px。 */
  gap: 8px 18px;
  padding-top: 10px;
  padding-bottom: 10px;
  max-width: var(--container-width);
  overflow: visible;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
}

.site-header__tools--right {
  justify-content: flex-end;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding: 0;
  color: var(--color-black);
  position: relative;
  line-height: 1;
  text-decoration: none;
}

.cart-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 3px;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: 0;
}

.site-logo--center {
  justify-self: center;
}

.site-logo--center img {
  width: 120px;
  height: auto;
}

.site-nav--extended {
  grid-column: 1 / -1;
  order: 4;
  position: relative;
  width: 100%;
  justify-content: center;
  overflow: visible;
}

.site-nav__list--extended {
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(26px, 2.8vw, 52px);
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.mobo-desktop-nav-list {
  flex-wrap: wrap;
  row-gap: 12px;
}

.site-nav__list--extended > li {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-nav__list--extended .site-nav__main {
  white-space: nowrap;
}

.site-nav--extended .site-nav__link,
.site-nav--extended .site-nav__drop-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  /* 連同上面的行距一起，令標誌與導覽兩行之間的留白收窄到原本一半左右。 */
  padding: 4px 0;
  line-height: 1.5;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 400;
}

.site-nav__drop-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.site-nav__drop-wrap > .site-nav__link {
  padding-right: 0;
}

.site-nav__dropdown:hover .site-nav__drop-wrap > .site-nav__link::after,
.site-nav__dropdown.is-open .site-nav__drop-wrap > .site-nav__link::after {
  transform: scaleX(1);
}

.site-nav__sub {
  display: none;
}

.icon-btn--text {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  min-width: 54px;
  width: auto;
  height: 34px;
}

.icon-btn__glyph {
  font-size: 15px;
  line-height: 1;
}

.icon-btn__glyph svg {
  display: block;
}

.icon-btn__label {
  font-size: 10px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .icon-btn__label {
    display: none;
  }
}

.site-nav__dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav__dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.site-nav__drop-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin: 0;
  padding: var(--space-xs) 4px;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1;
}

.site-nav__caret {
  font-size: 0.65em;
  line-height: 1;
  transform: translateY(1px);
}

.site-nav__submenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  padding: var(--space-xs) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease-out), visibility 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  z-index: 1100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.site-nav__dropdown.is-open .site-nav__submenu,
.site-nav__dropdown:hover .site-nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.site-nav__submenu a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  transition: background 0.2s ease;
}

.site-nav__submenu a:hover {
  background: var(--color-gray-100);
  opacity: 1;
}

.site-nav__mega {
  list-style: none;
  margin: 0;
}

.site-nav__mega-column {
  min-width: 0;
}

.site-nav__mega-heading {
  display: inline-block;
  margin-bottom: 10px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-500);
}

.site-nav__mega-heading:hover {
  background: transparent;
  color: var(--color-black);
}

.site-nav__mega-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__mega-links a {
  padding: 0;
  font-size: 14px;
  line-height: 1.45;
}

.site-nav__mega-links a:hover {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 1025px) {
  .site-nav__dropdown--mega {
    position: static;
  }

  .site-nav__dropdown--mega::after {
    display: none;
  }

  .site-nav__dropdown--mega .site-nav__submenu {
    top: 100%;
    left: 50%;
    width: min(100vw, var(--container-width));
    min-width: min(760px, calc(100vw - 48px));
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px clamp(32px, 5vw, 72px);
    padding: 28px clamp(32px, 6vw, 80px) 32px;
    border-right: none;
    border-left: none;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
    transform: translate(-50%, 8px);
  }

  .site-nav__dropdown--mega:hover .site-nav__submenu,
  .site-nav__dropdown--mega.is-open .site-nav__submenu {
    transform: translate(-50%, 0);
  }

  .site-nav__mega--simple {
    grid-template-columns: minmax(220px, 320px);
  }
}

@media (max-width: 1024px) {
  .site-nav__dropdown--mega {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .site-nav__dropdown--mega .site-nav__submenu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: var(--space-xs);
    padding: 0;
    border: none;
    box-shadow: none;
    transform: none;
    pointer-events: auto;
    display: none;
  }

  .site-nav__dropdown--mega.is-open .site-nav__submenu {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .site-nav__dropdown--mega:hover .site-nav__submenu {
    display: none;
  }

  .site-nav__dropdown--mega.is-open:hover .site-nav__submenu {
    display: block;
  }

  .site-nav__mega-column {
    padding: 12px 0 4px var(--space-m);
  }

  .site-nav__mega-heading {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .site-nav__mega-links {
    gap: 0;
  }

  .site-nav__mega-links a {
    padding: 9px 0;
    font-size: 16px;
  }
}

.header-dropdown {
  position: relative;
}

.header-dropdown__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  padding: var(--space-s) 0;
  opacity: 0;
  visibility: hidden;
  z-index: 200;
  transform: translateY(6px);
  transition: 0.25s var(--ease-out);
}

.header-dropdown__panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-dropdown__panel a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
}

/* Language dropdown */
.lang-dropdown__btn {
  background: none;
  border: 1px solid var(--color-gray-300);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.03em;
  height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--color-black);
}

.lang-dropdown__caret {
  font-size: 0.7em;
  line-height: 1;
}

.lang-dropdown__panel {
  min-width: 140px;
}

.lang-dropdown__option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--color-black);
  transition: background 0.2s ease;
}

.lang-dropdown__option:hover {
  background: var(--color-gray-100);
}

.lang-dropdown__option.is-active {
  font-weight: 600;
}

.lang-dropdown__option--soon {
  color: var(--color-gray-500);
  cursor: default;
}

.lang-dropdown__option--soon:hover {
  background: none;
  text-decoration: none;
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}

.search-overlay[hidden] {
  display: none;
}

.search-overlay__inner {
  width: min(640px, 90vw);
  background: var(--color-white);
  padding: var(--space-m);
}

.search-overlay__form {
  display: flex;
  gap: var(--space-s);
  align-items: center;
}

.search-overlay__form input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--color-gray-300);
  font-family: inherit;
}

.search-overlay__close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.site-footer--extended .footer-grid--extended {
  grid-template-columns: repeat(4, 1fr);
}

.footer-phone {
  margin-top: var(--space-m);
  font-size: 14px;
  color: var(--color-gray-500);
}

.footer-col--wide .social-icons--extended {
  flex-wrap: wrap;
}

.footer-col--wide .mobo-footer-section-title {
  margin-top: var(--space-m);
}

.footer-col--wide > h4:first-child + .social-icons--extended {
  margin-top: 0;
}

.footer-chat-btn {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: var(--color-black);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}

.footer-chat-btn:hover {
  border-color: rgba(0, 0, 0, 0.45);
  background: var(--color-white);
  opacity: 1;
}

.newsletter-form {
  display: flex;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-black);
  padding: 12px 14px;
  font-family: inherit;
}

.newsletter-form button {
  background: none;
  border: none;
  color: var(--color-black);
  padding: 0 16px;
  cursor: pointer;
  font-size: 20px;
}

.footer-brand--inline {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  padding-top: var(--space-l);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin-bottom: var(--space-l);
}

.footer-brand--inline p {
  margin: 0;
  font-size: 13px;
  color: var(--color-gray-500);
  max-width: none;
  white-space: nowrap;
}

.footer-lang-mobile {
  display: none;
  margin-top: var(--space-s);
  padding-top: var(--space-s);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.footer-lang-mobile a {
  display: inline-flex;
  margin: 0 12px 8px 0;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.72);
}

.footer-lang-mobile a.is-active {
  color: var(--color-black);
  font-weight: 600;
}

@media (max-width: 900px) {
  .footer-brand--inline p {
    white-space: normal;
  }
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100vh;
  background: var(--color-white);
  z-index: 3000;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--color-gray-300);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-m) var(--space-l);
  border-bottom: 1px solid var(--color-gray-300);
}

.cart-drawer__close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-m);
}

.cart-drawer__footer {
  padding: var(--space-m) var(--space-l);
  border-top: 1px solid var(--color-gray-300);
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-m);
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--space-s);
  align-items: center;
  padding: var(--space-s) 0;
  border-bottom: 1px solid var(--color-gray-300);
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.cart-item__name {
  font-size: 14px;
  margin: 0 0 4px;
}

.cart-item__price {
  font-size: 13px;
  color: var(--color-gray-600);
  margin: 0;
}

/* 抽屜逐件商品：款式（例：顏色：黑色）與該行小計 */
.cart-item__variant {
  margin: 0 0 2px;
  font-size: 12px;
  color: var(--color-gray-600);
}

.cart-item__total {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.cart-item__remove {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.cart-empty {
  text-align: center;
  color: var(--color-gray-600);
  padding: var(--space-xl) 0;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2999;
}

.cart-backdrop[hidden] {
  display: none;
}

/* Shop / products listing */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.shop-sidebar {
  position: sticky;
  top: calc(var(--mobo-header-offset, 132px) + 24px);
  border: 1px solid var(--color-gray-300);
  padding: var(--space-m);
  background: var(--color-white);
}

.shop-sidebar__title {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-m);
  padding-bottom: var(--space-s);
  border-bottom: 1px solid var(--color-gray-300);
}

.filter-group {
  border-bottom: 1px solid var(--color-gray-300);
}

.filter-group summary {
  cursor: pointer;
  padding: var(--space-s) 0;
  font-size: 14px;
  list-style: none;
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.filter-group__body {
  padding-bottom: var(--space-s);
}

.filter-category {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  cursor: pointer;
}

.filter-cat-item input {
  accent-color: var(--color-black);
}

.filter-cat-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
}

.filter-cat-group__head .filter-cat-item {
  flex: 1;
  margin: 0;
}

.filter-cat-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-gray-300);
  background: var(--color-white);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  color: var(--color-black);
}

.filter-cat-group__subs {
  display: none;
  padding-left: var(--space-m);
  border-left: 1px solid var(--color-gray-300);
  margin: 0 0 var(--space-xs) var(--space-xs);
}

.filter-cat-group.is-open .filter-cat-group__subs {
  display: block;
}

.filter-cat-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--color-gray-600);
  cursor: pointer;
}

.filter-cat-sub input {
  accent-color: var(--color-black);
}

/* （已移除）原型殘留的 .filter-toggle 組件：全站沒有任何頁面使用，
   但類別名稱與分類／品牌／全部產品頁的「篩選」按鈕相撞，其全域
   display: flex 蓋過控制器的 display: none，令該按鈕在桌面也現形，
   按下後鎖住頁面捲動。如日後需要同類組件，請改用不同類別名稱。 */

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-l);
  flex-wrap: wrap;
  gap: var(--space-s);
}

.shop-mobile-controls {
  display: none;
}

.shop-filter-close,
.shop-filter-backdrop {
  display: none;
}

.shop-toolbar select {
  padding: 10px 14px;
  border: 1px solid var(--color-gray-300);
  font-family: inherit;
  font-size: 13px;
  background: var(--color-white);
}

.shop-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.shop-header .h1 {
  margin-bottom: var(--space-xs);
}

.shop-count {
  color: var(--color-gray-600);
  font-size: 14px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-m) var(--space-s);
}

.shop-card {
  display: flex;
  flex-direction: column;
}

.shop-card__image {
  overflow: hidden;
  margin-bottom: var(--space-s);
  background: var(--color-gray-100);
}

.shop-card__image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}

.shop-card:hover .shop-card__image img {
  transform: scale(1.04);
}

.shop-card__brand {
  font-size: 12px;
  color: var(--color-gray-500);
  margin-bottom: 4px;
}

.shop-card__name {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: var(--space-xs);
  min-height: 42px;
}

.shop-card__price {
  font-size: 15px;
  margin-bottom: var(--space-s);
}

.shop-card__price s {
  color: var(--color-gray-500);
  margin-right: 6px;
}

/* 價錢被後台隱藏（不顯示價錢／只允許會員查看）時顯示的替代文字。 */
.shop-card__price--hidden {
  color: var(--color-gray-600);
  font-size: 13px;
}

.shop-card__badge {
  font-size: 11px;
  color: var(--color-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.shop-card__swatches {
  display: flex;
  gap: 6px;
  margin: var(--space-s) 0;
}

.shop-card__swatches span {
  width: 14px;
  height: 14px;
  border-radius: 0;
  border: 1px solid var(--color-gray-300);
}

.shop-card__actions {
  margin-top: auto;
}

.shop-card__actions .btn {
  width: 100%;
  padding: 12px;
}

.info-page {
  max-width: 760px;
}

.info-page h2 {
  font-size: 22px;
  margin: var(--space-l) 0 var(--space-s);
}

.info-page p,
.info-page li {
  color: var(--color-gray-600);
  margin-bottom: var(--space-s);
}

.info-page ul {
  list-style: disc;
  padding-left: 20px;
}

.login-page {
  max-width: 420px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .site-header__inner--extended {
    grid-template-columns: 1fr auto;
  }

  .site-logo--center {
    order: 1;
  }

  .site-header__tools--left {
    order: 0;
  }

  .site-header__tools--right {
    order: 2;
  }

  .site-nav--extended {
    order: 3;
  }

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

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

  .shop-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-header {
    margin-bottom: var(--space-m);
  }

  .shop-header .label {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .shop-header .h1 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.1;
  }

  .shop-header > .shop-count {
    display: none;
  }

  .shop-toolbar {
    margin-bottom: var(--space-m);
    padding: 0 0 var(--space-s);
    border-bottom: 1px solid var(--color-gray-300);
  }

  .shop-toolbar > span:first-child,
  .shop-toolbar select {
    display: none;
  }

  .shop-mobile-controls {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: 100%;
    gap: var(--space-s);
  }

  .shop-filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--color-gray-300);
    background: var(--color-white);
    border-radius: 0;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1;
  }

  .shop-mobile-count {
    justify-self: center;
    font-size: 13px;
    color: var(--color-gray-600);
    white-space: nowrap;
  }

  .shop-view-toggle {
    display: inline-flex;
    justify-self: end;
    border: 1px solid var(--color-gray-300);
    border-radius: 0;
    overflow: hidden;
    background: var(--color-white);
  }

  .shop-view-toggle button {
    width: 34px;
    height: 30px;
    border: none;
    border-left: 1px solid var(--color-gray-300);
    background: transparent;
    font-size: 15px;
    color: var(--color-gray-600);
  }

  .shop-view-toggle button:first-child {
    border-left: none;
  }

  .shop-view-toggle button.is-active {
    color: var(--color-black);
    background: var(--color-gray-100);
  }

  .shop-sidebar {
    position: fixed;
    top: 72px;
    left: 0;
    bottom: 0;
    z-index: 2200;
    width: min(86vw, 340px);
    padding: var(--space-m);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.35s var(--ease-out);
    box-shadow: 16px 0 32px rgba(0, 0, 0, 0.14);
  }

  .shop-sidebar.is-open {
    transform: translateX(0);
  }

  .shop-filter-close {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 34px;
    height: 34px;
    border: 1px solid var(--color-gray-300);
    background: var(--color-white);
    font-size: 22px;
    line-height: 1;
  }

  .shop-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2199;
    display: block;
    background: rgba(0, 0, 0, 0.35);
  }

  .shop-filter-backdrop[hidden] {
    display: none;
  }

  .shop-filter-is-open {
    overflow: hidden;
  }

  .shop-grid {
    gap: 28px 16px;
  }

  .shop-card__name {
    min-height: 0;
    font-size: 13px;
    line-height: 1.45;
  }

  .shop-card__brand {
    font-size: 11px;
  }

  .shop-card__price {
    font-size: 13px;
  }

  .shop-card__actions {
    display: none;
  }

  .shop-card__swatches {
    margin: 8px 0;
  }

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

  .shop-grid.shop-grid--list .shop-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    column-gap: var(--space-s);
    align-items: start;
  }

  .shop-grid.shop-grid--list .shop-card__image {
    grid-row: 1 / span 5;
    margin-bottom: 0;
  }

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

@media (max-width: 480px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }

  .shop-layout {
    gap: 0;
  }

  .shop-main {
    min-width: 0;
  }
}

/* ── RWD header safety: keep the desktop nav fully off-canvas below tablet width ── */
@media (max-width: 1024px) {
  html,
  body {
    overflow-x: hidden;
  }

  .site-header__inner--extended {
    grid-template-columns: auto 1fr auto auto;
    grid-template-rows: auto;
    max-width: 100%;
    position: relative;
    min-height: 72px;
    padding: 12px 18px;
    column-gap: 10px;
  }

  .site-logo--center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    grid-column: auto;
    grid-row: 1;
    justify-self: auto;
    z-index: 1;
  }

  .site-logo--center img {
    width: 118px;
    height: auto;
  }

  .menu-toggle {
    display: flex;
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    order: 2;
    position: relative;
    z-index: 1301;
    margin-top: 0;
  }

  .site-header__tools--left {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    gap: 8px;
    min-width: 0;
  }

  .site-header__tools--right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    padding-right: 0;
    gap: 6px;
    margin-top: 0;
    min-width: 0;
  }

  .site-header__tools--right .icon-btn {
    min-width: 30px;
    padding: 6px;
  }

  .site-header__tools--left .icon-btn {
    padding: 6px;
  }

  .site-header__tools--left .lang-dropdown {
    display: none;
  }

  .site-nav.site-nav--extended {
    position: fixed;
    top: 72px;
    left: 0;
    right: auto;
    bottom: 0;
    /* 雙保險：明確指定高度。即使日後有共用樣式令 header 再次成為
       fixed 定位基準（backdrop-filter / transform / will-change 之類），
       抽屜仍然是全屏高，不會冧成一小條。 */
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    width: 100vw;
    max-width: 100vw;
    grid-column: auto;
    order: initial;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    padding: var(--space-l) 24px var(--space-xl);
    background: var(--color-white);
    overflow-x: hidden;
    overflow-y: auto;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.45s var(--ease-out);
    z-index: 1200;
    box-sizing: border-box;
  }

  .site-nav.site-nav--extended.is-open {
    transform: translate3d(0, 0, 0);
  }

  .site-nav__list.site-nav__list--extended {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: var(--space-m);
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .site-nav__list--extended > li {
    display: flex;
    width: 100%;
    flex-shrink: 0;
    align-items: stretch;
  }

  .site-nav--extended .site-nav__link,
  .site-nav--extended .site-nav__drop-toggle {
    font-size: 24px;
  }

  .has-extended-header main,
  main {
    padding-top: 72px;
  }

  .site-nav .mobo-desktop-nav-list {
    display: none;
  }

  .mobo-mobile-nav {
    display: block;
    width: 100%;
    max-width: 100%;
    padding-bottom: var(--space-xl);
  }

  .mobo-mobile-nav__link,
  .mobo-mobile-nav summary {
    display: block;
    width: 100%;
    box-sizing: border-box;
    color: var(--color-black);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.3;
    padding: 12px 0;
    text-decoration: none;
  }

  .mobo-mobile-nav__group {
    border-bottom: 1px solid var(--color-gray-200);
  }

  .mobo-mobile-nav summary {
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 40px;
  }

  .mobo-mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobo-mobile-nav summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: 300;
  }

  .mobo-mobile-nav details[open] > summary::after {
    content: "−";
  }

  .mobo-mobile-nav__child,
  .mobo-mobile-nav__grandchild {
    display: block;
    color: var(--color-gray-700);
    font-size: 18px;
    line-height: 1.35;
    padding: 11px 0 11px var(--space-m);
    text-decoration: none;
  }

  .mobo-mobile-nav__grandchild {
    font-size: 16px;
    padding-left: calc(var(--space-m) * 2);
  }

  .mobo-mobile-nav__group--nested {
    margin-left: var(--space-m);
    border-bottom: 0;
  }

  .mobo-mobile-nav__group--nested summary {
    font-size: 18px;
    padding: 11px 32px 11px 0;
  }

  .mobo-mobile-nav__group--nested summary::after {
    font-size: 22px;
  }

  .mobo-mobile-nav__link--depth-1,
  .mobo-mobile-nav__group--depth-1 summary {
    font-size: 18px;
    padding-left: var(--space-m);
  }

  .mobo-mobile-nav__link--depth-2,
  .mobo-mobile-nav__group--depth-2 summary {
    font-size: 16px;
    padding-left: calc(var(--space-m) * 2);
  }

  /* 抽屜底部的會員／購物車／語言入口：手機頁首收起了語言切換，這裡補回。 */
  .mobo-mobile-nav__utility {
    margin-top: var(--space-l);
    padding-top: var(--space-m);
    border-top: 1px solid var(--color-gray-300);
  }

  .mobo-mobile-nav__util-link {
    display: block;
    padding: 10px 0;
    color: var(--color-black);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
  }

  .mobo-mobile-nav__langs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--space-s);
  }

  .mobo-mobile-nav__lang {
    padding: 8px 14px;
    border: 1px solid var(--color-gray-300);
    color: var(--color-gray-600);
    font-size: 14px;
    text-decoration: none;
  }

  .mobo-mobile-nav__lang.is-active {
    border-color: var(--color-black);
    background: var(--color-black);
    color: var(--color-white);
  }
}

@media (max-width: 640px) {
  .footer-lang-mobile {
    display: block;
  }

  .site-logo--center img {
    width: 108px;
  }

  .site-header__tools--left {
    gap: 6px;
  }

  .site-header__tools--right .icon-btn:first-child {
    display: inline-flex;
  }

  .icon-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    padding: 0;
  }

  .icon-btn__glyph {
    font-size: 15px;
  }

  .search-overlay {
    align-items: flex-start;
    padding: 84px 16px 0;
  }

  .search-overlay__inner {
    width: min(360px, 92vw);
    padding: 12px;
  }

  .search-overlay__form {
    gap: 8px;
  }

  .search-overlay__form input {
    min-width: 0;
    padding: 10px 12px;
    font-size: 14px;
  }

  .search-overlay__form .btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  .search-overlay__close {
    font-size: 22px;
  }
}

/* ── Video Hero ── */
.hero--video {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero--video .hero__bg {
  position: absolute;
  inset: 0;
}

.hero--video .hero__caption {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-xl) 0;
  color: var(--color-white);
}

.hero--video .hero__bg--video {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/*
 * 主視覺之上的黑色遮罩：令標題文字在淺色畫面上仍然讀得清楚。
 * 濃度由後台「模版首頁設定 → MOBO → 主視覺遮罩濃度」控制，
 * views/home.php 會把它寫成 --mobo-hero-overlay；後台未設定或瀏覽器
 * 拿不到這個變數時，一律回落 0.45 —— 即樣式表原本寫死的濃度。
 */
.hero--video .hero__bg--video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, var(--mobo-hero-overlay, 0.45));
  pointer-events: none;
}

.hero--video .hero__bg--video video,
.hero--video .hero__video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--video .hero__bg--video video {
  display: block;
  z-index: 1;
}

.hero--video .hero__video-fallback {
  display: none;
  z-index: 1;
}

.hero--video .hero__bg--video.is-fallback .hero__video-fallback {
  display: block;
}

.hero--video .hero__bg--video.is-fallback video {
  display: none;
}

.hero--video .hero__content {
  position: relative;
  z-index: 3;
}

.hero--video .hero__caption .btn:not(.btn--filled) {
  border-color: var(--color-white);
  color: var(--color-white);
}

.hero--video .hero__caption .btn:not(.btn--filled):hover {
  background: var(--color-white);
  color: var(--color-black);
  opacity: 1;
}

@media (max-width: 640px) {
  /* Home / About: restore video/image hero on mobile. */
  main > .hero--video:first-child {
    display: flex;
    min-height: clamp(430px, 72vh, 620px);
    align-items: flex-end;
    background: var(--color-black);
  }

  main > .hero--video:first-child .hero__bg {
    display: block;
  }

  main > .hero--video:first-child .hero__caption {
    color: var(--color-white);
    padding: var(--space-l) 0;
  }

  main > .hero--video:first-child .hero__title {
    font-size: clamp(40px, 13vw, 56px);
  }

  main > .hero--video:first-child .hero__subtitle {
    max-width: 330px;
  }

  main > .hero--video:first-child .hero__caption .btn:not(.btn--filled) {
    border-color: var(--color-white);
    color: var(--color-white);
  }
}

/* ── Nav nested submenu (sub-sub menu) ── */
.site-nav__subdrop-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav__sublink {
  display: block;
  flex: 1;
  transition: background 0.2s ease;
}

.site-nav__subdrop-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  line-height: 1;
  flex-shrink: 0;
}

.site-nav__subdrop-toggle .site-nav__caret {
  display: inline-block;
  transition: transform 0.2s ease;
}

@media (min-width: 1025px) {
  .site-nav__submenu--nested {
    min-width: 180px;
  }

  .site-nav__subdropdown {
    position: relative;
  }

  .site-nav__subdropdown::after {
    content: "";
    position: absolute;
    top: 0;
    right: -10px;
    width: 10px;
    height: 100%;
  }

  .site-nav__sublink {
    padding: 10px 16px;
    font-size: 13px;
  }

  .site-nav__sublink:hover,
  .site-nav__sublink.is-active {
    background: var(--color-gray-100);
    opacity: 1;
  }

  .site-nav__subdrop-toggle {
    padding: 10px 12px;
  }

  .site-nav__subdrop-toggle .site-nav__caret {
    transform: rotate(-90deg);
  }

  .site-nav__subsubmenu {
    position: absolute;
    top: 0;
    left: calc(100% - 1px);
    min-width: 200px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-300);
    padding: var(--space-xs) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(6px);
    transition: opacity 0.25s var(--ease-out), visibility 0.25s var(--ease-out), transform 0.25s var(--ease-out);
    z-index: 1200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    pointer-events: none;
    list-style: none;
    margin: 0;
  }

  .site-nav__subdropdown:hover > .site-nav__subsubmenu,
  .site-nav__subdropdown.is-open > .site-nav__subsubmenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }

  .site-nav__subsubmenu a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    transition: background 0.2s ease;
  }

  .site-nav__subsubmenu a:hover {
    background: var(--color-gray-100);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .site-nav__submenu--nested {
    min-width: 0;
    margin-top: 0;
    padding-top: 4px;
  }

  .site-nav__subdropdown {
    position: static;
    width: 100%;
  }

  .site-nav__subdropdown::after {
    display: none;
  }

  .site-nav__subdrop-wrap {
    width: 100%;
  }

  .site-nav__sublink {
    font-size: 18px;
    padding: 12px 0 12px var(--space-m);
  }

  .site-nav__sublink.is-active {
    font-weight: 600;
  }

  .site-nav__subdrop-toggle {
    padding: 12px var(--space-m);
    font-size: 18px;
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav__subdropdown.is-open .site-nav__subdrop-toggle .site-nav__caret {
    transform: rotate(180deg);
  }

  .site-nav__subsubmenu {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0 0 4px;
    border: none;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    list-style: none;
  }

  .site-nav__subdropdown:hover > .site-nav__subsubmenu {
    display: none;
  }

  .site-nav__subdropdown.is-open > .site-nav__subsubmenu {
    display: block;
  }

  .site-nav__subsubmenu a {
    display: block;
    padding: 12px 0 12px calc(var(--space-m) * 2);
    font-size: 16px;
  }

  .site-nav__subsubmenu a:active {
    background: var(--color-gray-100);
  }
}

/* ── Shop filters: compatibility, price, material ── */
.filter-radio-list,
.filter-check-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-radio,
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}

.filter-radio input,
.filter-check input {
  accent-color: var(--color-black);
}

.filter-price__values {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--color-gray-600);
}

.filter-price__sliders {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-price__sliders input[type="range"] {
  width: 100%;
  accent-color: var(--color-black);
}

/* ── Homepage product rows ── */
/* 每行 5 件；後台設定多過 5 件時自動分行（例：8 件＝5 ＋ 3），
   行與行之間留多一點空間，令兩行不會黏在一起。 */
.product-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-l) var(--space-m);
  overflow-x: auto;
  padding-bottom: var(--space-s);
}

.shop-card--home .shop-card__name a {
  color: inherit;
  text-decoration: none;
}

.shop-card--home .shop-card__name a:hover {
  text-decoration: underline;
}

.shop-card__name a {
  color: inherit;
  text-decoration: none;
}

.shop-card__name a:hover {
  text-decoration: underline;
}

/* ── Blog ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.blog-card__image {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 0;
  background: var(--color-gray-100);
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.03);
}

.blog-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.blog-card__title a:hover {
  text-decoration: underline;
}

.blog-card--large .blog-card__image {
  aspect-ratio: 16/9;
}

.blog-card--large .blog-card__title {
  font-size: 20px;
}

/* ── Shop by device ── */
.device-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-m) var(--space-l);
}

/* 每格固定闊度：以往用 min-width，格仔會跟着品牌名稱長短伸縮，
   令「Automobili Lamborghini」兩邊的空隙比其他品牌明顯大。
   改為固定闊度之後，全部品牌之間的距離一致；名稱太長會自動換行。 */
.device-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-m) var(--space-s);
  text-decoration: none;
  color: var(--color-black);
  border-radius: 0;
  transition: background 0.2s;
  width: 160px;
  min-width: 0;
}

.device-brand:hover {
  background: var(--color-white);
}

.device-brand__logo {
  font-size: 32px;
  font-weight: 700;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 分類有上載圖片時，圓形內放圖；沒有圖片仍然用名稱首字。 */
.device-brand__logo--image {
  overflow: hidden;
  padding: 10px;
}

.device-brand__logo--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.device-brand__name {
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  text-align: center;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* EC Shop live-data bridge: keeps the prototype layout while the controls use
   the real session-aware cart and newsletter endpoints. */
.cart-drawer__footer .btn { width: 100%; }
.mobo-newsletter-message { min-height: 1.5em; margin-top: 8px; font-size: 12px; }
.mobo-newsletter-message:not(:empty) { color: var(--color-gray-600); }
.mobo-price-filter .filter-price__values { gap: 6px; align-items: center; }
.mobo-price-filter input { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--color-gray-300); font: inherit; }
.mobo-price-filter .btn { width: 100%; margin-top: var(--space-s); }
.mobo-pagination { display: flex; justify-content: center; gap: 6px; margin-top: var(--space-xl); }
.mobo-pagination a { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--color-gray-300); }
.mobo-pagination a.is-active { background: var(--color-black); border-color: var(--color-black); color: var(--color-white); }

/* The platform detail renderer supplies the real gallery, variants, stock,
   product options and reviews.  Map that live markup onto the MOBO PDP grid. */
.mobo-pdp { padding: var(--space-l) 0 var(--space-xxl); }
.mobo-pdp .breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: var(--space-l); font-size: 13px; color: var(--color-gray-600); }
.mobo-pdp .product-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); gap: var(--space-xl); align-items: start; }
.mobo-pdp .gallery-main { aspect-ratio: 1; overflow: hidden; background: var(--color-gray-100); border-radius: 0; }
.mobo-pdp .gallery-main > #mainMediaWrap, .mobo-pdp .gallery-main img, .mobo-pdp #mainMediaWrap { width: 100%; height: 100%; }
.mobo-pdp .gallery-main img { object-fit: cover; }
.mobo-pdp .gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--space-s); }
.mobo-pdp .gallery-thumb { width: 72px; height: 72px; border: 2px solid transparent; overflow: hidden; cursor: pointer; background: var(--color-gray-100); }
.mobo-pdp .gallery-thumb.active { border-color: var(--color-black); }
.mobo-pdp .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mobo-pdp .pi-name { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; margin: 0 0 var(--space-s); }
.mobo-pdp .pi-categories, .mobo-pdp .pi-rating, .mobo-pdp .pi-sku { color: var(--color-gray-600); font-size: 14px; }
.mobo-pdp .pi-price-block { margin: var(--space-m) 0; }
.mobo-pdp .pi-price-now { font-size: 24px; font-weight: 700; }
.mobo-pdp .pi-price-original { color: var(--color-gray-500); margin-left: 8px; text-decoration: line-through; }
.mobo-pdp .variant-option, .mobo-pdp .variant-options { margin: var(--space-m) 0; }
.mobo-pdp .add-cart-btn, .mobo-pdp .buy-now-btn { width: 100%; min-height: 48px; border: 1px solid var(--color-black); background: var(--color-black); color: var(--color-white); font: inherit; cursor: pointer; }
.mobo-pdp .buy-now-btn { margin-top: var(--space-s); background: var(--color-white); color: var(--color-black); }
.mobo-pdp .product-tabs, .mobo-pdp .product-description, .mobo-pdp .related-products { margin-top: var(--space-xl); border-top: 1px solid var(--color-gray-300); padding-top: var(--space-l); }
@media (max-width: 768px) { .mobo-pdp .product-main { grid-template-columns: 1fr; gap: var(--space-l); } }

.text-center {
  text-align: center;
}

/* ── About page ── */
.about-intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-intro__lead {
  font-size: 20px;
  font-weight: 500;
  margin: var(--space-m) 0 var(--space-l);
  color: var(--color-gray-700);
}

.video-embed__wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--color-black);
}

.video-embed__wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed__wrap--native {
  padding-bottom: 0;
  height: auto;
  aspect-ratio: 16 / 9;
}

.video-embed__wrap--native video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  background: var(--color-black);
}

/* ── Product detail page (PDP) ── */
.section--pdp {
  padding-top: var(--space-l);
}

.pdp-breadcrumb {
  font-size: 13px;
  color: var(--color-gray-600);
  margin-bottom: var(--space-l);
}

.pdp-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.pdp-breadcrumb a:hover {
  text-decoration: underline;
}

.pdp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.pdp-gallery__main {
  aspect-ratio: 1;
  background: var(--color-gray-100);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-gallery__video {
  width: 100%;
  height: 100%;
  position: relative;
  padding-bottom: 56.25%;
}

.pdp-gallery__video--native {
  padding-bottom: 0;
  aspect-ratio: 1;
}

.pdp-gallery__video iframe,
.pdp-gallery__video--native video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: var(--color-black);
}

.pdp-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: var(--space-m);
  flex-wrap: wrap;
}

.pdp-gallery__thumb {
  width: 72px;
  height: 72px;
  border: 2px solid transparent;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--color-gray-100);
  position: relative;
}

.pdp-gallery__thumb.is-active {
  border-color: var(--color-black);
}

.pdp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-gallery__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 20px;
  color: var(--color-white);
  background: rgba(0,0,0,0.5);
}

.pdp-title {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: var(--space-s);
}

.pdp-meta {
  font-size: 14px;
  color: var(--color-gray-600);
  margin-bottom: 4px;
}

.pdp-price {
  font-size: 24px;
  font-weight: 700;
  margin: var(--space-m) 0;
}

.pdp-colors {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-m);
}

.pdp-color {
  width: 28px;
  height: 28px;
  border-radius: 0;
  border: 2px solid var(--color-gray-300);
  cursor: pointer;
  padding: 0;
}

.pdp-color.is-active {
  border-color: var(--color-black);
  box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-black);
}

.pdp-sku {
  font-size: 13px;
  color: var(--color-gray-600);
  margin-bottom: var(--space-m);
}

.pdp-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.btn--wide {
  width: 100%;
  justify-content: center;
}

.btn--shop {
  background: #5c3d9e;
  color: var(--color-white);
  border-color: #5c3d9e;
}

.btn--shop:hover {
  background: #4a3180;
}

.pdp-accordion {
  border-top: 1px solid var(--color-gray-200);
  margin-top: var(--space-m);
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.pdp-acc-item {
  margin: 0;
}

.pdp-acc-item summary {
  padding: 14px 0 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  cursor: pointer;
  list-style: none;
  display: block;
  border-bottom: 1px solid var(--color-black);
  user-select: none;
  transition: opacity 0.2s ease;
}

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

.pdp-acc-item summary::marker {
  content: "";
}

.pdp-acc-item summary:hover {
  opacity: 0.72;
}

.pdp-acc-title {
  display: inline;
}

.pdp-acc-icon {
  display: inline;
  margin-left: 0.3em;
  font-size: 1em;
  font-weight: 600;
  line-height: 1;
}

.pdp-acc-icon::before {
  content: "+";
}

.pdp-acc-item[open] .pdp-acc-icon::before {
  content: "−";
}

.pdp-acc-body {
  padding: 14px 0 6px;
  color: var(--color-gray-600);
  font-size: 16px;
  line-height: 1.65;
}

.pdp-acc-body p {
  margin: 0;
}

.pdp-acc-body ul {
  list-style: disc;
  margin: 0;
  padding-left: 1.25em;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdp-acc-body li {
  padding-left: 0.15em;
}

.pdp-related {
  margin-top: var(--space-xl);
}

.pdp-related .h2 {
  margin-bottom: var(--space-l);
}

.shop-grid--compact {
  grid-template-columns: repeat(4, 1fr);
}

.shop-card--compact .shop-card__actions {
  display: none;
}

@media (max-width: 1024px) {
  .product-row {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
  }

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

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

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

@media (max-width: 768px) {
  .product-row {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

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

/* ── Live product detail rebuilt in the /web MOBO PDP language ── */
.mobo-pdp--live {
  background: var(--color-white);
  padding: var(--space-l) 0 var(--space-xxl);
}

.mobo-pdp--live .container {
  max-width: var(--container-width);
}

.mobo-pdp--live .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--space-l);
  color: var(--color-gray-600);
  font-size: 13px;
  line-height: 1.5;
}

.mobo-pdp--live .breadcrumb a {
  color: inherit;
}

.mobo-pdp--live .breadcrumb a:hover {
  color: var(--color-black);
  opacity: 1;
  text-decoration: underline;
}

.mobo-pdp--live .breadcrumb svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.mobo-pdp--live .product-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}

.mobo-pdp--live .gallery-main {
  aspect-ratio: 1;
  border-radius: 0;
  background: var(--color-gray-100);
  box-shadow: none;
}

.mobo-pdp--live #mainMediaWrap {
  aspect-ratio: 1;
}

/* Discount, flash-sale and custom badges are sibling elements of the media
   wrapper.  Do not let the main-media sizing rules turn a badge into a full
   square overlay over the product image. */
.mobo-pdp--live .gallery-main > .badge-discount {
  width: 52px !important;
  height: 52px !important;
  aspect-ratio: auto !important;
}

.mobo-pdp--live .gallery-main img,
.mobo-pdp--live .gallery-main video,
.mobo-pdp--live .gallery-main iframe {
  border-radius: 0;
  object-fit: cover;
}

.mobo-pdp--live .gallery-counter,
.mobo-pdp--live .badge-flash,
.mobo-pdp--live .badge-discount,
.mobo-pdp--live .badge-custom {
  border-radius: 0;
  box-shadow: none;
}

.mobo-pdp--live .gallery-thumbs-wrap {
  margin-top: var(--space-m);
}

.mobo-pdp--live .gallery-thumbs {
  gap: 8px;
  padding: 0;
}

.mobo-pdp--live .gallery-thumb {
  width: 72px;
  height: 72px;
  border: 2px solid transparent;
  border-radius: 0;
  background: var(--color-gray-100);
  transition: border-color .2s ease, opacity .2s ease;
}

.mobo-pdp--live .gallery-thumb:hover {
  opacity: .72;
}

.mobo-pdp--live .gallery-thumb.active {
  border-color: var(--color-black);
}

.mobo-pdp--live .product-info {
  padding: 2px 0 0;
}

.mobo-pdp--live .pi-categories {
  display: none;
}

.mobo-pdp--live .pi-name {
  margin: 0;
  color: var(--color-black);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.18;
}

.mobo-pdp__brand {
  order: 0;
  margin: 10px 0 0;
  color: var(--color-gray-600);
  font-size: 14px;
  line-height: 1.5;
}

.mobo-pdp--live .pi-rating {
  margin: 12px 0 0;
  color: var(--color-gray-600);
  font-size: 13px;
}

.mobo-pdp--live .pi-rating a,
.mobo-pdp--live .pi-rating .pi-stars {
  color: inherit;
}

.mobo-pdp--live .pi-price-block {
  margin: var(--space-m) 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.mobo-pdp--live .pi-price-now {
  color: var(--color-black);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.mobo-pdp--live .pi-price-original,
.mobo-pdp--live .pi-price-saved,
.mobo-pdp--live .pi-member-price {
  font-size: 13px;
}

.mobo-pdp--live .pi-short-desc,
.mobo-pdp--live .pi-variant-desc {
  margin: 0 0 var(--space-m);
  color: var(--color-gray-600);
  font-size: 15px;
  line-height: 1.75;
}

.mobo-pdp--live .pi-variants,
.mobo-pdp--live .pi-modifiers-section,
.mobo-pdp--live .pi-addons-section,
.mobo-pdp--live .pi-bundle-section,
.mobo-pdp--live .pi-customsize-section,
.mobo-pdp--live .pi-groupbuy,
.mobo-pdp--live .pi-deposit {
  margin: var(--space-m) 0;
  border-radius: 0;
}

.mobo-pdp--live .pi-variants > label,
.mobo-pdp--live .pi-qty > label,
.mobo-pdp--live .pi-mod-label,
.mobo-pdp--live .pi-addons-title,
.mobo-pdp--live .pi-bundle-title {
  display: block;
  margin-bottom: 10px;
  color: var(--color-black);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mobo-pdp--live .variant-options,
.mobo-pdp--live .pi-mod-options,
.mobo-pdp--live .pi-cs-matopts {
  gap: 8px;
}

.mobo-pdp--live .variant-opt,
.mobo-pdp--live .flat-variant-opt,
.mobo-pdp--live .pi-mod-opt,
.mobo-pdp--live .pi-cs-matopt {
  min-height: 40px;
  border: 1px solid var(--color-gray-300);
  border-radius: 0;
  background: var(--color-white);
  color: var(--color-black);
  box-shadow: none;
  font-size: 14px;
}

.mobo-pdp--live .variant-opt.active,
.mobo-pdp--live .flat-variant-opt.active,
.mobo-pdp--live .pi-mod-opt.is-selected,
.mobo-pdp--live .pi-cs-matopt.is-selected {
  border-color: var(--color-black);
  background: var(--color-black);
  color: var(--color-white);
}

.mobo-pdp--live .pi-qty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: var(--space-m) 0;
}

.mobo-pdp--live .pi-qty > label {
  margin: 0;
}

.mobo-pdp--live .qty-selector {
  border: 1px solid var(--color-black);
  border-radius: 0;
}

.mobo-pdp--live .qty-selector button,
.mobo-pdp--live .qty-selector input {
  border-radius: 0;
  background: var(--color-white);
  color: var(--color-black);
}

.mobo-pdp--live #stockDisplay {
  flex-basis: 100%;
}

.mobo-pdp--live .pi-stock {
  font-size: 13px;
}

.mobo-pdp--live .pi-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  margin: var(--space-m) 0;
}

.mobo-pdp--live .btn-add-cart,
.mobo-pdp--live .btn-buy-now,
.mobo-pdp--live .btn-contact-inquiry {
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid var(--color-black);
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.mobo-pdp--live .btn-add-cart {
  background: var(--color-black);
  color: var(--color-white);
}

.mobo-pdp--live .btn-add-cart:hover:not(:disabled) {
  background: #333;
  transform: none;
}

.mobo-pdp--live .btn-buy-now,
.mobo-pdp--live .btn-contact-inquiry {
  background: var(--color-white);
  color: var(--color-black);
}

.mobo-pdp--live .btn-buy-now:hover,
.mobo-pdp--live .btn-contact-inquiry:hover {
  background: var(--color-gray-100);
  transform: none;
}

.mobo-pdp--live .btn-wishlist {
  width: 52px;
  height: 52px;
  border: 1px solid var(--color-black);
  border-radius: 0;
  background: var(--color-white);
}

.mobo-pdp--live .btn-wishlist:hover,
.mobo-pdp--live .btn-wishlist.active {
  background: var(--color-gray-100);
  border-color: var(--color-black);
}

.mobo-pdp--live .pi-extras {
  gap: 8px;
  padding: var(--space-m) 0 0;
  border-top: 1px solid var(--color-gray-300);
}

.mobo-pdp--live .pi-extra-item,
.mobo-pdp--live .pi-share {
  color: var(--color-gray-600);
  font-size: 13px;
}

.mobo-pdp--live .pi-extra-item svg {
  stroke: currentColor;
}

.mobo-pdp--live .share-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-gray-300);
  border-radius: 0;
  background: var(--color-white);
  color: var(--color-black);
}

.mobo-pdp--live .share-btn:hover {
  border-color: var(--color-black);
  background: var(--color-gray-100);
  color: var(--color-black);
  transform: none;
}

.mobo-pdp--live .product-tabs {
  margin: var(--space-xl) 0 0;
  padding: var(--space-l) 0 0;
  border-top: 1px solid var(--color-gray-300);
}

.mobo-pdp--live .mobo-pdp__accordion {
  border-top: 1px solid var(--color-gray-300);
}

.mobo-pdp--live .mobo-pdp__accordion-item {
  margin: 0;
  border-bottom: 1px solid var(--color-gray-300);
}

.mobo-pdp--live .mobo-pdp__accordion-item summary {
  position: relative;
  display: block;
  padding: 18px 38px 18px 0;
  color: var(--color-black);
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.35;
  list-style: none;
}

.mobo-pdp--live .mobo-pdp__accordion-item summary::-webkit-details-marker {
  display: none;
}

.mobo-pdp--live .mobo-pdp__accordion-item summary::after {
  position: absolute;
  top: 50%;
  right: 2px;
  content: "+";
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-50%);
}

.mobo-pdp--live .mobo-pdp__accordion-item[open] summary::after {
  content: "−";
}

.mobo-pdp--live .mobo-pdp__accordion-body {
  padding: 0 0 var(--space-m);
  color: var(--color-gray-600);
  font-size: 15px;
  line-height: 1.75;
}

.mobo-pdp--live .mobo-pdp__accordion-body .review-summary,
.mobo-pdp--live .mobo-pdp__accordion-body .review-item,
.mobo-pdp--live .mobo-pdp__accordion-body .addon-card,
.mobo-pdp--live .mobo-pdp__accordion-body .bundle-group-card {
  border-radius: 0;
  box-shadow: none;
}

.mobo-pdp--live .related-section {
  margin-top: var(--space-xl);
  padding: var(--space-l) 0 0;
  border-top: 1px solid var(--color-gray-300);
}

.mobo-pdp--live .section-header {
  margin-bottom: var(--space-l);
}

.mobo-pdp--live .section-header h2 {
  padding: 0;
  color: var(--color-black);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 400;
  letter-spacing: -.02em;
}

.mobo-pdp--live .section-header h2::before {
  display: none;
}

.mobo-pdp--live .section-header .view-all {
  padding: 0;
  color: var(--color-black);
  border-radius: 0;
  font-size: 13px;
  text-decoration: underline;
}

.mobo-pdp--live .section-header .view-all:hover {
  background: transparent;
}

.mobo-pdp--live .product-grid {
  gap: var(--space-m);
}

.mobo-pdp--live .product-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-black);
}

.mobo-pdp--live .product-card:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.mobo-pdp--live .product-card .img-wrap {
  background: var(--color-gray-100);
}

.mobo-pdp--live .product-card .info {
  padding: 14px 0 0;
}

.mobo-pdp--live .product-card .pname {
  color: var(--color-black);
  font-size: 14px;
  font-weight: 500;
}

.mobo-pdp--live .product-card .price {
  color: var(--color-black);
  font-size: 15px;
  font-weight: 600;
}

.mobo-pdp--live .product-card .add-cart-btn {
  display: none;
}

@media (max-width: 1024px) {
  .mobo-pdp--live .product-main {
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }

  .mobo-pdp--live .product-info {
    max-width: 760px;
  }

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

@media (max-width: 640px) {
  .mobo-pdp--live {
    padding: var(--space-m) 0 var(--space-xl);
  }

  .mobo-pdp--live .breadcrumb {
    margin-bottom: var(--space-m);
  }

  .mobo-pdp--live .gallery-thumb {
    width: 60px;
    height: 60px;
  }

  .mobo-pdp--live .pi-actions {
    grid-template-columns: 1fr 1fr auto;
  }

  .mobo-pdp--live .btn-add-cart,
  .mobo-pdp--live .btn-buy-now,
  .mobo-pdp--live .btn-contact-inquiry {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .mobo-pdp--live .btn-wishlist {
    width: 48px;
    height: 48px;
  }

  .mobo-pdp--live .product-grid {
    gap: 12px;
  }

  .mobo-pdp--live .section-header {
    align-items: baseline;
    gap: 16px;
  }

  .mobo-pdp--live .section-header h2 {
    font-size: 28px;
  }
}

/* ── Native storefront fallback views, aligned to the /web MOBO language ──
   These selectors deliberately restyle the existing EC Shop forms and data
   views.  Their routes, server-side validation and JavaScript stay intact. */
body[data-template="mobo"] main > .container:first-child {
  padding-top: var(--space-m);
}

body[data-template="mobo"] main > .container > nav:first-child,
body[data-template="mobo"] .ec-breadcrumb {
  margin-bottom: var(--space-m);
  color: var(--color-gray-600) !important;
}

body[data-template="mobo"] .page-wrapper {
  max-width: 820px;
  padding: 0 0 var(--space-xxl);
}

.mobo-static-page {
  min-height: calc(100vh - var(--mobo-header-offset, 132px));
}

.mobo-static-page .section-header {
  max-width: 760px;
  margin: 0 0 var(--space-l);
}

.mobo-static-page .section-header .h1 {
  margin-top: var(--space-xs);
}

.mobo-static-page__updated {
  margin-top: var(--space-s);
  font-size: 13px;
}

.mobo-static-page__content {
  max-width: 760px;
}

.mobo-static-page__content h2,
.mobo-static-page__content h3,
.mobo-static-page__content h4 {
  color: var(--color-black);
  font-weight: 500;
}

.mobo-static-page__content a {
  color: var(--color-black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mobo-static-page__related {
  max-width: 760px;
  margin-top: var(--space-xl);
  padding-top: var(--space-l);
  border-top: 1px solid var(--color-gray-300);
}

.mobo-static-page__related h2 {
  margin-bottom: var(--space-m);
  font-size: 18px;
  font-weight: 500;
}

.mobo-static-page__related > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--color-gray-300);
  background: var(--color-gray-300);
}

.mobo-static-page__related a {
  display: flex;
  justify-content: space-between;
  gap: var(--space-s);
  align-items: center;
  padding: 14px 16px;
  background: var(--color-white);
  color: var(--color-black);
  font-size: 14px;
}

.mobo-static-page__related a:hover {
  opacity: 1;
  background: var(--color-gray-100);
}

body[data-template="mobo"] .page-header,
body[data-template="mobo"] .blog-hero,
body[data-template="mobo"] .search-hero,
body[data-template="mobo"] .brands-hero {
  margin: 0 0 var(--space-l);
  padding: 0 0 var(--space-m);
  border: 0;
  border-bottom: 1px solid var(--color-gray-300);
  border-radius: 0;
  background: transparent;
}

body[data-template="mobo"] .page-header h1,
body[data-template="mobo"] .blog-hero h1,
body[data-template="mobo"] .search-hero h1,
body[data-template="mobo"] .brands-hero h1 {
  color: var(--color-black);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.15;
}

body[data-template="mobo"] .page-header::before,
body[data-template="mobo"] .blog-hero::before,
body[data-template="mobo"] .search-hero::before,
body[data-template="mobo"] .brands-hero::before {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--color-gray-500);
  content: "Information";
  font-size: 13px;
  letter-spacing: .05em;
  line-height: 1.6;
  text-transform: uppercase;
}

body[data-template="mobo"] .page-meta,
body[data-template="mobo"] .blog-hero p,
body[data-template="mobo"] .search-hero p,
body[data-template="mobo"] .brands-hero p {
  color: var(--color-gray-600) !important;
}

body[data-template="mobo"] .page-content,
body[data-template="mobo"] .page-content p,
body[data-template="mobo"] .page-content li {
  color: var(--color-gray-600) !important;
  font-size: 15px;
  line-height: 1.85;
}

body[data-template="mobo"] .page-content h2,
body[data-template="mobo"] .page-content h3,
body[data-template="mobo"] .page-content h4 {
  color: var(--color-black) !important;
  font-weight: 500;
}

body[data-template="mobo"] .page-content a {
  color: var(--color-black) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-template="mobo"] .related-pages {
  margin-top: var(--space-xl);
  padding-top: var(--space-l);
  border-top: 1px solid var(--color-gray-300);
}

body[data-template="mobo"] .related-pages h3 {
  margin-bottom: var(--space-m);
  color: var(--color-black);
  font-size: 18px;
  font-weight: 500;
}

body[data-template="mobo"] .related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-gray-300);
  border: 1px solid var(--color-gray-300);
}

body[data-template="mobo"] .related-links a {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 12px 14px;
  background: var(--color-white);
  color: var(--color-black);
  font-size: 14px;
}

/* Contact: same two-column information and form rhythm as /web. */
body[data-template="mobo"] .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: clamp(32px, 5vw, 80px);
  padding: 0 0 var(--space-xxl);
}

body[data-template="mobo"] .contact-form-card,
body[data-template="mobo"] .contact-sidebar .info-card,
body[data-template="mobo"] .contact-intro {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-template="mobo"] .contact-sidebar {
  display: grid;
  align-content: start;
  gap: var(--space-l);
}

body[data-template="mobo"] .contact-sidebar .info-card {
  padding: 0 0 var(--space-l) !important;
  border-bottom: 1px solid var(--color-gray-300) !important;
}

body[data-template="mobo"] .contact-sidebar .info-card h3 {
  color: var(--color-black);
  font-size: 18px;
  font-weight: 500;
}

body[data-template="mobo"] .contact-sidebar .info-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-gray-300);
}

body[data-template="mobo"] .contact-sidebar .info-item .icon {
  color: var(--color-black) !important;
  background: transparent !important;
}

body[data-template="mobo"] .contact-sidebar .info-item .text,
body[data-template="mobo"] .contact-sidebar .info-item .text a {
  color: var(--color-gray-600) !important;
}

body[data-template="mobo"] .contact-layout .form-group input,
body[data-template="mobo"] .contact-layout .form-group select,
body[data-template="mobo"] .contact-layout .form-group textarea,
body[data-template="mobo"] .auth-form input,
body[data-template="mobo"] .rp-fg input,
body[data-template="mobo"] .rp-fg select {
  border: 1px solid var(--color-gray-300) !important;
  border-radius: 0 !important;
  background: var(--color-white) !important;
  box-shadow: none !important;
  color: var(--color-black) !important;
}

body[data-template="mobo"] .contact-layout .form-group label,
body[data-template="mobo"] .auth-form label,
body[data-template="mobo"] .rp-fg label {
  color: var(--color-gray-600) !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body[data-template="mobo"] .contact-layout .btn-submit,
body[data-template="mobo"] .auth-btn-primary,
body[data-template="mobo"] .rp-btn {
  border: 1px solid var(--color-black) !important;
  border-radius: 0 !important;
  background: var(--color-black) !important;
  box-shadow: none !important;
  color: var(--color-white) !important;
  font-family: inherit;
}

/* Blog and search cards keep real content but use the prototype's square grid. */
body[data-template="mobo"] .blog-layout {
  display: block;
  padding: 0 0 var(--space-xxl);
}

body[data-template="mobo"] .blog-sidebar {
  display: none;
}

body[data-template="mobo"] .cat-tags,
body[data-template="mobo"] .related-cats,
body[data-template="mobo"] .subcats {
  gap: 8px;
  margin-bottom: var(--space-l);
}

body[data-template="mobo"] .cat-tags a,
body[data-template="mobo"] .related-cats a,
body[data-template="mobo"] .subcat-chip {
  border: 1px solid var(--color-gray-300) !important;
  border-radius: 0 !important;
  background: var(--color-white) !important;
  color: var(--color-black) !important;
  box-shadow: none !important;
}

body[data-template="mobo"] .cat-tags a.active,
body[data-template="mobo"] .subcat-chip.active {
  border-color: var(--color-black) !important;
  background: var(--color-black) !important;
  color: var(--color-white) !important;
}

body[data-template="mobo"] .post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-l);
}

body[data-template="mobo"] .post-card {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body[data-template="mobo"] .post-card .thumb {
  padding-top: 66.667%;
  border-radius: 0;
  background: var(--color-gray-100);
}

body[data-template="mobo"] .post-card .thumb .cat-badge {
  top: 0;
  left: 0;
  border-radius: 0;
  background: var(--color-black);
}

body[data-template="mobo"] .post-card .body {
  padding: var(--space-s) 0 0;
}

body[data-template="mobo"] .post-card .post-title {
  color: var(--color-black);
  font-size: 20px;
  font-weight: 500;
}

body[data-template="mobo"] .post-card .excerpt,
body[data-template="mobo"] .post-card .meta {
  color: var(--color-gray-600);
}

body[data-template="mobo"] .post-card .read-more {
  color: var(--color-black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-template="mobo"] .search-filters,
body[data-template="mobo"] .cat-toolbar {
  margin-bottom: var(--space-l);
  padding: var(--space-s) 0;
  border-top: 1px solid var(--color-gray-300);
  border-bottom: 1px solid var(--color-gray-300);
  background: transparent;
}

body[data-template="mobo"] .search-filters select,
body[data-template="mobo"] .search-filters input,
body[data-template="mobo"] .cat-toolbar select,
body[data-template="mobo"] .price-inputs input {
  border: 1px solid var(--color-gray-300) !important;
  border-radius: 0 !important;
  background: var(--color-white) !important;
}

/* Category, brand and search product grids. */

/* The category header is a centred type block: the category name with the item
   count underneath.  Managed category artwork stays out of it so an uploaded
   image can never leave an empty grey band behind. */
body[data-template="mobo"] .cat-hero {
  display: block;
  min-height: 0;
  margin-bottom: var(--space-l);
  border-radius: 0;
  background: transparent !important;
}

body[data-template="mobo"] .cat-hero-bg,
body[data-template="mobo"] .cat-hero::after,
body[data-template="mobo"] .cat-hero-content .cat-count svg {
  display: none !important;
}

body[data-template="mobo"] .cat-hero-content {
  max-width: none;
  padding: var(--space-xl) 0 0;
  text-align: center;
}

body[data-template="mobo"] .cat-hero-content h1 {
  color: var(--color-black) !important;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -.025em;
}

body[data-template="mobo"] .cat-hero-content p {
  margin: var(--space-xs) auto 0;
  max-width: 640px;
  color: var(--color-gray-600) !important;
}

body[data-template="mobo"] .cat-hero-content .cat-count {
  margin-top: var(--space-xs);
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  color: var(--color-gray-600) !important;
  font-size: 14px;
  font-weight: 400;
  backdrop-filter: none;
}

body[data-template="mobo"] .cat-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding-bottom: var(--space-xxl);
}

body[data-template="mobo"] .cat-sidebar {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 側欄各段（品牌／價格範圍／庫存狀態／屬性）改行 MOBO 的分隔線設計。
   以往只移除內距，但控制器的邊框、圓角與白底照樣保留，變成
   「有框但沒有留白」的卡片，文字迫住卡邊。依照聯絡頁 info-card 的完整
   做法，一併移除卡片外觀，令零內距成為刻意的設計而非缺陷。 */
body[data-template="mobo"] .sidebar-section {
  padding: 0 0 var(--space-m) !important;
  margin: 0 0 var(--space-m) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--color-gray-300) !important;
}

body[data-template="mobo"] .sidebar-section h3,
body[data-template="mobo"] .attr-head {
  color: var(--color-black) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body[data-template="mobo"] .cat-list a,
body[data-template="mobo"] .filter-item,
body[data-template="mobo"] .brand-list a {
  color: var(--color-gray-600) !important;
}

/* Four products per row on desktop, mirroring the MOBO .shop-grid breakpoints.
   The page-level CSS keeps its own two-column rules below 768px. */
@media (min-width: 769px) and (max-width: 1200px) {
  body[data-template="mobo"] .products-grid:not(.list-view) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1201px) {
  body[data-template="mobo"] .products-grid:not(.list-view) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

body[data-template="mobo"] .products-grid {
  gap: var(--space-m) !important;
}

body[data-template="mobo"] .products-grid .product-card {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body[data-template="mobo"] .products-grid .product-card .img-wrap {
  border-radius: 0 !important;
  background: var(--color-gray-100) !important;
}

body[data-template="mobo"] .products-grid .product-card .info {
  padding: 14px 0 0 !important;
}

body[data-template="mobo"] .products-grid .product-card .pname,
body[data-template="mobo"] .products-grid .product-card .price {
  color: var(--color-black) !important;
}

/* Cart, checkout and account retain their flows while dropping the default card UI. */
body[data-template="mobo"] .cart-page,
body[data-template="mobo"] .checkout-page,
body[data-template="mobo"] .ec-main {
  padding: var(--space-l) 0 var(--space-xxl);
}

body[data-template="mobo"] .cart-header,
body[data-template="mobo"] .checkout-layout,
body[data-template="mobo"] .auth-layout {
  margin-top: 0;
}

body[data-template="mobo"] .cart-header h1,
body[data-template="mobo"] .auth-card-header h1 {
  color: var(--color-black);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -.025em;
}

body[data-template="mobo"] .cart-table,
body[data-template="mobo"] .cart-table th,
body[data-template="mobo"] .cart-table td {
  border-color: var(--color-gray-300) !important;
}

body[data-template="mobo"] .cart-table th {
  background: var(--color-gray-100) !important;
  color: var(--color-gray-600) !important;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body[data-template="mobo"] .cart-summary,
body[data-template="mobo"] .auth-card,
body[data-template="mobo"] .auth-benefits,
body[data-template="mobo"] .rp-card,
body[data-template="mobo"] .checkout-main,
body[data-template="mobo"] .checkout-sidebar {
  border: 1px solid var(--color-gray-300) !important;
  border-radius: 0 !important;
  background: var(--color-white) !important;
  box-shadow: none !important;
}

body[data-template="mobo"] .btn-main,
body[data-template="mobo"] .auth-btn,
body[data-template="mobo"] .checkout-login-tip__btn {
  border-radius: 0 !important;
  box-shadow: none !important;
}

body[data-template="mobo"] .auth-layout {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
}

body[data-template="mobo"] .auth-card,
body[data-template="mobo"] .auth-benefits {
  padding: clamp(24px, 4vw, 48px) !important;
}

@media (max-width: 900px) {
  body[data-template="mobo"] .contact-layout,
  body[data-template="mobo"] .cat-layout,
  body[data-template="mobo"] .auth-layout {
    grid-template-columns: 1fr;
  }

  body[data-template="mobo"] .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 平板（769–900px）：單欄版面之下側欄不黏附，改為一般排列。
   注意範圍必須止於 769px——分類頁控制器在 ≤768px 會把側欄變成
   off-canvas 抽屜（position: fixed），此處以往用 ≤900px 加 !important
   一刀切成 static，令抽屜機制失效：「篩選」按鈕照舊開出全屏遮罩，
   側欄卻沒有升起，整頁被遮罩封死，任何位置都按不到。 */
@media (max-width: 900px) and (min-width: 769px) {
  body[data-template="mobo"] .cat-sidebar {
    position: static !important;
  }
}

/* 手機（≤768px）：側欄成為抽屜。MOBO 全域為 .cat-sidebar 設了
   background: transparent !important，抽屜滑出時必須還原白底，
   否則會透視底下被遮罩壓暗的內容。 */
@media (max-width: 768px) {
  body[data-template="mobo"] .cat-sidebar {
    background: var(--color-white) !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, .12) !important;
  }
}

@media (max-width: 640px) {
  body[data-template="mobo"] main > .container:first-child {
    padding-top: var(--space-s);
  }

  body[data-template="mobo"] .related-links,
  body[data-template="mobo"] .post-grid,
  .mobo-static-page__related > div {
    grid-template-columns: 1fr;
  }

  body[data-template="mobo"] .cart-page,
  body[data-template="mobo"] .checkout-page,
  body[data-template="mobo"] .ec-main {
    padding-top: var(--space-m);
  }
}

/* ── Product detail: tighter parity with /web/…/products/detail ── */
.mobo-pdp--live {
  padding: var(--space-l) 0 var(--space-xxl);
}

.mobo-pdp--live .mobo-pdp__layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 5vw, 80px);
  margin-bottom: var(--space-xl);
}

.mobo-pdp--live .mobo-pdp__gallery,
.mobo-pdp--live .mobo-pdp__info {
  min-width: 0;
}

.mobo-pdp--live .gallery-main {
  border-radius: 0;
}

.mobo-pdp--live .gallery-main img,
.mobo-pdp--live .gallery-main video,
.mobo-pdp--live .gallery-main iframe {
  border-radius: 0;
}

.mobo-pdp--live .gallery-thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobo-pdp--live .gallery-thumb-nav {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-black);
  font: inherit;
  font-size: 24px;
}

.mobo-pdp--live .pi-name {
  font-size: clamp(28px, 2.5vw, 32px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.mobo-pdp--live .mobo-pdp__meta {
  display: grid;
  gap: 3px;
  margin: 10px 0 0;
  color: var(--color-gray-600);
  font-size: 14px;
  line-height: 1.55;
}

.mobo-pdp--live .mobo-pdp__meta-line {
  margin: 0;
}

.mobo-pdp--live .mobo-pdp__source-meta,
.mobo-pdp--live .mobo-pdp__duplicate-meta {
  display: none !important;
}

.mobo-pdp--live .pi-rating {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-gray-300);
}

.mobo-pdp--live .pi-price-block {
  margin: var(--space-m) 0;
}

.mobo-pdp--live .pi-price-now {
  font-size: 24px;
  font-weight: 700;
}

.mobo-pdp--live .pi-price-original,
.mobo-pdp--live .pi-price-saved,
.mobo-pdp--live .pi-member-price {
  color: var(--color-gray-600);
}

.mobo-pdp--live .pi-short-desc {
  padding-top: var(--space-s);
  border-top: 1px solid var(--color-gray-300);
}

.mobo-pdp--live .pi-variants,
.mobo-pdp--live .pi-modifiers-section,
.mobo-pdp--live .pi-addons-section,
.mobo-pdp--live .pi-bundle-section,
.mobo-pdp--live .pi-customsize-section,
.mobo-pdp--live .pi-groupbuy,
.mobo-pdp--live .pi-deposit,
.mobo-pdp--live .pi-qty-discount,
.mobo-pdp--live .pi-promo-list {
  padding-top: var(--space-s);
  border-top: 1px solid var(--color-gray-300);
}

.mobo-pdp--live .variant-opt,
.mobo-pdp--live .flat-variant-opt,
.mobo-pdp--live .pi-mod-opt,
.mobo-pdp--live .pi-cs-matopt {
  border-radius: 0;
}

.mobo-pdp--live .mobo-pdp__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-s);
  margin: var(--space-m) 0 0;
}

.mobo-pdp--live .mobo-pdp__actions .btn-add-cart,
.mobo-pdp--live .mobo-pdp__actions .btn-buy-now,
.mobo-pdp--live .mobo-pdp__actions .btn-contact-inquiry {
  grid-column: 1;
  width: 100%;
  min-height: 50px;
  border-radius: 0;
  justify-content: center;
}

.mobo-pdp--live .mobo-pdp__actions .btn-add-cart {
  order: 1;
}

.mobo-pdp--live .mobo-pdp__actions .btn-buy-now {
  order: 2;
  border-color: #5c3d9e;
  background: #5c3d9e;
  color: var(--color-white);
}

.mobo-pdp--live .mobo-pdp__actions .btn-buy-now:hover {
  border-color: #4a3180;
  background: #4a3180;
  color: var(--color-white);
}

.mobo-pdp--live .mobo-pdp__actions .btn-contact-inquiry {
  order: 2;
  background: var(--color-black);
  color: var(--color-white);
}

.mobo-pdp--live .mobo-pdp__actions .btn-wishlist {
  order: 3;
  width: 100%;
  height: 46px;
  border-color: var(--color-gray-300);
}

.mobo-pdp--live .mobo-pdp__extras {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: var(--space-m);
  padding-top: var(--space-s);
}

.mobo-pdp--live .mobo-pdp__share {
  margin-top: var(--space-s);
}

.mobo-pdp--live .pi-side-banners {
  margin-top: var(--space-m);
}

.mobo-pdp--live .pi-side-banner-card {
  border-radius: 0 !important;
  border-color: var(--color-gray-300) !important;
  box-shadow: none !important;
}

.mobo-pdp--live .product-tabs {
  max-width: 100%;
  margin-top: var(--space-l);
  padding-top: 0;
}

.mobo-pdp--live .mobo-pdp__accordion-item summary {
  min-height: 58px;
  padding: 17px 40px 17px 0;
  font-size: 17px;
  font-weight: 500;
}

.mobo-pdp--live .mobo-pdp__accordion-body {
  max-width: 900px;
  padding-bottom: var(--space-l);
}

.mobo-pdp--live .mobo-pdp__accordion-body .desc-content,
.mobo-pdp--live .mobo-pdp__accordion-body .article-content {
  color: var(--color-gray-600);
  line-height: 1.8;
}

.mobo-pdp--live .mobo-pdp__accordion-body .spec-table {
  width: min(100%, 760px);
  border-collapse: collapse;
}

.mobo-pdp--live .mobo-pdp__accordion-body .spec-table td {
  padding: 12px 14px;
  border: 1px solid var(--color-gray-300);
}

.mobo-pdp--live .mobo-pdp__accordion-body .spec-table td:first-child {
  width: 35%;
  background: var(--color-gray-100);
  color: var(--color-black);
  font-weight: 500;
}

.mobo-pdp--live .related-section {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
}

.mobo-pdp--live .related-section .section-header {
  margin-bottom: var(--space-l);
}

.mobo-pdp--live .related-section .section-header h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
}

.mobo-pdp--live .related-section .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-m);
}

@media (max-width: 1024px) {
  .mobo-pdp--live .mobo-pdp__layout {
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }

  .mobo-pdp--live .related-section .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mobo-pdp--live {
    padding-top: var(--space-m);
  }

  .mobo-pdp--live .gallery-thumbs-wrap {
    gap: 4px;
  }

  .mobo-pdp--live .gallery-thumb {
    width: 58px;
    height: 58px;
  }

  .mobo-pdp--live .mobo-pdp__meta {
    font-size: 13px;
  }

  .mobo-pdp--live .related-section {
    padding-top: var(--space-l);
  }

  .mobo-pdp--live .related-section .product-grid {
    gap: 12px;
  }
}

/* Keep every product image visible.  The old live-PDP bridge inherited the
   platform's `cover` rule, which cut off tall products and portraits. */
.mobo-pdp--live .gallery-main:has(#mainMediaWrap) {
  aspect-ratio: 1 / 1 !important;
  background: var(--color-gray-100);
}

.mobo-pdp--live #mainMediaWrap {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-gray-100);
}

.mobo-pdp--live #mainMediaWrap > img,
.mobo-pdp--live #mainMediaWrap > video,
.mobo-pdp--live .gallery-main > #mainImage {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

.mobo-pdp--live .gallery-main:hover #mainMediaWrap > img,
.mobo-pdp--live .gallery-main.mobile-zoomed #mainMediaWrap > img {
  transform: none !important;
}

/* Do not depend on the DOM enhancement for the purchase controls: this makes
   every product type use the same full-width /web button rhythm. */
.mobo-pdp--live .pi-actions {
  display: flex !important;
  /* `.pi-qty` now closes right after the quantity block, so the purchase
     controls are a plain block-level sibling. `flex-basis` is kept as a
     no-op safety net for any theme that still nests them in a flex row. */
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 0;
  flex-direction: column !important;
  align-items: stretch;
  gap: var(--space-s) !important;
  margin: var(--space-m) 0 0 !important;
}

.mobo-pdp--live .pi-actions .btn-add-cart,
.mobo-pdp--live .pi-actions .btn-buy-now,
.mobo-pdp--live .pi-actions .btn-contact-inquiry {
  flex: 0 0 auto !important;
  width: 100% !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 14px 20px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  justify-content: center !important;
}

.mobo-pdp--live .pi-actions .btn-add-cart {
  order: 1;
  background: var(--color-black) !important;
  border-color: var(--color-black) !important;
  color: var(--color-white) !important;
}

.mobo-pdp--live .pi-actions .btn-buy-now {
  order: 2;
  background: #5c3d9e !important;
  border-color: #5c3d9e !important;
  color: var(--color-white) !important;
}

.mobo-pdp--live .pi-actions .btn-contact-inquiry {
  order: 2;
  background: var(--color-black) !important;
  border-color: var(--color-black) !important;
  color: var(--color-white) !important;
}

.mobo-pdp--live .pi-actions .btn-wishlist {
  order: 3;
  align-self: flex-end;
  width: 48px !important;
  height: 48px !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 1px solid var(--color-gray-300) !important;
  border-radius: 0 !important;
  background: var(--color-white) !important;
  box-shadow: none !important;
}

/* Product uploads have arbitrary aspect ratios, unlike the fixed prototype
   assets.  The home rows (including "Best Sellers") must show the entire
   managed image instead of cutting tall or wide products into a square. */
/* A white plate keeps JPEG product photos (which carry their own white
   background) from showing as a lighter tile inside a grey frame. */
.shop-card--home .shop-card__image {
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  background: var(--color-white);
}

.shop-card--home .shop-card__image img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.shop-card--home:hover .shop-card__image img {
  transform: none;
}
/* ══════════════════════════════════════════════════════════════════
   MOBO 頁首、首頁區塊標題、頁尾微信及產品頁小標題
   ══════════════════════════════════════════════════════════════════ */

/* 搜尋圖示放大一倍（16px → 32px）。按鈕高度維持 34px，令頁首總高度不變，
   避免內頁預留的 --header-height 位置不足。 */
.icon-btn--search {
  width: 42px;
  min-width: 42px;
  height: 34px;
  font-size: 32px;
  line-height: 1;
}

/* 連去品牌其他網站的圖示（後台可填網址，留空即不顯示）。 */
.icon-btn--external {
  width: 34px;
  min-width: 34px;
  height: 34px;
}

.icon-btn--external svg {
  display: block;
}

/* 首頁區塊標題一律置中，只出一種語言，下面一行係「查看全部」。 */
.section-header--center .h2,
.section-header--center h2 {
  margin-left: auto;
  margin-right: auto;
}

.section-header__more {
  display: inline-block;
  margin-top: var(--space-xs);
  color: var(--color-gray-600);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.section-header__more:hover {
  color: var(--color-black);
}

/* 頁尾微信圖示與彈窗 */
/* 微信是 <button>，外框要同其他社交連結（40×40 加細框）完全一致。 */
.mobo-wechat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: none;
  color: rgba(0, 0, 0, 0.78);
  cursor: pointer;
  font: inherit;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.mobo-wechat-btn:hover {
  color: var(--color-black);
  border-color: rgba(0, 0, 0, 0.45);
  background-color: var(--color-white);
}

.mobo-wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-m);
  background: rgba(0, 0, 0, .55);
}

.mobo-wechat-modal[hidden] {
  display: none;
}

.mobo-wechat-modal__panel {
  position: relative;
  max-width: 320px;
  width: 100%;
  padding: var(--space-l);
  background: var(--color-white);
  color: var(--color-black);
  text-align: center;
}

.mobo-wechat-modal__panel img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  margin: var(--space-m) auto 0;
}

.mobo-wechat-modal__close {
  position: absolute;
  top: 6px;
  right: 10px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.mobo-wechat-modal__label {
  margin-top: var(--space-m);
  color: var(--color-gray-600);
  font-size: 13px;
}

.mobo-wechat-modal__id {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 500;
  user-select: all;
}

/* 共用版面（產品頁「相關商品」標題、評論等）用 .animate-on-scroll 起手，
   由 assets/css/front-header.css 設成 opacity:0，再靠 assets/js/front-header.js
   加 .visible 顯示出來。MOBO 模版沒有載入該段 JS，所以那些內容一直隱形。
   模版樣式在 front-header.css 之後載入，這裡直接讓它們顯示。 */
body[data-template="mobo"] .animate-on-scroll {
  opacity: 1;
  transform: none;
}

/* 產品頁「相關商品」區塊的標題
   店主要求只顯示「你可能也喜歡」，不再顯示「相關商品」大標題，
   所以把小標題升格為區塊標題，原本的 h2 只作視覺隱藏（仍然留在 HTML 內，
   搜尋引擎與螢幕閱讀器照樣讀到，不影響 SEO 與無障礙）。 */
.mobo-pdp--live .mobo-pdp__related-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobo-pdp--live .mobo-pdp__related-heading h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.mobo-pdp--live .mobo-pdp__related-eyebrow {
  margin-bottom: 0;
  color: var(--color-black);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
}

/* ── 產品頁：款式選項相片與「你的組合」預覽 ──────────────────────────
   後台在「屬性 → 選項」上載了選項相片之後，選項會由純文字變成相片方格；
   未上載相片的選項不受影響，維持原本外觀。 */
.mobo-pdp--live .variant-opt.mobo-pdp__option--image {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  text-align: left;
}

.mobo-pdp--live .mobo-pdp__option-legacy-dot {
  display: none !important;
}

.mobo-pdp--live .mobo-pdp__option-thumb {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
}

.mobo-pdp--live .mobo-pdp__option-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobo-pdp--live .mobo-pdp__combo {
  margin: var(--space-m) 0;
  padding: var(--space-s);
  border: 1px solid var(--color-gray-300);
  background: var(--color-white);
}

.mobo-pdp--live .mobo-pdp__combo-title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-black);
}

.mobo-pdp--live .mobo-pdp__combo-body {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mobo-pdp--live .mobo-pdp__combo-empty {
  margin: 0;
  font-size: 13px;
  color: var(--color-gray-600);
}

.mobo-pdp--live .mobo-pdp__combo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--color-gray-300);
  background: var(--color-gray-100);
}

.mobo-pdp--live .mobo-pdp__combo-thumb {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
}

.mobo-pdp--live .mobo-pdp__combo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobo-pdp--live .mobo-pdp__combo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mobo-pdp--live .mobo-pdp__combo-group {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--color-gray-600);
}

.mobo-pdp--live .mobo-pdp__combo-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-black);
  overflow-wrap: anywhere;
}

/* 加購品（例：貼片圖案）的相片放大，令客人看得清設計。 */
.mobo-pdp--live .addon-card-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--color-gray-300);
}

@media (max-width: 640px) {
  .mobo-pdp--live .mobo-pdp__option-thumb {
    width: 38px;
    height: 38px;
  }

  .mobo-pdp--live .addon-card-img {
    width: 52px;
    height: 52px;
  }
}
/* ══════════════════════════════════════════════════════════════════
   MOBO：頁首圖示尺寸、外部網站選單、頁面頂部留白、全模版直角
   ══════════════════════════════════════════════════════════════════ */

/* 右上角「登入 / 購物車」與左上角同一列的圖示、語言掣尺寸看齊：
   圖示 20px（等同外部網站的地球圖示），文字 13px（等同語言掣）。
   按鈕高度維持 34px，頁首總高度不會因此被撐高。 */
.icon-btn--text {
  gap: 6px;
  min-width: 52px;
  height: 34px;
  font-size: 13px;
}

.icon-btn--text .icon-btn__glyph {
  font-size: 20px;
}

.icon-btn--text .icon-btn__glyph svg {
  width: 20px;
  height: 20px;
}

.icon-btn--text .icon-btn__label {
  font-size: 13px;
}

.cart-badge {
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  margin-left: 5px;
  font-size: 10px;
  line-height: 16px;
}

/* 外部網站選單：後台填了兩個網址時，按地球圖示展開。 */
.external-dropdown {
  display: inline-flex;
  align-items: center;
}

.external-dropdown .icon-btn--external {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

.external-dropdown__panel {
  min-width: 200px;
}

.external-dropdown__panel a {
  color: var(--color-black);
  white-space: nowrap;
  transition: background 0.2s ease;
}

.external-dropdown__panel a:hover {
  background: var(--color-gray-100);
}

/* 全部頁面向下移：main 的頂部留白 = 真實頁首高度再多兩成空間，
   令內容不會貼住頁首。--mobo-header-offset 由 mobo.js 按實際頁首高度寫入，
   未有 JavaScript 時使用備用數值。 */
main,
.has-extended-header main {
  padding-top: calc(var(--mobo-header-offset, 132px) * 1.2);
}

@media (max-width: 1024px) {
  main,
  .has-extended-header main {
    padding-top: calc(var(--mobo-header-offset, 84px) * 1.2);
  }
}

/* 手機頁首較窄，圖示再收細一點，避免撐爆一行。 */
@media (max-width: 640px) {
  .icon-btn--text {
    min-width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .icon-btn--text .icon-btn__glyph {
    font-size: 18px;
  }

  .icon-btn--text .icon-btn__glyph svg {
    width: 18px;
    height: 18px;
  }

  .cart-badge {
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    margin-left: 4px;
    font-size: 9px;
    line-height: 14px;
  }
}

/* 直角統一：MOBO 版面內所有元素一律不留圓角，
   包括共用產品頁、購物車等寫死在標籤上的內嵌圓角。
   此規則以 body[data-template="mobo"] 收窄範圍，其他模版不受影響。 */
body[data-template="mobo"],
body[data-template="mobo"] *,
body[data-template="mobo"] *::before,
body[data-template="mobo"] *::after {
  border-radius: 0 !important;
}

/* 唯一例外：轉圈載入動畫本身是圓環，改成方角會變成明顯的畫面錯誤。 */
body[data-template="mobo"] .appt-spin {
  border-radius: 50% !important;
}
