/* === 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 (global) === */
.woo-comp-remove {
    background: transparent;
    color: #000;
    border: 1px solid #000;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 26px;
    font-weight: bold;
    line-height: 34px;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    padding: 0;
    /* Remove default margin-left to prevent shifting inside cards */
    margin-left: 0;
    position: absolute;
    top: 11px;
    left: 14px;
    z-index: 2;
}
.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: 8px;
  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;
  position: relative; /* Needed for absolute position of remove btn */
}
.woo-compare-card-header {
  position: relative;
}
.woo-compare-card .product-title {
  background: #C9B98A;
  color: #000;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 16px 10px 10px 48px; /* left padding for remove btn space */
  border-radius: 8px 8px 0 0;
  text-align: left;
  min-height: 45px;
  display: flex;
  align-items: 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 === */
#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;
}

/* Remove icon inside .woo-compare-card (top right) */
.woo-compare-card .woo-comp-remove {
    position: absolute;
    top: 14px;              /* Increased top spacing */
    right: 14px;            /* Increased right spacing */
    margin: 0;
    width: 28px;            /* Smaller size */
    height: 28px;
    font-size: 16px;        /* Smaller icon */
    line-height: 26px;
    border-radius: 50%;
    padding: 0;
    border: 1px solid #000;
    background: transparent;
    color: #000;
    font-weight: 600;
    z-index: 2;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.woo-compare-card .woo-comp-remove:hover {
    background: #000;
    color: #fff;
    border-color: #C9B98A;
}
.woo-compare-card .woo-comp-remove:focus {
    outline: none;
}

.product-action-icons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  justify-content: flex-start;
}

/* Style both compare and heart buttons as circles */
.product-action-icons button,
.product-action-icons a {
  background: #C9B98A;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff !important;
  transition: background 0.3s, color 0.3s;
  padding: 0;
  text-decoration: none !important;
}

.product-action-icons button:hover,
.product-action-icons a:hover {
  background: #000;
  color: #fff !important;
}

/* Adjust compare button specific style if needed */
.product-action-icons button.compare-btn-circle {
  font-weight: bold;
  font-size: 24px;
  line-height: 1;
}

/* Adjust heart icon size inside shopping list button */
.product-action-icons .shopping-list-button i {
  font-size: 18px;
}

/* Compare "+" button styles */
.woo-comp-btn {
  font-size: 24px !important;
  font-weight: bold;
  line-height: 1;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-indent: -9999px; /* hide button text */
  position: relative;
  cursor: pointer;
  background: #C9B98A;
  border-radius: 50%;
  color: #000;
  box-shadow: 0 2px 7px rgba(201,185,138,0.07);
  transition: background-color 0.2s ease, color 0.2s ease;
}



.woo-comp-btn::after {
  content: "+";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-indent: 0;
  color: #000;
  font-weight: bold;
  font-size: 24px;
}

.woo-comp-btn.added {
  background: #000;
  color: #C9B98A;
  box-shadow: 0 2px 12px rgba(201,185,138,0.3);
}

.woo-comp-btn.added::after {
  content: "×"; /* show remove X when added */
  color: #C9B98A;
}

/* Container for buttons to align side by side */
.product-action-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Optional: adjust shopping list button size to match compare button */
.product-action-icons {
    display: flex;
    align-items: center;
    gap: 8px; /* spacing between buttons */
}

/* Compare "+" button styles */
.woo-comp-btn {
  font-size: 24px !important;
  font-weight: bold;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  text-align: center;
  position: relative;
  cursor: pointer;
  background: #fff; /* white background circle */
  border-radius: 50%;
  color: #000;
  box-shadow: 0 2px 7px rgba(0,0,0,0.1);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.woo-comp-btn::after {
  content: "+";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-weight: bold;
  font-size: 24px;
}

.woo-comp-btn.added {
  background: #000;
  color: #C9B98A;
  box-shadow: 0 2px 12px rgba(201,185,138,0.3);
}

.woo-comp-btn.added::after {
  content: "×"; /* show remove X when added */
  color: #C9B98A;
}

/* Existing heart (shopping list) button adjustments */
.product-action-icons .shopping-list-button {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 7px rgba(201,185,138,0.07);
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.product-action-icons .shopping-list-button .shopping-list-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #C9B98A;
    box-shadow: none;
    transition: background 0.2s ease;
}

.product-action-icons .shopping-list-button:hover .shopping-list-icon-circle,
.product-action-icons .shopping-list-button.shopping-list-added .shopping-list-icon-circle {
    background: #000;
}

.compare-products-link {
    position: relative;
}

.woo-comp-variation {
    width: 50% !important;
    position: relative !important ;
    right: 10px !important;
}
