.home-result-compare {
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
  border: 1px solid rgba(107, 47, 73, .28);
  border-radius: 11px;
  background: #fff;
  color: #6b2f49;
  font: 800 .75rem/1 Montserrat, Arial, sans-serif;
  cursor: pointer;
}
.home-result-compare.is-selected { background: #f3dfe6; border-color: #6b2f49; }
.cpb-compare-bar {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 980;
  width: min(940px, calc(100% - 40px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(231, 200, 149, .55);
  border-radius: 19px;
  background: #4c1d33;
  color: #fff;
  box-shadow: 0 22px 70px rgba(31, 9, 19, .36);
  transform: translateY(150%);
  transition: transform .24s ease;
}
.cpb-compare-bar.is-visible { transform: translateY(0); }
.cpb-compare-bar__summary { min-width: 0; }
.cpb-compare-bar__summary strong { display: block; font-size: .88rem; }
.cpb-compare-bar__names { overflow: hidden; color: rgba(255,255,255,.7); font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.cpb-compare-bar button {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px;
  padding: 0 15px;
  background: transparent;
  color: #fff;
  font: 800 .76rem/1 Montserrat, Arial, sans-serif;
  cursor: pointer;
}
.cpb-compare-bar__open { background: #fff !important; color: #4c1d33 !important; }
.cpb-compare-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  padding: 24px;
  background: rgba(24, 8, 15, .72);
  overflow: auto;
}
.cpb-compare-overlay.is-open { display: block; }
.cpb-compare-dialog {
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 25px;
  background: #fffdf9;
  box-shadow: 0 30px 100px rgba(0,0,0,.3);
}
.cpb-compare-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid #ead6c3;
}
.cpb-compare-dialog__header h2 { margin: 0; color: #4c1d33; font: 700 1.8rem/1.1 Georgia, serif; }
.cpb-compare-dialog__close { width: 42px; height: 42px; border: 1px solid #ead6c3; border-radius: 50%; background: #fff; color: #4c1d33; font-size: 24px; cursor: pointer; }
.cpb-compare-analysis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; padding: 18px 24px; background: #fff7ef; }
.cpb-compare-analysis article { padding: 14px; border: 1px solid #ead6c3; border-radius: 14px; background: #fff; }
.cpb-compare-analysis span { display: block; color: #8a6c5e; font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.cpb-compare-analysis strong { color: #4c1d33; font-size: .86rem; }
.cpb-compare-scroll { overflow-x: auto; }
.cpb-compare-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.cpb-compare-table th,
.cpb-compare-table td { min-width: 210px; padding: 15px; border-right: 1px solid #ead6c3; border-bottom: 1px solid #ead6c3; vertical-align: top; text-align: left; }
.cpb-compare-table th:first-child,
.cpb-compare-table td:first-child { position: sticky; left: 0; z-index: 2; min-width: 145px; background: #fff7ef; color: #4c1d33; font-size: .75rem; font-weight: 900; }
.cpb-compare-product { text-align: center; }
.cpb-compare-product img { width: 110px; height: 100px; object-fit: contain; }
.cpb-compare-product strong { display: block; margin-top: 8px; color: #271d1b; }
.cpb-compare-price { color: #6b2f49; font: 800 1.3rem/1 Georgia, serif; }
.cpb-compare-review { display: grid; gap: 3px; color: #6f625d; font-size: .75rem; }
.cpb-compare-review strong { color: #6b2f49; font-size: 1rem; }
.cpb-compare-offers { display: grid; gap: 6px; }
.cpb-compare-offers a { display: flex; justify-content: space-between; gap: 9px; padding: 8px; border: 1px solid #ead6c3; border-radius: 9px; color: #6b2f49; font-size: .72rem; font-weight: 800; text-decoration: none; }
.cpb-compare-remove { margin-top: 10px; border: 0; background: transparent; color: #8a5b6d; font-size: .7rem; text-decoration: underline; cursor: pointer; }
body.cpb-compare-open { overflow: hidden; }
body.cpb-has-compare-bar { padding-bottom: 105px; }
@media (max-width: 980px) {
  .cpb-compare-analysis { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  body.cpb-has-compare-bar { padding-bottom: 145px; }
  .cpb-compare-bar { right: 10px; bottom: 76px; left: 10px; width: calc(100% - 20px); grid-template-columns: minmax(0,.7fr) minmax(145px,1fr); gap: 8px; padding: 8px 9px; border-radius: 16px; }
  .cpb-compare-bar__summary strong { overflow: hidden; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
  .cpb-compare-bar__names { display: none; }
  .cpb-compare-bar button { min-height: 40px; padding: 0 10px; font-size: .68rem; }
  .cpb-compare-bar__clear { display: none; }
  .cpb-compare-overlay { padding: 10px; }
  .cpb-compare-dialog__header { padding: 16px; }
  .cpb-compare-dialog__header h2 { font-size: 1.35rem; }
  .cpb-compare-analysis { grid-template-columns: 1fr; padding: 13px; }
  .cpb-compare-table th, .cpb-compare-table td { min-width: 185px; padding: 12px; }
  .cpb-compare-table th:first-child, .cpb-compare-table td:first-child { min-width: 110px; }
}
