/* FOCUCELL Website - Common Styles */

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

html {
  width: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.page-main {
  width: 100%;
  margin-top: var(--header-height, 80px);
  height: auto;
  min-height: 0;
  overflow: visible;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.header-inner {
  width: 100%; max-width: 1320px; margin: 0 auto; height: 80px;
  display: flex; align-items: center; justify-content: space-between;
}

.logo-text {
  font-size: 22px; font-weight: 700; color: #222; letter-spacing: 1px;
}

.logo-text .logo-o {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid #c8161d; border-radius: 50%;
  position: relative; vertical-align: middle; margin: 0 1px;
}

.logo-text .logo-o::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 6px; height: 6px; background: #c8161d; border-radius: 50%;
  transform: translate(-50%, -50%);
}

.logo-img {
  display: block;
  height: 13px;
  width: auto;
  max-width: 104px;
}

.main-nav {
  display: flex; align-items: center; gap: 48px;
  margin-left: auto; margin-right: 40px;
}

.main-nav a {
  display: inline-flex;
  justify-content: center;
  align-items: flex-end;
  font-size: 17px;
  color: #333;
  padding-bottom: 2px;
  border-bottom: none;
  text-decoration: none;
}

.main-nav .nav-label {
  position: relative;
  display: inline-block;
  line-height: 1.35;
  padding-bottom: 4px;
}

.main-nav .nav-label::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #c8161d;
  transform: translateX(-50%);
  border-radius: 1px;
}

.main-nav a:hover,
.main-nav a.active {
  color: #c8161d;
}

.main-nav a:hover .nav-label::after,
.main-nav a.active .nav-label::after {
  width: calc(100% - 8px);
}

.lang-switcher { position: relative; }

.lang-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #c8161d; color: #fff; border: none;
  padding: 5px 10px; font-size: 12px; cursor: pointer; min-width: 76px;
  border-radius: 5px;
  transition: border-radius 0.15s ease;
}

.lang-btn-caret {
  display: inline-block;
  line-height: 1;
  transition: transform 0.2s ease;
}

.lang-switcher:hover .lang-btn,
.lang-switcher:focus-within .lang-btn {
  border-radius: 5px 5px 0 0;
}

.lang-switcher:hover .lang-btn-caret,
.lang-switcher:focus-within .lang-btn-caret {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none; position: absolute; top: 100%; right: 0;
  min-width: 76px; z-index: 100;
  overflow: hidden;
  border-radius: 0 0 6px 6px;
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown { display: block; }

.lang-dropdown button {
  display: block; width: 100%; background: #888; color: #fff;
  text-align: center; padding: 5px 10px; font-size: 12px;
  border: none; cursor: pointer;
}

.lang-dropdown button:last-child {
  border-radius: 0 0 6px 6px;
}

.lang-dropdown button:hover { background: #666; }

/* Carousel — 首页UI: 1600 x 525 */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 525px;
  flex-shrink: 0;
  overflow: hidden;
  background: #e8e8e8;
}

.hero-carousel.hero-sm { height: 525px; }

.hero-carousel .carousel-slide .img-placeholder { height: 525px; }

.hero-carousel.hero-sm .carousel-slide .img-placeholder { height: 525px; }

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.carousel-slide .carousel-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-slide .img-placeholder,
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide.cms-has-image .img-placeholder,
.carousel-slide .carousel-slide-img ~ .img-placeholder {
  display: none;
}

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  padding: 20px; z-index: 10; color: #fff; font-size: 48px;
  line-height: 1; opacity: 0.7;
}

.carousel-arrow:hover { opacity: 1; }
.carousel-arrow.prev { left: 30px; }
.carousel-arrow.next { right: 30px; }

.carousel-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}

.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.5); border: none; cursor: pointer; padding: 0;
}

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

.red-line { height: 3px; background: #c8161d; }

/* Index about — mobile banner (phone only) */
.index-about-mobile {
  display: none;
  width: 100%;
}

.index-about-mobile-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.index-about-mobile-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Index about — desktop banner (PC only) */
.about-section--desktop {
  display: block;
  background: none;
  padding: 0;
}

.index-about-desktop-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.index-about-desktop-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Placeholders */
.img-placeholder {
  background: #ececec; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #999; font-size: 16px; gap: 6px; width: 100%; height: 100%;
}

/* About section (index) */
.about-section {
  height: auto;
  padding: 0;
  width: 100%;
  display: block;
  background: linear-gradient(90deg, #fafafa 0%, #f3f1f1 45%, #ebe8e8 100%);
}

.about-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: calc(250px * 4 + 55px * 3);
  max-width: 100%;
  margin: 0 auto;
  padding: 28px 0 28px;
  box-sizing: border-box;
}

.about-text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 480px;
}

.about-heading {
  font-size: 28px; font-weight: 700; color: #222;
  margin-bottom: 16px; display: flex; align-items: center; gap: 6px;
}

.about-heading .us-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; background: #c8161d; color: #fff;
  border-radius: 50%; font-size: 14px;
}

.about-desc {
  color: #333;
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.8;
  max-width: 460px;
  text-align: justify;
}

/* About 按钮 — 左上 + 右下圆角 */
.about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 56px;
  padding: 0 18px;
  background: #c8161d;
  color: #fff;
  border-radius: 20px 0 20px 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}

.about-btn:hover { background: #a81218; }

/* 产品卡片按钮 — 首页UI-01：左下 + 右上圆角 */
.product-card-btn {
  position: absolute;
  right: 1px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 88px;
  padding: 0 20px 0 26px;
  background: #c8161d;
  color: #fff;
  border-radius: 0 24px 0 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}

.product-card-btn:hover { background: #a81218; }

.about-image {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.about-building-img {
  width: 560px;
  max-width: 560px;
  height: auto;
  aspect-ratio: 675 / 425;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Product section — 首页UI-01 */
body[data-page-title="page.index"] .product-section {
  padding: 36px 0 95px;
}

.product-section { padding: 60px 0 0; }

.product-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: calc(250px * 4 + 55px * 3);
  max-width: 100%;
  margin: 0 auto 30px;
}

.product-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.product-title-group .search-bar,
.product-title-group .search-bar-custom {
  margin-left: auto;
  flex-shrink: 0;
}

.product-title { font-size: 28px; font-weight: 700; color: #c8161d; }

.product-more {
  font-size: 11px; color: #888; border-bottom: 1px solid #ccc; padding-bottom: 1px;
}

.product-more:hover { color: #c8161d; border-bottom-color: #c8161d; }

.search-bar { display: flex; align-items: stretch; }

.search-bar-custom {
  display: flex;
  align-items: stretch;
  width: 141px;
  height: 36px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9f9;
}

.search-bar-custom .search-bar-bg {
  display: none;
}

.search-bar-custom .search-bar-field {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
}

.search-bar-custom .search-bar-field::placeholder,
.search-bar input::placeholder {
  font-size: 11px;
  color: #aaa;
}

.search-bar-custom .search-bar-submit {
  width: 42px;
  height: 100%;
  flex-shrink: 0;
  border: none;
  background: #c8161d var(--icon-search-url, url('../images/icon_search.svg')) center / 15px 15px no-repeat;
  cursor: pointer;
}

.search-bar input {
  width: 99px; height: 36px; border: 1px solid #ddd; border-right: none;
  padding: 0 12px; font-size: 13px; outline: none;
}

.search-bar input:focus { border-color: #c8161d; }

.search-bar button {
  width: 36px; height: 36px; background: #c8161d; border: none;
  cursor: pointer; color: #fff; font-size: 16px;
}

/* Product section — 首页UI-01: card 250x308, 4列间距 55px */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 250px);
  column-gap: 55px;
  row-gap: 55px;
  width: calc(250px * 4 + 55px * 3);
  max-width: 100%;
  margin: 0 auto;
}

.product-card {
  width: 250px;
  height: 308px;
  min-height: 308px;
  max-width: 250px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #f9f9f9;
  border-radius: 28px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.10), 0 4px 14px rgba(0, 0, 0, 0.06);
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.product-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-card-link:focus-visible {
  outline: 2px solid #c8161d;
  outline-offset: 2px;
}

body.cms-editing .product-card-link {
  cursor: default;
}

.product-card-image-wrap {
  display: block;
  flex-shrink: 0;
  width: 100%;
}

.product-card-image {
  width: 100%;
  height: 203px;
  flex-shrink: 0;
  border-radius: 0 0 22px 22px;
  border: none;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
}

.product-card-placeholder {
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 13px;
  border-radius: 0;
}

.product-card-body {
  flex: 1;
  min-height: 0;
  height: 105px;
  display: flex;
  align-items: flex-end;
  padding: 8px 88px 17px 16px;
  background: #f9f9f9;
}

.product-card-info { min-width: 0; transform: translateY(-2px); }

.product-category {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.45;
}

.product-model {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
}

.product-card-btn-arrows {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
}

/* Feature banner — 首页UI-01: 1320 x 535 */
body[data-page-title="page.index"] .feature-section {
  margin: 55px 0 0;
}

body[data-page-title="page.index"] .feature-section .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body[data-page-title="page.index"] .feature-banner {
  max-width: 100%;
  width: 100%;
  margin: 0;
}

body[data-page-title="page.index"] .feature-banner-img {
  width: 100%;
  border-radius: 0;
}

.feature-section { margin: 55px 0 60px; }

.feature-banner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.feature-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-banner .img-placeholder {
  width: 100%;
  max-width: 1320px;
  height: 535px;
  margin: 0 auto;
}

/* Category bar (product page) */
.category-bar {
  background: #f7f7f7; padding: 30px 0;
}

.category-bar-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.category-item {
  flex: 1 1 0;
  min-width: 0;
  max-width: 200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: inherit;
}

.category-item img {
  width: 80px;
  height: 80px;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.85;
  background: transparent;
}

.category-item span {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
  white-space: pre-line;
  word-break: normal;
  hyphens: none;
  width: 100%;
}

.category-item:hover span { color: #c8161d; }

.category-item.active span { color: #c8161d; font-weight: 700; }

.category-item.active img { opacity: 1; }

.product-hero-placeholder { height: 400px; }

body[data-page-title="page.product"] .page-hero {
  height: 400px;
  max-height: 400px;
  min-height: 100px;
}

.detail-panel-spacing { margin-top: 24px; }

/* Product page sections — align with homepage product section */
.product-category-section { padding: 36px 0 0; }

.product-category-section + .product-category-section {
  padding-top: 56px;
}

#productSections {
  padding-bottom: 114px;
}

/* About page */
/* About page */
.page-hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  line-height: 0;
  width: 100%;
  height: calc(100vw / 4);
  max-height: 400px;
  min-height: 100px;
  flex-shrink: 0;
  background: #ececec;
}

.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

body[data-page-title="page.about"] .page-hero,
body[data-page-title="page.contact"] .page-hero {
  height: calc(100vw / 6 * 4 / 5);
  max-height: calc(400px * 2 / 3 * 4 / 5);
  min-height: calc(100px * 2 / 3 * 4 / 5);
}

.profile-section { padding: 24px 0 150px; }

.profile-section .container {
  max-width: 1196px;
  margin-left: auto;
  margin-right: auto;
}

.profile-title {
  font-size: 24px; font-weight: 700; color: #c8161d;
  margin-bottom: 36px; letter-spacing: 1px;
  text-align: center;
}

.profile-top {
  width: 100%;
}

.profile-top::after {
  content: '';
  display: block;
  clear: both;
}

.profile-body {
  min-width: 0;
  color: #555;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: normal;
  word-spacing: normal;
  text-align: left;
}

.profile-body p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.profile-body p + p {
  margin-top: 20px;
}

.profile-image {
  float: right;
  width: 50%;
  max-width: 598px;
  margin: 0 0 28px 48px;
  overflow: hidden;
  border-radius: 12px;
}

.profile-building-img {
  width: 100%;
  height: auto;
  aspect-ratio: 520 / 340;
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
}

.about-gallery {
  margin: 40px auto 0;
  width: 100%;
  max-width: 1196px;
}

.about-gallery-img {
  width: 100%;
  max-width: 1196px;
  aspect-ratio: 1196 / 793;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
}

.product-section-standalone { padding-top: 40px; }

#categoryDetail[hidden] { display: none; }

/* Certificate page */
.cert-section { padding: 80px 0; text-align: center; }

.cert-title { font-size: 28px; font-weight: 700; color: #c8161d; margin-bottom: 20px; }

.cert-desc { color: #666; font-size: 16px; margin-bottom: 40px; text-align: justify; }

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

.cert-grid .img-placeholder { height: 280px; border-radius: 8px; }

.cert-grid .cert-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background: #ececec;
}

/* Contact page */
.contact-section { padding: 24px 0 150px; }

.contact-section .container {
  max-width: 1196px;
  margin-left: auto;
  margin-right: auto;
}

.contact-inner {
  display: flex;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.contact-info {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  color: #555;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: normal;
  word-spacing: normal;
  text-align: left;
}

.contact-block + .contact-block { margin-top: 20px; }

.contact-block p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.contact-company {
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.contact-image {
  width: 50%;
  max-width: 598px;
  flex: 0 0 50%;
  align-self: stretch;
  overflow: hidden;
  border-radius: 12px;
}

.contact-building-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
}

/* Footer — 背景图 + i18n 内容（避免与页尾.png 文字重复） */
.site-footer {
  padding: 0;
  background: #0a1424;
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.footer-shell {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  min-height: auto;
  max-height: none;
  background: #0a1424;
  padding: calc(48px * 2 / 3 * 5 / 6 * 5 / 7) 24px calc(36px * 2 / 3 * 5 / 6 * 5 / 7);
  overflow: hidden;
  box-sizing: border-box;
}

.footer-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  height: auto;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: calc(24px * 2 / 3 * 5 / 6 * 5 / 7);
  box-sizing: border-box;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 24px;
  width: 100%;
}

.footer-bottom {
  text-align: center;
  color: #fff;
  flex-shrink: 0;
}

.footer-logo {
  flex-shrink: 0;
  margin: 0 auto;
}

.footer-logo-img {
  display: block;
  height: 20px;
  width: auto;
  max-width: 208px;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex: 1;
  min-width: 0;
}

.footer-nav a {
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
}

.footer-nav a:hover { color: #dbeafe; }

.footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  min-height: 20px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.footer-auth-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  height: 20px;
}

.footer-auth-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 20px;
  white-space: nowrap;
}

.footer-welcome {
  font-size: 13px;
  color: #ccc;
  white-space: nowrap;
  line-height: 1;
}

.footer-username {
  color: #fff;
  font-weight: 600;
  margin-left: 4px;
}

.footer-welcome strong,
.footer-username {
  color: #fff;
  font-weight: 600;
}

.footer-search {
  display: flex;
  align-items: stretch;
  width: 220px;
  height: 36px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.footer-search-field {
  flex: 1;
  min-width: 0;
  border: none;
  background: #fff;
  padding: 0 12px;
  font-size: 13px;
  color: #333;
  outline: none;
}

.footer-search-field::placeholder {
  font-size: 11px;
  color: #aaa;
}

.footer-search-submit {
  width: 40px;
  height: 100%;
  flex-shrink: 0;
  border: none;
  background: #8a8a8a var(--icon-search-url, url('../images/icon_search.svg')) center / 15px 15px no-repeat;
  cursor: pointer;
}

.footer-search-submit:hover {
  background-color: #757575;
}

.footer-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 20px;
  padding: 0 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #3d8bfd 0%, #7b61ff 100%);
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
  cursor: pointer;
  font-family: inherit;
}

.footer-login:hover { opacity: 0.92; }

.footer-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 20px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.footer-logout:hover {
  background: rgba(255, 255, 255, 0.08);
}

.search-query-label {
  font-size: 13px;
  color: #888;
}

.search-empty {
  grid-column: 1 / -1;
  padding: 48px 0;
  text-align: center;
  color: #888;
  font-size: 15px;
}

.product-grid-empty {
  display: block;
}

.auth-message {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff3f3;
  color: #c8161d;
  font-size: 13px;
  line-height: 1.5;
}

.auth-message[hidden] {
  display: none;
}

/* Auth modal */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal.is-open { display: flex; }

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.auth-modal-dialog {
  position: relative;
  width: 420px;
  max-width: 100%;
  min-height: 360px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 36px 32px 28px;
  z-index: 1;
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: #999;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.auth-modal-close:hover { color: #333; }

.auth-panel {
  display: none;
}

.auth-panel.is-active { display: block; }

.auth-title {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 700;
  color: #222;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #555;
}

.auth-field input {
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}

.auth-field input:focus {
  border-color: #c8161d;
}

.auth-submit {
  margin-top: 8px;
  height: 42px;
  border: none;
  border-radius: 8px;
  background: #c8161d;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.auth-submit:hover { background: #a81218; }

.auth-switch {
  margin: 20px 0 0;
  text-align: center;
  font-size: 13px;
  color: #666;
}

.auth-switch-btn {
  border: none;
  background: none;
  color: #c8161d;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.auth-switch-btn:hover { text-decoration: underline; }

body.auth-modal-open { overflow: hidden; }

.footer-company {
  margin: 0 0 5px;
  font-size: 15px;
  color: #fff;
}

.footer-email {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.back-top {
  position: fixed; bottom: 40px; right: 40px;
  width: 44px; height: 44px; background: #fff; border: 1px solid #ddd;
  border-radius: 50%; display: none; align-items: center;
  justify-content: center; cursor: pointer; font-size: 18px; color: #888;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); z-index: 120;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, color 0.2s ease, border-color 0.2s ease;
}

body[data-page-title="page.product"] .back-top,
body[data-page-title="page.detail"] .back-top {
  display: flex;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover { color: #c8161d; border-color: #c8161d; }
/* Product Detail Page */
.detail-title-bar {
  background: #c8161d;
  padding: 14px 0;
}

.detail-title-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.detail-model-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.detail-title-bar .search-bar-custom { flex-shrink: 0; }

.detail-title-bar .search-bar input {
  background: #fff;
  border-color: #fff;
}

.detail-main { padding: 24px 0 32px; }

.detail-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.detail-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.detail-left .detail-panel-spacing { margin-top: 0; }

.detail-right {
  display: flex;
  min-width: 0;
  min-height: 0;
}

.detail-dimensions {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.detail-dimensions .detail-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.detail-panel {
  border: 1px solid #e8e8e8;
  background: #fff;
  overflow: hidden;
}

.detail-panel-head {
  padding: 12px 20px; font-size: 14px; font-weight: 700;
  color: #fff; letter-spacing: 0.5px;
}

.detail-panel-head.red { background: #c8161d; }

.detail-panel-head.navy { background: #1a2744; }

.detail-panel-body { padding: 20px; }

.detail-product-photo .img-placeholder {
  height: auto;
  min-height: 200px;
  background: #fff;
}

.detail-product-photo .img-placeholder.has-photo {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  min-height: 0;
}

.detail-product-img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.detail-diagram > div:first-child {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  grid-column: 1 / -1;
}

.detail-diagram {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 12px;
  align-items: start;
}

.detail-diagram .img-placeholder {
  height: auto;
  min-height: 180px;
  max-height: 280px;
  margin-top: 0;
  grid-column: 2;
  grid-row: 2;
  background: #fff;
}

.detail-diagram .img-placeholder img,
.detail-dimensions .img-placeholder img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.detail-dimensions .img-placeholder {
  height: auto;
  min-height: 240px;
  max-height: 520px;
  background: #fff;
  flex: 1;
}

.detail-diagram .img-placeholder.cms-has-image,
.detail-dimensions .img-placeholder.cms-has-image {
  display: block;
  padding: 0;
  min-height: 0;
  background: #fff;
}

.detail-wiring-list {
  margin-top: 0;
  grid-column: 1;
  grid-row: 2;
  font-size: 13px;
  color: #555;
  line-height: 2;
  align-self: center;
}

.detail-wiring-list span { display: inline-block; min-width: 160px; }

.detail-params { padding: 0 0 48px; }

.detail-params .container { max-width: 1100px; }

.detail-content {
  padding: 24px 0 48px;
}

.detail-content-inner {
  max-width: 1100px;
}

.detail-content-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1100 / 1750;
  object-fit: contain;
  object-position: top center;
}

.detail-related { padding: 0 0 80px; }

.detail-related .container { max-width: 1100px; }

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

.detail-params-head {
  background: #c8161d; color: #fff; text-align: center;
  padding: 14px; font-size: 16px; font-weight: 700; letter-spacing: 1px;
}

.params-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.params-table th {
  background: #c8161d; color: #fff; padding: 12px 16px;
  text-align: left; font-weight: 700;
}

.params-table td {
  padding: 10px 16px; border-bottom: 1px solid #eee; color: #444;
}

.params-table tr:nth-child(even) td { background: #fdf0ee; }

.params-table tr:nth-child(odd) td { background: #fff; }

.detail-title-left {
  display: flex; align-items: baseline; gap: 16px;
}

.detail-title-more {
  color: #fff; font-size: 14px; text-decoration: none; opacity: 0.95;
}

.detail-title-more:hover { text-decoration: underline; }

.product-card:hover .product-model { color: #000; }

/* Responsive: mobile — spacious layout, easy to read */
@media (max-width: 768px) {
  :root {
    --mobile-product-block-width: 330px;
    --mobile-section-padding: 24px;
    --mobile-carousel-height: 52vw;
    --mobile-carousel-min-height: 200px;
    --mobile-carousel-max-height: 525px;
    --mobile-product-banner-scale: 0.88;
  }

  body {
    min-width: 0;
    font-size: 15px;
  }

  .container,
  .header-inner,
  .footer-inner,
  .category-bar-inner,
  .detail-title-inner {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Header: logo + language on top, nav on second row */
  .header-inner {
    height: auto;
    min-height: auto;
    flex-wrap: wrap;
    padding: 10px 20px;
    row-gap: 8px;
    align-content: center;
  }

  .logo { flex-shrink: 0; }

  .logo-img {
    height: 12px;
    max-width: 78px;
  }

  .logo-text { font-size: 18px; }

  .lang-switcher { margin-left: auto; }

  .lang-btn {
    min-width: 68px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin: 0;
    gap: 0;
    justify-content: space-between;
    overflow-x: visible;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
  }

  .main-nav a {
    font-size: 12px;
    white-space: normal;
    text-align: center;
    flex: 1;
    line-height: 1.35;
    padding: 4px 2px 2px;
  }

  .main-nav .nav-label {
    padding-bottom: 3px;
  }

  .main-nav a:hover .nav-label::after,
  .main-nav a.active .nav-label::after {
    width: calc(100% - 6px);
  }

  /* Banners */
  .hero-carousel {
    height: var(--mobile-carousel-height);
    min-height: var(--mobile-carousel-min-height);
    max-height: var(--mobile-carousel-max-height);
  }

  .hero-carousel .carousel-slide .img-placeholder {
    height: 100%;
    min-height: var(--mobile-carousel-min-height);
  }

  .page-hero {
    height: var(--mobile-carousel-height);
    min-height: var(--mobile-carousel-min-height);
    max-height: var(--mobile-carousel-max-height);
  }

  body[data-page-title="page.about"] .page-hero,
  body[data-page-title="page.contact"] .page-hero {
    height: calc(var(--mobile-carousel-height) * 4 / 5);
    min-height: calc(var(--mobile-carousel-min-height) * 4 / 5);
    max-height: calc(var(--mobile-carousel-max-height) * 4 / 5);
  }

  body[data-page-title="page.product"] .page-hero {
    height: var(--mobile-carousel-height);
    min-height: var(--mobile-carousel-min-height);
    max-height: var(--mobile-carousel-max-height);
  }

  .page-hero-img,
  .product-hero-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  .product-hero-placeholder {
    height: 52vw;
    min-height: 180px;
    max-height: 300px;
  }

  body[data-page-title="page.about"] .profile-section,
  body[data-page-title="page.contact"] .contact-section {
    padding: 12px 0 100px;
  }

  body[data-page-title="page.about"] .profile-section .container {
    max-width: var(--mobile-product-block-width, 330px);
    padding-left: var(--mobile-section-padding, 24px);
    padding-right: var(--mobile-section-padding, 24px);
  }

  body[data-page-title="page.contact"] .contact-section .container {
    max-width: var(--mobile-product-block-width, 330px);
    padding-left: var(--mobile-section-padding, 24px);
    padding-right: var(--mobile-section-padding, 24px);
  }

  body[data-page-title="page.about"] .profile-title {
    max-width: var(--mobile-product-block-width, 330px);
    margin-left: auto;
    margin-right: auto;
  }

  .carousel-arrow { font-size: 36px; }

  .about-section--desktop { display: none; }

  .index-about-mobile { display: block; }

  /* Index about */
  .about-section {
    height: auto;
    padding: 0;
    background: linear-gradient(180deg, #fafafa 0%, #f3f1f1 50%, #ebe8e8 100%);
  }

  .about-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: var(--mobile-product-block-width);
    margin: 0 auto;
    padding: 28px 0 24px;
    box-sizing: border-box;
  }

  .about-text {
    max-width: none;
    padding-top: 0;
    min-width: 0;
  }

  .about-image {
    justify-content: flex-end;
    min-width: 0;
  }

  .about-heading { font-size: 20px; }

  .about-heading .us-badge {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .about-desc {
    font-size: 14px;
    line-height: 1.75;
    max-width: none;
    margin-bottom: 14px;
  }

  .about-building-img {
    width: 100%;
    max-width: 213px;
    margin-left: auto;
    height: auto;
    aspect-ratio: 675 / 425;
    border-radius: 8px;
  }

  /* Product section — 首页UI-01 */
  .product-section { padding: 36px 0 48px; }

  body[data-page-title="page.index"] .product-section {
    padding: 24px 0 72px;
  }

  .product-category-section { padding: 18px 0 0; }

  .product-category-section + .product-category-section {
    padding-top: 28px;
  }

  #productSections {
    padding-bottom: 86px;
  }

  .product-section .container,
  .about-section .container {
    padding-left: var(--mobile-section-padding);
    padding-right: var(--mobile-section-padding);
  }

  .product-header {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    max-width: var(--mobile-product-block-width);
    margin: 0 auto 16px;
  }

  .product-title-group {
    gap: 8px;
    width: 100%;
    flex-wrap: nowrap;
  }

  .product-title {
    font-size: 12px;
    line-height: 1.25;
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-title-group .product-more {
    flex: 0 0 auto;
    flex-shrink: 0;
    font-size: 9px;
    padding-bottom: 0;
    line-height: 1.2;
  }

  .product-title-group .search-bar {
    width: auto;
    flex: 0 0 105px;
    min-width: 0;
    margin-left: auto;
  }

  .product-title-group .search-bar-custom {
    width: 100%;
    max-width: 105px;
    height: 34px;
    border-radius: 8px;
    margin-left: auto;
  }

  .search-bar-custom .search-bar-submit {
    width: 36px;
    background-size: 14px 14px;
  }

  .search-bar input {
    flex: 1;
    width: auto;
    height: 34px;
    font-size: 12px;
  }

  .search-bar-custom .search-bar-field::placeholder,
  .search-bar input::placeholder {
    font-size: 10px;
  }

  .search-bar button {
    width: 36px;
    height: 34px;
  }

  /* Product grid: 2 columns aligned with header */
  .product-grid {
    width: 100%;
    max-width: var(--mobile-product-block-width);
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 36px;
    justify-content: stretch;
    box-sizing: border-box;
  }

  .product-card {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    border-radius: 14px;
    padding: 0;
    justify-self: stretch;
  }

  .product-card-image {
    height: auto;
    aspect-ratio: 250 / 213;
    border-radius: 0 0 14px 14px;
    border: none;
    box-shadow: none;
  }

  .product-card-img {
    padding: 0;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
  }

  .product-card-body {
    height: auto;
    min-height: 58px;
    padding: 0 40px 10px 8px;
    transform: translateY(-4px);
  }

  .product-category {
    font-size: 10px;
    margin-bottom: 4px;
    line-height: 1.35;
  }

  .product-model { font-size: 14px; }

  .product-card-btn {
    height: 28px;
    min-width: 54px;
    padding: 0 10px 0 14px;
    border-radius: 0 14px 0 14px;
    right: 1px;
    bottom: 6px;
  }

  .product-card-btn-arrows { font-size: 15px; letter-spacing: 1.5px; }

  body[data-page-title="page.index"] .feature-section {
    margin: 28px 0 0;
  }

  body[data-page-title="page.index"] .feature-section .container {
    padding-left: 0;
    padding-right: 0;
  }

  .feature-section { margin: 28px 0 40px; }

  .feature-banner .img-placeholder {
    width: 100%;
    height: 52vw;
    max-height: 260px;
    border-radius: 0;
  }

  body[data-page-title="page.index"] .feature-banner-img {
    width: 100%;
    height: auto;
    border-radius: 0;
  }

  .feature-banner-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  /* Category bar: 5 items fit in one row, full labels visible */
  .category-bar { padding: 12px 0; }

  .category-bar-inner {
    max-width: 100%;
    justify-content: space-between;
    gap: 6px;
    padding: 0 16px;
    overflow: visible;
  }

  .category-item {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    gap: 8px;
  }

  .category-item img {
    width: 52px;
    height: 52px;
    object-fit: contain;
  }

  .category-item span {
    font-size: 9px;
    line-height: 1.35;
    white-space: pre-line;
    word-break: normal;
    hyphens: none;
    overflow: visible;
    display: block;
  }

  .about-btn {
    height: 34px;
    min-width: 52px;
    padding: 0 14px;
    font-size: 13px;
    letter-spacing: 1px;
  }

  /* About page: text left, smaller image right */
  .profile-section { padding: 12px 0 100px; }

  .profile-title {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .profile-top {
    width: 100%;
    max-width: var(--mobile-product-block-width, 330px);
    margin: 0 auto;
  }

  .profile-body {
    width: 100%;
    min-width: 0;
  }

  .profile-body p {
    font-size: 16px !important;
    line-height: 1.75 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-align: left !important;
  }

  .profile-body p + p {
    margin-top: 20px;
  }

  .profile-image {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px;
    aspect-ratio: 1196 / 793;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
  }

  .profile-building-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1196 / 793;
    max-width: none;
    margin-left: 0;
    object-fit: cover;
    object-position: center center;
  }

  .about-gallery {
    margin-top: 32px;
    max-width: var(--mobile-product-block-width, 330px);
  }

  /* Contact: image full row, text below — same size as gallery */
  .contact-section { padding: 12px 0 100px; }

  .contact-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    max-width: var(--mobile-product-block-width, 330px);
    margin: 0 auto;
  }

  .contact-image {
    width: 100%;
    max-width: 100%;
    flex: none;
    order: 0;
    align-self: stretch;
    aspect-ratio: 1196 / 793;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
  }

  .contact-building-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1196 / 793;
    max-width: none;
    margin-left: 0;
    object-fit: cover;
    object-position: center center;
  }

  .contact-info {
    flex: none;
    width: 100%;
    min-width: 0;
    order: 1;
    font-size: 16px !important;
    line-height: 1.75 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-align: left !important;
  }

  .contact-block + .contact-block { margin-top: 20px; }

  /* Certificate: 2 columns, more space */
  .cert-section { padding: 48px 0; }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .cert-grid .img-placeholder {
    height: 140px;
    border-radius: 8px;
  }

  /* Product detail: compact top, keep 2-column layout */
  body[data-page-title="page.detail"] .page-hero,
  body[data-page-title="page.detail"] .page-hero + .red-line {
    display: none;
  }

  body[data-page-title="page.detail"] .category-bar {
    padding: 10px 0;
  }

  .detail-title-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .detail-title-left { gap: 10px; }

  .detail-model-name {
    font-size: 20px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .detail-title-inner .search-bar {
    width: auto;
    flex: 0 0 105px;
    min-width: 0;
    margin-left: auto;
  }

  .detail-title-inner .search-bar-custom {
    width: 100%;
    max-width: 105px;
    height: 34px;
    margin-left: auto;
  }

  .detail-title-inner .search-bar input {
    width: auto;
    flex: 1;
    height: 34px;
  }

  /* Product detail: same 2-column layout as desktop */
  body[data-page-title="page.detail"] .detail-main-grid.container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .detail-main {
    padding: 16px 0 24px;
  }

  .detail-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .detail-left { gap: 10px; }

  .detail-panel-head {
    padding: 10px 12px;
    font-size: 11px;
    letter-spacing: 0;
  }

  .detail-panel-body { padding: 10px; }

  .detail-product-photo .img-placeholder {
    min-height: 0;
  }

  .detail-product-photo .img-placeholder.has-photo {
    padding: 6px;
  }

  .detail-product-img {
    max-height: none;
    width: 100%;
  }

  .detail-diagram {
    column-gap: 8px;
    row-gap: 8px;
  }

  .detail-diagram > div:first-child {
    font-size: 11px;
  }

  .detail-diagram .img-placeholder {
    min-height: 100px;
    max-height: 160px;
  }

  .detail-dimensions .img-placeholder {
    min-height: 120px;
    max-height: none;
    flex: 1;
  }

  .detail-wiring-list {
    font-size: 10px;
    line-height: 1.9;
  }

  .detail-wiring-list span {
    min-width: 0;
    display: block;
  }

  .detail-content {
    padding: 16px 0 24px;
  }

  .detail-params { padding-bottom: 24px; }

  .params-table { font-size: 13px; }

  .params-table th,
  .params-table td { padding: 10px 12px; }

  .detail-related { padding-bottom: 64px; }

  /* Footer — mobile: compact layout with background */
  .footer-shell {
    aspect-ratio: auto;
    min-height: auto;
    max-height: none;
    width: 100%;
    height: auto;
    padding: 10px 12px 8px;
    overflow: hidden;
  }

  .footer-bg-img {
    display: block;
    object-fit: cover;
    object-position: center top;
  }

  .footer-inner {
    width: 100%;
    max-width: 100%;
    height: auto;
    gap: 6px;
    justify-content: flex-start;
  }

  .footer-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 8px;
    width: 100%;
    min-height: 0;
  }

  .footer-logo {
    margin: 0 auto;
  }

  .footer-logo-img {
    height: 18px;
    max-width: 160px;
  }

  .footer-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    max-width: 52%;
    min-height: 0;
  }

  .footer-auth-wrap {
    height: auto;
    max-width: 100%;
  }

  .footer-auth-user {
    gap: 6px;
    height: auto;
    max-width: 100%;
  }

  .footer-welcome {
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 88px;
    line-height: 1.2;
  }

  .footer-username {
    margin-left: 2px;
  }

  .footer-logout {
    min-width: 44px;
    height: 16px;
    padding: 0 8px;
    font-size: 11px;
    border-radius: 6px;
  }

  .footer-login {
    min-width: 64px;
    height: 16px;
    padding: 0 12px;
    font-size: 11px;
    border-radius: 6px;
  }

  .footer-bottom {
    padding: 0;
    width: 100%;
  }

  .footer-company {
    font-size: 11px;
    margin-bottom: 2px;
    line-height: 1.3;
  }

  .footer-email {
    font-size: 10px;
    line-height: 1.3;
  }

  .back-top {
    bottom: 24px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  /* Very small phones: keep compact 2-column layout */
  @media (max-width: 420px) {
    :root {
      --mobile-product-block-width: 310px;
      --mobile-section-padding: 20px;
    }

    .product-section .container,
    .about-section .container {
      padding-left: var(--mobile-section-padding);
      padding-right: var(--mobile-section-padding);
    }

    .product-grid {
      gap: 20px 30px;
    }

    .product-card-body {
      min-height: 54px;
      padding: 0 36px 9px 6px;
      transform: translateY(-4px);
    }

    .product-model { font-size: 13px; }
  }
}

@media (min-width: 769px) {
  .product-title-group .product-more {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 400;
    padding-bottom: 2px;
  }

  .product-grid {
    grid-template-columns: repeat(4, 250px);
    column-gap: 55px;
    row-gap: 55px;
    width: calc(250px * 4 + 55px * 3);
    max-width: 100%;
    margin: 0 auto;
  }

  .product-card {
    width: 250px;
    max-width: 250px;
    height: 308px;
    min-height: 308px;
  }

  .product-card-image {
    height: 203px;
  }

  .product-card-body {
    height: 105px;
  }
}
