.wc-essential-wishlist,
.wc-essential-compare,
.wc-essential-quickview {
  background-color: #000;
  color: #fff;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  text-decoration: none;
}
.wc-essential-wishlist span:first-child,
.wc-essential-compare span:first-child,
.wc-essential-quickview span:first-child {
  display: block;
}
.wc-essential-wishlist span:last-child,
.wc-essential-compare span:last-child,
.wc-essential-quickview span:last-child {
  display: none;
}
.wc-essential-wishlist.active span:first-child,
.wc-essential-compare.active span:first-child,
.wc-essential-quickview.active span:first-child {
  display: none;
}
.wc-essential-wishlist.active span:last-child,
.wc-essential-compare.active span:last-child,
.wc-essential-quickview.active span:last-child {
  display: block;
}
.wc-essential-wishlist.loading,
.wc-essential-compare.loading,
.wc-essential-quickview.loading {
  opacity: 0.5;
  cursor: not-allowed;
  -webkit-animation: loading 1s linear infinite;
          animation: loading 1s linear infinite;
  -webkit-transform-origin: center;
          transform-origin: center;
  -webkit-transform: rotate(0deg);
          transform: rotate(0deg);
}

@-webkit-keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
.elementor-wishlist-icon-container,
.elementor-compare-icon-container {
  position: relative;
  display: inline-block;
}
.elementor-wishlist-icon-container .wc-essential-wishlist-count,
.elementor-wishlist-icon-container .wc-essential-compare-count,
.elementor-compare-icon-container .wc-essential-wishlist-count,
.elementor-compare-icon-container .wc-essential-compare-count {
  height: 20px;
  width: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 50%;
  background-color: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  position: absolute;
  text-align: center;
  top: -0.4em;
  right: -0.7em;
  z-index: 1;
}

.wc-essential-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.wc-essential-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.wc-essential-modal-content {
  position: relative;
  background-color: #fff;
  border-radius: 8px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
          box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10000;
}

.wc-essential-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  z-index: 10001;
  width: 40px;
  height: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 50%;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.wc-essential-modal-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.wc-essential-modal-body {
  padding: 30px;
}

.wc-essential-loading,
.wc-essential-error {
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
}

.wc-essential-error {
  color: #d32f2f;
}

.wc-essential-quickview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 768px) {
  .wc-essential-quickview-content {
    grid-template-columns: 1fr;
  }
}

.wc-essential-quickview-images img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.wc-essential-quickview-summary .product-title {
  margin: 0 0 15px;
  font-size: 24px;
  line-height: 1.3;
}
.wc-essential-quickview-summary .product-price {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
}
.wc-essential-quickview-summary .product-short-description {
  margin-bottom: 20px;
  color: #666;
  line-height: 1.6;
}
.wc-essential-quickview-summary .product-meta {
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}
.wc-essential-quickview-summary .product-meta > span {
  display: block;
  margin-bottom: 8px;
}
.wc-essential-quickview-summary .product-actions {
  margin-bottom: 20px;
}
.wc-essential-quickview-summary .product-actions .button,
.wc-essential-quickview-summary .product-actions button {
  width: 100%;
  padding: 12px 24px;
  font-size: 16px;
}
.wc-essential-quickview-summary .wc-essential-view-details {
  display: inline-block;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.wc-essential-quickview-summary .wc-essential-view-details:hover {
  color: #000;
}

body.wc-essential-modal-open {
  overflow: hidden;
}

.wc-essential-wishlist-page h2,
.wc-essential-compare-page h2 {
  margin-bottom: 30px;
  font-size: 28px;
  color: #333;
}
.wc-essential-wishlist-page .wc-essential-empty-message,
.wc-essential-compare-page .wc-essential-empty-message {
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: #666;
  background: #f9f9f9;
  border-radius: 8px;
}

.wc-essential-wishlist-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.wc-essential-wishlist-table thead {
  background: #f5f5f5;
}
.wc-essential-wishlist-table thead th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
}
.wc-essential-wishlist-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  -webkit-transition: background 0.3s ease;
  transition: background 0.3s ease;
}
.wc-essential-wishlist-table tbody tr:hover {
  background: #fafafa;
}
.wc-essential-wishlist-table tbody tr:last-child {
  border-bottom: none;
}
.wc-essential-wishlist-table tbody td {
  padding: 20px 15px;
  vertical-align: middle;
}
.wc-essential-wishlist-table tbody td.product-info a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #333;
}
.wc-essential-wishlist-table tbody td.product-info a img {
  width: 80px;
  height: 80px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 4px;
}
.wc-essential-wishlist-table tbody td.product-info a span {
  font-weight: 500;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}
.wc-essential-wishlist-table tbody td.product-info a:hover span {
  color: #000;
}
.wc-essential-wishlist-table tbody td.product-price {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.wc-essential-wishlist-table tbody td.product-stock .in-stock {
  color: #4caf50;
  font-weight: 500;
}
.wc-essential-wishlist-table tbody td.product-stock .out-of-stock {
  color: #f44336;
  font-weight: 500;
}
.wc-essential-wishlist-table tbody td.product-action .button {
  padding: 10px 20px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.wc-essential-wishlist-table tbody td.product-action .button:hover {
  background: #333;
}
.wc-essential-wishlist-table tbody td.product-action .button.disabled {
  background: #ccc;
  cursor: not-allowed;
}
.wc-essential-wishlist-table tbody td.product-remove {
  text-align: center;
}
.wc-essential-wishlist-table tbody td.product-remove .wc-essential-wishlist {
  width: 36px;
  height: 36px;
  font-size: 24px;
  background: #f44336;
}
.wc-essential-wishlist-table tbody td.product-remove .wc-essential-wishlist:hover {
  background: #d32f2f;
}
@media (max-width: 768px) {
  .wc-essential-wishlist-table thead {
    display: none;
  }
  .wc-essential-wishlist-table tbody tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
  }
  .wc-essential-wishlist-table tbody td {
    display: block;
    text-align: right;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
  }
  .wc-essential-wishlist-table tbody td:last-child {
    border-bottom: none;
  }
  .wc-essential-wishlist-table tbody td::before {
    content: attr(data-label);
    float: left;
    font-weight: 600;
    color: #666;
  }
  .wc-essential-wishlist-table tbody td.product-info {
    text-align: left;
  }
  .wc-essential-wishlist-table tbody td.product-info::before {
    display: none;
  }
}

.wc-essential-compare-table-wrapper {
  overflow-x: auto;
  background: #fff;
  border-radius: 8px;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wc-essential-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px;
}
.wc-essential-compare-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
}
.wc-essential-compare-table tbody tr:last-child {
  border-bottom: none;
}
.wc-essential-compare-table tbody tr th {
  background: #f5f5f5;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-right: 2px solid #e0e0e0;
  min-width: 150px;
  position: sticky;
  left: 0;
  z-index: 1;
}
.wc-essential-compare-table tbody tr td {
  padding: 15px;
  text-align: center;
  border-right: 1px solid #f0f0f0;
  vertical-align: middle;
}
.wc-essential-compare-table tbody tr td:last-child {
  border-right: none;
}
.wc-essential-compare-table tbody tr td a {
  color: #333;
  text-decoration: none;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}
.wc-essential-compare-table tbody tr td a:hover {
  color: #000;
}
.wc-essential-compare-table tbody tr td a img {
  max-width: 150px;
  height: auto;
  border-radius: 4px;
}
.wc-essential-compare-table tbody tr td .in-stock {
  color: #4caf50;
  font-weight: 500;
}
.wc-essential-compare-table tbody tr td .out-of-stock {
  color: #f44336;
  font-weight: 500;
}
.wc-essential-compare-table tbody tr td .button {
  padding: 10px 20px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.wc-essential-compare-table tbody tr td .button:hover {
  background: #333;
}
.wc-essential-compare-table tbody tr td .button.disabled {
  background: #ccc;
  cursor: not-allowed;
}
.wc-essential-compare-table tbody tr td .wc-essential-compare {
  width: 36px;
  height: 36px;
  font-size: 24px;
  background: #f44336;
}
.wc-essential-compare-table tbody tr td .wc-essential-compare:hover {
  background: #d32f2f;
}
.wc-essential-compare-table tbody .compare-row-image td {
  padding: 20px 15px;
}
.wc-essential-compare-table tbody .compare-row-description td {
  text-align: left;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .wc-essential-compare-table {
    min-width: 100%;
  }
  .wc-essential-compare-table tbody tr th {
    min-width: 100px;
    font-size: 14px;
  }
  .wc-essential-compare-table tbody tr td {
    font-size: 14px;
    padding: 10px;
  }
  .wc-essential-compare-table tbody tr td img {
    max-width: 100px;
  }
}

svg {
  height: 16px;
}