.yl-compare-wrap {
  padding: 1.3rem 0 2.8rem;
}

.yl-compare-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.yl-compare-hero-main,
.yl-compare-action-card,
.yl-compare-empty,
.yl-compare-table-wrap {
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, .12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 24px 48px rgba(15, 23, 42, .08);
}

.yl-compare-hero-main {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}

.yl-compare-hero-main::before {
  content: "";
  position: absolute;
  inset: auto -15% -55% auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(14, 165, 233, .18) 0%, rgba(14, 165, 233, 0) 70%);
  animation: ylCompareFloat 7s ease-in-out infinite;
  pointer-events: none;
}

.yl-compare-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .78rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, .06);
  color: #0f4c81;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.yl-compare-title {
  position: relative;
  z-index: 1;
  margin: .95rem 0 .55rem;
  color: #0f172a;
  font-size: clamp(1.85rem, 2.8vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -.03em;
}

.yl-compare-description {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.yl-compare-stat-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1.35rem;
}

.yl-compare-stat-card {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(203, 213, 225, .72);
}

.yl-compare-stat-label {
  display: block;
  color: #64748b;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.yl-compare-stat-value {
  display: block;
  margin-top: .3rem;
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 800;
}

.yl-compare-hero-side {
  display: flex;
}

.yl-compare-action-card {
  width: 100%;
  padding: 1.2rem;
}

.yl-compare-action-head {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
}

.yl-compare-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #0ea5e9 100%);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 16px 30px rgba(14, 165, 233, .28);
}

.yl-compare-action-subtitle {
  margin-top: .15rem;
  color: #64748b;
  font-size: .92rem;
}

.yl-compare-action-list {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.yl-compare-action-list .btn {
  flex: 1 1 140px;
  min-height: 42px;
  border-radius: 14px;
  font-weight: 700;
}

.yl-compare-empty {
  padding: 2.4rem 1.4rem;
  text-align: center;
}

.yl-compare-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  margin-bottom: 1rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(14, 165, 233, .78));
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 20px 36px rgba(15, 23, 42, .18);
}

.yl-compare-empty-title {
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 800;
}

.yl-compare-empty-text {
  max-width: 560px;
  margin: .75rem auto 1.2rem;
  color: #475569;
}

.yl-compare-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.yl-compare-table {
  margin: 0;
  border-color: #dce6f2;
}

.yl-compare-mobile-list {
  display: none;
}

.yl-compare-mobile-toolbar {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.yl-compare-mobile-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.yl-compare-mobile-nav[disabled] {
  opacity: .45;
  box-shadow: none;
}

.yl-compare-mobile-dots {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.yl-compare-mobile-dots::-webkit-scrollbar {
  display: none;
}

.yl-compare-mobile-dot {
  flex: 0 0 auto;
  min-height: 40px;
  padding: .52rem .92rem;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}

.yl-compare-mobile-dot.is-active {
  border-color: rgba(14, 165, 233, .3);
  background: linear-gradient(135deg, #0f172a 0%, #0ea5e9 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(14, 165, 233, .18);
}

.yl-compare-mobile-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: .95rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.yl-compare-mobile-track::-webkit-scrollbar {
  display: none;
}

.yl-compare-mobile-group {
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 24px;
  padding: .95rem;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, .10), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 24px 48px rgba(15, 23, 42, .08);
  scroll-snap-align: start;
}

.yl-compare-mobile-head-grid,
.yl-compare-mobile-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.yl-compare-mobile-head-grid {
  margin-bottom: .9rem;
}

.yl-compare-mobile-head-item {
  min-width: 0;
}

.yl-compare-mobile-head-item .yl-compare-card {
  height: 100%;
}

.yl-compare-mobile-placeholder {
  min-height: 100%;
}

.yl-compare-product-head--placeholder {
  background: linear-gradient(180deg, #fcfdff 0%, #f5f9ff 100%);
}

.yl-compare-slot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  width: 100%;
  min-height: 100%;
  padding: 1.35rem 1rem;
  border: 1px dashed rgba(148, 163, 184, .72);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, .08), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(244,249,255,.96) 100%);
  color: #64748b;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.yl-compare-slot-card:hover,
.yl-compare-slot-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, .4);
  box-shadow: 0 18px 34px rgba(14, 165, 233, .14);
}

.yl-compare-slot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f172a 0%, #0ea5e9 100%);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 18px 30px rgba(14, 165, 233, .22);
}

.yl-compare-slot-title {
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}

.yl-compare-slot-text {
  max-width: 220px;
  color: #64748b;
  font-size: .92rem;
  line-height: 1.55;
}

.yl-compare-mobile-specs {
  display: grid;
  gap: .8rem;
}

.yl-compare-mobile-spec {
  overflow: hidden;
  border: 1px solid #dce6f2;
  border-radius: 18px;
  background: #fff;
}

.yl-compare-mobile-label {
  padding: .9rem 1rem;
  background: linear-gradient(180deg, #f4f7fb 0%, #edf3fa 100%);
  color: #1e293b;
  font-weight: 800;
}

.yl-compare-mobile-value {
  min-width: 0;
  padding: .95rem .78rem;
  border-top: 1px solid #e2e8f0;
  color: #334155;
  text-align: center;
  line-height: 1.55;
  word-break: break-word;
}

.yl-compare-mobile-value + .yl-compare-mobile-value {
  border-left: 1px solid #e2e8f0;
}

.yl-compare-mobile-value--empty {
  color: #94a3b8;
}

body.yl-compare-drawer-open {
  overflow: hidden;
}

.yl-compare-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
  z-index: 3050;
}

.yl-compare-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.yl-compare-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(430px, 100vw);
  height: 100vh;
  background: #f8fafc;
  box-shadow: -18px 0 48px rgba(15, 23, 42, .18);
  transform: translateX(104%);
  transition: transform .34s cubic-bezier(.22, 1, .36, 1);
  z-index: 3060;
  display: flex;
  flex-direction: column;
}

.yl-compare-drawer.is-open {
  transform: translateX(0);
}

.yl-compare-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.2rem 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid rgba(148, 163, 184, .24);
}

.yl-compare-drawer__eyebrow {
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0f7b47;
  margin-bottom: .35rem;
}

.yl-compare-drawer__title {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a;
}

.yl-compare-drawer__subtitle {
  margin-top: .35rem;
  font-size: .9rem;
  color: #475569;
}

.yl-compare-drawer__close {
  border: 0;
  background: #fff;
  color: #0f172a;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.yl-compare-drawer__status {
  margin: .9rem 1.2rem 0;
  border-radius: 16px;
  padding: .85rem 1rem;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.45;
}

.yl-compare-drawer__status.is-success {
  background: rgba(15, 123, 71, .1);
  color: #0f7b47;
  border: 1px solid rgba(15, 123, 71, .16);
}

.yl-compare-drawer__status.is-error {
  background: rgba(220, 38, 38, .08);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, .12);
}

.yl-compare-drawer__body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 1rem 1.2rem 1.3rem;
}

.yl-compare-drawer__section + .yl-compare-drawer__section {
  margin-top: 1rem;
}

.yl-compare-drawer__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .8rem;
}

.yl-compare-drawer__section-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}

.yl-compare-drawer__count {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: #e2f7ea;
  color: #0f7b47;
  font-size: .82rem;
  font-weight: 700;
}

.yl-compare-drawer__category {
  font-size: .82rem;
  font-weight: 700;
  color: #64748b;
}

.yl-compare-drawer__list {
  display: grid;
  gap: .8rem;
}

.yl-compare-drawer__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: center;
  padding: .85rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .95);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.yl-compare-drawer__item.is-current {
  border-color: rgba(15, 123, 71, .28);
  box-shadow: 0 12px 30px rgba(15, 123, 71, .08);
}

.yl-compare-drawer__thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #94a3b8;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
}

.yl-compare-drawer__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.yl-compare-drawer__item-main {
  min-width: 0;
}

.yl-compare-drawer__item-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #0f172a;
  font-size: .97rem;
  line-height: 1.35;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: .28rem;
}

.yl-compare-drawer__item-name:hover {
  color: #0f7b47;
}

.yl-compare-drawer__item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .55rem;
  font-size: .82rem;
  color: #64748b;
}

.yl-compare-drawer__item-pill {
  display: inline-flex;
  align-items: center;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

.yl-compare-drawer__item-action {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(15, 123, 71, .16);
  background: #f0fdf4;
  color: #0f7b47;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.yl-compare-drawer__item-action.is-remove {
  background: #fff5f5;
  color: #dc2626;
  border-color: rgba(220, 38, 38, .14);
}

.yl-compare-drawer__item-action:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.yl-compare-drawer__search {
  position: relative;
  margin-bottom: .8rem;
}

.yl-compare-drawer__search i {
  position: absolute;
  top: 50%;
  left: .9rem;
  transform: translateY(-50%);
  color: #94a3b8;
}

.yl-compare-drawer__search input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, .95);
  background: #fff;
  padding: .8rem 1rem .8rem 2.6rem;
  font-size: .93rem;
  color: #0f172a;
  outline: none;
}

.yl-compare-drawer__search input:focus {
  border-color: rgba(15, 123, 71, .35);
  box-shadow: 0 0 0 4px rgba(15, 123, 71, .08);
}

.yl-compare-drawer__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: .95rem;
}

.yl-compare-drawer__empty {
  padding: 1rem;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, .48);
  background: rgba(255, 255, 255, .75);
  color: #475569;
  text-align: center;
  font-size: .92rem;
  line-height: 1.5;
}

.yl-compare-drawer__empty strong {
  color: #0f172a;
}

.yl-compare-table th,
.yl-compare-table td {
  padding: 1rem .95rem;
  vertical-align: middle;
  min-width: 235px;
}

.yl-compare-table th:not(.yl-compare-label-col),
.yl-compare-table td:not(.yl-compare-label-col) {
  text-align: center;
}

.yl-compare-label-col {
  min-width: 205px;
  width: 205px;
  position: sticky;
  left: 0;
  z-index: 2;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
  color: #1e293b;
  font-weight: 800;
}

.yl-compare-head .yl-compare-label-col {
  z-index: 4;
}

.yl-compare-label-col--intro {
  text-align: center;
}

.yl-compare-intro-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
}

.yl-compare-intro-ring,
.yl-compare-intro-core {
  position: absolute;
  border-radius: 999px;
}

.yl-compare-intro-ring {
  inset: 0;
  border: 1px solid rgba(14, 165, 233, .22);
  animation: ylComparePulse 2.8s ease-in-out infinite;
}

.yl-compare-intro-core {
  inset: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #0ea5e9 100%);
  color: #fff;
  font-size: 1.45rem;
  box-shadow: 0 18px 32px rgba(14, 165, 233, .24);
}

.yl-compare-product-head {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  position: relative;
}

.yl-compare-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  padding: 1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,251,255,.96) 100%);
  border: 1px solid rgba(219, 230, 244, .92);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
  overflow: hidden;
}

.yl-compare-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 0 solid transparent;
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}

.yl-compare-product-head:hover .yl-compare-card,
.yl-compare-product-head:focus-within .yl-compare-card {
  transform: translateY(-6px);
  box-shadow: 0 22px 36px rgba(15, 23, 42, .12);
  border-color: rgba(14, 165, 233, .25);
}

.yl-compare-product-head:hover .yl-compare-card::before,
.yl-compare-product-head:focus-within .yl-compare-card::before {
  opacity: 1;
  border-width: 2px;
  border-color: rgba(14, 165, 233, .18);
}

.yl-compare-product-head.is-best-price .yl-compare-card {
  border: 4px solid #1a9b5d;
  box-shadow: 0 20px 40px rgba(26, 155, 93, .18);
}

.yl-compare-product-head.is-best-price .yl-compare-card::before {
  inset: -10px;
  border: 3px solid rgba(26, 155, 93, .22);
  opacity: 1;
  animation: ylCompareBestPulse 2.15s ease-out infinite;
}

.yl-compare-product-head.is-best-price .yl-compare-price-now {
  color: #0f8f52;
}

.yl-compare-product-head.is-best-price:hover .yl-compare-card,
.yl-compare-product-head.is-best-price:focus-within .yl-compare-card {
  transform: translateY(-7px) scale(1.01);
  box-shadow: 0 26px 48px rgba(26, 155, 93, .2);
}

.yl-compare-badge-row {
  min-height: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
}

.yl-compare-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: .34rem .7rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .01em;
  overflow: visible;
}

.yl-compare-badge--sale {
  background: rgba(22, 163, 74, .12);
  color: #15803d;
}

.yl-compare-badge--info {
  background: rgba(14, 165, 233, .12);
  color: #0369a1;
}

.yl-compare-badge--accent {
  background: rgba(79, 70, 229, .12);
  color: #4f46e5;
}

.yl-compare-badge--fx {
  background: rgba(234, 88, 12, .12);
  color: #c2410c;
}

.yl-compare-badge--best {
  min-height: 46px;
  padding: .58rem 1.08rem .54rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, .98), rgba(255, 255, 255, .58) 18%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 78% 120%, rgba(6, 95, 70, .22), rgba(6, 95, 70, 0) 48%),
    linear-gradient(180deg, #f6fff9 0%, #d9ffe6 36%, #98efbb 68%, #62d795 100%);
  border: 1px solid rgba(20, 138, 76, .32);
  color: #0b6a3b;
  letter-spacing: .015em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .68);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .88),
    inset 0 -3px 8px rgba(13, 148, 82, .18),
    0 12px 24px rgba(22, 163, 74, .18),
    0 0 0 1px rgba(255, 255, 255, .54);
  animation: ylCompareBestBadgePulse 2.35s ease-in-out infinite;
  isolation: isolate;
  backdrop-filter: blur(8px);
}

.yl-compare-badge--best::before,
.yl-compare-badge--best::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  pointer-events: none;
}

.yl-compare-badge--best::before {
  inset: -7px;
  border: 1px solid rgba(144, 255, 193, .72);
  box-shadow:
    0 0 0 3px rgba(145, 255, 199, .1),
    0 0 24px rgba(89, 242, 145, .4);
  opacity: .78;
  animation: ylCompareBestBadgeRing 2.35s ease-out infinite;
}

.yl-compare-badge--best::after {
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0) 8%, rgba(255, 255, 255, .78) 34%, rgba(255, 255, 255, 0) 56%),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 22%);
  mix-blend-mode: screen;
  opacity: .9;
  animation: ylCompareBestBadgeShine 3s linear infinite;
}

.yl-compare-product-head.is-best-price .yl-compare-badge--best {
  transform-origin: center;
}

.yl-compare-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 220px;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid #dbe6f4;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  overflow: hidden;
}

.yl-compare-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .32s ease;
}

.yl-compare-thumb:hover img {
  transform: translateY(-4px) scale(1.02);
}

.yl-compare-thumb-empty {
  color: #94a3b8;
  font-weight: 700;
}

.yl-compare-name {
  width: 100%;
  min-height: 3.2em;
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.35;
}

.yl-compare-price-stack {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.yl-compare-price-now {
  color: #0f7b47;
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1.1;
}

.yl-compare-price-old {
  color: #94a3b8;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: line-through;
}

.yl-compare-meta-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
}

.yl-compare-quick-add {
  min-width: 164px;
  margin-top: .15rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #178b57 0%, #0f6b47 100%);
  border-color: #178b57;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 14px 24px rgba(23, 139, 87, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease, box-shadow .22s ease;
}

.yl-compare-quick-add:hover,
.yl-compare-quick-add:focus-visible {
  background: linear-gradient(135deg, #1aa264 0%, #11744d 100%);
  border-color: #1aa264;
  box-shadow: 0 18px 30px rgba(23, 139, 87, .28);
}

.yl-compare-quick-add[disabled] {
  opacity: .88;
  visibility: visible;
  transform: none;
  box-shadow: none;
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  border-color: #94a3b8;
}

.yl-compare-product-head:hover .yl-compare-quick-add,
.yl-compare-product-head:focus-within .yl-compare-quick-add,
.yl-compare-product-head.is-best-price .yl-compare-quick-add,
.yl-compare-quick-add.is-added {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.yl-compare-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #dbe5f0;
  color: #334155;
  font-size: .8rem;
  font-weight: 700;
}

.yl-compare-chip--in {
  background: rgba(22, 163, 74, .08);
  border-color: rgba(22, 163, 74, .18);
  color: #15803d;
}

.yl-compare-chip--mid {
  background: rgba(59, 130, 246, .08);
  border-color: rgba(59, 130, 246, .18);
  color: #2563eb;
}

.yl-compare-chip--low {
  background: rgba(234, 88, 12, .1);
  border-color: rgba(234, 88, 12, .18);
  color: #c2410c;
}

.yl-compare-chip--out {
  background: rgba(239, 68, 68, .1);
  border-color: rgba(239, 68, 68, .18);
  color: #b91c1c;
}

.js-yl-compare-remove,
#ylCompareClearBtn,
.yl-compare-quick-add {
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.js-yl-compare-remove,
#ylCompareClearBtn {
  border-radius: 14px;
}

.js-yl-compare-remove:hover,
#ylCompareClearBtn:hover,
.yl-compare-quick-add.is-added {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .1);
}

.js-yl-compare-remove.is-loading,
#ylCompareClearBtn.is-loading,
.yl-compare-quick-add.is-loading {
  opacity: .72;
  pointer-events: none;
}

@keyframes ylComparePulse {
  0%, 100% {
    transform: scale(1);
    opacity: .65;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes ylCompareFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-18px, -20px, 0);
  }
}

@keyframes ylCompareBestPulse {
  0% {
    transform: scale(.98);
    opacity: .78;
  }
  70% {
    transform: scale(1.06);
    opacity: 0;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

@keyframes ylCompareBestBadgePulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow:
      inset 0 2px 1px rgba(255, 255, 255, .88),
      inset 0 -3px 8px rgba(13, 148, 82, .18),
      0 12px 24px rgba(22, 163, 74, .18),
      0 0 0 1px rgba(255, 255, 255, .54);
  }
  50% {
    transform: translateY(-1px) scale(1.055);
    box-shadow:
      inset 0 2px 1px rgba(255, 255, 255, .95),
      inset 0 -4px 10px rgba(13, 148, 82, .22),
      0 16px 30px rgba(22, 163, 74, .24),
      0 0 26px rgba(124, 255, 182, .36);
  }
}

@keyframes ylCompareBestBadgeRing {
  0% {
    transform: scale(.94);
    opacity: .78;
  }
  70% {
    transform: scale(1.16);
    opacity: 0;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

@keyframes ylCompareBestBadgeShine {
  0% {
    transform: translateX(-145%);
    opacity: 0;
  }
  14% {
    opacity: .28;
  }
  40% {
    transform: translateX(138%);
    opacity: .92;
  }
  100% {
    transform: translateX(138%);
    opacity: 0;
  }
}

@media (max-width: 1199.98px) {
  .yl-compare-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .yl-compare-wrap {
    padding-top: 1rem;
  }

  .yl-compare-stat-grid {
    grid-template-columns: 1fr;
  }

  .yl-compare-label-col {
    min-width: 150px;
    width: 150px;
  }

  .yl-compare-table th,
  .yl-compare-table td {
    min-width: 210px;
    padding: .9rem .8rem;
  }

  .yl-compare-quick-add {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (max-width: 575.98px) {
  .yl-compare-hero-main,
  .yl-compare-action-card,
  .yl-compare-empty,
  .yl-compare-mobile-group {
    padding: 1.1rem;
    border-radius: 20px;
  }

  .yl-compare-title {
    font-size: 1.7rem;
  }

  .yl-compare-name {
    font-size: 1.05rem;
  }

  .yl-compare-thumb {
    height: 180px;
  }

  .yl-compare-label-col {
    min-width: 132px;
    width: 132px;
    font-size: .88rem;
  }

  .yl-compare-table th,
  .yl-compare-table td {
    min-width: 190px;
  }

  .yl-compare-slot-card {
    padding: 1rem .85rem;
    border-radius: 20px;
  }

  .yl-compare-slot-icon {
    width: 60px;
    height: 60px;
  }

  .yl-compare-slot-title {
    font-size: .98rem;
  }

  .yl-compare-slot-text {
    font-size: .86rem;
  }

  .yl-compare-drawer {
    width: 100vw;
  }

  .yl-compare-drawer__header,
  .yl-compare-drawer__body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .yl-compare-drawer__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .yl-compare-table-desktop {
    display: none;
  }

  .yl-compare-mobile-list {
    display: grid;
    gap: 1rem;
  }

  .yl-compare-mobile-toolbar {
    gap: .55rem;
  }

  .yl-compare-mobile-track {
    gap: .75rem;
  }

  .yl-compare-mobile-head-grid,
  .yl-compare-mobile-values {
    gap: .6rem;
  }

  .yl-compare-mobile-head-item .yl-compare-card {
    padding: .85rem;
    border-radius: 20px;
  }

  .yl-compare-mobile-head-item .yl-compare-thumb {
    height: 138px;
    padding: .75rem;
    border-radius: 18px;
  }

  .yl-compare-mobile-head-item .yl-compare-name {
    min-height: 3.5em;
    font-size: .94rem;
  }

  .yl-compare-mobile-head-item .yl-compare-price-now {
    font-size: 1.12rem;
  }

  .yl-compare-mobile-head-item .yl-compare-price-old {
    font-size: .82rem;
  }

  .yl-compare-mobile-head-item .yl-compare-chip,
  .yl-compare-mobile-head-item .yl-compare-badge {
    font-size: .72rem;
  }

  .yl-compare-mobile-head-item .yl-compare-quick-add,
  .yl-compare-mobile-head-item .js-yl-compare-remove {
    width: 100%;
    min-width: 0;
  }
}
