/* ================================
   Custom Bengali Cart Figma Design
   ================================ */

/* Wrapper */
.custom-cart-wrapper {
  margin: 0 auto;
  font-family: "Hind Siliguri", sans-serif !important;
}

/* Header */
.custom-cart-header {
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  font-size: 18px;
}
.custom-cart-header p {
  font-weight: normal;
  font-size: 14px;
  margin-top: 5px;
  color: #bbb;
}

/* Container */
.custom-cart-container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Left Section */
.custom-cart-left {
  flex: 1;
  display: inline-block;
  /*display: flex;*/
  align-items: center;
  background: #1d1f27;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  height: auto;
  /*height: 168px;*/
}
.custom-cart-left p {
  display: none;
}
.cart-product-box {
  display: flex;
  gap: 15px;
}
.cart-product-thumb img {
  width: 100%;
  border-radius: 12px;
  height: 128px;
  object-fit: contain;
  box-shadow: 0 6px 20px -8px rgba(58, 0, 102, 0.2);
  border: 1px solid transparent;
}
.cart-product-info h3 {
  margin: 0;
  font-size: 19px;
  color: #fff;
  font-weight: 600;
  line-height: 125%;
  margin-top: 10px;
}
.cart-product-regular {
  font-size: 16px;
  margin-right: 6px;
  font-weight: 600;
  color: darkgray;
  margin-left: 6px;
}
.cart-product-price {
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  line-height: 125%;
}

/* Price & Discount Badge */
.price-container {
  margin-top: 18px;
}
.price-container br {
  display: none !important;
}
.lf-discount-badge {
  display: inline-block !important;
  padding: 4px 12px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  background: #dd8c080f !important;
  border-radius: 50px !important;
  vertical-align: middle !important;
  border: 1px solid #dd8c0833;
  line-height: 110%;
}
.lf-discount-badge .gradient-text {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.cart-discount-badge {
  display: inline-block;
  background: #ff9800;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 5px;
}

/* Right Summary */
.custom-cart-summary {
  flex: 1;
  background: #1d1f27;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.custom-cart-summary h3 {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 600;
  color: #ffffffe6;
}
.custom-cart-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.custom-cart-summary ul li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
}
.custom-cart-summary ul li.total {
  font-weight: bold;
  font-size: 18px;
  border-top: 1px solid #333;
  padding-top: 10px;
}

.custom-cart-btn {
  position: relative;
  overflow: hidden;
  border-radius: 50px;
  box-sizing: border-box;
  width: 525px;
  float: right;
  margin-top: 24px;
}

/* Style the link */
.custom-cart-btn > a {
  position: relative;
  z-index: 2;
  padding: 16px 28px;
  color: #fff;
  text-decoration: none;
  background: transparent !important;
  border-radius: inherit;
  border: 1.4px solid rgba(255, 255, 255, 0.2) !important;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  display: flex;
  font-size: 18px;
  font-weight: 600;
  line-height: 110%;
}

/* Background layers */
.custom-cart-btn::before,
.custom-cart-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.45s ease-in-out;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Normal background */
.custom-cart-btn::before {
  background-image: linear-gradient(
      0deg,
      rgba(244, 190, 255, 0.1) 0%,
      rgba(244, 190, 255, 0.1) 100%
    ),
    linear-gradient(135deg, #eccf73 0%, #900dc8 49.52%, #420098 100%);
  opacity: 1;
}

/* Hover background */
.custom-cart-btn::after {
  background-image: linear-gradient(
      0deg,
      rgba(244, 190, 255, 0.1) 0%,
      rgba(244, 190, 255, 0.1) 100%
    ),
    linear-gradient(135deg, #43009c 0%, #b20ed6 50.48%, #eccf73 100%);
  opacity: 0;
}

.custom-cart-btn:hover::before {
  opacity: 0;
}
.custom-cart-btn:hover::after {
  opacity: 1;
}

/* Checkout page button */
.checkout_page_checkout_btn .custom-cart-btn {
  display: none !important;
}

/* Responsive Layouts */
@media (min-width: 1920px) {
  .custom-cart-wrapper {
    max-width: 1200px;
  }
}
@media (min-width: 1440px) and (max-width: 1919px) {
  .custom-cart-wrapper {
    max-width: 1440px;
  }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .custom-cart-wrapper {
    max-width: 1280px;
  }
}
@media (max-width: 767px) {
  .custom-cart-container {
    flex-direction: column;
  }
  .custom-cart-left,
  .custom-cart-summary {
    flex: 1;
    width: 100%;
    margin-top: 18px;
    padding: 16px 20px;
  }
  .cart-product-box {
    flex-direction: column;
    text-align: center;
  }
  .cart-product-thumb img {
    margin-bottom: 0;
    width: 100%;
    height: auto;
    max-width: 190px;
    display: flex;
  }
  .cart-product-info h3 {
    font-size: 18px;
    margin-bottom: -10px;
  }
  .cart-product-price {
    font-size: 20px;
  }
  .cart-product-regular {
    font-size: 16px;
  }
  .lf-discount-badge {
    padding: 4px 12px !important;
    font-size: 16px !important;
    line-height: 110%;
  }
  .price-container {
    margin-right: 40px;
  }
  .custom-cart-btn {
    width: 100%;
    float: none;
    margin-top: -6px;
  }
}
