.product-home {
  margin-top: 1.25rem;
  margin-bottom: 1rem;
}

.product-intro {
  margin-bottom: 2rem;
}

.product-category {
  margin-bottom: 3rem;
}

.product-category__header {
  align-items: baseline;
  border-bottom: 2px solid #eee;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
}

.product-category__header h2 {
  margin: 0;
}

.product-category__header span,
.product-card__meta,
.product-card__summary,
.product-category__empty {
  color: #777;
}

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

.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
  transform: translateY(-2px);
}

.product-card__link,
.product-card__link:hover {
  color: inherit;
  display: block;
  text-decoration: none;
}

.product-card__image {
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  width: 100%;
}

.product-card__body {
  align-items: flex-start;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  padding: 1rem;
}

.product-card__body h3 {
  font-size: 1.25rem;
  margin: 0;
}

.product-card__price {
  color: #FF5000;
  flex: 0 0 auto;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

.product-category-cards {
  display: grid;
  gap: clamp(18px, 1.8vw, 22px);
  grid-template-columns: repeat(4, minmax(190px, 220px));
  justify-content: center;
  margin: .75rem clamp(.5rem, 2vw, 1.5rem) 1rem;
}

.product-category-card,
.product-category-card:hover,
.product-category-card:focus {
  color: #25302a;
  display: block;
  min-height: 148px;
  perspective: 1000px;
  text-decoration: none;
}

.product-category-card__inner {
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(31, 49, 56, .11);
  display: block;
  height: 100%;
  min-height: 148px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease;
}

.product-category-card:hover .product-category-card__inner,
.product-category-card:focus .product-category-card__inner {
  box-shadow: 0 18px 40px rgba(31, 49, 56, .18);
  transform: rotateY(180deg) translateY(-3px);
}

.product-category-card__face {
  align-items: center;
  backface-visibility: hidden;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  overflow: hidden;
  padding: 22px 24px;
  position: absolute;
  text-align: center;
}

.product-category-card__face--front::after {
  background: rgba(255, 255, 255, .32);
  border-radius: 999px;
  content: "";
  height: 110px;
  position: absolute;
  right: -34px;
  top: -36px;
  width: 110px;
}

.product-category-card__face--back {
  background-position: center;
  background-size: cover;
  color: #fff;
  transform: rotateY(180deg);
}

.product-category-card__face--back::before {
  background: linear-gradient(180deg, rgba(24, 38, 43, .08), rgba(24, 38, 43, .45));
  content: "";
  inset: 0;
  position: absolute;
}

.product-category-card__icon {
  align-items: center;
  background: rgba(255, 255, 255, .6);
  border-radius: 18px;
  display: inline-flex;
  font-size: 1.55rem;
  height: 48px;
  justify-content: center;
  margin-bottom: .65rem;
  position: relative;
  width: 48px;
  z-index: 1;
}

.product-category-card__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .04em;
  position: relative;
  z-index: 1;
}

.product-category-card__count {
  font-size: 14px;
  margin-top: .35rem;
  opacity: .75;
  position: relative;
  z-index: 1;
}

.product-category-card__image-title {
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: .45rem 1.2rem;
  position: relative;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  z-index: 1;
}

.product-category-card--green .product-category-card__face--front {
  background: #9fca72;
}

.product-category-card--blue .product-category-card__face--front {
  background: #a9d8ee;
}

.product-category-card--yellow .product-category-card__face--front {
  background: #f3d978;
}

.product-category-card--slate .product-category-card__face--front {
  background: #8fa3ad;
  color: #f9fbfc;
}

.product-category-card--slate .product-category-card__icon {
  color: #32444d;
}

@media (max-width: 991px) {
  .product-category-cards {
    grid-template-columns: repeat(2, minmax(190px, 220px));
  }
}

@media (max-width: 575px) {
  .product-category-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

.product-list-page {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.product-list-title {
  margin: 0 0 1rem;
  text-align: center;
}

.product-list-header {
  border-bottom: 2px solid #eee;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  text-align: center;
}

.product-list-header__count {
  color: #777;
  margin: 0;
}

.product-card__body h2 {
  flex: 1 1 auto;
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 0;
}

@media (max-width: 991px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card__body h2 {
  font-size: 1.25rem;
  margin: 0;
}

.navbar-custom {
  min-height: 56px;
  padding-bottom: 8px;
  padding-top: 8px;
}

.navbar-custom .maishijie-navbar-layout {
  gap: .8rem;
}

.navbar-custom .navbar-collapse {
  order: 1;
}

.navbar-custom .navbar-controls {
  order: 2;
}

.navbar-custom .navbar-brand-image {
  align-items: center;
  display: inline-flex;
  margin-right: 0;
  order: 3;
  padding-bottom: 0;
  padding-top: 0;
}

.navbar-custom .navbar-brand-image img,
.home-title-image img {
  display: block;
  height: auto;
  max-width: 100%;
}

.navbar-custom .navbar-brand-image img {
  max-height: 36px;
  width: auto;
}

.home-title-image img {
  margin: 0 auto;
  max-height: 120px;
}

@media only screen and (max-width: 767px) {
  .navbar-custom .navbar-collapse {
    flex-basis: 100%;
    order: 4;
  }

  .navbar-custom .navbar-brand-image {
    margin-left: auto;
  }
}

.product-detail-page {
  margin-bottom: 3rem;
  margin-top: 2rem;
}

.product-detail__header {
  align-items: center;
  border-bottom: 2px solid #eee;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

.product-detail__header h1 {
  margin: 0;
}

.product-detail__content {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
}

.product-detail__image {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
  width: 100%;
}

@media (max-width: 767px) {
  .product-detail__content {
    grid-template-columns: 1fr;
  }
}

.navbar-custom .navbar-nav {
  align-items: center;
}

.navbar-custom .navbar-nav .nav-link {
  align-items: center;
  display: flex;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  min-height: 2.6rem;
}

.navbar-custom .navbar-nav .dropdown-toggle {
  gap: .3rem;
}

.navbar-custom .language-globe {
  align-items: center;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(35, 49, 58, .14);
  border-radius: 999px;
  color: #23313a;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.2rem;
  line-height: 1;
  justify-content: center;
  width: 2.2rem;
}

.navbar-custom .language-globe svg {
  display: block;
  height: 1.35rem;
  width: 1.35rem;
}

/* Compact home layout sizing aliases for current and future home templates. */
.home-hero {
  height: 26vh;
  max-height: 280px;
  min-height: 220px;
}

.home-hero__logo {
  height: auto;
  width: min(340px, 52vw);
}

.home-hero__company {
  font-size: clamp(15px, 1.25vw, 21px);
  font-weight: 500;
  margin-top: 12px;
}

.intro-header.big-img:has(.home-title-image) {
  align-items: center;
  display: flex;
  height: 26vh;
  justify-content: center;
  margin: 60px 0 0;
  max-height: 280px;
  min-height: 220px;
  overflow: hidden;
  position: relative;
  width: 100%;
  background-position: center 52%;
  background-repeat: no-repeat;
  background-size: cover;
}

.intro-header.big-img:has(.home-title-image)::before {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.76) 0%,
      rgba(255, 255, 255, 0.56) 28%,
      rgba(255, 255, 255, 0.46) 50%,
      rgba(255, 255, 255, 0.56) 72%,
      rgba(255, 255, 255, 0.76) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0.28) 45%,
      rgba(255, 255, 255, 0.82) 100%
    );
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.intro-header.big-img:has(.home-title-image) .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  position: static;
  width: 100%;
}

.intro-header.big-img:has(.home-title-image) .row {
  justify-content: center;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.intro-header.big-img:has(.home-title-image) .row > div {
  align-items: center;
  display: flex;
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  width: 100%;
}

.intro-header.big-img:has(.home-title-image) .row > div > div:has(.home-title-image) {
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  left: 50%;
  padding: 0;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100% - 32px));
  z-index: 2;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.intro-header.big-img:has(.home-title-image) .home-title-image {
  line-height: 0;
  margin: 0;
  text-align: center;
  width: 100%;
}

.intro-header.big-img:has(.home-title-image) .home-hero__content,
.intro-header.big-img:has(.home-title-image) .home-hero__logo,
.intro-header.big-img:has(.home-title-image) .home-hero__company {
  align-items: center;
  display: flex;
  justify-content: center;
  text-align: center;
}

.intro-header.big-img:has(.home-title-image) .home-title-image img {
  display: block;
  filter:
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.95))
    drop-shadow(0 8px 20px rgba(45, 70, 52, 0.18));
  height: auto;
  max-height: none;
  width: min(340px, 52vw);
}

.intro-header.big-img:has(.home-title-image) .row > div > div:has(.home-title-image) .page-subheading {
  display: none;
}

@media (max-width: 768px) {
  .intro-header.big-img:has(.home-title-image) {
    background-position: center center;
    height: 28vh;
    margin-top: 60px;
    min-height: 200px;
  }

  .intro-header.big-img:has(.home-title-image) .home-title-image img {
    width: min(300px, 72vw);
  }

}

.product-detail__gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.product-detail__thumb {
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
}

.product-detail__meta-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 24px;
}

.product-detail__meta-list div {
  background: #f8faf8;
  border: 1px solid #e6eee6;
  border-radius: 12px;
  padding: 12px 14px;
}

.product-detail__meta-list dt {
  color: #6d7a6d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.product-detail__meta-list dd {
  margin: 0;
}

.product-detail__section {
  margin-top: 24px;
}

.product-detail__section h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .product-detail__gallery,
  .product-detail__meta-list {
    grid-template-columns: 1fr;
  }
}
