/* =========================================
   COMPARE PAGE STYLES
========================================= */
.compare-wrapper {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.compare-breadcrumb {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.compare-breadcrumb .active-badge {
  background: #00487a;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
}

.compare-table-container {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.compare-table th,
.compare-table td {
  padding: 15px;
  border: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  width: 25%;
  position: relative;
  background: #fff;
}

.compare-title-cell {
  background: #f9f9f9 !important;
}

.compare-product-cell {
  text-align: center !important;
  vertical-align: top !important;
}
.compare-product-cell > .cell-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 220px;
}

.compare-product-cell img {
  max-width: 150px;
  height: auto;
  margin: 0 auto 15px;
  display: block;
}

.btn-remove-compare {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 6px 16px;
  background: none;
  border: 1px solid #ff4d4f;
  border-radius: 6px;
  color: #ff4d4f;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  gap: 6px;
  align-self: center;
}
.btn-remove-compare:hover {
  background: #ff4d4f;
  color: #fff;
}

.pd-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pd-price-row {
  margin-bottom: 5px;
}

.pd-current-money {
  color: #d70018;
  font-weight: 700;
  font-size: 18px;
  display: block;
}

.pd-old-money {
  color: #999;
  text-decoration: line-through;
  font-size: 13px;
  display: block;
}

.pd-vat {
  font-size: 12px;
  color: #666;
}

.compare-add-cell {
  text-align: center !important;
  vertical-align: middle !important;
  background: #fcfcfc !important;
}
.compare-search-wrap {
  position: relative;
  max-width: 80%;
  margin: 0 auto;
}

.compare-search-wrap input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
  background: #f5f5f5;
}

.compare-suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
  z-index: 10;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  text-align: left;
}

.compare-suggest-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: 0.2s;
}
.compare-suggest-item:hover {
  background: #f9f9f9;
}
.compare-suggest-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 10px;
}
.cs-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cs-price {
  color: #d70018;
  font-size: 12px;
  font-weight: bold;
}

.spec-section-header td {
  background: #f1f1f1;
  font-size: 15px;
  padding: 12px 15px !important;
}

.spec-label {
  font-weight: 600;
  color: #555;
  background: #fafafa;
}

.spec-empty {
  background: #fcfcfc;
}

.btn-compare-add {
  display: inline-block;
  border: 1px solid #3498db;
  color: #3498db;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.3s;
  background: #fff;
  cursor: pointer;
}
.btn-compare-add:hover {
  background: #3498db;
  color: #fff;
  text-decoration: none;
}
