/* ===== Mini Cart General Styles ===== */
.woocommerce-mini-cart > li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--brdcolor-gray-200, #eee);
}

/* Product Image */
.cart-item-image {
  position: relative;
  flex: 0 0 70px;
  overflow: hidden;
  border-radius: 8px;
}

.cart-item-image img {
  width: 70px;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

/* Product Info */
.cart-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}

.cart-info .wd-entities-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-900, #222);
  transition: color 0.3s ease;
}

li:hover .cart-info .wd-entities-title {
  color: var(--wd-entities-title-color-hover, #000);
}

.cart-info .quantity {
  font-size: 13px;
  color: var(--color-gray-500, #777);
}

/* ===== Remove (X) Button ===== */
.woocommerce-mini-cart .remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background-color: #fff;
  color: var(--color-gray-800, #444);
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-size: 10px;
  z-index: 2;
  transition: all 0.3s ease;
}

.woocommerce-mini-cart .remove:after {
  content: "\f112";
  font-family: "woodmart-font";
  font-size: 10px;
}

.woocommerce-mini-cart .remove:hover {
  background-color: var(--bgcolor-white, #fff);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  color: #000;
}

/* ===== Cart Total ===== */
.woocommerce-mini-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--brdcolor-gray-300, #ddd);
  font-size: 16px;
  font-weight: 600;
}

/* ===== Buttons ===== */
.woocommerce-mini-cart__buttons {
  margin-top: 10px;
  text-align: center;
}

.woocommerce-mini-cart__buttons a {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s ease;
}

.woocommerce-mini-cart__buttons .btn-cart {
  background-color: var(--btn-default-bgcolor, #000);
  color: var(--btn-default-color, #333);
}

.woocommerce-mini-cart__buttons .btn-cart:hover {
  background-color: var(--btn-default-bgcolor-hover, #ddd);
}

.woocommerce-mini-cart__buttons .checkout {
  background-color: var(--btn-accented-bgcolor, #000);
  color: var(--btn-accented-color, #fff);
}

.woocommerce-mini-cart__buttons .checkout:hover {
  background-color: var(--btn-accented-bgcolor-hover, #333);
}

/* ===== Empty Cart ===== */
.wd-empty-mini-cart {
  padding: 20px;
  text-align: center;
}

.wd-empty-mini-cart:before {
  display: block;
  margin-bottom: 15px;
  color: rgba(0, 0, 0, 0.07);
  font-size: 86px;
  content: "\f147";
  font-family: "woodmart-font";
}

.wd-empty-mini-cart .btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 6px;
  background-color: var(--btn-accented-bgcolor, #000);
  color: var(--btn-accented-color, #fff);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
}

.wd-empty-mini-cart .btn:hover {
  background-color: var(--btn-accented-bgcolor-hover, #333);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 480px) {
  .woocommerce-mini-cart > li {
    flex-direction: column;
    align-items: flex-start;
  }
  .cart-item-image {
    margin-bottom: 10px;
  }
  .woocommerce-mini-cart .remove {
    top: 0;
    right: 0;
  }
}
