/* Enhanced Cart Popup Styling - Matching Design Reference */

/* Custom Scrollbar Styling - Modern Dark Theme */
.cart-related-products::-webkit-scrollbar,
.w-commerce-commercecartlist::-webkit-scrollbar {
  width: 8px;
}

.cart-related-products::-webkit-scrollbar-track,
.w-commerce-commercecartlist::-webkit-scrollbar-track {
  background: #0f0f0f;
  border-radius: 10px;
}

.cart-related-products::-webkit-scrollbar-thumb,
.w-commerce-commercecartlist::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.cart-related-products::-webkit-scrollbar-thumb:hover,
.w-commerce-commercecartlist::-webkit-scrollbar-thumb:hover {
  background: #f8b833;
}

/* Firefox Scrollbar */
.cart-related-products,
.w-commerce-commercecartlist {
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a #0f0f0f;
}

/* Related Products Section */
.cart-related-products {
  background-color: #0f0f0f;
}

.cart-related-products h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2a2a2a;
}

.related-product-item:hover {
  background-color: #242424 !important;
}

/* Cart Item Styling */
.w-commerce-commercecartitem {
  background-color: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 16px !important;
  border: 1px solid #2a2a2a;
  position: relative;
}

.w-commerce-commercecartitemimage {
  width: 80px !important;
  height: 80px !important;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #333;
}

.w-commerce-commercecartiteminfo {
  flex: 1;
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.w-commerce-commercecartproductname {
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}

.w-commerce-commercecartitemprice {
  color: #f8b833;
  font-weight: 600;
  font-size: 15px;
}

/* Remove Button Styling - Enhanced Visibility */
.w-commerce-commercecartitemremove {
  background-color: #2a2a2a;
  color: #ffffff;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  display: inline-block;
}

.w-commerce-commercecartitemremove:hover {
  background-color: #ff4444;
  border-color: #ff4444;
  color: #ffffff;
}

/* Cart Container */
.w-commerce-commercecartcontainer {
  background-color: #141414 !important;
  border: 1px solid #2a2a2a;
  border-radius: 0px;
  max-width: 450px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Cart Header */
.w-commerce-commercecartheader {
  background-color: #1a1a1a;
  border-bottom: 1px solid #2a2a2a !important;
  padding: 20px 24px;
}

.w-commerce-commercecartheading {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
}

/* Cart List */
.w-commerce-commercecartlist {
  background-color: #141414;
  padding: 16px !important;
}

/* Cart Footer */
.w-commerce-commercecartfooter {
  background-color: #1a1a1a;
  border-top: 1px solid #2a2a2a !important;
  padding: 20px 24px;
}

.w-commerce-commercecartlineitem {
  margin-bottom: 16px;
}

.w-commerce-commercecartordervalue {
  color: #f8b833;
  font-size: 18px;
}

/* Checkout Button */
.w-commerce-commercecartcheckoutbutton {
  background-color: #f8b833 !important;
  color: #000000 !important;
  border: none;
  border-radius: 6px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 16px;
  width: 100%;
  transition: all 0.2s ease;
}

.w-commerce-commercecartcheckoutbutton:hover {
  background-color: #ffc44d !important;
  transform: translateY(-1px);
}

/* Empty State */
.w-commerce-commercecartemptystate {
  background-color: #141414;
  padding: 40px 24px;
}

.text-cart-empty {
  color: #999999;
  font-size: 16px;
  margin-bottom: 20px;
}

/* Close Button */
.w-commerce-commercecartcloselink {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.w-commerce-commercecartcloselink:hover {
  opacity: 1;
}

/* Cart Wrapper Overlay */
.w-commerce-commercecartcontainerwrapper {
  background-color: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(4px);
}

/* Quantity Badge */
.cart-quantity {
  background-color: #f8b833 !important;
  color: #000000 !important;
  font-weight: 700;
  font-size: 11px;
}

/* Responsive adjustments */
@media screen and (max-width: 479px) {
  .w-commerce-commercecartcontainer {
    max-width: 100%;
    margin: 0 16px;
    border-radius: 8px;
  }
  
  .w-commerce-commercecartitem {
    padding: 12px !important;
  }
  
  .w-commerce-commercecartitemimage {
    width: 60px !important;
    height: 60px !important;
  }
}
