.home-single #works #works-system {
  background: #fff;
}

[data-home-theme="classic"] .home-single #works #works-system {
  background: #eeedfc;
}

.home-single #works-system .product-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-single #works-system .product-category-heading h3 small {
  font-size: 13px;
}

.home-single #works-system .core-system-card {
  --core-edge: #ff6b35;
  --core-tag: #a63810;
  --core-soft: #fff0e7;
  --core-gilt: inset 0 0 0 1px #fff4c8, inset 0 0 0 2px #d3a350b3;
  position: relative;
  overflow: visible;
  padding: 20px;
  gap: 9px;
  border: 2px solid var(--core-edge);
  border-radius: 16px;
  background: linear-gradient(149deg, #fff 35%, color-mix(in srgb, var(--core-soft) 42%, #fff));
  box-shadow: var(--core-gilt), 0 4px 0 color-mix(in srgb, var(--core-edge) 13%, transparent),
    0 13px 22px -16px #6b3c1670;
}

.home-single #works #works-system .core-system-card:hover {
  border-color: var(--core-edge);
  box-shadow: var(--core-gilt), 0 15px 25px -13px #6b3c1684;
}

.home-single #works-system [data-core-order="2"] {
  --core-edge: #ffb800;
  --core-tag: #7b4c00;
  --core-soft: #fff4d7;
}

.home-single #works-system [data-core-order="3"] {
  --core-edge: #19c659;
  --core-tag: #116636;
  --core-soft: #e6f8ed;
}

.home-single #works-system [data-core-order="4"] {
  --core-edge: #ed4057;
  --core-tag: #a42540;
  --core-soft: #fdeaf0;
}

.core-card-heading {
  display: flex;
  align-items: center;
  min-height: 32px;
}

.core-rank {
  flex: none;
  border-radius: 6px;
  padding: 5px 9px;
  background: var(--core-tag);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.core-badges {
  position: absolute;
  top: -6px;
  right: 5px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.core-badge {
  --badge-top: #fff9d7;
  --badge-base: #ffdf78;
  --badge-edge: #e5ad3d;
  --badge-coin: #ffc94a;
  --badge-ink: #684000;
  position: relative;
  transform: rotate(-2.5deg);
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 10px 3px 23px;
  border: 1px solid var(--badge-edge);
  border-radius: 999px;
  background: linear-gradient(155deg, #fffc, transparent 65%),
    linear-gradient(175deg, var(--badge-top), var(--badge-base));
  box-shadow: inset 0 1px #fff, 0 2px 0 color-mix(in srgb, var(--badge-edge) 65%, transparent),
    0 4px 7px #542c161c;
  color: var(--badge-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.core-badge:nth-child(2) {
  margin-inline-end: 4px;
  transform: rotate(1deg);
}

.core-badge:nth-child(3) { transform: rotate(-1deg); }

.core-badge[data-finish="silver"] {
  --badge-top: #f8fcff;
  --badge-base: #deebfd;
  --badge-edge: #a1b5d0;
  --badge-coin: #c6d7ed;
  --badge-ink: #314767;
}

.core-badge[data-finish="jade"] {
  --badge-top: #f1fff4;
  --badge-base: #b8f2ce;
  --badge-edge: #68c89b;
  --badge-coin: #66dca8;
  --badge-ink: #195339;
}

.core-badge[data-finish="ruby"] {
  --badge-top: #fff0e8;
  --badge-base: #ffbfb5;
  --badge-edge: #f48071;
  --badge-coin: #ff9480;
  --badge-ink: #822d29;
}

.core-badge-medallion {
  position: absolute;
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--badge-edge);
  border-radius: 50%;
  background: radial-gradient(circle at 33% 25%, var(--badge-top), var(--badge-coin) 68%);
  box-shadow: inset 0 0 0 2px var(--badge-top), 0 2px 3px #542c1630;
}

.core-badge-medallion::before {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--badge-ink);
  clip-path: polygon(50% 0, 65% 33%, 100% 38%, 74% 63%, 81% 100%, 50% 82%, 19% 100%, 26% 63%, 0 38%, 35% 33%);
  opacity: .8;
}

.home-single #works-system .core-system-card .product-preview {
  height: 120px;
  margin: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: 8px;
  background: #f5f2ee;
}

.core-system-card .product-preview img {
  display: block;
  object-fit: cover;
  object-position: center top;
}

.core-system-card[data-product="crm"] .product-preview img {
  object-position: center;
}

.core-system-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  color: #272421;
}

.core-system-card h3 a:hover {
  color: var(--core-tag);
}

.core-system-card .core-description {
  margin: 0 0 2px;
  color: #61554b;
  font-size: 13px;
  line-height: 1.55;
}

.home-single #works-system .core-system-card .product-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.home-single #works-system .core-system-card .product-actions a {
  min-height: 38px;
  padding: 6px 3px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  font-size: 12px;
}

.home-single #works-system .core-system-card .product-secondary {
  background: var(--home-soft, #f4eee6);
  color: var(--home-action, #a63810);
}

@media (max-width: 1100px) {
  .home-single #works-system .product-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .home-single #works-system .product-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-single #works-system .core-system-card {
    padding: 15px;
  }

  .core-badges { top: -4px; gap: 6px; }

  .home-single #works-system .core-system-card .product-preview {
    height: clamp(120px, 40vw, 180px);
  }
}
