/* rebuild-r5 logos */
/* Header + footer brand logos (wordmarks, not product photos) */
.header-content .logo img,
.header-mobile .logo img {
  max-height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
}
.footer-content-left .logo img,
.footer-content .intro-wrap .logo img {
  max-height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 0.75rem;
}

/* Keep homepage module images aligned like demo.beikeshop.com (~1920×800) */
.module-img-text-slideshow-2 {
  border-radius: 16px;
  overflow: hidden;
}
.module-img-text-slideshow-2 .swiper,
.module-img-text-slideshow-2 .swiper-wrapper,
.module-img-text-slideshow-2 .swiper-slide {
  height: auto !important;
}
.module-img-text-slideshow-2 .image-wrap,
.module-img-text-slideshow .image-wrap {
  aspect-ratio: 1920 / 800 !important;
  width: 100%;
  overflow: hidden;
  transform: none !important;
  background: #111;
}
.module-img-text-slideshow-2 .swiper-slide-active .image-wrap,
.module-img-text-slideshow .swiper-slide-active .image-wrap {
  transform: none !important;
}
.module-img-text-slideshow-2 .image-wrap img,
.module-img-text-slideshow .image-wrap img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center;
  display: block;
}

.module-icons .image-item {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 132px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 10px;
  background: #f3f4f2;
}
.module-icons .image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.module-page .image,
.module-page .page-item .image {
  aspect-ratio: 800 / 560;
  overflow: hidden;
  background: #f5f5f5;
}
.module-page .image img,
.module-page .page-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.module-img-text-banner-multiple .image-wrap,
.module-image-402 .image-wrap,
.module-image-403 .image-wrap {
  overflow: hidden;
}
.module-img-text-banner-multiple .image-wrap img,
.module-image-402 .image-wrap img,
.module-image-403 .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-wrap .image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f5f5;
}
.product-wrap .image img,
.product-wrap .image .img-fluid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.module-brand .image,
.module-brand img {
  aspect-ratio: 300 / 158;
  object-fit: cover;
  width: 100%;
}

.page-product .product-image img,
.page-product .swiper-slide img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  background: #f7f7f5;
}

.page-content .page-cover img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.dual-store-article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}
.dual-store-article h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}
.dual-store-article ul,
.dual-store-article ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.dual-store-key-specs h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.dual-store-key-specs table {
  width: 100%;
  max-width: 520px;
}
.dual-store-key-specs th {
  width: 40%;
  background: #f7f7f5;
  font-weight: 600;
}
.dual-store-shipping-note,
.dual-store-care-note {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid #2c4a3e;
  background: #f4f7f5;
}
.page-product .product-variables .variable-value.is-image img {
  border-radius: 4px;
  border: 1px solid #ddd;
}
.page-product .product-variables .variable-value.active.is-image img,
.page-product .product-variables .variable-value.active {
  outline: 2px solid #2c4a3e;
}

/* Admin: text brand instead of upstream logo image */
.header-content .logo .admin-brand-text,
.header-mobile .logo .admin-brand-text {
  display: inline-block;
  padding: 0.35rem 0.25rem;
  color: inherit;
  font-size: 1.05rem;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Admin store switcher — sits in header-right, not the 190px logo column */
.header-wrap .store-switcher {
  flex-shrink: 0;
  margin-left: 16px;
  margin-right: 8px;
}

.header-wrap .store-switcher-toggle {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.header-wrap .store-switcher-toggle:hover,
.header-wrap .store-switcher-toggle:focus {
  background: #f1f5f9;
  color: #0f172a;
}

.header-wrap .store-switcher-name {
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.header-wrap .store-switcher .dropdown-menu {
  min-width: 200px;
  z-index: 1100;
}

.header-wrap .store-switcher .dropdown-item.active {
  background: #e8f1ff;
  color: #0f172a;
}

html[data-bs-theme="dark"] .header-wrap .store-switcher-toggle {
  background: #1f2937;
  border-color: #374151;
  color: #e5e7eb;
}

.header-mobile .store-switcher-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}
