:root {
  --bg: #f6f1ea;
  --bg-soft: #fbf8f4;
  --card: #ffffff;
  --text: #2e2823;
  --muted: #6f655c;
  --line: #e4dbcf;
  --line-strong: #d6cabd;
  --primary: #6d4f3b;
  --primary-dark: #533a2a;
  --accent: #b7926d;
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, .05);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, .08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .14);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --container: 1380px;
  --container-wide: 1560px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8f4ef 0%, #f5efe7 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.container-wide {
  width: min(var(--container-wide), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 52px 0;
}

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

.section-head h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 15px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.section-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 22px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.btn:hover,
button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.45);
}

.btn-outline:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  background: #fff;
  color: var(--primary);
  border-color: var(--line-strong);
}

.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f3ebe2;
  color: var(--primary);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .4px;
  border: 1px solid #eadfce;
}

.product-code {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3eee8;
  color: var(--primary);
  font-size: 12px;
  line-height: 1.2;
  border: 1px solid var(--line);
}

.product-code-detail {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f3eee8;
  color: var(--primary);
  font-size: 14px;
  line-height: 1.2;
  border: 1px solid var(--line);
  font-weight: 600;
}

/* =========================
   Header
========================= */
.site-header-anchor {
  height: 0;
}

.site-header {
  position: relative;
  z-index: 1100;
  width: 100%;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228, 219, 207, .75);
  transition: box-shadow .22s ease, background-color .22s ease;
}

.site-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.header-topbar {
  border-bottom: 1px solid rgba(228, 219, 207, .65);
  background: #f8f4ee;
}

.header-topbar-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.header-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.header-shell {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 88px;
}

.brand-area {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 0 0 auto;
}

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

.site-logo-wrap {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 62px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

.site-logo-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.header-left-text {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
}

.brand-subtext {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
}

.header-right {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 0;
  box-shadow: none;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  flex-wrap: wrap;
}

.main-nav a,
.main-nav button,
.main-nav .nav-dropdown-toggle {
  white-space: nowrap;
}

.nav-category-btn,
.main-nav > a,
.nav-dropdown-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  margin: 0;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  border-radius: 999px;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1.1;
  font-size: 14px;
}

.nav-category-btn:hover,
.nav-category-btn.active,
.main-nav > a:hover,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown-toggle:hover {
  background: #eee3d5;
  color: var(--primary);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 14px;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .10);
  padding: 10px;
  z-index: 1200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: #f6f1ea;
  color: var(--primary);
}

/* Header hidden panel */
.header-category-panel {
  display: none;
  margin-top: 0;
  padding: 0 0 16px;
}

.header-category-panel.show {
  display: block;
}

.header-desktop-panel-slot {
  position: relative;
}

.header-category-panel.mobile-inline-panel {
  width: 100%;
}

.header-category-panel-inner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
  overflow: hidden;
}

.header-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
  border-bottom: 1px solid #f1e9df;
}

.header-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.header-panel-subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.header-subcategory-row {
  display: grid;
  grid-template-columns: repeat(10, max-content);
  justify-content: center;
  gap: 6px;
  padding: 14px 16px 16px;
}

.header-subcategory-item {
  width: 125px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #222;
  border-radius: 12px;
  padding: 6px 4px;
  overflow: hidden;
  transition: background-color .18s ease, transform .18s ease;
}

.header-subcategory-item:hover {
  background: #faf5ef;
  transform: translateY(-1px);
}

.header-subcategory-thumb-wrap {
  width: 105px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f6f3ef;
  border: 1px solid #ece3d9;
  margin: 0 auto 8px;
  flex: 0 0 auto;
}

.header-subcategory-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}

.header-subcategory-item:hover .header-subcategory-thumb {
  transform: scale(1.06);
}

.header-subcategory-name {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  padding: 0;
  width: 100%;
  max-width: 102px;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.header-subcategory-noimage .header-subcategory-thumb-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #887f75;
  font-size: 12px;
  padding: 4px;
}

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


/* Header menu compact spacing */
@media (min-width: 992px) {
  .main-nav {
    column-gap: 0;
    row-gap: 4px;
  }

  .nav-category-btn,
  .main-nav > a,
  .nav-dropdown-toggle {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 14px;
  }
}

@media (min-width: 992px) and (max-width: 1280px) {
  .header-shell {
    gap: 14px;
  }

  .nav-category-btn,
  .main-nav > a,
  .nav-dropdown-toggle {
    padding-left: 6px;
    padding-right: 6px;
    font-size: 13px;
  }
}

/* =========================
   Hero
========================= */
.hero-home {
  position: relative;
  padding: 18px 0 30px;
}

.hero-home .container-wide {
  position: relative;
}

.hero-full-slider {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: #ddd;
  box-shadow: var(--shadow-lg);
}

.hero-slider-track {
  position: relative;
  min-height: 760px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .7s ease, visibility .7s ease, transform .7s ease;
  transform: scale(1.01);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  z-index: 2;
}

.hero-full-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25,18,12,.72) 0%, rgba(25,18,12,.54) 32%, rgba(25,18,12,.25) 58%, rgba(25,18,12,.12) 100%),
    linear-gradient(180deg, rgba(25,18,12,.18) 0%, rgba(25,18,12,.26) 100%);
  z-index: 1;
}

.hero-full-content {
  position: relative;
  z-index: 2;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 620px;
  padding: 92px 74px;
  color: #fff;
}

.hero-full-content .badge {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(4px);
  margin-bottom: 16px;
}

.hero-full-content h1 {
  margin: 0 0 18px;
  font-size: 56px;
  line-height: 1.15;
  letter-spacing: 1px;
  color: #fff;
}

.hero-full-content p {
  margin: 0 0 26px;
  color: rgba(255,255,255,.92);
  font-size: 17px;
  line-height: 2;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-floating-card {
  position: absolute;
  right: 36px;
  bottom: 36px;
  z-index: 6;
  width: min(420px, calc(100% - 40px));
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(0,0,0,.14);
  padding: 22px 24px;
}

.hero-floating-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.3;
}

.hero-floating-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 14px;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: rgba(0,0,0,.30);
  color: #fff;
  border: 0;
  z-index: 8;
  cursor: pointer;
}

.hero-nav.prev {
  left: 24px;
}

.hero-nav.next {
  right: 24px;
}

.hero-nav:hover {
  background: rgba(0,0,0,.48);
}

.hero-dots {
  position: absolute;
  left: 74px;
  bottom: 34px;
  display: flex;
  gap: 10px;
  z-index: 8;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.45);
  padding: 0;
  cursor: pointer;
}

.hero-dot.active {
  background: #fff;
}

/* =========================
   Home sections
========================= */
.home-intro-band {
  padding: 0 0 8px;
}

.home-intro-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: stretch;
}

.home-intro-card,
.home-intro-quote {
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(228,219,207,.9);
  border-radius: 26px;
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
}

.home-intro-card h2,
.home-intro-quote h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.3;
}

.home-intro-card p,
.home-intro-quote p {
  margin: 0;
  color: var(--muted);
  line-height: 1.95;
}

.home-intro-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #fff 0%, #f8f1e8 100%);
}

.category-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.category-card {
  display: block;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 360px;
  background: #d8d0c7;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,18,12,.08) 0%, rgba(24,18,12,.16) 30%, rgba(24,18,12,.68) 100%);
  z-index: 1;
}

.category-card:hover .category-card-image {
  transform: scale(1.05);
}

.category-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.category-card-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 26px 24px 24px;
  color: #fff;
}

.category-card-body .badge {
  margin-bottom: 12px;
  background: rgba(255,255,255,.16);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}

.category-card-body h3 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.category-card-body p {
  margin: 0;
  color: rgba(255,255,255,.88);
  line-height: 1.8;
  font-size: 14px;
}

.feature-strip {
  background: linear-gradient(180deg, #ffffff 0%, #faf6f1 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-item {
  background: #fff;
  border: 1px solid #ece2d6;
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.feature-item-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: #f5ede4;
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
}

.feature-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 14px;
}

.editorial-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 26px;
  align-items: stretch;
}

.editorial-image {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eee3d6;
  min-height: 560px;
  box-shadow: var(--shadow-md);
}

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

.editorial-content {
  background: linear-gradient(180deg, #fff 0%, #faf6f1 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 42px 40px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.editorial-content h2 {
  margin: 0 0 16px;
  font-size: 38px;
  line-height: 1.25;
}

.editorial-content p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 2;
}

.editorial-points {
  display: grid;
  gap: 12px;
  margin: 10px 0 22px;
}

.editorial-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
  line-height: 1.8;
}

.editorial-point-mark {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #efe5d8;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e7e0d7;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f2ede7;
}

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

.service-card-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.4;
}

.service-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 14px;
}

/* =========================
   Cards / products / news
========================= */
.card {
  background: var(--card);
  border: 1px solid #e7e0d7;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

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

.featured-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px;
  align-items: stretch;
}

.product-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-grid .card a {
  text-decoration: none;
  color: inherit;
}

.product-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f3f3f3;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.5;
}

.card-body h3 a {
  color: #222;
  text-decoration: none;
}

.card-body p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.9;
  word-break: break-word;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e7e0d7;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-card.is-featured .news-thumb {
  aspect-ratio: 16 / 10;
}

.news-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f2ede7;
}

.news-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.4;
}

.news-card:not(.is-featured) h3 {
  font-size: 20px;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
}

.news-card-footer {
  margin-top: 18px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.cta-band {
  padding: 78px 0;
}

.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(120deg, rgba(98,72,53,.96) 0%, rgba(77,55,40,.95) 100%);
  color: #fff;
  padding: 54px 52px;
  box-shadow: var(--shadow-lg);
}

.cta-card::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}

.cta-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: 38px;
  line-height: 1.2;
}

.cta-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  color: rgba(255,255,255,.88);
  line-height: 1.95;
  max-width: 760px;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =========================
   Inner pages
========================= */
.hero {
  padding: 56px 0 32px;
}

.page-hero {
  padding: 56px 0 28px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: 42px;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.content-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  line-height: 1.9;
  box-shadow: var(--shadow-sm);
}

.product-info {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: start;
}

.gallery-main {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
  margin-top: 12px;
}

.gallery-thumbs img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.table-like {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.table-like div:first-child {
  color: var(--muted);
}

/* =========================
   Editor content
========================= */
.editor-content {
  line-height: 1.95;
  font-size: 16px;
}

.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4 {
  color: var(--text);
  margin-top: 1.6em;
  margin-bottom: .7em;
  line-height: 1.35;
}

.editor-content p {
  margin: 0 0 1em;
}

.editor-content ul,
.editor-content ol {
  margin: 0 0 1.2em 1.4em;
  padding: 0;
}

.editor-content li {
  margin-bottom: .45em;
}

.editor-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 12px 0 20px;
}

.editor-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
}

.editor-content th,
.editor-content td {
  border: 1px solid #d9d1c7;
  padding: 10px 12px;
  text-align: left;
}

.editor-content blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--primary);
  background: #f8f4ee;
  color: var(--muted);
}

/* =========================
   Store
========================= */
.store-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 24px;
  align-items: start;
}

.store-side-image {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: cover;
}

.city-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.city-btn {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  text-decoration: none;
  transition: all .2s ease;
}

.city-btn:hover,
.city-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.store-list {
  display: grid;
  gap: 16px;
}

.store-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: #fffaf7;
}

.store-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.store-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #e7ddd2;
}

.store-row:last-of-type {
  border-bottom: none;
}

.store-label {
  color: #7a6755;
  font-weight: 600;
}

.store-value {
  color: #2f241c;
  line-height: 1.8;
}

.store-map-link {
  margin-top: 14px;
}

.store-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: #fcfaf7;
}

/* =========================
   Footer
========================= */
.site-footer {
  margin-top: 40px;
  background: #1f1915;
  color: #f5ede5;
  padding-top: 42px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-brand-title {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.25;
}

.footer-brand-text {
  margin: 0;
  color: #d7cbbf;
  line-height: 2;
  max-width: 520px;
}

.footer-title {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.3;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-contact div {
  color: #d7cbbf;
  line-height: 1.9;
}

.footer-links a {
  transition: color .18s ease, transform .18s ease;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.copyright {
  text-align: center;
  color: #cabfb5;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 0;
}

/* =========================
   Admin
========================= */
.admin-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #221c18;
  color: #f3ece5;
  padding: 22px;
}

.admin-sidebar h2 {
  margin-top: 0;
  font-size: 22px;
}

.admin-sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #e6ddd3;
  margin-bottom: 8px;
}

.admin-sidebar a:hover {
  background: rgba(255,255,255,.08);
}

.admin-main {
  padding: 24px;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d8cec2;
  background: #fff;
}

.admin-form textarea {
  min-height: 140px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.flash {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.flash.success {
  background: #e9f7ee;
  color: #1b6b39;
}

.flash.error {
  background: #fdecec;
  color: #a12323;
}

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

.login-box {
  width: min(460px, calc(100% - 32px));
  margin: 70px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}

/* =========================
   Products catalog page
========================= */
.catalog-hero {
  padding: 20px 0 28px;
}

.catalog-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 420px;
  border-radius: 30px;
  overflow: hidden;
  background: #d9cfc3;
  box-shadow: var(--shadow-lg);
}

.catalog-hero-image-wrap {
  position: relative;
  min-height: 420px;
}

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

.catalog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28,20,13,.18) 0%, rgba(28,20,13,.06) 100%);
}

.catalog-hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 46px;
  background: linear-gradient(180deg, #ffffff 0%, #faf6f1 100%);
}

.catalog-hero-content h1 {
  margin: 0 0 14px;
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.catalog-hero-content p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.95;
  font-size: 15px;
}

.catalog-hero-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.catalog-hero-meta-item {
  min-width: 140px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #eadfce;
  background: #fff;
}

.catalog-hero-meta-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.catalog-hero-meta-item strong {
  font-size: 18px;
  color: var(--text);
}

.product-page-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.product-filter-box {
  min-width: 0;
}

.product-filter-sticky {
  position: sticky;
  top: 100px;
  border: 1px solid #e8e3dd;
  border-radius: 24px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.filter-group + .filter-group {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #eee7df;
}

.filter-title {
  font-size: 15px;
  font-weight: 700;
  color: #3c322a;
  margin-bottom: 12px;
  letter-spacing: .5px;
}

.filter-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-links a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.filter-links a:hover {
  background: #efe3d4;
  color: var(--primary);
  transform: translateX(2px);
}

.filter-links a.active {
  background: #d8c2a8;
  color: #222;
  font-weight: 700;
}

.product-list-area {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid #ebe2d7;
  border-radius: 20px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-sm);
}

.catalog-toolbar-text {
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.catalog-toolbar-text strong {
  color: var(--text);
}

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

.catalog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ece7e1;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.catalog-card-image-wrap {
  aspect-ratio: 1 / 1;
  background: #f7f5f2;
  overflow: hidden;
}

.catalog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .28s ease;
}

.catalog-card:hover .catalog-card-image {
  transform: scale(1.04);
}

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

.catalog-card-category {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 6px 10px;


  border-radius: 999px;
  background: #f3ebe2;
  color: var(--primary);
  font-size: 12px;
  line-height: 1.2;
  border: 1px solid #eadfce;
}

.catalog-card-title {
  font-size: 20px;
  line-height: 1.45;
  margin: 0 0 10px;
  color: #222;
}

.catalog-card-code {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.catalog-card-text {
  font-size: 14px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 16px;
  word-break: break-word;
}

.catalog-card-more {
  margin-top: auto;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

/* =========================
   Product detail page
========================= */
.product-hero {
  padding: 18px 0 24px;
}

.product-hero-horizontal-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
  align-items: stretch;
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.product-hero-horizontal-media {
  background: #eee4d7;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.product-hero-horizontal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-hero-horizontal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 34px 36px;
  background: linear-gradient(180deg, #ffffff 0%, #faf6f1 100%);
}

.product-hero-horizontal-content h1 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: .5px;
}

.product-hero-horizontal-desc {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 15px;
}

.product-hero-horizontal-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.product-hero-meta-box {
  padding: 12px 12px 13px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eadfce;
  box-shadow: var(--shadow-sm);
}

.product-hero-meta-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.product-hero-meta-box strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

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

.product-detail-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.product-gallery-panel,
.product-summary-panel {
  min-width: 0;
}

.product-gallery-card,
.product-summary-card,
.product-promo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.product-gallery-card {
  padding: 18px;
}

.product-summary-card {
  padding: 28px;
}

.product-promo-card {
  padding: 12px;
  margin-top: 20px;
}

.product-gallery-main {
  margin-bottom: 14px;
  border-radius: 18px;
  overflow: hidden;
  background: #f6f2ed;
  aspect-ratio: 4 / 3;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.product-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-gallery-thumbs img,
.gallery-thumbs.product-gallery-thumbs img,
.gallery-thumbs img.gallery-thumb {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  display: block;
  background: #f3eee8;
}

.product-gallery-thumbs img:hover,
.gallery-thumbs.product-gallery-thumbs img:hover,
.gallery-thumbs img.gallery-thumb:hover {
  opacity: 0.88;
}

.product-gallery-thumbs img.active,
.gallery-thumbs.product-gallery-thumbs img.active,
.gallery-thumbs img.gallery-thumb.active {
  border-color: var(--primary);
}

.product-spec-list {
  display: grid;
  gap: 14px;
}

.product-spec-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #efe7dd;
}

.product-spec-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.product-spec-label {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.product-spec-value {
  color: var(--text);
  line-height: 1.9;
}

.product-description-block {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e9dfd3;
  color: var(--text);
  line-height: 1.95;
}

.promo-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.product-detail-gallery-section {
  padding-top: 0;
}

.product-detail-gallery-extra-section {
  padding-top: 0;
}

.product-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-detail-image-item {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.product-detail-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  align-items: center;
  justify-content: center;
  padding: 30px 70px;
}

.lightbox.show {
  display: flex;
}

.lightbox-image {
  max-width: 88vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255,255,255,0.14);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}


@media (max-width: 1200px) {
  .featured-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .featured-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .featured-products-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================
   Responsive
========================= */

@media (max-width: 1280px) {
  .header-subcategory-row {
    grid-template-columns: repeat(7, max-content);
  }

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

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

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

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

  .news-grid .news-card.is-featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .hero-slider-track,
  .hero-full-content {
    min-height: 680px;
  }

  .hero-full-content {
    padding: 72px 44px;
  }

  .hero-full-content h1 {
    font-size: 46px;
  }

  .hero-floating-card {
    right: 20px;
    bottom: 20px;
  }

  .header-shell {
    min-height: 78px;
  }

  .header-subcategory-row {
    grid-template-columns: repeat(6, max-content);
  }

  .header-subcategory-item {
    width: 104px;
  }

  .header-subcategory-thumb-wrap {
    width: 84px;
  }

  .header-subcategory-name {
    max-width: 96px;
    font-size: 13px;
  }
}

@media (max-width: 991px) {
  .header-topbar {
    display: none;
  }

  .container-wide {
    width: min(var(--container-wide), calc(100% - 24px));
  }

  .header-shell {
    min-height: 72px;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    flex-wrap: wrap;
  }

  .brand-area {
    min-width: 0;
    flex: 1 1 auto;
  }

  .logo {
    min-width: 0;
    gap: 10px;
  }

  .site-logo-wrap {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 14px;
  }

  .brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
  }

  .header-left-text {
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-subtext {
    display: -webkit-box !important;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .4px;
    line-height: 1.35;
    white-space: normal;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .header-right {
    flex: 0 0 auto;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 0 14px;
  }

  .site-header.mobile-open .main-nav {
    display: flex;
  }

  .site-header.mobile-open .header-right {
    width: auto;
    display: flex;
  }

  .site-header.mobile-open .nav-dropdown {
    width: 100%;
    display: block;
  }

  .site-header.mobile-open .nav-dropdown::after {
    display: none;
  }

  .site-header.mobile-open .nav-dropdown-menu {
    position: static;
    display: block;
    min-width: 100%;
    margin-top: 6px;
    box-shadow: none;
    border-radius: 14px;
  }

  .site-header.mobile-open .main-nav > a,
  .site-header.mobile-open .nav-category-btn,
  .site-header.mobile-open .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    border-radius: 14px;
    padding: 14px 16px;
    background: #f8f4ef;
    font-size: 15px;
  }

  .site-header.mobile-open .main-nav > a:hover,
  .site-header.mobile-open .nav-category-btn:hover,
  .site-header.mobile-open .nav-dropdown-toggle:hover,
  .site-header.mobile-open .nav-category-btn.active,
  .site-header.mobile-open .nav-category-btn.mobile-panel-open {
    background: #efe3d6;
    color: var(--primary);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-category-panel {
    display: none;
    width: 100%;
    margin-top: 8px;
    padding: 0;
  }

  .header-category-panel.show {
    display: block;
  }

  .header-category-panel.mobile-inline-panel {
    order: 99;
  }

  .header-category-panel.mobile-inline-panel .header-category-panel-inner {
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    overflow: hidden;
  }

  .header-panel-top {
    padding: 12px 14px 10px;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-panel-title {
    font-size: 15px;
  }

  .header-panel-subtitle {
    font-size: 11px;
    line-height: 1.5;
  }

  .header-panel-more-btn {
    width: 100%;
    margin-top: 8px;
    padding: 11px 14px;
    border-radius: 12px;
  }

  .header-subcategory-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 8px;
    padding: 12px;
    max-height: 58vh;
    overflow-y: auto;
  }

  .header-subcategory-item {
    width: 100%;
    min-width: 0;
    padding: 8px 6px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #efe6db;
  }

  .header-subcategory-thumb-wrap {
    width: 100%;
    max-width: 110px;
    margin: 0 auto 8px;
  }

  .header-subcategory-name {
    max-width: none;
    min-height: auto;
    font-size: 13px;
    line-height: 1.35;
  }

  .hero-slider-track {
    min-height: 620px;
  }

  .hero-full-content {
    min-height: 620px;
    max-width: none;
    padding: 54px 28px 120px;
  }

  .hero-full-content h1 {
    font-size: 38px;
  }

  .hero-full-content p {
    font-size: 15px;
    line-height: 1.9;
  }

  .hero-dots {
    left: 28px;
    bottom: 24px;
  }

  .hero-floating-card {
    position: absolute;
    right: 18px;
    left: 18px;
    width: auto;

    bottom: 18px;
    border-radius: 22px;
  }

  .home-intro-grid,
  .editorial-layout,
  .product-info,
  .admin-wrap,
  .store-layout,
  .catalog-hero-card,
  .product-page-layout,
  .product-hero-horizontal-card,
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .catalog-grid,
  .feature-strip-grid,
  .service-grid,
  .news-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 56px 0;
  }

  .page-hero,
  .hero {
    padding: 42px 0 24px;
  }

  .page-hero h1,
  .catalog-hero-content h1,
  .product-hero-horizontal-content h1 {
    font-size: 32px;
  }

  .editorial-content,
  .home-intro-card,
  .home-intro-quote,
  .catalog-hero-content,
  .product-summary-card,
  .content-box {
    padding: 24px 22px;
  }

  .product-hero-horizontal-card {
    border-radius: 24px;
  }

  .product-hero-horizontal-media {
    aspect-ratio: 4 / 3;
  }

  .product-hero-horizontal-content {
    padding: 24px 22px 26px;
  }

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

  .product-filter-sticky {
    position: static;
    top: auto;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-card {
    padding: 34px 26px;
  }

  .cta-card h2 {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .gallery-thumbs.product-gallery-thumbs img,
  .gallery-thumbs img.gallery-thumb {
    width: 72px;
    height: 72px;
  }

  .lightbox {
    padding: 20px 16px;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 12px;
    right: 16px;
    font-size: 36px;
  }
}

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

  .section {
    padding: 54px 0;
  }

  .section-head {
    margin-bottom: 22px;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .header-topbar {
    display: none;
  }

  .header-left-text {
    font-size: 15px;
    line-height: 1.2;
  }

  .brand-copy {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand-subtext {
    display: -webkit-box !important;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .3px;
    line-height: 1.3;
    white-space: normal;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .site-logo-wrap {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 14px;
  }

  .header-panel-top {
    padding: 12px 10px 8px;
  }

  .header-panel-title {
    font-size: 14px;
  }

  .header-panel-subtitle {
    display: none;
  }

  .header-subcategory-row {
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    gap: 6px;
    padding: 10px 8px 12px;
  }

  .header-subcategory-item {
    width: 90px;
    padding: 3px 1px;
  }

  .header-subcategory-thumb-wrap {
    width: 64px;
    border-radius: 8px;
    margin-bottom: 5px;
  }

  .header-subcategory-name {
    max-width: 82px;
    font-size: 12px;
    line-height: 1.25;
    min-height: 32px;
  }

  .hero-home {
    padding-top: 10px;
  }

  .hero-full-slider {
    border-radius: 24px;
  }

  .hero-slider-track {
    min-height: 540px;
  }

  .hero-full-content {
    min-height: 540px;
    padding: 36px 20px 120px;
  }

  .hero-full-content h1 {
    font-size: 30px;
    line-height: 1.25;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn,
  .hero-actions .btn-light,
  .hero-actions .btn-outline {
    width: 100%;
  }

  .hero-nav {
    width: 42px;
    height: 42px;
  }

  .hero-nav.prev {
    left: 14px;
  }

  .hero-nav.next {
    right: 14px;
  }

  .hero-floating-card {
    padding: 18px 18px 20px;
  }

  .hero-floating-card h3 {
    font-size: 18px;
  }

  .home-intro-card,
  .home-intro-quote,
  .editorial-content,
  .cta-card {
    padding: 24px 20px;
  }

  .home-intro-card h2,
  .home-intro-quote h2 {
    font-size: 24px;
  }

  .editorial-content h2,
  .cta-card h2 {
    font-size: 30px;
  }


  .category-showcase,
  .feature-strip-grid,
  .service-grid,
  .product-grid,
  .news-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 300px;
  }

  .feature-item {
    padding: 22px 18px;
  }

  .news-card h3 {
    font-size: 22px;
  }

  .news-card:not(.is-featured) h3 {
    font-size: 18px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .content-box {
    padding: 22px 18px;
  }

  .card-body {
    padding: 16px 16px 18px;
  }

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

  .footer-brand-title {
    font-size: 24px;
  }

  .footer-title {
    font-size: 18px;
  }

  .catalog-hero {
    padding-top: 10px;
  }

  .catalog-hero-card {
    border-radius: 24px;
  }

  .catalog-hero-content {
    padding: 24px 18px;
  }

  .catalog-hero-content h1 {
    font-size: 28px;
  }

  .catalog-hero-meta {
    flex-direction: column;
  }

  .catalog-toolbar {
    padding: 16px;
  }

  .catalog-card-body {
    padding: 16px;
  }

  .catalog-card-title {
    font-size: 18px;
  }

  .product-hero {
    padding-top: 10px;
  }

  .product-hero-horizontal-card {
    border-radius: 24px;
  }

  .product-hero-horizontal-content {
    padding: 24px 18px;
  }

  .product-hero-horizontal-content h1 {
    font-size: 28px;
  }

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

  .product-gallery-card {
    padding: 12px;
  }

  .product-summary-card {
    padding: 20px 16px;
  }

  .product-spec-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .product-detail-image-item {
    padding: 8px;
    border-radius: 18px;
  }
}

/* =========================
   Wood-core cabinet page
========================= */
.blockboard-showcase {
  background: transparent;
}

.blockboard-hero-layout,
.blockboard-editorial-reverse {
  align-items: stretch;
}

.blockboard-hero-content h2 {
  font-size: 40px;
  line-height: 1.24;
}

.blockboard-hero-image {
  min-height: 620px;
}

.blockboard-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blockboard-table-box {
  padding: 0;
  overflow: hidden;
}

.blockboard-table-wrap {
  overflow-x: auto;
}

.blockboard-compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.blockboard-compare-table th,
.blockboard-compare-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #ece2d7;
  text-align: left;
  vertical-align: top;
  line-height: 1.9;
  font-size: 15px;
  color: var(--muted);
}

.blockboard-compare-table th {
  background: #f8f3ec;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.blockboard-material-compare {
  display: grid;
  gap: 24px;
}

.blockboard-material-image-row,
.blockboard-material-text-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.blockboard-material-image-card {
  background: #f4eee7;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 10;
}

.blockboard-material-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blockboard-material-text-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 28px 30px;
  box-shadow: var(--shadow-sm);
}

.blockboard-material-text-card-featured {
  box-shadow: var(--shadow-md);
}

.blockboard-material-text-card h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.25;
}

.blockboard-material-text-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.95;
}

.blockboard-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.blockboard-inline-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3ebe2;
  border: 1px solid #eadfce;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.blockboard-stack-media {
  min-height: unset;
  height: 100%;
  background: linear-gradient(180deg, #fff 0%, #faf6f1 100%);
  padding: 18px;
  display: flex;
}

.blockboard-stack-grid {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
  height: 100%;
  width: 100%;
  min-height: 0;
}

.blockboard-stack-grid img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.blockboard-case-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
}

.blockboard-case-main,
.blockboard-case-subgrid img {
  border-radius: 26px;
  overflow: hidden;
  background: #efe6db;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.blockboard-case-main img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.blockboard-case-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.blockboard-case-subgrid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.blockboard-cta-card {
  overflow: hidden;
}

.blockboard-contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.blockboard-contact-item {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  padding: 18px 18px 20px;
  backdrop-filter: blur(4px);
}

.blockboard-contact-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.2;
}

.blockboard-contact-value,
.blockboard-contact-link {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.blockboard-contact-link:hover {
  opacity: .9;
}

@media (max-width: 1280px) {
  .blockboard-hero-content h2 {
    font-size: 34px;
  }

  .blockboard-hero-image {
    min-height: 520px;
  }

  .blockboard-stack-media {
    min-height: unset;
  }

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

@media (max-width: 991px) {
  .blockboard-material-image-row,
  .blockboard-material-text-row,
  .blockboard-case-layout {
    grid-template-columns: 1fr;
  }

  .blockboard-hero-image {
    min-height: 420px;
  }

  .blockboard-stack-media {
    min-height: unset;
    height: auto;
  }

  .blockboard-material-body {
    padding: 24px 22px 26px;
  }

  .blockboard-material-body h3 {
    font-size: 24px;
  }

  .blockboard-case-main img {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .blockboard-hero-content h2 {
    font-size: 28px;
  }

  .blockboard-case-subgrid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .blockboard-compare-table th,
  .blockboard-compare-table td {
    padding: 12px 12px;
    font-size: 14px;
  }
}


/* 讓一條龍製程 / 顧問服務這類左右雙欄，在桌機版兩側高度更一致 */
@media (min-width: 992px) {
  .editorial-layout,
  .blockboard-editorial-reverse {
    align-items: stretch;
    grid-auto-rows: 1fr;
  }

  .editorial-layout > .editorial-content,
  .blockboard-editorial-reverse > .editorial-content,
  .editorial-layout > .blockboard-stack-media,
  .blockboard-editorial-reverse > .blockboard-stack-media {
    height: 100%;
  }
}


/* 修正木心板頁「一條龍製程 / 顧問服務」右側雙圖被 editorial-image 預設高度撐高 */
.blockboard-stack-media.editorial-image {
  min-height: 0 !important;
  height: auto !important;
  align-self: stretch !important;
}

.blockboard-stack-media {
  min-height: 0 !important;
  height: auto !important;
  display: flex !important;
}

.blockboard-stack-grid {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  align-self: stretch;
}

@media (min-width: 992px) {
  .editorial-layout > .editorial-content,
  .blockboard-editorial-reverse > .editorial-content {
    height: auto !important;
    min-height: 0 !important;
  }

  .editorial-layout > .blockboard-stack-media.editorial-image,
  .blockboard-editorial-reverse > .blockboard-stack-media.editorial-image {
    min-height: 0 !important;
    height: auto !important;
  }

  .editorial-layout > .blockboard-stack-media .blockboard-stack-grid,
  .blockboard-editorial-reverse > .blockboard-stack-media .blockboard-stack-grid {
    grid-template-rows: repeat(2, minmax(180px, auto)) !important;
  }

  .editorial-layout > .blockboard-stack-media .blockboard-stack-grid img,
  .blockboard-editorial-reverse > .blockboard-stack-media .blockboard-stack-grid img {
    aspect-ratio: 4 / 3;
    height: auto !important;
  }
}

@media (max-width: 991px) {
  .blockboard-stack-media.editorial-image {
    min-height: 0 !important;
    height: auto !important;
  }

  .blockboard-stack-grid {
    grid-template-rows: auto auto !important;
  }

  .blockboard-stack-grid img {
    aspect-ratio: 4 / 3;
    height: auto !important;
  }
}


.blockboard-difference-box {
  padding: 34px 34px 28px;
}

.blockboard-difference-head {
  margin-bottom: 18px;
}

.blockboard-difference-head h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.24;
  color: var(--text);
}

.blockboard-difference-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.95;
  font-size: 15px;
}

@media (max-width: 991px) {
  .blockboard-difference-box {
    padding: 24px 20px 20px;
  }

  .blockboard-difference-head h2 {
    font-size: 28px;
  }
}


/* 手機 / 平板品牌英文副標強制顯示 */
@media (max-width: 991px) {
  .site-header .brand-copy {
    min-width: 0;
    flex: 1 1 auto;
  }

  .site-header .brand-subtext {
    display: -webkit-box !important;
    color: var(--muted) !important;
    font-size: 11px !important;
    letter-spacing: .4px;
    line-height: 1.35;
    white-space: normal !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 640px) {
  .site-header .header-left-text {
    font-size: 15px;
    line-height: 1.2;
  }

  .site-header .brand-subtext {
    display: -webkit-box !important;
    color: var(--muted) !important;
    font-size: 10px !important;
    letter-spacing: .3px;
    line-height: 1.3;
    white-space: normal !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

/* =========================
   Works assistant floating helper
========================= */
.works-assistant {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1800;
  width: 136px;
  max-width: 24vw;
}

.works-assistant-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  animation: worksAssistantFloat 3.2s ease-in-out infinite;
}

.works-assistant-trigger:hover {
  background: transparent;
  transform: none;
}

.works-assistant-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.18));
  transition: transform 0.25s ease, filter 0.25s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.works-assistant-trigger:hover .works-assistant-img {
  transform: translateY(-4px) scale(1.04);
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.22));
}

.works-assistant-bubble {
  position: absolute;
  right: 88%;
  bottom: 70%;
  min-width: 150px;
  padding: 10px 13px;
  border-radius: 18px 18px 4px 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(198, 174, 142, 0.55);
  white-space: nowrap;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.works-assistant-bubble::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 12px;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid rgba(198, 174, 142, 0.55);
  border-bottom: 1px solid rgba(198, 174, 142, 0.55);
  transform: rotate(-45deg);
}

.works-assistant-bubble.is-soft-hide {
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
}

.works-assistant-close {
  position: absolute;
  right: -8px;
  top: -8px;
  width: 26px;
  height: 26px;
  min-width: 26px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.works-assistant-close:hover {
  background: var(--primary-dark);
  transform: none;
}

.works-assistant-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 16px);
  width: 330px;
  max-width: calc(100vw - 32px);
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(214, 202, 189, .9);
  border-radius: 24px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .16);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.98);
  transform-origin: right bottom;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.works-assistant.is-open .works-assistant-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.works-assistant.is-open .works-assistant-bubble {
  opacity: 0;
  visibility: hidden;
}

.works-assistant-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #efe7dd;
  background: linear-gradient(180deg, #fff 0%, #faf6f1 100%);
}

.works-assistant-kicker {
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .5px;
}

.works-assistant-title {
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.works-assistant-panel-close {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border-radius: 999px;
  background: #f2e9df;
  color: var(--primary);
  font-size: 20px;
  box-shadow: none;
}

.works-assistant-panel-close:hover {
  background: #eadfce;
  color: var(--primary-dark);
  transform: none;
}

.works-assistant-links {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.works-assistant-links a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid transparent;
  color: var(--text);
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.works-assistant-links a:hover {
  background: #faf5ef;
  border-color: #eadfce;
  transform: translateX(2px);
}

.works-assistant-link-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2e8dc;
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
}

.works-assistant-links strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.works-assistant-links em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-style: normal;
}

@keyframes worksAssistantFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 991px) {
  .works-assistant {
    width: 108px;
    right: 16px;
    bottom: 18px;
    max-width: 28vw;
  }

  .works-assistant-bubble {
    font-size: 12px;
    min-width: 128px;
    padding: 8px 10px;
    right: 86%;
    bottom: 72%;
  }

  .works-assistant-panel {
    width: 310px;
  }
}

@media (max-width: 640px) {
  .works-assistant {
    width: 82px;
    right: 12px;
    bottom: 14px;
    max-width: 24vw;
  }

  .works-assistant-bubble {
    display: none;
  }

  .works-assistant-close {
    width: 24px;
    height: 24px;
    min-width: 24px;
    right: -7px;
    top: -7px;
    font-size: 17px;
  }

  .works-assistant-panel {
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: 108px;
    width: auto;
    max-width: none;
    border-radius: 20px;
  }

  .works-assistant-panel-head {
    padding: 16px 16px 12px;
  }

  .works-assistant-title {
    font-size: 17px;
  }

  .works-assistant-links {
    padding: 12px;
  }

  .works-assistant-links a {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 10px;
  }

  .works-assistant-link-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
}

/* =========================
   Home CTA character
========================= */
.cta-card {
  min-height: 280px;
}

.cta-character-figure {
  position: absolute;
  right: 58px;
  bottom: 22px;
  z-index: 2;
  width: 114px;
  pointer-events: none;
  animation: ctaCharacterFloat 3.6s ease-in-out infinite;
}

.cta-character-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .20));
}

.cta-character-note {
  position: absolute;
  right: 82%;
  bottom: 70%;
  min-width: 108px;
  padding: 7px 10px;
  border-radius: 14px 14px 4px 14px;
  background: rgba(255, 255, 255, .94);
  color: var(--primary);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
  border: 1px solid rgba(255, 255, 255, .65);
  white-space: nowrap;
}

.cta-character-note::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 10px;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, .94);
  transform: rotate(-45deg);
}

@keyframes ctaCharacterFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (min-width: 992px) {
  .cta-card {
    padding-right: 210px;
  }
}

@media (max-width: 991px) {
  .cta-card {
    min-height: auto;
    padding-bottom: 30px;
  }

  .cta-character-figure {
    position: relative;
    right: auto;
    bottom: auto;
    width: 96px;
    margin: 18px 0 0 auto;
  }

  .cta-character-note {
    right: 82%;
    bottom: 68%;
    min-width: 96px;
    font-size: 11px;
    padding: 6px 8px;
  }
}

@media (max-width: 640px) {
  .cta-character-figure {
    width: 76px;
    margin-top: 16px;
  }

  .cta-character-note {
    display: none;
  }
}

/* =========================
   Product craftsman reminder
========================= */
.product-gallery-panel .product-craftsman-reminder {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 18px 16px 16px;
  border-radius: 18px;
  border: 1px solid #eadfce;
  background: linear-gradient(135deg, #fff 0%, #faf5ef 100%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.product-craftsman-reminder-media {
  align-self: center;
  display: flex;
  justify-content: center;
}

.product-craftsman-reminder-img {
  width: 58px;
  height: auto;
  display: block;
  filter: drop-shadow(0 7px 12px rgba(0,0,0,.15));
  animation: productCraftsmanFloat 3.4s ease-in-out infinite;
}

.product-craftsman-reminder-kicker {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 5px 9px;
  border-radius: 999px;

  background: #f2e8dc;
  color: var(--primary);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .4px;
}

.product-craftsman-reminder h3 {
  margin: 0 0 6px;
  color: #4b3527;
  font-size: 17px;
  line-height: 1.4;
}

.product-craftsman-reminder p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.product-craftsman-reminder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.product-craftsman-reminder-actions .btn,
.product-craftsman-reminder-actions .btn-light {
  padding: 9px 13px;
  font-size: 12px;
}

@keyframes productCraftsmanFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (max-width: 991px) {
  .product-gallery-panel .product-craftsman-reminder {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 14px;
  }

  .product-craftsman-reminder-img {
    width: 52px;
  }

  .product-craftsman-reminder h3 {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .product-gallery-panel .product-craftsman-reminder {
    grid-template-columns: 58px minmax(0, 1fr);
    text-align: left;
    padding: 14px;
  }

  .product-craftsman-reminder-img {
    width: 48px;
  }

  .product-craftsman-reminder-actions .btn,
  .product-craftsman-reminder-actions .btn-light {
    width: auto;
  }
}

/* 商業空間內容頁：民宿空間設計與家具配置 */
.works-commercial-case {
  color: #4a3324;
  background: #f7f1e8;
}

.works-commercial-case * {
  box-sizing: border-box;
}

.commercial-hero {
  max-width: 1180px;
  margin: 0 auto 56px;
  padding: 56px 20px 20px;
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 34px;
  align-items: center;
}

.commercial-hero-text {
  position: relative;
  z-index: 2;
}

.commercial-kicker,
.commercial-section-title span,
.commercial-case-content span,
.commercial-suitable-box span,
.commercial-cta span {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a7355;
  font-weight: 600;
}

.commercial-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.18;
  letter-spacing: 0.04em;
  color: #4b2f1e;
  font-weight: 700;
}

.commercial-hero p {
  margin: 0;
  font-size: 18px;
  line-height: 1.9;
  color: #654a38;
}

.commercial-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.commercial-hero-tags span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(122, 84, 55, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: #6a4b35;
  font-size: 14px;
}

.commercial-hero-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(74, 51, 36, 0.18);
}

.commercial-hero-image img,
.commercial-case-image img,
.commercial-gallery img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.commercial-hero-image img {
  aspect-ratio: 4 / 3;
}

.commercial-section {
  max-width: 1180px;
  margin: 0 auto 64px;
  padding: 0 20px;
}

.commercial-section-title {
  text-align: center;
  margin-bottom: 30px;
}

.commercial-section-title h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.3;
  color: #4b2f1e;
}

.commercial-section-title p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.9;
  color: #6a4b35;
}

.commercial-highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.commercial-highlight-card,
.commercial-why-card {
  padding: 28px 24px;
  border-radius: 20px;
  background: #fffaf3;
  border: 1px solid rgba(122, 84, 55, 0.16);
  box-shadow: 0 10px 30px rgba(74, 51, 36, 0.08);
}

.commercial-highlight-card h3,
.commercial-why-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  color: #4b2f1e;
}

.commercial-highlight-card p,
.commercial-why-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: #6a4b35;
}

.commercial-case-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 38px;
  align-items: center;
}

.commercial-case-layout.reverse .commercial-case-image {
  order: 2;
}

.commercial-case-layout.reverse .commercial-case-content {
  order: 1;
}

.commercial-case-image {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(74, 51, 36, 0.16);
}

.commercial-case-image img {
  aspect-ratio: 4 / 3;
}

.commercial-case-content {
  padding: 18px 0;
}

.commercial-case-content h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.35;
  color: #4b2f1e;
}

.commercial-case-content p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.95;
  color: #654a38;
}

.commercial-case-content ul {
  margin: 0;
  padding-left: 1.2em;
  color: #654a38;
  line-height: 1.9;
}

.commercial-case-content li {
  margin-bottom: 6px;
}

.commercial-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.commercial-gallery figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fffaf3;
  border: 1px solid rgba(122, 84, 55, 0.16);
  box-shadow: 0 10px 28px rgba(74, 51, 36, 0.1);
}

.commercial-gallery img {
  aspect-ratio: 4 / 3;
}

.commercial-gallery figcaption {
  padding: 14px 18px 18px;
  font-size: 17px;
  color: #4b2f1e;
  font-weight: 600;
}

.commercial-suitable-box {
  padding: 36px 40px;
  border-radius: 24px;
  background: #efe0d0;
  border: 1px solid rgba(122, 84, 55, 0.18);
  text-align: center;
}

.commercial-suitable-box h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 38px);
  color: #4b2f1e;
}

.commercial-suitable-box p {
  margin: 0;
  font-size: 18px;
  line-height: 2;
  color: #5a3e2b;
}

.commercial-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.commercial-cta {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #5a351f, #8a5a36);
  color: #fff;
}

.commercial-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 40px);
  color: #fff;
}

.commercial-cta p {
  margin: 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
}

.commercial-cta span {
  color: rgba(255, 255, 255, 0.72);
}

.commercial-cta-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  background: #fffaf3;
  color: #5a351f;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s ease;
}

.commercial-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

@media (max-width: 991px) {
  .commercial-hero,
  .commercial-case-layout {
    grid-template-columns: 1fr;
  }

  .commercial-case-layout.reverse .commercial-case-image,
  .commercial-case-layout.reverse .commercial-case-content {
    order: initial;
  }

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

  .commercial-gallery {
    grid-template-columns: 1fr;
  }

  .commercial-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .commercial-hero {
    padding-top: 36px;
  }

  .commercial-highlight-grid,
  .commercial-why-grid {
    grid-template-columns: 1fr;
  }

  .commercial-hero p,
  .commercial-suitable-box p {
    font-size: 16px;
  }

  .commercial-suitable-box {
    padding: 28px 22px;
  }

  .commercial-cta {
    padding: 34px 20px;
  }
}