.bg-cart-page {
  background-color: #0e0e0e;
}

.cart-title {
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  color: #fff;
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 10px;
}

.cart-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: #ef1c24; /* EP Red */
}

.bg-dark-card {
  background-color: #1a1a1a;
  border: 1px solid #333;
}

.sector-badge {
  background-color: #333;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #ccc;
}

.btn-remove-cart {
  border-color: #ef1c24;
  color: #ef1c24;
  transition: all 0.3s ease;
}

.btn-remove-cart:hover {
  background-color: #ef1c24;
  color: white;
}

.btn-red {
  background-color: #ef1c24;
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-red:hover {
  background-color: #c9161d;
  color: white;
}

.empty-cart-img {
  max-width: 150px;
  opacity: 0.5;
}

/* Add to cart button styles for package cards */
.card-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.btn-subscribe {
  flex-grow: 1;
}

.btn-add-cart {
  width: 48px;
  height: 48px;
  background-color: #e63822;
  border: 1px solid #e63822;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-add-cart img {
  width: 20px;
  filter: brightness(0) invert(1); /* White */
  transition: all 0.3s ease;
}

.btn-add-cart:hover {
  background-color: transparent;
}

.btn-add-cart:hover img {
  filter: brightness(0) invert(15%) sepia(85%) saturate(6011%) hue-rotate(349deg) brightness(84%) contrast(97%); /* Red color */
}

.btn-add-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Waitlist fix */
.waitlist-container {
  width: 100%;
}

/* Header cart icon */
.cart-nav-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 48px;
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 5px;
  background-color: #ef1c24;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.cart-nav-active {
  background-color: #e63822;
  border-radius: 5px;
  height: 39px;
  padding: 15px;
  margin-bottom: 1px;
}

.cart-nav-active img {
  filter: brightness(0) invert(1) !important;
}

.cart-nav-active .cart-badge {
  background-color: white;
  color: #e63822;
}

/* Cart Dropdown Styles */
.cart-dropdown-container {
  position: relative;
}

.cart-dropdown-menu {
  position: absolute;
  top: 48px;
  right: 0;
  width: 380px;
  background-color: #ffffff;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1050;
  display: none;
  margin-top: 15px;
  color: #000000;
  text-align: left;
}

.cart-dropdown-container.show .cart-dropdown-menu {
  display: block;
  animation: fadeInDown 0.2s ease-out;
}

.cart-dropdown-menu::after {
  content: "";
  position: absolute;
  top: -7px;
  right: 21px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  content: none;
}

.cart-dropdown-header {
  background: #f2f2f2;
  padding: 20px 24px;
}

.cart-dropdown-header .header-items-text {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 130%;
  color: #000000;
}

.cart-dropdown-body {
  max-height: 400px;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-dropdown-footer {
  background-color: #fafafa;
  box-shadow: -3px 0px 10px rgba(0, 0, 0, 0.2);
}

.cart-checkout-btn {
  background-color: #e63822;
  border: none;
  border-radius: 8px;
  height: 48px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
}

/* Custom Scrollbar for Dropdown */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #1a1a1a;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* Minimal Package Banner in Dropdown */
.cart-dropdown-banner {
  height: 111px;
  padding: 10px 20px;
  margin-bottom: 10px;
  border-radius: 10px;
}

.cart-dropdown-banner .package-name {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 130%;
  color: #ffffff;
}

.cart-dropdown-banner .package-subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 130%;
  color: #ffffff;
}

.cart-dropdown-banner .package-price {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 10px;
  line-height: 130%;
  color: #ffffff;
  margin-top: 16px;
  margin-bottom: 0;
}

.cart-dropdown-banner .banner-sector-badge-ui {
  font-size: 7px;
  font-weight: 700;
  padding: 5px 10px;
  margin-bottom: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.cart-remove-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: rgba(0, 0, 0, 0.3) !important;
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.cart-remove-btn:hover {
  background: #ef1c24 !important;
  transform: scale(1.1);
}

.dropdown-section-title {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 130%;
  color: #000000;
}

.cart-dropdown-warning {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 130%;
}

.cart-dropdown-warning > span {
  color: #e63822;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dynamic Package View States */

.btn-already-cart {
  flex-grow: 1;
  height: 48px;
  background-color: #ffffff;
  border: 1px solid rgba(253, 129, 129, 0.2);
  color: #e63822;
  font-weight: 600;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.remove-cross {
  width: 48px;
  height: 48px;
  background-color: rgba(253, 129, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #e63822;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.remove-cross:hover {
  background-color: #ef1c24;
  color: white;
}

.btn-disabled {
  background-color: #f2f2f2 !important;
  border: none !important;
  color: #c4c4c4 !important;
  cursor: not-allowed !important;
  pointer-events: auto;
}

.btn-add-cart.btn-disabled img {
  filter: none;
}

/* Filter Disabled State */
.filter-disabled {
  background-color: #f2f2f2 !important;
  border-color: #e0e0e0 !important;
  cursor: not-allowed !important;
}

.filter-disabled span {
  color: #c4c4c4 !important;
}

.filter-disabled img {
  opacity: 0.5;
}

/* Mobile Dropdown Overrides */
@media (max-width: 991px) {
  .btn-add-cart {
    width: 30px;
    height: 30px;
  }

  .state-incart {
    gap: 4px;
  }

  .btn-already-cart {
    height: 30px;
    font-size: 8px;
    border-radius: 8px;
  }

  .remove-cross {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .remove-cross i {
    font-size: 12px;
  }
  .cart-dropdown-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    margin-top: 0;
    display: none;
    flex-direction: column;
    border-radius: 0;
    overflow: hidden;
  }

  .cart-dropdown-container.show .cart-dropdown-menu {
    display: flex;
  }

  .cart-dropdown-menu::before,
  .cart-dropdown-menu::after {
    display: none;
  }

  .cart-dropdown-body {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }

  .cart-dropdown-footer {
    flex-shrink: 0;
  }

  .cart-dropdown-header .header-items-text {
    font-size: 14px;
    font-weight: 700;
  }

  .cart-dropdown-banner .package-name {
    font-size: 14px;
    font-weight: 600;
  }

  .cart-dropdown-banner .package-subtitle {
    font-size: 10px;
    font-weight: 400;
    max-width: 160px; /* limit width to avoid overflow on small screens */
  }

  .cart-dropdown-banner .package-price {
    font-size: 10px;
    font-weight: 700;
  }

  .dropdown-section-title {
    font-size: 12px;
    font-weight: 600;
  }

  .cart-dropdown-warning {
    font-size: 10px;
  }

  .cart-dropdown-banner .banner-sector-badge-ui {
    font-size: 7px;
  }

  .cart-nav-active {
    width: 40px;
    height: 40px;
  }
}
