/* === Compare Button & Dropdown === */
.woo-comp-wrap { margin: 10px 0; }
.woo-comp-btn {
    background: #000;
    color: #C9B98A;
    border: none;
    border-radius: 4px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 15px;
    margin-top: 6px;
    transition: background 0.2s, color 0.2s;
    width: 100%;
}
.woo-comp-btn.added,
.woo-comp-btn:hover {
    background: #C9B98A;
    color: #000;
}
.woo-comp-variation { width: 100%; margin-bottom: 6px; }

/* === Remove Button === */
.woo-comp-remove {
    background: transparent;
    color: #000;
    border: 1px solid #000;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 22px;
    font-weight: bold;
    line-height: 33px;
    margin-left: 8px;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    padding: 0;
}
.woo-comp-remove:hover {
    background: #000;
    color: #fff;
    border-color: #C9B98A;
}
.woo-comp-remove:focus { outline: none; }

/* === Buy Me Button === */
.woo-comp-buyme-btn {
    font-weight: bold;
    background: #C9B98A;
    color: #000;
    padding: 7px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
    transition: background 0.2s, color 0.2s;
    font-size: 16px;
}
.woo-comp-buyme-btn:hover {
    background: #000;
    color: #C9B98A;
}

/* === Card Layout === */
.woo-compare-card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  margin: 24px 0;
  padding-bottom: 8px;
  width: 100%;
  overflow: visible !important;
}
.woo-compare-card {
  background: #fff;
  border: 2px solid #C9B98A;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  flex: 1 1 0px;
  min-width: 260px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-bottom: 18px;
  margin: 0;
}
.woo-compare-card .product-title {
  background: #C9B98A;
  color: #000;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 16px 10px 10px 10px;
  border-radius: 16px 16px 0 0;
  text-align: center;
}
.woo-compare-card .product-image {
  display: flex;
  justify-content: center;
  padding: 18px 0 8px 0;
}
.woo-compare-card .product-image img {
  max-width: 120px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
}
.woo-compare-card .product-price {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  background: #faf9f7;
  padding: 12px 0;
}
.woo-compare-card .product-stock {
  text-align: center;
  padding: 8px 0;
}
.woo-compare-card .product-desc {
  font-size: 15px;
  color: #444;
  padding: 0 18px 12px 18px;
  min-height: 80px;
}
.woo-compare-card .product-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 0 0;
}
.woo-compare-card .instock {
    color: #000;
    background: none;
    font-weight: bold;
    display: inline;
}
.woo-compare-card .outstock {
    color: #ff1100;
    border-radius: 8px;
    padding: 3px 8px;
    font-weight: bold;
    display: inline-block;
    background: none;
}

/* Responsive: On small screens, stack cards vertically */
@media (max-width: 900px) {
  .woo-compare-card-container {
    flex-direction: column;
    gap: 32px;
    align-items: center;
    justify-content: flex-start;
  }
  .woo-compare-card {
    max-width: 98vw;
    min-width: 0;
    width: 98vw;
  }
}

/* === Modal styles (unchanged) === */
#woo-compare-modal-max, #woo-compare-modal-min {
    position: fixed; left: 0; top: 0; right: 0; bottom: 0;
    display: none; z-index: 99999;
}
.woo-compare-modal-bg {
    position: fixed; left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(40,40,40,0.65);
    z-index: 99998;
}
.woo-compare-modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 400px;
    margin: 80px auto 0;
    padding: 32px 24px 18px;
    position: relative;
    z-index: 99999;
    box-shadow: 0 4px 32px rgba(0,0,0,0.13);
    text-align: center;
}
.woo-compare-modal-icon { margin-bottom: 16px; }
.woo-compare-modal-message {
    font-size: 1.35rem;
    color: #444;
    margin-bottom: 24px;
    font-family: inherit;
}
.woo-compare-modal-btn {
    background: #555;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s;
}
.woo-compare-modal-btn:hover {
    background: #E57373;
}
