.custom-cart-widget h1 {
  font-size: 24px;
  color: #222;
  margin-bottom: 30px;
  text-align: start;
}

.custom-cart-widget .header_cart_toggle {
  display: flex;
  justify-content: space-between;
}

.custom-cart-widget .category-list {
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.custom-cart-widget .category-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: #f7f7f7;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  gap: 20px;
}

.custom-cart-widget .category-row:hover {
  transform: translateY(-2px);
}

.custom-cart-widget .category-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.custom-cart-widget .cat-image {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
}

.custom-cart-widget .category-text {
  display: flex;
  flex-direction: column;
}

.custom-cart-widget .category-text .label {
  font-size: 13px;
  color: #555;
}

.custom-cart-widget .category-text .name {
  font-size: 16px;
  font-weight: 600;
  color: #00913c;
}

.custom-cart-widget .meta {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 5px;
}

.custom-cart-widget .meta span {
  font-size: 14px;
  line-height: 1.3;
  color: #222;
}

.custom-cart-widget button.add-to-cart {
  background-color: #24d180;
  border: none;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.custom-cart-widget button.add-to-cart:hover {
  background-color: #1ebc6c;
  transform: scale(1.05);
}

.custom-cart-widget #cart-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  position: relative;
}

.custom-cart-widget #cart-count {
  background: red;
  color: white;
  font-size: 12px;
  border-radius: 50%;
  padding: 2px 6px;
  position: absolute;
  top: -1px;
  right: -1px;
}

.custom-cart-widget #cart-box {
  background: #eef5f2;
  padding: 15px;
  border-radius: 1px;
  border: solid white 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 300px;
  position: absolute;
  right: 0;
  top: 54px;
  z-index: 100;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* pushes the button to the right */
}

.custom-cart-widget .hidden {
  display: none;
}

.custom-cart-widget #cart-items li {
  background: #fff;
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: 6px;
  list-style: none;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-cart-widget #cart-items li button.remove-item {
  background: none;
  border: none;
  color: #c00;
  cursor: pointer;
  font-size: 16px;
}

.custom-cart-widget .remove-item[title]:hover::after {
  content: attr(title);
  position: absolute;
  background: #333;
  color: white;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 12px;
  top: -25px;
  right: 0;
}

.custom-cart-widget #proceed-btn,
.custom-cart-widget .btn-proceed {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 10px;
  background-color: #24d180;
  color: white;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 15px;
  border: solid white 1px;
  border-radius: 1px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-cart-widget #proceed-btn:hover,
.custom-cart-widget .btn-proceed:hover {
  background-color: #1bb174;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
  .custom-cart-widget .header_cart_toggle {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .custom-cart-widget h1 {
    font-size: 20px;
    text-align: left;
  }

  .custom-cart-widget .category-row {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
  }

  .custom-cart-widget .category-info {
    flex-direction: row;
    align-items: center;
  }

  .custom-cart-widget .category-text .name {
    font-size: 15px;
  }

  .custom-cart-widget .meta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }

  .custom-cart-widget button.add-to-cart {
    width: 100%;
    padding: 10px;
    font-size: 15px;
  }

  .custom-cart-widget #cart-items li {
    font-size: 13px;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px;
  }

  .custom-cart-widget #cart-toggle {
    font-size: 20px;
  }

  .custom-cart-widget #cart-count {
    top: -1px;
    right: -1px;
    font-size: 10px;
    padding: 2px 5px;
  }

  .custom-cart-widget .cat-image {
    width: 45px;
    height: 45px;
  }

  .custom-cart-widget #cart-box h2 {
    font-size: 18px;
    text-align: left;
  }

  .custom-cart-widget #cart-box {
    top: 14vh;
  }

  .cart-hearder {
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }
}

.custom-cart-widget button.add-to-cart.active {
  background-color: #000 !important;
  color: #fff !important;
}
