.exppc-comparison-container {
  overflow-x: auto;
  position: relative;
}

.exppc-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  text-align: center;
}

.exppc-comparison-table th,
.exppc-comparison-table td {
  border: 1px solid #ddd;
  padding: 10px;
  min-width: 230px;
  max-width: 250px;
}

.exppc-comparison-table td {
  text-align: center;
}

.exppc-comparison-table th:first-child,
.exppc-comparison-table td:first-child {
  position: sticky;
  left: 0;
  background-color: #f4f4f4;
  z-index: 1;
  min-width: 150px;
  max-width: 180px;
}

.exppc-comparison-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.exppc-comparison-table img {
  max-width: 120px;
  height: auto;
}

.exppc-product-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.exppc-remove-compare {
  position: absolute;
  top: 0;
  right: 0;
  background: url("../images/close.svg") no-repeat center center;
  background-size: 14px 14px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  border: 1px solid;
  border-radius: 50%;
  padding: 10px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.exppc-remove-compare:hover {
  opacity: 1;
}

.exppc-add-to-cart-button {
  border: 1px solid;
  padding: 10px;
  cursor: pointer;
  text-decoration: none !important;
  cursor: pointer;
}

.exppc-add-to-cart-button:hover {
  cursor: pointer;
  opacity: 0.8;
}

/* .exppc-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    text-align: center;
}

.exppc-comparison-table th,
.exppc-comparison-table td {
    border: 1px solid #ddd;
    padding: 10px;
}

.exppc-comparison-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.exppc-comparison-table img {
    max-width: 80px;
    height: auto;
}

.exppc-remove-compare {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.exppc-remove-compare:hover {
    background-color: #cc0000;
} */

/* Widget Button (Bottom Right Corner) */
#exppc-widget {
  position: fixed;
  bottom: 50px;
  right: 20px;
  z-index: 9999;
}

#exppc-widget.left {
  right: unset;
  left: 20px;
}
#exppc-toggle {
  background: var(--exppc-widget-bg-color);
  color: #fff;
  border-radius: 50% !important;
  padding: 12px;
  font-size: 16px;
  border: 1px solid white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exppc-widget-icon {
  display: inline-block;
  width: 50px;
  height: 50px;
}

.exppc-widget-icon img {
  padding: 5px;
}

#exppc-toggle:hover {
  opacity: 0.8;
}

/* Widget Styling - Centered */
#exppc-widget-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 1024px;
  background: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  display: none;
  padding: 20px;
  z-index: 10000;
}

/* Dark Background Overlay */
#exppc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
}

/* Widget Header */
.exppc-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

/* Close Button */
#exppc-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

#exppc-close:hover {
  color: red;
}

/* Comparison Table Inside Widget */
.exppc-widget-body {
  max-height: 500px;
  overflow-y: auto;
}

/******Similar products****/

.exppc-similar-slider {
  display: flex;
  overflow: hidden;
  gap: 15px;
}

.exppc-similar-item {
  background: #fff;
  padding: 15px;
  border: 1px solid #ddd;
  text-align: center;
  border-radius: 8px;
  width: 200px;
}

.exppc-similar-item img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.exppc-price {
  font-weight: bold;
  color: #0073aa;
}

.exppc-similar-item button {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.add-to-cart {
  background: #28a745;
  color: white;
}

button.exppc-compare-button,
button.similar-compare-btn {
  background: var(--exppc-compare-btn-bg-color);
  color: var(--exppc-compare-btn-text-color);
  display: block;
  /* margin-top: 10px ; */
  margin: 0 auto;
  font-size: 14px;
  padding: 8px 16px !important;
  text-decoration: none !important;
  border-radius: 5px;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.summary button.exppc-compare-button,
.wp-block-group.woocommerce.product button.exppc-compare-button,
.summary button.similar-compare-btn,
.wp-block-group.woocommerce.product button.similar-compare-btn {
  margin: 5px;
  cursor: pointer;
}

button.exppc-compare-button:hover,
button.similar-compare-btn:hover {
  background: var(--exppc-compare-btn-bg-hover-color);
  color: var(--exppc-compare-btn-text-hover-color);
}

.exppc-compare-link.exppc-compare-button,
.exppc-compare-link.similar-compare-btn {
  color: unset !important;
  text-decoration: underline !important;
  border: none !important;
  background-color: unset !important;
  padding: 0 !important;
  /* margin: 0 !important; */
  display: flex;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
}

.exppc-compare-link.exppc-compare-button::before,
.exppc-compare-link.similar-compare-btn::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 5px;
  background-image: url("../images/compare.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

.add-to-cart:hover {
  background: #218838;
}

/****Similar product****/

.exppc-product-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  text-align: center;
  text-align: -webkit-center;
}

.exppc-product-image {
  overflow: hidden;
  display: block;
}

.exppc-product-image img {
  width: 250px;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 250px;
}

.exppc-product-info {
  padding: 10px;
  text-align: center;
}

.exppc-product-title {
  font-size: 18px;
  margin: 10px 0;
}

.exppc-price {
  font-size: 16px;
  color: #333;
  margin: 10px 0;
}

.exppc-product-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

/***Quick share**/
.social-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-share-buttons a {
  display: flex;
}

.social-share-buttons h4 {
  margin-top: 0;
  font-size: 18px;
  width: 100%;
  color: var(--exppc-share-title-color);
}

.share-btn {
  display: inline-block;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 60%;
  cursor: pointer;
  text-indent: -9999px;
  transition: background-color 0.3s ease;
}

.share-btn:hover {
  opacity: 0.8;
}

/* Facebook Icon */
.share-facebook {
  background-color: #1877f2; /* Facebook Blue */
  background-image: url("../images/facebook.svg");
}

/* Instagram Icon */
.share-instagram {
  background-color: #c13584; /* Instagram Gradient Base */
  background-image: url("../images/instagram.svg");
}

/* WhatsApp Icon */
.share-whatsapp {
  background-color: #25d366; /* WhatsApp Green */
  background-image: url("../images/whatsapp.svg");
}

/* Telegram Icon */
.share-telegram {
  background-color: #229ed9; /* Telegram Blue */
  background-image: url("../images/telegram.svg");
}

/* Twitter (Now X) Icon */
.share-twitter {
  background-color: #1da1f2; /* Twitter Blue */
  background-image: url("../images/twitter.svg");
}

/* LinkedIn Icon */
.share-linkedin {
  background-color: #0077b5; /* LinkedIn Blue */
  background-image: url("../images/linkedin.svg");
}

/* Pinterest Icon */
.share-pinterest {
  background-color: #e60023; /* Pinterest Red */
  background-image: url("../images/pinterest.svg");
}

/***Sticky Footer***/
#exppc-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--exppc-footer-bg-color);
  color: white;
  text-align: center;
  padding: 10px;
  z-index: 9;
}

#exppc-footer-content {
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px;
}

#exppc-footer-products ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

#exppc-footer-products li {
  display: flex;
  align-items: center;
  padding: 5px;
  background: var(--exppc-footer-product-bg-color);
  border-radius: 5px;
  padding: 10px;
  position: relative;
}

#exppc-footer-products a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

#exppc-footer-products img {
  width: 50px;
  height: 50px;
  border-radius: 5px;
}

#exppc-footer-products .exppc-remove-compare {
  background-color: red;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  right: 0;
}

#exppc-footer-products p {
  margin: 22.5px 0;
}

.exppc-footer-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

#exppc-sticky-footer .exppc-footer-actions .exppc-compare-now {
  display: inline-block;
  padding: 8px 16px;
  background: var(--exppc-footer-btn-bg-color);
  color: var(--exppc-footer-btn-text-color);
  text-decoration: none;
  border-radius: 5px;
}

.exppc-compare-now:hover {
  opacity: 0.8;
}

.exppc-table-image {
  width: 100%;
  margin: 20px 0;
}

.exppc-comparison-header button,
.exppc-add-to-cart-button {
  padding: 8px 16px !important;
  text-decoration: none !important;
  border-radius: 5px;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.exppc-comparison-header button.exppc-clear-all-button {
  background: var(--exppc-table-clear-bg-color);
  color: var(--exppc-table-clear-text-color);
}

.exppc-comparison-header button.exppc-print-button {
  background: var(--exppc-table-print-bg-color);
  color: var(--exppc-table-print-text-color);
}

.exppc-comparison-header {
  display: flex;
  gap: 10px;
  justify-content: end;
}

.exppc-add-to-cart-button {
  background: var(--exppc-table-cart-bg-color);
  color: var(--exppc-table-cart-text-color);
  display: inline-block;
}

.exppc-comparison-header button:hover,
.exppc-add-to-cart-button:hover {
  opacity: 0.8;
}

.exppc-add-to-cart-button {
  margin: 0 auto;
}

.exppc-highlight-row,
.exppc-highlight-row th,
.exppc-highlight-row td {
  background-color: var(--exppc-table-highlight-color) !important;
  font-weight: bold;
}

.exppc-similar-products .slides {
  padding: 0px 30px;
  margin: 0;
}

#exppc-widget-content .exppc-similar-products .slides {
  margin: 0;
  overflow: hidden;
  padding: 0 50px;
}

#exppc-widget-content .exppc-similar-products .slides .slick-prev {
  left: 5px;
}

#exppc-widget-content .exppc-similar-products .slides .slick-next {
  right: 5px;
}

.expsc-counter {
  background-color: red;
  color: white;
  font-size: 14px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: absolute;
  top: -5px;
  right: -5px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.3s ease;
}

/* Hover Effect for Counter */
#exppc-toggle:hover .expsc-counter {
  transform: scale(1.1);
  background-color: darkred;
}

/*Popular product*/

.exppc-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  justify-content: center;
}

.exppc-product__wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.exppc-comparison-item {
  background: #ffffff;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #e0e0e0;
  min-width: 250px;
}

.exppc-product__link {
  text-decoration: none;
}
.exppc-product {
  text-align: center;
  padding: 10px;
}
.exppc-product img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  max-width: 250px;
  object-fit: cover;
  aspect-ratio: unset;
}
.exppc-product h4 {
  font-size: 16px;
  margin-top: 10px;
}
.exppc-vs {
  font-size: 20px;
  font-weight: bold;
  color: black;
  margin: 10px 0;
}
.exppc-comparison-grid a.exppc-compare-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background: var(--exppc-table-compare-bg-color);
  color: var(--exppc-table-compare-text-color);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
  text-decoration: none !important;
}
.exppc-compare-btn:hover {
  opacity: 0.8;
}

#exppc-footer-products {
  overflow: auto;
}

@media (max-width: 768px) {
  .exppc-comparison-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  #exppc-footer-products li {
    padding: 5px;
  }

  .exppc-footer-container {
    width: max-content;
  }
}

.exppc-similar-products .slides .slick-prev {
  left: -20px;
}

.exppc-similar-products .slides .slick-next {
  right: -20px;
}
/*****/

.comparison-column {
  flex: 1;
  min-width: 200px;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.comparison-column label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  color: #333;
}

.product-select {
  width: 100%;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  font-size: 14px;
}

#compare-btn {
  display: block;
  margin: 20px auto;
  padding: 12px 20px;
  background: var(--exppc-table-compare-bg-color);
  color: var(--exppc-table-compare-text-color);
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#compare-btn:hover {
  opacity: 0.8;
}

#compare-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.comparison-column__wrapper {
  display: flex;
  gap: 15px;
}

.comparison-container {
  margin: 30px 0;
}

.exppc-similar-products .exppc-section-title {
  color: var(--exppc-similar-title-color);
}

.exppc-popular-comparisons .exppc-section-title {
  color: var(--exppc-popular-title-color);
}

.social-share-buttons__wrap .exppc-section-title {
  color: var(--exppc-share-title-color);
  font-size: 18px;
  margin: 0;
}

.comparison-container .exppc-widget-title {
  color: var(--exppc-cat-title-color);
}

.exppc-comparison-wrap .exppc-section-title,
.exppc-widget-header .exppc-widget-title {
  color: var(--exppc-table-title-color);
}

.exppc-star-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.exppc-review-count {
  font-size: 0.85em;
  margin-top: 3px;
}
.exppc-no-reviews {
  font-style: italic;
}

.dropdown-list.show {
  display: block;
}

/* comparison.css */

.comparison-container .exppc-widget-title {
  margin-bottom: 15px;
}

.comparison-container .custom-multiselect {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 15px;
}

.comparison-container .select-box {
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  cursor: pointer;
  border-radius: 4px;
}

.comparison-container .dropdown-list {
  display: none;
  position: absolute;
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  max-height: 150px;
  overflow-y: auto;
  z-index: 10;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.comparison-container .dropdown-item {
  padding: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.comparison-container .dropdown-item:hover {
  background: #f0f0f0;
}

.comparison-container .dropdown-item.disabled {
  opacity: 0.5;
  background: #f5f5f5;
  cursor: not-allowed;
}

.comparison-container .selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 5px;
}

.comparison-container .tag {
  background: #f0f0f0;
  border-radius: 3px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  font-size: 0.9em;
}

.comparison-container .tag-remove {
  margin-left: 5px;
  cursor: pointer;
  color: #999;
  font-weight: bold;
}

.comparison-container .tag-remove:hover {
  color: #555;
}

.comparison-container .show {
  display: block;
}

.comparison-container .comparison-column__wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.comparison-container .comparison-column {
  display: flex;
  flex-direction: column;
}

.comparison-container .comparison-column label {
  margin-bottom: 5px;
}

.comparison-container .product-select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}

.comparison-container .product-select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.comparison-container .exppc-compare-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.exppc-comparison-wrap,
.comparison-container,
.social-share-buttons__wrap,
.exppc-similar-products,
.exppc-popular-comparisons {
  max-width: 1024px;
  /* max-width: 100%; */
  margin: 0 auto;
  padding: 0;
}

.exppc-comparison-wrap .social-share-buttons__wrap {
  margin: 0;
}

@media (max-width: 768px) {
  .exppc-comparison-wrap,
  .comparison-container,
  .social-share-buttons__wrap,
  .exppc-similar-products,
  .exppc-popular-comparisons {
    padding: 10px 0;
  }

  .exppc-comparison-table {
    display: block;
    overflow-x: auto;
  }

  .exppc-comparison-table th,
  .exppc-comparison-table td {
    min-width: 180px;
  }

  .exppc-comparison-table th:first-child,
  .exppc-comparison-table td:first-child {
    min-width: 120px;
  }

  #exppc-widget-content {
    width: calc(100% - 30px);
    max-width: 1220px;
  }

  .exppc-comparison-table img {
    max-width: 90px;
  }
}

.exppc-widget-body .exppc-comparison-wrap .exppc-section-title {
  display: none;
}

.exppc-similar-products svg {
  fill: white;
}

.exppc-similar-products .slick-arrow:hover svg {
  fill: black;
}

.social-share-buttons__wrap {
  margin: 20px;
  padding: 0;
  /* padding-bottom: 30px; */
  display: flex;
  align-items: center;
  gap: 20px;
}

.exppc-widget-body .social-share-buttons__wrap {
  margin: 20px 0;
}

.exppc-popular-comparisons {
  border-radius: 8px;
  margin: 40px auto;
}

.exppc-similar-products {
  margin-top: 20px;
}

.exppc-similar-products .slick-initialized .slick-slide {
  margin: 10px;
  padding: 0;
}

.exppc-similar-products .slick-initialized .slick-slide:nth-child(1) {
  margin-left: 0 !important;
}

.products .exppc-compare-button, .products .exppc-compare-link{
  margin-top: 5px;
}

.wc-block-product button.exppc-compare-button, .wc-block-product button.similar-compare-btn{
  font-size: 18px;
}