:root {
  --lyc-page: #f6f7f9;
  --lyc-surface: #ffffff;
  --lyc-surface-subtle: #f8f9fb;
  --lyc-text: #20242a;
  --lyc-heading: #15181d;
  --lyc-muted: #6f7682;
  --lyc-faint: #979eaa;
  --lyc-line: #e3e6ea;
  --lyc-line-strong: #d5d9df;
  --lyc-primary: #24649b;
  --lyc-primary-hover: #1b527f;
  --lyc-primary-soft: #edf4f9;
  --lyc-price: #b5472f;
  --lyc-success: #2f7652;
  --lyc-success-soft: #edf7f1;
  --lyc-warning: #9a6418;
  --lyc-warning-soft: #fbf5e8;
  --lyc-danger: #a33a3a;
  --lyc-shadow: 0 8px 22px rgba(28, 35, 45, .05);
}

.luyun-cart-elegant,
.luyun-cart-elegant * {
  box-sizing: border-box;
}

.luyun-cart-elegant {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 24px 40px;
  color: var(--lyc-text);
}

.lyc-mobile-shell {
  min-height: 56px;
  margin-bottom: 16px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--lyc-surface);
  border-bottom: 1px solid var(--lyc-line);
}

.lyc-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lyc-heading) !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 700;
}

.lyc-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}

.lyc-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lyc-icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #525a66 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.lyc-icon-btn:hover {
  background: var(--lyc-surface-subtle);
}

.lyc-icon-btn i {
  font-size: 21px;
}

.lyc-cart-shortcut {
  color: var(--lyc-primary) !important;
}

.lyc-page-intro {
  min-height: 104px;
  margin-bottom: 16px;
  padding: 18px 4px 20px;
  border-bottom: 1px solid var(--lyc-line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.lyc-page-copy {
  min-width: 0;
}

.lyc-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--lyc-primary);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.lyc-page-copy h1 {
  margin: 0;
  color: var(--lyc-heading);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
}

.lyc-page-copy p {
  margin: 7px 0 0;
  color: var(--lyc-muted);
  font-size: 14px;
  line-height: 1.6;
}

.lyc-order-steps {
  width: min(510px, 44%);
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.lyc-order-steps li {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--lyc-faint);
  font-size: 13px;
}

.lyc-order-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 34px;
  right: 12px;
  height: 1px;
  background: var(--lyc-line-strong);
}

.lyc-order-steps span {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  border: 1px solid var(--lyc-line-strong);
  border-radius: 50%;
  background: var(--lyc-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
}

.lyc-order-steps strong {
  position: relative;
  z-index: 1;
  padding-right: 8px;
  background: var(--lyc-page);
  font-weight: 600;
  white-space: nowrap;
}

.lyc-order-steps .is-current {
  color: var(--lyc-primary);
}

.lyc-order-steps .is-current span {
  border-color: var(--lyc-primary);
  background: var(--lyc-primary);
  color: #fff;
}

.lyc-filter {
  margin-bottom: 20px;
  border: 1px solid var(--lyc-line);
  border-radius: 8px;
  background: var(--lyc-surface);
  overflow: hidden;
}

.lyc-filter-head {
  min-height: 60px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--lyc-line);
}

.lyc-filter-head strong {
  display: block;
  color: var(--lyc-heading);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.lyc-filter-head span {
  display: block;
  margin-top: 2px;
  color: var(--lyc-muted);
  font-size: 12px;
  line-height: 1.45;
}

.lyc-filter-cart,
.lyc-mini-cart {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--lyc-line-strong);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--lyc-surface);
  color: #404751 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.lyc-filter-cart:hover,
.lyc-mini-cart:hover {
  border-color: #aeb8c3;
  background: var(--lyc-surface-subtle);
  color: var(--lyc-primary) !important;
}

.lyc-filter-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  border-top: 1px solid var(--lyc-line);
}

.lyc-filter-row:nth-child(2) {
  border-top: 0;
}

.lyc-filter-label {
  min-height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--lyc-surface-subtle);
  border-right: 1px solid var(--lyc-line);
  color: #525965;
  font-size: 13px;
  font-weight: 600;
}

.lyc-filter-label i {
  color: #747c87;
  font-size: 17px;
}

.lyc-filter-options {
  min-width: 0;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.lyc-filter-item a {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4d5560;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.lyc-filter-item a:hover {
  background: var(--lyc-primary-soft);
  color: var(--lyc-primary) !important;
}

.lyc-filter-item.active a {
  border-color: #cadce9;
  background: var(--lyc-primary-soft);
  color: var(--lyc-primary) !important;
  font-weight: 700;
}

.lyc-products {
  border: 1px solid var(--lyc-line);
  border-radius: 8px;
  background: var(--lyc-surface);
  overflow: hidden;
  box-shadow: var(--lyc-shadow);
}

.lyc-products-head {
  min-height: 68px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--lyc-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lyc-products-head h2 {
  margin: 0;
  color: var(--lyc-heading);
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
}

.lyc-products-head p {
  margin: 4px 0 0;
  color: var(--lyc-muted);
  font-size: 12px;
  line-height: 1.5;
}

.lyc-products-body {
  padding: 0;
}

.lyc-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.lyc-product-card {
  position: relative;
  min-height: 142px;
  padding: 20px;
  border-bottom: 1px solid var(--lyc-line);
  background: var(--lyc-surface);
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 250px 152px;
  gap: 24px;
  align-items: center;
  transition: background 160ms ease;
}

.lyc-product-card:last-child {
  border-bottom: 0;
}

.lyc-product-card:hover {
  background: #fcfcfd;
}

.lyc-product-card.is-soldout {
  background: #fafafa;
}

.lyc-product-main {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.lyc-product-symbol {
  width: 44px;
  height: 44px;
  border: 1px solid #dce3e8;
  border-radius: 8px;
  background: #f2f5f7;
  color: #526b7e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.lyc-product-symbol i {
  font-size: 23px;
}

.lyc-product-content {
  min-width: 0;
}

.lyc-product-content h3 {
  margin: 0;
  color: var(--lyc-heading);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  word-break: break-word;
}

.lyc-product-desc {
  max-width: 660px;
  margin-top: 6px;
  color: var(--lyc-muted);
  font-size: 13px;
  line-height: 1.65;
  word-break: break-word;
}

.lyc-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.lyc-chip {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
}

.lyc-chip i {
  font-size: 14px;
}

.lyc-chip.green {
  background: var(--lyc-success-soft);
  color: var(--lyc-success);
}

.lyc-chip.gray {
  background: #f0f1f3;
  color: #747b85;
}

.lyc-chip.orange {
  background: var(--lyc-warning-soft);
  color: var(--lyc-warning);
}

.lyc-price-panel {
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--lyc-line);
}

.lyc-price-label {
  margin-bottom: 5px;
  color: var(--lyc-muted);
  font-size: 12px;
  font-weight: 500;
}

.lyc-price {
  color: var(--lyc-price);
  font-size: 27px;
  line-height: 1.15;
  font-weight: 700;
}

.lyc-price small {
  margin-left: 4px;
  color: var(--lyc-muted);
  font-size: 12px;
  font-weight: 500;
}

.lyc-original,
.lyc-trial {
  margin-top: 6px;
  color: var(--lyc-muted);
  font-size: 12px;
  line-height: 1.5;
}

.lyc-original span {
  text-decoration: line-through;
}

.lyc-card-footer {
  min-width: 0;
}

.lyc-buy-btn {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--lyc-primary);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff !important;
  background: var(--lyc-primary);
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.lyc-buy-btn:hover {
  border-color: var(--lyc-primary-hover);
  background: var(--lyc-primary-hover);
  transform: translateY(-1px);
}

.lyc-buy-btn.disabled {
  cursor: not-allowed;
  border-color: #dfe2e6;
  background: #eceef0;
  color: #858b94 !important;
  transform: none;
}

.lyc-soldout-img {
  position: absolute;
  right: 188px;
  top: 16px;
  width: 54px;
  z-index: 2;
  opacity: .72;
}

.lyc-empty {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}

.lyc-empty i {
  display: block;
  color: #b9bec6;
  font-size: 46px;
  margin-bottom: 12px;
}

.lyc-empty strong {
  display: block;
  color: var(--lyc-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.lyc-empty span {
  color: var(--lyc-muted);
  font-size: 13px;
  line-height: 1.6;
}

.lyc-pagination {
  padding: 16px;
  border-top: 1px solid var(--lyc-line);
  display: flex;
  justify-content: center;
}

.lyc-pagination .pagination {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .lyc-mobile-shell {
    display: none;
  }
}

@media (max-width: 1199.98px) {
  .lyc-product-card {
    grid-template-columns: minmax(280px, 1fr) 220px 132px;
    gap: 18px;
  }

  .lyc-order-steps {
    width: min(460px, 48%);
  }
}

@media (max-width: 991.98px) {
  .luyun-cart-elegant {
    padding: 12px 16px 32px;
  }

  .lyc-page-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .lyc-order-steps {
    width: 100%;
    max-width: 560px;
  }

  .lyc-order-steps strong {
    background: var(--lyc-page);
  }

  .lyc-product-card {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .lyc-card-footer {
    grid-column: 2;
  }

  .lyc-price-panel {
    grid-column: 2;
    grid-row: 1;
  }

  .lyc-product-main {
    grid-row: 1 / span 2;
  }

  .lyc-soldout-img {
    right: 246px;
  }
}

@media (max-width: 767.98px) {
  .luyun-cart-elegant {
    padding: 0 12px 28px;
  }

  .lyc-mobile-shell {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 -12px 12px;
  }

  .lyc-page-intro {
    min-height: 0;
    padding: 12px 0 18px;
  }

  .lyc-page-copy h1 {
    font-size: 24px;
  }

  .lyc-page-copy p {
    font-size: 13px;
  }

  .lyc-order-steps {
    overflow: hidden;
  }

  .lyc-order-steps li {
    gap: 6px;
    font-size: 12px;
  }

  .lyc-order-steps li:not(:last-child)::after {
    left: 28px;
    right: 6px;
    top: 13px;
  }

  .lyc-order-steps span {
    width: 26px;
    height: 26px;
  }

  .lyc-order-steps strong {
    padding-right: 5px;
  }

  .lyc-filter,
  .lyc-products {
    border-radius: 6px;
    box-shadow: none;
  }

  .lyc-filter-head,
  .lyc-products-head {
    padding: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .lyc-filter-cart,
  .lyc-mini-cart {
    width: 100%;
  }

  .lyc-filter-row {
    grid-template-columns: 1fr;
  }

  .lyc-filter-label {
    min-height: 40px;
    border-right: 0;
    border-bottom: 1px solid var(--lyc-line);
  }

  .lyc-filter-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .lyc-filter-options::-webkit-scrollbar {
    display: none;
  }

  .lyc-filter-item {
    flex: 0 0 auto;
  }

  .lyc-product-card {
    min-height: 0;
    padding: 16px;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .lyc-product-main,
  .lyc-price-panel,
  .lyc-card-footer {
    grid-column: 1;
    grid-row: auto;
  }

  .lyc-price-panel {
    padding: 14px 0 0;
    border-top: 1px solid var(--lyc-line);
    border-left: 0;
  }

  .lyc-card-footer {
    width: 100%;
  }

  .lyc-soldout-img {
    right: 14px;
    top: 14px;
  }
}

@media (max-width: 479.98px) {
  .lyc-order-steps strong {
    font-size: 11px;
  }

  .lyc-product-symbol {
    width: 40px;
    height: 40px;
  }

  .lyc-product-content h3 {
    padding-right: 34px;
  }
}
