#product-compare { width: 100%; max-width: 1600px; padding: 0 20px 40px; color: #171b2a; }
.compare-hero { display: flex; align-items: center; gap: 16px; padding: 28px; margin-bottom: 24px; border-radius: 16px; background: linear-gradient(115deg, #f7f9fc 55%, #ffe7ed); }
#product-compare .compare-hero h1 { margin: 0; font-size: clamp(24px, 2.3vw, 34px); font-weight: 700; color: #171b2a; }
.compare-count { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 18px; background: #fff; color: #ff2674; font-weight: 700; }
.compare-scroll { width: 100%; overflow-x: auto; border: 1px solid #e7eaf1; border-radius: 14px; background: #fff; box-shadow: 0 4px 28px #26335308; }
#product-compare .compare-table { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 13px; line-height: 1.65; }
#product-compare .compare-table tr > td, #product-compare .compare-table tr > th { padding: 18px 20px; border: 0; border-bottom: 1px solid #e7eaf1; border-right: 1px solid #e7eaf1; vertical-align: top; }
#product-compare .compare-table tr > :last-child { border-right: 0; }
#product-compare .compare-table tbody tr > td { min-width: 220px; max-width: 320px; overflow-wrap: anywhere; }
#product-compare .compare-table tbody tr > th { position: sticky; left: 0; z-index: 1; min-width: 170px; width: 170px; background: #f7f9fc; color: #455069; font-weight: 600; }
#product-compare .compare-table thead th { background: #eff4ff; color: #171b2a; font-size: 15px; text-align: start; }
#product-compare .compare-name a { color: #171b2a; font-size: 15px; }
#product-compare .compare-name a:hover { color: #0054f4; }
#product-compare .img-thumbnail { width: 160px; height: 160px; object-fit: contain; padding: 0; border: 0; border-radius: 8px; background: #fff; }
#product-compare .compare-price strong { display: block; color: #171b2a; font-size: 23px; font-weight: 700; }
#product-compare .compare-price strong.is-sale { color: #ff126b; }
#product-compare .compare-price del { color: #8991a0; font-size: 12px; }
#product-compare .compare-stock { color: #008657; }
#product-compare .compare-stock .stock-unavailable { color: #be5c79; }
#product-compare .rating { color: #ff9b00; }
#product-compare .rating .fa-stack { width: 16px; height: 18px; line-height: 18px; font-size: 8px; }
#product-compare .description { color: #646b7c; }
#product-compare .btn { min-height: 44px; padding: 12px 18px; border-radius: 9px; font-weight: 600; white-space: normal; }
#product-compare .btn-primary { background: #0054f4; color: #fff; }
#product-compare .btn-primary:hover { background: #003bd5; }
#product-compare .btn-primary:disabled { background: #edf0f5; color: #8991a0; opacity: 1; }
#product-compare .btn-danger { background: #fff0f3; color: #c52b53; }
#product-compare .btn-danger:hover { background: #ffe0e8; }
#product-compare .btn-default { background: #0054f4; color: #fff; }
#product-compare .compare-actions td { border-bottom: 0; }
#product-compare .alert { border-radius: 10px; }
.compare-empty { padding: 48px 24px; border: 1px solid #e7eaf1; border-radius: 16px; text-align: center; background: #fafbfe; }
.compare-empty > .fa { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; background: #fff0f3; color: #ff2674; font-size: 26px; }
.compare-empty p { margin: 0; color: #646b7c; line-height: 1.7; }
#product-compare .buttons { margin-top: 20px; }
#product-compare a:focus-visible, #product-compare input:focus-visible, .compare-scroll:focus-visible { outline: 2px solid #ff4b80; outline-offset: 2px; }
@media (max-width: 767px) {
  #product-compare { padding: 0 12px 24px; }
  .compare-hero { padding: 20px 16px; gap: 12px; margin-bottom: 18px; }
  #product-compare .compare-table tr > td, #product-compare .compare-table tr > th { padding: 14px 12px; }
  #product-compare .compare-table tbody tr > th { min-width: 110px; width: 110px; font-size: 12px; }
  #product-compare .compare-table tbody tr > td { min-width: 190px; }
  #product-compare .img-thumbnail { width: 130px; height: 130px; }
}
