.custom-header-cart, .custom-header-cart #bx_incl_area_1 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 50px;
  position: relative;
}

.header-actions-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  width: fit-content;
  transition:
    color 0.3s,
    transform 0.2s;
    gap: 5px;
}
.header-icon-btn .header-icon-title {
  font-size: 11px;

}


.header-icon-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.header-cart-trigger {
  position: relative;
}

.header-cart-badge {
  position: absolute;
  top: 0;
  right: -4px;
  background-color: var(--color-red);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

.header-cart-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 340px;
  color: var(--color-white);
  background: var(--color-brown);
  box-shadow: 0 5px 20px 5px rgba(255, 255, 255, 0.15);
  border-radius: 0;
  border: 1px solid var(--color-gold);
  padding: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.3s,
    transform 0.3s,
    visibility 0.3s;
  pointer-events: none;
}

.header-cart-dropdown::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

.header-cart-trigger:hover ~ .header-cart-dropdown,
.header-cart-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.header-cart-dropdown-items {
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding: 20px 20px 0 20px;
}

.header-cart-dropdown-items::-webkit-scrollbar {
  width: 4px;
}
.header-cart-dropdown-items::-webkit-scrollbar-thumb {
  background-color: #e4e2e2;
  border-radius: 4px;
}

.header-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-beige);
}

.header-cart-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.header-cart-item-img img,
.header-cart-item-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
}

.header-cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-cart-item-name {
  font-weight: 500;
  text-decoration: none;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.header-cart-item-name:hover {
  color: var(--color-red);
}


.header-cart-item-qty {
  color: #888;
}

.header-cart-item-price {
  font-weight: 600;
}

.header-cart-item-remove {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
  color: var(--color-white);
}

.header-cart-item-remove:hover {
  color: var(--color-red);
}

.header-cart-dropdown-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-beige);
}

.header-cart-dropdown-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.header-cart-btn-checkout {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  background:var(--color-gold);
  color: #fff;
  text-decoration: none;
  padding: 15px 20px;
  border-radius: 0;
  border: none;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.header-cart-btn-checkout:hover {
  background-color: var(--color-red);
  color: #fff;
}
.btn-favorite-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(32, 30, 34, 0.16);
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  color: #201e22;
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
  padding: 0;
}

.btn-favorite-toggle:hover {
  border-color: #201e22;
  transform: scale(1.05);
}

.btn-favorite-toggle.is-active {
  color: #d32f2f;
  border-color: #d32f2f;
}

.btn-favorite-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.header-favorites-trigger {
  position: relative;
}

.header-favorites-badge {
  position: absolute;
  top: 0;
  right: -4px;
  background-color: #201e22;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

.product-buy-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 767.98px) {
.header-icon-btn .header-icon-title {
  display: none;
}
.custom-header-cart {
  gap: 20px;
}
}
