#wapc-overlay {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
}
#wapc-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1100px;
  height: 70vh;
  background: #fff;
  z-index: 9999;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
}
#wapc-popup.wapc-hidden,
#wapc-overlay.wapc-hidden {
  display: none;
}
#wapc-popup .wapc-left {
  flex: 1;
  padding: 12px;
  overflow: auto;
}
#wapc-popup .wapc-right {
  width: 360px;
  border-left: 1px solid #eee;
  padding: 12px;
  overflow: auto;
}
.wapc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.wapc-product {
  border: 1px solid #eee;
  padding: 8px;
  border-radius: 6px;
  text-align: center;
}
.wapc-thumb img {
  max-width: 100%;
  height: auto;
}
.wapc-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}
input.wapc-qty {
  max-width: 60px;
}

button.wapc-add-to-cart {
  padding-left: 14px;
  padding-right: 14px;
  background: #fff;
  border: 1px solid #6f735a;
  border-radius: 4px;
  color: #6f735a;
  transition: ease all 0.5s;
  cursor: pointer;
}

button.wapc-add-to-cart:hover {
  background: #6f735a1c;
}
.wapc-cart-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.wapc-cart-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f1f1f1;
}
.wapc-cart-thumb img {
  width: 48px;
  height: 48px;
  object-fit: cover;
}
#wapc-close {
  position: absolute;
  right: 12px;
  top: 12px;
  border: none;
  background: #fff;
  font-size: 22px;
  cursor: pointer;
}
.wapc-filter {
  margin-right: 6px;
  margin-bottom: 6px;
  padding: 6px 10px;
  cursor: pointer;
}
.wapc-filter.active {
  background: #000;
  color: #fff;
}




@media screen and (max-width: 720px) {
	#wapc-popup .wapc-left {
		width: 100%;
	}
	#wapc-popup .wapc-right {
	 	width: 100%;
	}
}