:root {
  --fe-ecom-ink: #121826;
  --fe-ecom-muted: #667085;
  --fe-ecom-line: rgba(18, 24, 38, 0.1);
  --fe-ecom-brand: #0f766e;
  --fe-ecom-accent: #f97316;
  --fe-ecom-soft: #f6f8fb;
  --fe-ecom-card: #ffffff;
  --fe-business-ink: #111827;
  --fe-business-muted: #5f6b7a;
  --fe-business-line: rgba(17, 24, 39, 0.12);
}

.fe-theme-ecommerce {
  color: var(--fe-ecom-ink);
  background: linear-gradient(180deg, #f7faf9 0%, #ffffff 46%, #f7f8fb 100%);
}

.fe-theme-ecommerce .fe-portal-bg {
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0) 360px),
    linear-gradient(90deg, rgba(249, 115, 22, 0.07), rgba(15, 118, 110, 0.05));
}

.fe-theme-ecommerce .fe-shell {
  width: min(1480px, calc(100% - 48px));
}

.fe-ecom-topline {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #121826;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
}

.fe-ecom-topline__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fe-ecom-topline__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.fe-ecom-topline a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.fe-ecom-header-main {
  border-color: var(--fe-ecom-line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(18, 24, 38, 0.08);
}

.fe-ecom-brand {
  max-width: 330px;
  gap: 12px;
}

.fe-ecom-brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--fe-ecom-brand), #14b8a6);
  color: #ffffff;
  font-weight: 800;
}

.fe-theme-ecommerce .fe-brand__text strong {
  color: var(--fe-ecom-ink);
}

.fe-theme-ecommerce .fe-brand__text small,
.fe-theme-ecommerce .fe-eyebrow,
.fe-theme-ecommerce .fe-process-card span {
  color: var(--fe-ecom-brand);
}

.fe-theme-ecommerce .fe-eyebrow::before {
  background: linear-gradient(90deg, var(--fe-ecom-brand), rgba(15, 118, 110, 0));
}

.fe-theme-ecommerce .fe-site-nav a.is-active,
.fe-theme-ecommerce .fe-site-nav a:hover {
  color: var(--fe-ecom-brand);
}

.fe-theme-ecommerce .fe-site-nav a.is-active::after,
.fe-theme-ecommerce .fe-site-nav a:hover::after {
  background: linear-gradient(90deg, var(--fe-ecom-brand), rgba(15, 118, 110, 0.18));
}

.fe-theme-ecommerce .fe-btn--primary,
.fe-theme-ecommerce .fe-price-card__action {
  background: linear-gradient(135deg, var(--fe-ecom-brand), #14b8a6);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.fe-theme-ecommerce .fe-btn--outline {
  background: #ffffff;
  border-color: rgba(15, 118, 110, 0.24);
  color: var(--fe-ecom-brand);
}

.fe-theme-ecommerce .fe-btn--ghost {
  color: var(--fe-ecom-ink);
  background: rgba(246, 248, 251, 0.9);
}

.fe-ecom-hero {
  min-height: min(700px, calc(100vh - 132px));
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.78fr);
  align-items: center;
  gap: 44px;
  padding: 56px;
  overflow: hidden;
  border: 1px solid var(--fe-ecom-line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 251, 0.94) 55%, rgba(15, 118, 110, 0.1) 100%);
  box-shadow: 0 22px 58px rgba(18, 24, 38, 0.1);
}

.fe-ecom-hero__copy {
  max-width: 760px;
}

.fe-ecom-hero h1 {
  margin: 0 0 18px;
  color: var(--fe-ecom-ink);
  font-size: 4rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.fe-ecom-hero p,
.fe-ecom-featured p,
.fe-ecom-category-strip p,
.fe-ecom-catalog-hero p {
  color: var(--fe-ecom-muted);
}

.fe-ecom-hero__badges {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fe-ecom-hero__badges span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--fe-ecom-brand);
  font-weight: 700;
}

.fe-ecom-hero__visual {
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(18, 24, 38, 0.14);
}

.fe-ecom-hero__visual img,
.fe-ecom-product-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.fe-ecom-category-strip {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fe-ecom-category-strip article,
.fe-ecom-featured,
.fe-ecom-catalog-hero,
.fe-ecom-empty {
  border: 1px solid var(--fe-ecom-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(18, 24, 38, 0.06);
}

.fe-ecom-category-strip article {
  padding: 24px;
}

.fe-ecom-category-strip span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--fe-ecom-accent);
  font-weight: 800;
}

.fe-ecom-category-strip h2,
.fe-ecom-featured h2,
.fe-ecom-catalog-hero h1 {
  margin: 0 0 10px;
  letter-spacing: 0;
}

.fe-ecom-featured {
  margin-top: 22px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.fe-ecom-catalog-hero {
  margin-top: 28px;
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: center;
  gap: 24px;
}

.fe-ecom-catalog-hero h1 {
  font-size: 3rem;
  line-height: 1.1;
}

.fe-ecom-catalog-hero__meta {
  padding: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--fe-ecom-ink), #1f2937);
  color: rgba(255, 255, 255, 0.88);
}

.fe-ecom-catalog-hero__meta span,
.fe-ecom-catalog-hero__meta small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
}

.fe-ecom-catalog-hero__meta strong {
  display: block;
  margin: 6px 0;
  color: #ffffff;
  font-size: 2.2rem;
}

.fe-ecom-shop-form {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 420px);
}

.fe-ecom-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.fe-ecom-product-card {
  min-height: 100%;
  display: grid;
  grid-template-rows: 190px 1fr auto;
  overflow: hidden;
  padding: 0;
  border-color: var(--fe-ecom-line);
  background: var(--fe-ecom-card);
  box-shadow: 0 14px 32px rgba(18, 24, 38, 0.07);
}

.fe-ecom-product-card.is-selected {
  border-color: rgba(15, 118, 110, 0.38);
  box-shadow: 0 18px 38px rgba(15, 118, 110, 0.13);
}

.fe-ecom-product-card__media {
  position: relative;
  margin: 0;
  min-height: 190px;
  overflow: hidden;
  background: var(--fe-ecom-soft);
}

.fe-ecom-product-card__media span {
  position: absolute;
  left: 12px;
  top: 12px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(18, 24, 38, 0.82);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

.fe-ecom-product-card__body,
.fe-ecom-product-card__foot {
  padding: 18px;
}

.fe-ecom-product-card__foot {
  display: grid;
  gap: 14px;
}

.fe-theme-ecommerce .fe-card__price {
  color: var(--fe-ecom-brand);
}

.fe-theme-ecommerce .fe-card__orig {
  color: #98a2b3;
  text-decoration: line-through;
}

.fe-theme-ecommerce .fe-card__tag {
  border-color: rgba(15, 118, 110, 0.12);
  background: rgba(15, 118, 110, 0.06);
  color: var(--fe-ecom-brand);
}

.fe-theme-ecommerce .fe-price-card__controls {
  justify-content: space-between;
}

.fe-theme-ecommerce .fe-qty-btn {
  background: #ffffff;
}

.fe-ecom-cart-side {
  top: 132px;
}

.fe-ecom-cart-panel {
  border-color: rgba(15, 118, 110, 0.12);
}

.fe-ecom-empty {
  grid-column: 1 / -1;
  padding: 34px;
}

.fe-ecom-empty span {
  color: var(--fe-ecom-brand);
  font-weight: 800;
}

.fe-ecom-checkout-hero,
.fe-ecom-result-hero,
.fe-ecom-order-hero,
.fe-ecom-account-copy {
  padding: 34px;
  border: 1px solid var(--fe-ecom-line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 251, 0.9)),
    url("../images/frontend/themes/ecommerce/member-center.png") right bottom / cover no-repeat;
  box-shadow: 0 16px 38px rgba(18, 24, 38, 0.07);
}

.fe-ecom-checkout-panel,
.fe-ecom-result-panel,
.fe-ecom-order-panel,
.fe-ecom-auth-card,
.fe-ecom-orders-panel {
  border-color: var(--fe-ecom-line);
  box-shadow: 0 16px 38px rgba(18, 24, 38, 0.07);
}

.fe-ecommerce-auth-visual img,
.fe-ecom-member-visual img,
.fe-ecom-page-visual img {
  filter: saturate(1.02);
}

.fe-theme-business {
  --fe-business-bg-image: url("../images/frontend/themes/business/shanghu123.png");
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.34) 42%, rgba(236, 245, 255, 0.12)),
    var(--fe-business-bg-image) center / cover fixed no-repeat;
}

body.fe-theme-business {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.34) 42%, rgba(236, 245, 255, 0.12)),
    var(--fe-business-bg-image) center / cover fixed no-repeat !important;
}

.fe-business-body {
  min-height: 100vh;
  color: var(--fe-business-ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.34) 42%, rgba(236, 245, 255, 0.12)),
    var(--fe-business-bg-image) center / cover fixed no-repeat !important;
}

.fe-theme-business .fe-portal-bg {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18)),
    var(--fe-business-bg-image) center / cover fixed no-repeat;
  opacity: 1;
}

.fe-theme-business .fe-business-header,
.fe-theme-business .fe-business-shell,
.fe-theme-business .fe-business-footer,
.fe-theme-business .fe-customer-service-entry,
.fe-theme-business .fe-flash {
  position: relative;
  z-index: 1;
}

.fe-business-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--fe-business-line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.fe-business-header__inner,
.fe-business-footer__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.fe-business-brand {
  min-width: 0;
  max-width: 62%;
  overflow: hidden;
  color: var(--fe-business-ink);
  font-size: 1.12rem;
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fe-business-nav {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 18px;
}

.fe-business-nav a,
.fe-business-footer a {
  color: var(--fe-business-muted);
  text-decoration: none;
}

.fe-business-nav a:hover,
.fe-business-footer a:hover {
  color: var(--fe-business-ink);
}

.fe-business-nav__primary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.92);
  color: #ffffff !important;
}

.fe-business-shell {
  min-height: calc(100vh - 150px);
  display: grid;
  align-items: center;
  justify-items: center;
}

.fe-business-hero {
  min-height: min(720px, calc(100vh - 190px));
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 80px 0;
  text-align: center;
}

.fe-business-hero--compact {
  min-height: min(560px, calc(100vh - 190px));
}

.fe-business-hero__content {
  max-width: 940px;
  display: grid;
  justify-items: center;
}

.fe-business-hero__content h1 {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--fe-business-ink);
  font-size: 5rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.fe-business-hero__content p {
  margin: 24px 0 0;
  max-width: 48rem;
  color: var(--fe-business-muted);
  font-size: 1.18rem;
}

.fe-business-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #24527a;
  font-size: 0.88rem;
  font-weight: 800;
}

.fe-business-eyebrow::before,
.fe-business-eyebrow::after {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, rgba(36, 82, 122, 0), rgba(36, 82, 122, 0.42));
}

.fe-business-eyebrow::after {
  background: linear-gradient(90deg, rgba(36, 82, 122, 0.42), rgba(36, 82, 122, 0));
}

.fe-business-actions {
  justify-content: center;
}

.fe-theme-business .fe-btn--primary {
  background: #111827;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.18);
}

.fe-theme-business .fe-btn--outline {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(17, 24, 39, 0.18);
  color: var(--fe-business-ink);
}

.fe-business-footer {
  border-top: 1px solid var(--fe-business-line);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
}

.fe-business-footer__inner {
  min-height: 78px;
}

.fe-business-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.fe-theme-business .fe-customer-service-entry {
  background: rgba(17, 24, 39, 0.92);
  color: #ffffff;
}

@media (max-width: 720px) {
  .fe-theme-ecommerce {
    background: linear-gradient(180deg, #10203a 0, #10203a 150px, #f7f8fb 151px, #ffffff 100%);
  }

  .fe-theme-ecommerce .fe-shell {
    width: min(100%, calc(100% - 24px));
  }

  .fe-ecom-topline {
    display: none;
  }

  .fe-ecom-header-main {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(10, 24, 43, 0.78);
  }

  .fe-ecom-brand__mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 8px;
  }

  .fe-theme-ecommerce .fe-brand__text strong {
    color: #ffffff;
  }

  .fe-ecom-hero {
    grid-template-columns: 1fr;
    min-height: 540px;
    margin: -4px -12px 0;
    padding: 104px 22px 28px;
    border: 0;
    border-radius: 0 0 26px 26px;
    background:
      linear-gradient(180deg, rgba(8, 18, 34, 0.22), rgba(8, 18, 34, 0.88)),
      url("../images/frontend/themes/ecommerce/hero-store.png") center / cover no-repeat;
    color: #ffffff;
  }

  .fe-ecom-hero h1 {
    max-width: 10em;
    color: #ffffff;
    font-size: 2.25rem;
  }

  .fe-ecom-hero p,
  .fe-ecom-hero .fe-eyebrow {
    color: rgba(255, 255, 255, 0.82);
  }

  .fe-ecom-hero .fe-eyebrow::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0));
  }

  .fe-ecom-hero__visual {
    display: none;
  }

  .fe-ecom-hero__badges {
    gap: 8px;
  }

  .fe-ecom-hero__badges span {
    min-height: 32px;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
  }

  .fe-ecom-category-strip,
  .fe-ecom-catalog-hero,
  .fe-ecom-shop-form,
  .fe-ecom-product-grid {
    grid-template-columns: 1fr;
  }

  .fe-ecom-category-strip {
    gap: 10px;
  }

  .fe-ecom-category-strip article,
  .fe-ecom-featured,
  .fe-ecom-catalog-hero {
    border-radius: 16px;
  }

  .fe-ecom-featured {
    display: grid;
    padding: 20px;
  }

  .fe-ecom-catalog-hero {
    margin-top: 18px;
    padding: 22px;
    gap: 16px;
  }

  .fe-ecom-catalog-hero h1 {
    font-size: 2rem;
  }

  .fe-ecom-catalog-hero__meta {
    padding: 18px;
    border-radius: 14px;
  }

  .fe-ecom-product-panel,
  .fe-ecom-cart-panel {
    border-radius: 16px;
  }

  .fe-ecom-product-card {
    grid-template-rows: 160px 1fr auto;
    border-radius: 16px;
  }

  .fe-ecom-product-card__media {
    min-height: 160px;
  }

  .fe-ecom-product-card__body,
  .fe-ecom-product-card__foot {
    padding: 16px;
  }

  .fe-theme-ecommerce .fe-price-card__controls {
    width: 100%;
  }

  .fe-ecom-checkout-hero,
  .fe-ecom-result-hero,
  .fe-ecom-order-hero,
  .fe-ecom-account-copy {
    padding: 20px;
    border-radius: 16px;
  }

  .fe-business-body {
    padding-bottom: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34)),
      var(--fe-business-bg-image) center / cover scroll no-repeat !important;
  }

  .fe-theme-business .fe-portal-bg {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.28)),
      var(--fe-business-bg-image) center / cover scroll no-repeat;
  }

  .fe-business-header__inner,
  .fe-business-footer__inner {
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .fe-business-brand {
    max-width: 100%;
  }

  .fe-business-nav,
  .fe-business-footer nav {
    justify-content: flex-start;
  }

  .fe-business-shell {
    min-height: calc(100vh - 190px);
    padding-top: 0;
  }

  .fe-business-hero {
    min-height: calc(100vh - 220px);
    padding: 52px 0;
  }

  .fe-business-hero__content h1 {
    max-width: 10em;
    font-size: 2.9rem;
    line-height: 1.12;
  }

  .fe-business-hero__content p {
    max-width: 28rem;
    font-size: 1rem;
  }

  .fe-business-actions {
    width: 100%;
    max-width: 320px;
  }
}
