:root {
  --green: #14b97d;
  --green-dark: #0f9f6e;
  --green-soft: #e8f8f1;
  --bg: #f3f5f6;
  --card: #ffffff;
  --text: #1a2332;
  --muted: #6b7280;
  --line: #e8ecef;
  --radius: 16px;
  --shadow: 0 10px 28px rgba(15, 118, 96, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.app-shell {
  width: min(480px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* Full-bleed banner — horizontal multi-image carousel */
.banner-section {
  margin: 0;
  position: relative;
  z-index: 1;
}
.banner-slider {
  overflow: hidden;
  background: #0f9f6e;
  position: relative;
}
.banner-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
  background: linear-gradient(135deg, #0f9f6e, #14b97d);
}
.banner-track::-webkit-scrollbar { display: none; }
.banner-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: #0f9f6e;
}
.banner-slide img,
.banner-fallback img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center right;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.banner-copy {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-54%);
  z-index: 3;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  max-width: 58%;
  pointer-events: none;
}
.banner-brand {
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.banner-slogan {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.95;
  line-height: 1.4;
}
.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 4;
  pointer-events: none;
}
.banner-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  pointer-events: auto;
}
.banner-dots .dot.is-active {
  background: #fff;
  width: 16px;
  border-radius: 999px;
}

.banner-fallback {
  overflow: hidden;
  background: #0f9f6e;
  aspect-ratio: 16 / 9;
  position: relative;
}

.product-section {
  padding: 16px 12px 40px;
  position: relative;
  z-index: 2;
  background: var(--bg);
}
.section-head {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 6px;
}
.section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.section-head h2::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 14px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--green);
  vertical-align: -2px;
}

.product-list {
  display: grid;
  gap: 12px;
}
.product-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  align-items: stretch;
  background: var(--card);
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 118, 96, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:active {
  transform: scale(0.985);
}
.product-cover {
  width: 108px;
  height: 108px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--green-soft);
  flex-shrink: 0;
  position: relative;
}
.product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 28px;
  background: linear-gradient(145deg, #e8f8f1, #d1fae5);
  border-radius: 16px;
}
.cover-placeholder.large {
  border-radius: 0;
  font-size: 48px;
}
.product-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 108px;
  padding: 2px 2px 2px 0;
}
.product-top h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.product-summary {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-tags .tag {
  font-size: 11px;
  color: #0f7660;
  background: var(--green-soft);
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.3;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.product-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #14b97d, #0f9f6e);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(15, 159, 110, 0.28);
}

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  height: 48px;
  padding-right: 10px;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
}
.nav-back {
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  color: var(--text);
}
.nav-title {
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}
.nav-spacer { width: 44px; }

.lang-switch-float {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 30;
}
.lang-switch {
  position: relative;
}
.lang-switch-btn {
  min-width: 40px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}
.nav-bar .lang-switch-btn {
  box-shadow: none;
  background: var(--green-soft);
  color: var(--green-dark);
}
.lang-switch-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 132px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  display: grid;
  gap: 2px;
  z-index: 40;
}
.lang-switch-menu[hidden] {
  display: none;
}
.lang-option {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.lang-option:hover,
.lang-option.is-active {
  background: var(--green-soft);
  color: var(--green-dark);
}

.detail-page {
  padding-bottom: 0;
  background: var(--card);
}
.detail-gallery {
  position: relative;
  width: 100%;
  background: #d8efe6;
}
.detail-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}
.detail-gallery-track::-webkit-scrollbar { display: none; }
.detail-gallery-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: #d8efe6;
}
.detail-gallery-slide img,
.detail-gallery-slide .cover-placeholder {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.gallery-zoom-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  z-index: 2;
}
.gallery-zoom-btn img {
  pointer-events: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-zoom-fab {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.gallery-zoom-fab:active {
  transform: scale(0.96);
}
.detail-gallery-count {
  bottom: 14px;
  right: 58px;
}
.detail-gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.gallery-dot {
  pointer-events: auto;
  width: 6px;
  height: 6px;
  border: none;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
}
.gallery-dot.is-active {
  width: 16px;
  border-radius: 999px;
  background: #fff;
}
.detail-gallery-count {
  position: absolute;
  right: 12px;
  bottom: 40px;
  z-index: 3;
  min-width: 42px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  backdrop-filter: none;
}

.detail-sheet {
  position: relative;
  z-index: 2;
  margin-top: -28px;
  background: var(--card);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 28px rgba(15, 118, 96, 0.08);
  overflow: hidden;
}
.detail-info {
  padding: 22px 16px 16px;
}
.detail-body {
  padding: 4px 16px 32px;
  border-top: 1px solid var(--line);
}
.detail-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.detail-summary {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.attr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--green-soft);
  border-radius: 14px;
  padding: 14px;
}
.attr-item {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.attr-name {
  font-size: 12px;
  color: #6b7c75;
}
.attr-value {
  font-size: 14px;
  font-weight: 600;
  color: #0f7660;
  word-break: break-word;
}

.detail-section-title {
  margin: 16px 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.rich-text {
  color: #374151;
  font-size: 14px;
  line-height: 1.75;
  overflow: hidden;
}
.rich-text > *:first-child { margin-top: 0; }
.rich-text > *:last-child { margin-bottom: 0; }
.rich-text p { margin: 0 0 12px; }
.rich-text h2,
.rich-text h3,
.rich-text h4 {
  margin: 18px 0 10px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
}
.rich-text h2 { font-size: 18px; }
.rich-text h3 { font-size: 16px; }
.rich-text h4 { font-size: 15px; }
.rich-text ul,
.rich-text ol {
  margin: 0 0 12px;
  padding-left: 1.25em;
}
.rich-text li { margin: 0 0 6px; }
.rich-text a { color: var(--green-dark); text-decoration: underline; }
.rich-text img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 14px 0;
  border-radius: 12px;
  object-fit: cover;
  background: var(--green-soft);
}
.rich-text p img {
  margin: 8px 0;
}
.rich-text blockquote {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  border-radius: 0 10px 10px 0;
  color: #3f4f49;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 40px 16px;
  background: var(--card);
  border-radius: var(--radius);
}
.page-pad { margin: 16px; }

body.lightbox-open {
  overflow: hidden;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}
.lightbox[hidden] {
  display: none !important;
}
.lightbox-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 48px 16px 56px;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.12s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 1001;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.lightbox-close {
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-count {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

@media (min-width: 481px) {
  body { background: #e5e9ec; }
  .app-shell {
    box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 18px 50px rgba(15, 23, 42, 0.08);
  }
}
