/* ==========================================================================
   YUNHO site · design system
   ========================================================================== */

:root {
  --brand: #0e6b4f;
  --brand-dark: #0a4f3a;
  --brand-deep: #082f23;
  --brand-light: #e9f4ee;
  --brand-mint: #9fe7c3;
  --gold: #d9a441;
  --ink: #14231c;
  --ink-soft: #35473d;
  --muted: #6b7c73;
  --line: #e3e9e4;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 40, 30, 0.04), 0 6px 16px rgba(15, 40, 30, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 40, 30, 0.1);
  --shadow-lg: 0 24px 60px rgba(8, 47, 35, 0.18);
  --container: 1220px;
  --header-h: 72px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.drawer-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

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

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

input,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid rgba(14, 107, 79, 0.65);
  outline-offset: 2px;
}

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

.mobile-only {
  display: none;
}

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

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-wa {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(14, 107, 79, 0.22);
}

.btn-wa:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink-soft);
}

.btn-ghost:hover {
  border-color: #c7d4cb;
  background: #fafbf9;
}

.btn-white {
  background: #fff;
  color: var(--brand-dark);
}

.btn-white:hover {
  background: var(--brand-light);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
}

/* ---------------- Skeletons ---------------- */

.skeleton {
  position: relative;
  overflow: hidden;
  background: #e9eeea;
  border-radius: 8px;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-media {
  aspect-ratio: 1 / 1;
  border-radius: 0;
}

.skeleton-line {
  height: 14px;
  margin: 4px 0 10px;
}

.skeleton-line.short {
  width: 55%;
  height: 11px;
}

/* ---------------- Top bar & header ---------------- */

.topbar {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.topbar-link svg {
  width: 15px;
  height: 15px;
  opacity: 0.9;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--header-h);
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  color: var(--brand);
  display: block;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand-tagline {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 12px;
}

.main-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--brand);
}

.main-nav a.is-active {
  color: var(--brand);
}

.main-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateX(-50%);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* language */
.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-globe {
  position: absolute;
  left: 12px;
  font-size: 13px;
  color: var(--brand);
  pointer-events: none;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 74px;
  padding: 9px 26px 9px 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%236b7c73' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}

.lang-select:hover {
  border-color: #cbd8cf;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-btn span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-soft);
}

/* drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 25, 18, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 90;
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 86vw;
  background: #fff;
  z-index: 100;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.3, 1);
  overflow-y: auto;
}

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

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
}

.drawer-close svg {
  width: 18px;
  height: 18px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
}

.drawer-nav a.is-active {
  color: var(--brand);
}

.drawer-nav a svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.drawer-lang-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.lang-options {
  display: grid;
  gap: 8px;
}

.lang-options button {
  text-align: left;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: var(--ink-soft);
}

.lang-options button.is-active {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
}

.drawer-wa {
  margin-top: auto;
  width: 100%;
}

/* ---------------- Home hero ---------------- */

.hero {
  padding: 30px 0 6px;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 54px 52px;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, #083b2b 0%, #0b553f 48%, #117a58 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-panel::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  right: -140px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 231, 195, 0.28), transparent 62%);
}

.hero-panel::after {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  left: -160px;
  bottom: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.16), transparent 65%);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-mint);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: 42px;
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero-sub {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.75;
}

.hero-search {
  margin-top: 26px;
  max-width: 520px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 18px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(4, 24, 17, 0.18);
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14.5px;
  color: var(--ink);
}

.search-form input::placeholder {
  color: #97a69d;
}

.search-form button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.search-form button:hover {
  background: var(--brand-dark);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-mint);
}

.hero-media {
  position: relative;
  z-index: 2;
  min-width: 0;
}

/* banner carousel */
.banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0b2a20;
  box-shadow: 0 18px 40px rgba(4, 22, 15, 0.3);
}

.banner-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.3, 0.7, 0.3, 1);
}

.banner-slide {
  position: relative;
  display: block;
  min-width: 100%;
  aspect-ratio: 16 / 10;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 20, 14, 0) 45%, rgba(4, 20, 14, 0.72) 100%);
}

.banner-caption {
  position: absolute;
  left: 20px;
  right: 90px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.banner-dots {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.banner-dots button {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
  transition: all 0.25s ease;
}

.banner-dots button.is-active {
  width: 20px;
  background: #fff;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.banner:hover .banner-arrow {
  opacity: 1;
}

.banner-arrow svg {
  width: 17px;
  height: 17px;
}

.banner-arrow.prev {
  left: 12px;
  transform: rotate(180deg);
}

.banner-arrow.next {
  right: 12px;
}

.banner-arrow:hover {
  background: #fff;
}

.banner-empty {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  background: radial-gradient(circle at 30% 20%, #127a58, #073226);
}

.mobile-banner {
  padding: 14px 0 0;
}

/* ---------------- Categories strip ---------------- */

.cat-strip {
  margin-top: 18px;
}

.cat-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px 24px;
  box-shadow: var(--shadow-sm);
}

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

.section-head h2 {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.section-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.section-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.section-link:hover svg {
  transform: translateX(3px);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 10px 6px;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cat-item:hover {
  background: #f7faf7;
  transform: translateY(-2px);
}

.cat-thumb {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-light);
  display: grid;
  place-items: center;
  border: 1px solid rgba(14, 107, 79, 0.08);
}

.cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-thumb.is-empty::after {
  content: attr(data-initial);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
}

.cat-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

/* mobile intro */
.mobile-intro {
  display: none;
  padding: 22px 0 0;
}

.m-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 11.5px;
  font-weight: 600;
}

.m-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.mobile-intro .m-title {
  margin: 12px 0 7px;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.mobile-intro p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* ---------------- Product sections ---------------- */

.shop-sections {
  padding: 40px 0 24px;
  display: grid;
  gap: 44px;
}

.category-section .section-head {
  margin-bottom: 16px;
}

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

.section-count {
  color: var(--muted);
  font-size: 12.5px;
  margin-left: 10px;
  font-weight: 500;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d3ddd6;
}

.media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f1f4f0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .media img {
  transform: scale(1.04);
}

.media.is-empty::after {
  content: attr(data-initial);
  font-size: 34px;
  font-weight: 800;
  color: #a9bdb1;
}

.product-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-name {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.42;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
}

.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-spec {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
}

.product-price b {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
}

.product-price i {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 12px 0 2px;
}

.detail-price .price-myr {
  font-size: 30px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.detail-price .price-cny {
  font-size: 14px;
  color: var(--muted);
}

.product-go {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-light);
  color: var(--brand);
  transition: background 0.2s ease, color 0.2s ease;
}

.product-go svg {
  width: 14px;
  height: 14px;
}

.product-card:hover .product-go {
  background: var(--brand);
  color: #fff;
}

.home-more {
  display: flex;
  justify-content: center;
  padding: 6px 0 0;
}

/* ---------------- Page band (list / about) ---------------- */

.page-band {
  background: linear-gradient(180deg, #ffffff 0%, #f9faf7 100%);
  border-bottom: 1px solid var(--line);
}

.page-band-inner {
  padding: 34px 0 26px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.breadcrumbs a:hover {
  color: var(--brand);
}

.breadcrumbs .sep {
  opacity: 0.5;
}

.page-band h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-band .page-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.page-tools {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.page-search {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 5px 5px 16px;
}

.page-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  padding: 8px 0;
}

.page-search button {
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* ---------------- Products list ---------------- */

.list-layout {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 34px;
  padding: 28px 0 64px;
  align-items: start;
}

.list-side {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.side-title {
  padding: 10px 12px 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-soft);
  transition: background 0.18s ease, color 0.18s ease;
}

.side-item:hover {
  background: #f4f8f5;
  color: var(--brand-dark);
}

.side-item.is-active {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
}

.side-item .side-count {
  font-size: 11.5px;
  color: var(--muted);
  background: #f3f5f2;
  padding: 2px 7px;
  border-radius: 999px;
}

.side-item.is-active .side-count {
  background: #fff;
  color: var(--brand);
}

.chip-row {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

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

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

.result-label {
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 600;
}

.result-label span {
  color: var(--muted);
  font-weight: 500;
  margin-left: 8px;
}

.sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.sort-wrap select {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 32px 8px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%236b7c73' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.list-more {
  display: flex;
  justify-content: center;
  padding: 30px 0 6px;
}

.empty-state {
  padding: 70px 24px;
  text-align: center;
  background: #fff;
  border: 1px dashed #d6e0d9;
  border-radius: var(--radius-lg);
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 700;
}

.empty-state p {
  color: var(--muted);
  margin: 8px 0 18px;
  font-size: 13.5px;
}

/* ---------------- Detail ---------------- */

.detail-wrap {
  padding: 16px 0 64px;
}

.detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 42px;
  align-items: start;
  padding-top: 12px;
}

.gallery-main {
  position: relative;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.gallery-main .media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main .media {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

.gallery-main .media.is-empty::after {
  font-size: 64px;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumb {
  flex: none;
  width: 74px;
  height: 74px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #fff;
  padding: 0;
  box-shadow: 0 0 0 1px var(--line);
  transition: border-color 0.2s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.is-active {
  border-color: var(--brand);
}

.detail-info {
  min-width: 0;
}

.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 600;
}

.detail-info h1 {
  font-size: 31px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.detail-sub {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 22px;
}

.meta-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
}

.meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid #eef2ee;
}

.meta-row:last-child {
  border-bottom: 0;
}

.meta-row .label {
  color: var(--muted);
  flex: none;
}

.meta-row .value {
  text-align: right;
  font-weight: 600;
  color: var(--ink-soft);
  word-break: break-word;
}

.quote-card {
  background: linear-gradient(140deg, #0a4f3a, #0f7757);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 16px 36px rgba(10, 79, 58, 0.24);
}

.quote-card h3 {
  font-size: 19px;
  font-weight: 750;
  margin-bottom: 6px;
}

.quote-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 16px;
}

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

.quote-actions .btn {
  flex: 1;
  min-width: 140px;
}

.quote-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  flex: none;
  box-shadow: none;
}

.quote-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.detail-block {
  margin-top: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
}

.detail-block h2 {
  font-size: 19px;
  font-weight: 750;
  margin-bottom: 14px;
}

.detail-text {
  white-space: pre-line;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

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

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

.related {
  padding-top: 40px;
}

/* ---------------- About ---------------- */

.about-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  margin-top: 26px;
  padding: 58px 56px;
  color: #fff;
  background: linear-gradient(135deg, #083b2b, #0e6b4f 62%, #148763);
  box-shadow: var(--shadow-lg);
}

.about-hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 231, 195, 0.26), transparent 65%);
}

.about-hero h1 {
  position: relative;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 16px 0 12px;
  max-width: 640px;
  line-height: 1.2;
}

.about-hero p {
  position: relative;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.8;
}

.about-section {
  padding: 44px 0 0;
}

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

.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.value-card .num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.value-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.value-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.story-text h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.story-text p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.9;
  margin-bottom: 12px;
}

.story-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eef3ee;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
}

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

.contact-card h2 {
  font-size: 22px;
  font-weight: 750;
  margin-bottom: 16px;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2ee;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.contact-line:last-child {
  border-bottom: 0;
}

.contact-line .ci {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--brand-light);
  color: var(--brand);
  display: grid;
  place-items: center;
}

.contact-line .ci svg {
  width: 17px;
  height: 17px;
}

.contact-line .cl-label {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 1px;
}

.contact-line a {
  color: var(--brand-dark);
  font-weight: 600;
}

.contact-cta {
  background: linear-gradient(140deg, #0a4f3a, #12795a);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(10, 79, 58, 0.22);
}

.contact-cta h2 {
  color: #fff;
  font-size: 23px;
  font-weight: 750;
  margin-bottom: 10px;
  line-height: 1.3;
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-bottom {
  padding-bottom: 40px;
}

/* ---------------- Footer ---------------- */

.site-footer {
  margin-top: 56px;
  background: #071e17;
  color: rgba(255, 255, 255, 0.66);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 46px;
  padding: 48px 28px 34px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand .brand-mark {
  color: #12805c;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand .brand-tagline {
  color: rgba(255, 255, 255, 0.45);
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  max-width: 330px;
}

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.footer-col a,
.footer-col p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.66);
}

.footer-col a:hover {
  color: #fff;
}

.footer-wa {
  color: var(--brand-mint) !important;
  font-weight: 600;
}

.footer-wa svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.footer-icon {
  width: 15px;
  height: 15px;
  flex: none;
  opacity: 0.7;
}

.footer-contact a[href^='mailto'] {
  display: inline;
  padding: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 28px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-note {
  max-width: 460px;
  text-align: right;
}

/* ---------------- Mobile tab bar ---------------- */

#mobile-tabbar {
  display: none;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: #8a9a90;
}

.tabbar-item svg {
  width: 21px;
  height: 21px;
}

.tabbar-item.is-active {
  color: var(--brand);
}

/* ---------------- Toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 16px);
  background: rgba(8, 32, 23, 0.94);
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 120;
  max-width: 86vw;
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------------- Loading / error ---------------- */

.page-loading {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.error-state {
  padding: 56px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.error-state p {
  color: var(--muted);
  margin-bottom: 16px;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1180px) {
  .container {
    padding: 0 22px;
  }
  .hero-panel {
    gap: 32px;
    padding: 44px 40px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .cat-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .footer-grid {
    padding-left: 22px;
    padding-right: 22px;
  }
  .footer-bottom {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 18px;
  }
  .hero-panel {
    grid-template-columns: 1fr;
    padding: 38px 32px;
  }
  .hero-media {
    display: none;
  }
  .hero h1 {
    font-size: 34px;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cat-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .list-layout {
    grid-template-columns: 214px minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }
  .topbar {
    display: none;
  }
  .main-nav {
    display: none;
  }
  .header-wa span {
    display: none;
  }
  .header-wa {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
  }
  .header-wa svg {
    margin: 0;
  }
  .menu-btn {
    display: flex;
  }
  .header-actions .lang .lang-select {
    min-width: 66px;
    padding: 8px 24px 8px 26px;
  }
  .hero {
    display: none;
  }
  .mobile-only {
    display: block;
  }
  .mobile-banner {
    display: block;
  }
  .shop-sections {
    padding: 28px 0 8px;
    gap: 30px;
  }
  .cat-panel {
    padding: 20px 18px 18px;
    border-radius: 20px;
  }
  .cat-grid {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    margin: 0 -6px;
    padding: 0 6px 4px;
    scrollbar-width: none;
  }
  .cat-grid::-webkit-scrollbar {
    display: none;
  }
  .cat-item {
    flex: 0 0 84px;
    padding: 8px 2px;
  }
  .cat-thumb {
    width: 56px;
    height: 56px;
  }
  .cat-name {
    font-size: 11px;
    min-height: 2.7em;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-name {
    font-size: 13.5px;
  }
  .mobile-search {
    display: block;
    padding: 16px 0 0;
  }
  .mobile-search + .cat-strip {
    margin-top: 16px;
  }
  .list-layout {
    grid-template-columns: 1fr;
    padding: 20px 0 48px;
    gap: 0;
  }
  .list-side {
    display: none;
  }
  .chip-row {
    display: flex;
  }
  .detail-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .detail-info h1 {
    font-size: 24px;
  }
  .detail-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-block {
    padding: 22px 20px;
  }
  .about-hero {
    margin-top: 16px;
    padding: 38px 28px;
    border-radius: 24px;
  }
  .about-hero h1 {
    font-size: 30px;
  }
  .value-grid {
    grid-template-columns: 1fr;
  }
  .story {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 34px 22px 22px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    padding: 16px 22px 26px;
    font-size: 11px;
  }
  .footer-note {
    text-align: left;
    max-width: none;
  }
  #mobile-tabbar {
    display: block;
  }
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  .toast {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .page-band-inner {
    padding: 24px 0 20px;
  }
  .page-band h1 {
    font-size: 26px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 15px;
  }
  .brand-tagline {
    display: none;
  }
  .brand-name {
    font-size: 16px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .lang .lang-globe {
    display: none;
  }
  .header-actions .lang .lang-select {
    min-width: 58px;
    padding: 8px 22px 8px 12px;
  }
  .hero {
    display: none;
  }
  .search-form {
    padding-left: 14px;
  }
  .search-form button {
    padding: 9px 16px;
  }
  .section-head h2 {
    font-size: 18px;
  }
  .category-section .section-head h2 {
    font-size: 18.5px;
  }
  .section-count {
    display: none;
  }
  .product-body {
    padding: 10px 11px 11px;
    gap: 6px;
  }
  .product-go {
    width: 24px;
    height: 24px;
  }
  .product-go svg {
    width: 13px;
    height: 13px;
  }
  .product-name {
    min-height: 38px;
  }
  .banner-caption {
    font-size: 13px;
    left: 14px;
    right: 70px;
    bottom: 13px;
  }
  .banner-dots {
    right: 12px;
    bottom: 14px;
  }
  .page-band h1 {
    font-size: 23px;
  }
  .page-search {
    max-width: none;
  }
  .detail-wrap {
    padding: 8px 0 40px;
  }
  .detail-info h1 {
    font-size: 21px;
  }
  .meta-row {
    font-size: 13px;
    padding: 11px 14px;
  }
  .quote-card {
    padding: 20px;
  }
  .quote-actions .btn {
    flex: 1 1 100%;
  }
  .quote-actions .btn-ghost {
    flex: 1 1 100%;
  }
  .about-hero {
    padding: 30px 22px;
  }
  .about-hero h1 {
    font-size: 25px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .footer-brand {
    grid-column: auto;
  }
  .contact-card,
  .contact-cta {
    padding: 22px;
  }
}
