/* =========================
   Reset
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #2b2b2b;
  color: #222;
}

img {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   Layout
========================= */
.phone {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f7f7f7;
  position: relative;
  overflow: hidden;
}

.page-main {
  background: #fff;
  min-height: 100vh;
}

.page-main.has-fixed-header {
  padding-top: 54px;
}

.page-main.has-bottom-bar {
  padding-bottom: 84px;
}

/* =========================
   Header
========================= */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  z-index: 50;
  padding: 10px 12px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ececec;
  transition: all .25s ease;
}

.header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ececec;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-center {
  display: none;
}

.header-logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  letter-spacing: 1px;
  line-height: 1;
}

.pill-btn,
.icon-btn,
.signin-btn {
  border: 1px solid #e8e8e8;
  background: #fff;
  border-radius: 999px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  cursor: pointer;
  transition: all .25s ease;
}

.header.scrolled .pill-btn,
.header.scrolled .icon-btn,
.header.scrolled .signin-btn {
  border: 1px solid #e8e8e8;
  background: #fff;
  color: #666;
}

.pill-btn {
  padding: 0 12px;
  gap: 6px;
  font-size: 14px;
}

.icon-btn {
  width: 34px;
  font-size: 16px;
}

.signin-btn {
  padding: 0 14px;
  font-size: 14px;
}

/* =========================
   Language panel
========================= */
.lang-panel {
  position: absolute;
  top: 50px;
  right: 72px;
  width: 185px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 10px 0;
  display: none;
  z-index: 60;
}

.lang-panel.show {
  display: block;
}

.lang-item {
  padding: 12px 16px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lang-item.active {
  color: #47bf67;
  font-weight: 600;
}

/* =========================
   Home - Hero
========================= */
.hero {
  background: #fff;
  padding-bottom: 10px;
}

.hero-top {
  height: 220px;
  background: url('../images/cp1.jpg') center/cover;
  position: relative;
}

.hero-brand {
  position: absolute;
  left: 16px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  z-index: 2;
}

.hero-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.8);
}

.hero-name {
  font-size: 22px;
  font-weight: 700;
}

.hero-meta {
  font-size: 13px;
  opacity: .95;
  margin-top: 4px;
}

/* =========================
   Notice
========================= */
@keyframes marquee {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.notice {
  margin: 12px 12px 0;
  padding: 10px 14px;
  background: #fff7e8;
  color: #d58a1b;
  border-radius: 2px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}

.notice .marquee-text {
  display: inline-block;
  animation: marquee 18s linear infinite;
  white-space: nowrap;
}

.notice.light {
  background: #fffdf8;
  color: #c18b2b;
  white-space: normal;
  line-height: 1.5;
}

.notice.light .marquee-text {
  animation-duration: 22s;
}

/* =========================
   Home - cards / mosaic
========================= */
.hero-card {
  position: relative;
  overflow: hidden;
  margin: 1px 0 0;
}

.hero-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.hero-card.full img {
  height: 220px;
}

.hero-card.tall img {
  height: 360px;
}

.hero-text {
  position: absolute;
  left: 14px;
  bottom: 14px;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 3px 10px rgba(0,0,0,.45);
  letter-spacing: 1px;
}

.hero-text.big {
  font-size: 34px;
}

.hero-text.huge {
  font-size: 44px;
}

.hero-text.mid {
  font-size: 24px;
}

.hero-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1px;
  margin-top: 1px;
}

.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
}

.hero-card.large img,
.hero-card.small img {
  height: 100%;
  min-height: 180px;
}

/* =========================
   Slideshow
========================= */
.slideshow {
  position: relative;
  overflow: hidden;
  margin-top: 1px;
  height: 686px;
  touch-action: pan-y;
}

.slideshow-track {
  display: flex;
  height: 100%;
  transition: transform .5s ease;
}

.slideshow-track img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .3s;
}

.slide-dot.active {
  background: #fff;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
}

.slide-arrow.prev { left: 10px; }
.slide-arrow.next { right: 10px; }

/* =========================
   Home category preview
========================= */
.category-preview-block {
  background: #fff;
  margin-top: 10px;
  padding: 18px 14px 16px;
}

.category-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px 10px;
}

.category-preview-item {
  text-align: center;
  cursor: pointer;
}

.category-preview-item img {
  width: 100%;
  height: 74px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
}

.category-preview-item span {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: #666;
  min-height: 30px;
  word-break: break-word;
}

/* =========================
   Category page tabs
========================= */
.tabs-bar {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid #f1f1f1;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}

.tab {
  color: #555;
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
}

.tab.active {
  color: #111;
  font-weight: 600;
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: #46c266;
}

.grid-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  cursor: pointer;
}

.category-title-bar {
  padding: 12px 12px 8px;
  background: #fff;
}

.category-title-chip {
  display: inline-block;
  background: #f1f3f5;
  color: #666;
  font-size: 14px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 999px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* =========================
   Product grid
========================= */
.product-wrap {
  padding: 10px;
  background: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.card {
  background: #fff;
}

.card-img {
  aspect-ratio: 1 / 1.15;
  background: linear-gradient(180deg, #efefef, #f9f9f9);
  border: 1px solid #ececec;
  position: relative;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.share {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #666;
}

.card-title {
  font-size: 12px;
  line-height: 1.4;
  color: #222;
  padding: 6px 2px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 50px;
}

/* =========================
   New feed
========================= */
.new-feed-wrap {
  background: #fff;
  padding: 0 12px 20px 16px;
}

.new-feed-group {
  margin-bottom: 18px;
}

.new-feed-date {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 10px 0 12px;
  color: #111;
}

.new-feed-day {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.new-feed-month {
  font-size: 14px;
  color: #444;
  margin-bottom: 2px;
}

.new-feed-arrow {
  font-size: 14px;
  color: #888;
  margin-left: 2px;
  margin-bottom: 2px;
}

.new-feed-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 56px;
}

.new-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.new-feed-thumb {
  position: relative;
  width: 108px;
  height: 108px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f2f2f2;
  border-radius: 2px;
}

.new-feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.new-feed-content {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.new-feed-title {
  font-size: 12px;
  line-height: 1.55;
  color: #222;
  word-break: break-word;
}

.new-feed-share {
  width: 22px;
  flex-shrink: 0;
  font-size: 14px;
  color: #777;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
}

.new-play-mask {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   Media grid
========================= */
.media-wrap {
  background: #fff;
  padding: 0 0 20px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.media-card {
  background: #fff;
}

.media-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2f2f2;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-mask {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   Floating buttons
========================= */
.fab-group {
  position: fixed;
  right: 14px;
  bottom: 80px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  font-size: 24px;
  cursor: pointer;
}

.fab.whatsapp {
  background: #1fd366;
  color: #fff;
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
  flex-direction: column;
  font-weight: 600;
}

.fab.whatsapp span:first-child {
  font-size: 20px;
  line-height: 1;
}

/* =========================
   Category overlay
========================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.28);
  z-index: 80;
  display: none;
  align-items: flex-end;
}

.overlay.show {
  display: flex;
}

.category-panel {
  width: 100%;
  height: 76vh;
  background: #fff;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.category-head {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.category-close {
  font-size: 28px;
  color: #444;
  cursor: pointer;
}

.category-multi {
  color: #4664c9;
  font-size: 14px;
}

.category-body {
  display: flex;
  min-height: 0;
  flex: 1;
}

.category-left {
  width: 158px;
  background: #f5f5f5;
  overflow-y: auto;
  flex-shrink: 0;
}

.category-menu-item {
  padding: 16px 10px 16px 14px;
  font-size: 15px;
  color: #666;
  cursor: pointer;
}

.category-menu-item.active {
  color: #4ec46b;
  font-weight: 600;
  background: #fff;
}

.category-right {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px 30px;
  background: #fff;
}

.category-content {
  display: none;
}

.category-content.active {
  display: block;
}

.section {
  margin-bottom: 28px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
}

.section-arrow {
  color: #999;
  font-size: 24px;
  line-height: 1;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 12px;
}

.menu-card {
  text-align: center;
}

.menu-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.menu-card-title {
  font-size: 12px;
  line-height: 1.35;
  color: #222;
  margin-top: 6px;
  word-break: break-word;
}

/* =========================
   Detail page
========================= */
.detail-main {
  background: #fff;
}

.detail-top-gallery {
  display: block;
  background: #fff;
}

.detail-main-image {
  position: relative;
  background: #f4f4f4;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.detail-main-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1.08;
}

.gallery-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-thumb-grid {
  display: none;
}

.detail-title-row {
  background: #fff;
  padding: 12px 14px 10px;
  font-size: 14px;
  line-height: 1.65;
  color: #222;
}

.detail-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 12px;
  background: #fff;
  border-bottom: 8px solid #f6f6f6;
}

.price-btn,
.share-btn {
  height: 34px;
  border: 1px solid #ececec;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: #555;
  font-size: 13px;
  cursor: pointer;
}

.price-btn {
  background: #47c96b;
  color: #fff;
  border-color: #47c96b;
}

.search-code-row {
  background: #fff;
  padding: 14px;
  font-size: 14px;
  color: #999;
  border-bottom: 8px solid #f6f6f6;
}

.search-code-row strong {
  color: #333;
  font-weight: 600;
  margin-left: 4px;
}

.store-card {
  background: #fff;
  padding: 14px;
  border-bottom: 8px solid #f6f6f6;
}

.store-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.store-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
}

.store-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #222;
  font-weight: 600;
}

.vip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  color: #7a4b00;
  background: linear-gradient(180deg, #ffd977, #f7c24d);
  border-radius: 4px;
  font-weight: 700;
}

.store-btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #ececec;
  background: #fff;
  color: #444;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.store-stats {
  display: flex;
  margin-top: 16px;
  border-top: 1px solid #f4f4f4;
  padding-top: 14px;
}

.store-stat {
  flex: 1;
  text-align: center;
  position: relative;
}

.store-stat + .store-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 1px;
  height: 24px;
  background: #f0f0f0;
}

.store-stat .label {
  font-size: 13px;
  color: #999;
}

.store-stat .value {
  margin-top: 4px;
  font-size: 14px;
  color: #222;
  font-weight: 600;
}

.recommend {
  background: #fff;
  padding: 14px;
  border-bottom: 8px solid #f6f6f6;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.recommend-card {
  width: 100%;
}

.recommend-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2f2f2;
  border-radius: 2px;
  position: relative;
}

.recommend-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.graphic-title {
  background: #fff;
  text-align: center;
  color: #b7b7b7;
  font-size: 14px;
  padding: 10px 0 12px;
  position: relative;
}

.graphic-title::before,
.graphic-title::after {
  content: "";
  display: inline-block;
  width: 38px;
  height: 1px;
  background: #e5e5e5;
  vertical-align: middle;
  margin: 0 10px;
}

.detail-text {
  background: #fff;
  padding: 10px 14px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: #222;
}

.detail-images {
  background: #fff;
}

.detail-images img {
  width: 100%;
  display: block;
  margin-top: 1px;
}

/* bottom bar */
.bottom-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-top: 1px solid #ececec;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  z-index: 60;
}

.bottom-share {
  width: 40px;
  flex-shrink: 0;
  text-align: center;
  color: #999;
  font-size: 12px;
  cursor: pointer;
}

.bottom-share .icon {
  font-size: 18px;
  line-height: 1;
  margin-bottom: 4px;
  display: block;
}

.consult-btn {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #47c96b;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.floating-contact {
  position: fixed;
  right: 14px;
  bottom: 96px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1fd366;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
  z-index: 61;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
  font-weight: 600;
}

.floating-contact span:first-child {
  font-size: 18px;
  line-height: 1;
  margin-bottom: 2px;
}

/* =========================
   Desktop
========================= */
@media (min-width: 992px) {
  .phone {
    max-width: 1280px;
    background: #fff;
  }

  .page-main.has-fixed-header {
    padding-top: 72px;
  }

  .page-main.has-bottom-bar {
    padding-bottom: 96px;
  }

  .header,
  .bottom-bar {
    max-width: 1280px;
  }

  .header {
    padding: 16px 24px;
  }

  .header-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .header-left {
    justify-content: flex-start;
  }

  .header-right {
    justify-content: flex-end;
  }

  .header-center {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pill-btn,
  .icon-btn,
  .signin-btn {
    height: 40px;
    font-size: 15px;
  }

  .icon-btn {
    width: 40px;
  }

  .hero-top {
    height: 420px;
  }

  .hero-logo {
    width: 72px;
    height: 72px;
  }

  .hero-name {
    font-size: 34px;
  }

  .hero-meta {
    font-size: 16px;
  }

  .notice {
    margin: 18px 24px 0;
    font-size: 15px;
  }

  .hero-card {
    margin-top: 18px;
  }

  .hero-card.full img {
    height: 360px;
  }

  .hero-card.tall img,
  .slideshow {
    height: 520px;
  }

  .hero-card.large img,
  .hero-card.small img {
    min-height: 260px;
  }

  .category-preview-block {
    margin-top: 18px;
    padding: 26px 24px 22px;
  }

  .category-preview-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 28px 16px;
  }

  .category-preview-item img {
    height: 96px;
  }

  .category-preview-item span {
    font-size: 13px;
  }

  .tabs-bar {
    height: 60px;
    padding: 0 24px;
  }

  .tab {
    height: 60px;
    font-size: 16px;
  }

  .grid-tools {
    gap: 14px;
  }

  .tool-btn {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .category-title-bar {
    padding: 14px 24px 10px;
  }

  .category-title-chip {
    font-size: 18px;
    padding: 10px 14px;
  }

  .product-wrap {
    padding: 10px 24px 40px;
  }

  .product-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }

  .card-title {
    font-size: 13px;
    min-height: 58px;
  }

  .new-feed-wrap {
    padding: 0 24px 24px 24px;
  }

  .new-feed-list {
    padding-left: 64px;
    gap: 20px;
  }

  .new-feed-item {
    gap: 16px;
  }

  .new-feed-thumb {
    width: 140px;
    height: 140px;
  }

  .new-feed-title {
    font-size: 14px;
  }

  .new-play-mask,
  .play-mask {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .media-wrap {
    padding: 0 24px 32px;
  }

  .media-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
  }

  .fab-group {
    right: 24px;
    bottom: 24px;
  }

  .category-panel {
    width: 920px;
    max-width: calc(100vw - 40px);
    height: 82vh;
    margin: auto;
    border-radius: 18px;
  }

  .category-left {
    width: 220px;
  }

  .section-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .detail-main {
    padding: 20px 24px 120px;
    background: #fff;
  }

  .detail-top-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 2px;
    align-items: start;
  }

  .detail-main-image img {
    aspect-ratio: auto;
    height: 560px;
  }

  .detail-thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: #fff;
  }

  .detail-thumb {
    border: 1px solid transparent;
    cursor: pointer;
    background: #f5f5f5;
  }

  .detail-thumb.active {
    border-color: #5fd36f;
  }

  .detail-thumb img {
    width: 100%;
    height: 92px;
    object-fit: cover;
    display: block;
  }

  .detail-title-row {
    padding: 10px 0 8px;
    font-size: 14px;
  }

  .detail-action-row {
    padding: 0 0 12px;
    border-bottom: 1px solid #f1f1f1;
  }

  .search-code-row {
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
  }

  .store-card {
    padding: 14px 0;
    border-bottom: 1px solid #f1f1f1;
  }

  .recommend {
    padding: 14px 0 18px;
    border-bottom: 1px solid #f1f1f1;
  }

  .recommend-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .graphic-title {
    padding-top: 18px;
  }

  .detail-text {
    padding: 10px 0 18px;
  }

  .detail-images img {
    max-width: 900px;
    margin: 1px auto 0;
  }

  .bottom-bar {
    padding: 10px 24px calc(10px + env(safe-area-inset-bottom));
  }

  .floating-contact {
    right: 24px;
    bottom: 110px;
  }
}
