/* Header Cart */
.header-cart {
  position: relative;
}

/* Cart Icon */
.cart-icon-link {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
}

.cart-icon {
  width: 25px;
  height: 26px;
  display: block;
}

.cart-count {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  background: var(--accent-collor);
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  border: 2px solid #fff;
  border-radius: 50%;
  padding: 3px 6px;
}

/* Dropdown */
.mini-cart-dropdown {
  position: absolute;
  top: 100%;
  right: -160px;
  width: 380px;
  height: auto;
  background: hsla(0, 0%, 100%, 0.99);
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 0 12px 2px rgba(0, 0, 0, 0.09);
  padding: 22px;
  display: none;
  z-index: 50;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.header-cart:hover .mini-cart-dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Title */
.mini-cart-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #333;
}

/* List */
.mini-cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 250px;
  overflow-y: auto;
}

.mini-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  position: relative;
}

.mini-cart-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 4px;
}

/* Info */
.cart-info {
  flex: 1;
}

.cart-info .brand {
  font-size: 11px;
  color: #888;
  display: block;
}

.cart-info .name {
  font-size: 13px;
  font-weight: 500;
  color: #222;
  display: block;
  margin-bottom: 3px;
}

.cart-info .bottom {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #666;
}

/* Price */
.cart-price {
  font-size: 13px;
  font-weight: 600;
  color: #000;
  white-space: nowrap;
}

/* Remove */
.mini-cart-remove {
  background: none;
  border: none;
  color: #888;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.mini-cart-remove:hover {
  color: var(--accent-collor);
}

/* Footer */
.mini-cart-footer {
  margin-top: 15px;
  text-align: right;
}

.mini-cart-total {
  font-size: 14px;
  margin-bottom: 10px;
}

.btn-order {
  display: inline-block;
  background: var(--accent-collor);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
}

.btn-order:hover {
  background: #c4001d;
}
